@open-agreements/open-agreements 0.2.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/LICENSE +21 -0
- package/README.md +359 -0
- package/bin/open-agreements.js +4 -0
- package/content/external/LICENSE +27 -0
- package/content/external/README.md +38 -0
- package/content/external/yc-safe-discount/README.md +16 -0
- package/content/external/yc-safe-discount/clean.json +4 -0
- package/content/external/yc-safe-discount/metadata.yaml +67 -0
- package/content/external/yc-safe-discount/replacements.json +13 -0
- package/content/external/yc-safe-discount/template.docx +0 -0
- package/content/external/yc-safe-mfn/README.md +16 -0
- package/content/external/yc-safe-mfn/clean.json +4 -0
- package/content/external/yc-safe-mfn/metadata.yaml +64 -0
- package/content/external/yc-safe-mfn/replacements.json +12 -0
- package/content/external/yc-safe-mfn/template.docx +0 -0
- package/content/external/yc-safe-pro-rata-side-letter/README.md +16 -0
- package/content/external/yc-safe-pro-rata-side-letter/clean.json +4 -0
- package/content/external/yc-safe-pro-rata-side-letter/metadata.yaml +49 -0
- package/content/external/yc-safe-pro-rata-side-letter/replacements.json +9 -0
- package/content/external/yc-safe-pro-rata-side-letter/template.docx +0 -0
- package/content/external/yc-safe-valuation-cap/README.md +16 -0
- package/content/external/yc-safe-valuation-cap/clean.json +4 -0
- package/content/external/yc-safe-valuation-cap/metadata.yaml +64 -0
- package/content/external/yc-safe-valuation-cap/replacements.json +12 -0
- package/content/external/yc-safe-valuation-cap/template.docx +0 -0
- package/content/recipes/nvca-certificate-of-incorporation/clean.json +8 -0
- package/content/recipes/nvca-certificate-of-incorporation/metadata.yaml +43 -0
- package/content/recipes/nvca-certificate-of-incorporation/replacements.json +9 -0
- package/content/recipes/nvca-indemnification-agreement/clean.json +17 -0
- package/content/recipes/nvca-indemnification-agreement/metadata.yaml +79 -0
- package/content/recipes/nvca-indemnification-agreement/replacements.json +17 -0
- package/content/recipes/nvca-investors-rights-agreement/clean.json +12 -0
- package/content/recipes/nvca-investors-rights-agreement/metadata.yaml +71 -0
- package/content/recipes/nvca-investors-rights-agreement/replacements.json +18 -0
- package/content/recipes/nvca-management-rights-letter/clean.json +7 -0
- package/content/recipes/nvca-management-rights-letter/metadata.yaml +47 -0
- package/content/recipes/nvca-management-rights-letter/replacements.json +11 -0
- package/content/recipes/nvca-rofr-co-sale-agreement/clean.json +7 -0
- package/content/recipes/nvca-rofr-co-sale-agreement/metadata.yaml +76 -0
- package/content/recipes/nvca-rofr-co-sale-agreement/replacements.json +17 -0
- package/content/recipes/nvca-stock-purchase-agreement/clean.json +13 -0
- package/content/recipes/nvca-stock-purchase-agreement/computed.json +103 -0
- package/content/recipes/nvca-stock-purchase-agreement/metadata.yaml +138 -0
- package/content/recipes/nvca-stock-purchase-agreement/normalize.json +83 -0
- package/content/recipes/nvca-stock-purchase-agreement/replacements.json +41 -0
- package/content/recipes/nvca-voting-agreement/README.md +53 -0
- package/content/recipes/nvca-voting-agreement/clean.json +7 -0
- package/content/recipes/nvca-voting-agreement/metadata.yaml +66 -0
- package/content/recipes/nvca-voting-agreement/replacements.json +18 -0
- package/content/templates/bonterms-mutual-nda/README.md +27 -0
- package/content/templates/bonterms-mutual-nda/metadata.yaml +58 -0
- package/content/templates/bonterms-mutual-nda/source.json +18 -0
- package/content/templates/bonterms-mutual-nda/template.docx +0 -0
- package/content/templates/bonterms-professional-services-agreement/README.md +24 -0
- package/content/templates/bonterms-professional-services-agreement/metadata.yaml +45 -0
- package/content/templates/bonterms-professional-services-agreement/selections.json +12 -0
- package/content/templates/bonterms-professional-services-agreement/source.json +18 -0
- package/content/templates/bonterms-professional-services-agreement/template.docx +0 -0
- package/content/templates/closing-checklist/metadata.yaml +39 -0
- package/content/templates/closing-checklist/template.docx +0 -0
- package/content/templates/common-paper-ai-addendum/README.md +23 -0
- package/content/templates/common-paper-ai-addendum/metadata.yaml +31 -0
- package/content/templates/common-paper-ai-addendum/template.docx +0 -0
- package/content/templates/common-paper-ai-addendum-in-app/README.md +21 -0
- package/content/templates/common-paper-ai-addendum-in-app/metadata.yaml +21 -0
- package/content/templates/common-paper-ai-addendum-in-app/template.docx +0 -0
- package/content/templates/common-paper-amendment/README.md +27 -0
- package/content/templates/common-paper-amendment/metadata.yaml +53 -0
- package/content/templates/common-paper-amendment/template.docx +0 -0
- package/content/templates/common-paper-business-associate-agreement/README.md +29 -0
- package/content/templates/common-paper-business-associate-agreement/metadata.yaml +56 -0
- package/content/templates/common-paper-business-associate-agreement/replacements.json +3 -0
- package/content/templates/common-paper-business-associate-agreement/template.docx +0 -0
- package/content/templates/common-paper-cloud-service-agreement/README.md +32 -0
- package/content/templates/common-paper-cloud-service-agreement/metadata.yaml +354 -0
- package/content/templates/common-paper-cloud-service-agreement/template.docx +0 -0
- package/content/templates/common-paper-csa-click-through/README.md +33 -0
- package/content/templates/common-paper-csa-click-through/metadata.yaml +73 -0
- package/content/templates/common-paper-csa-click-through/template.docx +0 -0
- package/content/templates/common-paper-csa-with-ai/README.md +49 -0
- package/content/templates/common-paper-csa-with-ai/metadata.yaml +143 -0
- package/content/templates/common-paper-csa-with-ai/replacements.json +7 -0
- package/content/templates/common-paper-csa-with-ai/template.docx +0 -0
- package/content/templates/common-paper-csa-with-sla/README.md +53 -0
- package/content/templates/common-paper-csa-with-sla/metadata.yaml +159 -0
- package/content/templates/common-paper-csa-with-sla/replacements.json +7 -0
- package/content/templates/common-paper-csa-with-sla/template.docx +0 -0
- package/content/templates/common-paper-csa-without-sla/README.md +47 -0
- package/content/templates/common-paper-csa-without-sla/metadata.yaml +135 -0
- package/content/templates/common-paper-csa-without-sla/replacements.json +7 -0
- package/content/templates/common-paper-csa-without-sla/template.docx +0 -0
- package/content/templates/common-paper-data-processing-agreement/README.md +46 -0
- package/content/templates/common-paper-data-processing-agreement/metadata.yaml +130 -0
- package/content/templates/common-paper-data-processing-agreement/replacements.json +3 -0
- package/content/templates/common-paper-data-processing-agreement/template.docx +0 -0
- package/content/templates/common-paper-design-partner-agreement/README.md +29 -0
- package/content/templates/common-paper-design-partner-agreement/metadata.yaml +59 -0
- package/content/templates/common-paper-design-partner-agreement/replacements.json +4 -0
- package/content/templates/common-paper-design-partner-agreement/template.docx +0 -0
- package/content/templates/common-paper-independent-contractor-agreement/README.md +27 -0
- package/content/templates/common-paper-independent-contractor-agreement/metadata.yaml +55 -0
- package/content/templates/common-paper-independent-contractor-agreement/template.docx +0 -0
- package/content/templates/common-paper-letter-of-intent/README.md +25 -0
- package/content/templates/common-paper-letter-of-intent/metadata.yaml +42 -0
- package/content/templates/common-paper-letter-of-intent/template.docx +0 -0
- package/content/templates/common-paper-mutual-nda/README.md +29 -0
- package/content/templates/common-paper-mutual-nda/metadata.yaml +59 -0
- package/content/templates/common-paper-mutual-nda/selections.json +38 -0
- package/content/templates/common-paper-mutual-nda/template.docx +0 -0
- package/content/templates/common-paper-one-way-nda/README.md +27 -0
- package/content/templates/common-paper-one-way-nda/metadata.yaml +59 -0
- package/content/templates/common-paper-one-way-nda/template.docx +0 -0
- package/content/templates/common-paper-order-form/README.md +36 -0
- package/content/templates/common-paper-order-form/metadata.yaml +87 -0
- package/content/templates/common-paper-order-form/replacements.json +5 -0
- package/content/templates/common-paper-order-form/template.docx +0 -0
- package/content/templates/common-paper-order-form-with-sla/README.md +42 -0
- package/content/templates/common-paper-order-form-with-sla/metadata.yaml +111 -0
- package/content/templates/common-paper-order-form-with-sla/replacements.json +5 -0
- package/content/templates/common-paper-order-form-with-sla/template.docx +0 -0
- package/content/templates/common-paper-partnership-agreement/README.md +34 -0
- package/content/templates/common-paper-partnership-agreement/metadata.yaml +78 -0
- package/content/templates/common-paper-partnership-agreement/replacements.json +7 -0
- package/content/templates/common-paper-partnership-agreement/template.docx +0 -0
- package/content/templates/common-paper-pilot-agreement/README.md +34 -0
- package/content/templates/common-paper-pilot-agreement/metadata.yaml +100 -0
- package/content/templates/common-paper-pilot-agreement/replacements.json +4 -0
- package/content/templates/common-paper-pilot-agreement/selections.json +37 -0
- package/content/templates/common-paper-pilot-agreement/template.docx +0 -0
- package/content/templates/common-paper-professional-services-agreement/README.md +44 -0
- package/content/templates/common-paper-professional-services-agreement/metadata.yaml +124 -0
- package/content/templates/common-paper-professional-services-agreement/replacements.json +8 -0
- package/content/templates/common-paper-professional-services-agreement/template.docx +0 -0
- package/content/templates/common-paper-software-license-agreement/README.md +18 -0
- package/content/templates/common-paper-software-license-agreement/metadata.yaml +13 -0
- package/content/templates/common-paper-software-license-agreement/template.docx +0 -0
- package/content/templates/common-paper-statement-of-work/README.md +32 -0
- package/content/templates/common-paper-statement-of-work/metadata.yaml +71 -0
- package/content/templates/common-paper-statement-of-work/replacements.json +3 -0
- package/content/templates/common-paper-statement-of-work/template.docx +0 -0
- package/content/templates/common-paper-term-sheet/README.md +22 -0
- package/content/templates/common-paper-term-sheet/metadata.yaml +28 -0
- package/content/templates/common-paper-term-sheet/template.docx +0 -0
- package/content/templates/openagreements-employee-ip-inventions-assignment/README.md +31 -0
- package/content/templates/openagreements-employee-ip-inventions-assignment/metadata.yaml +71 -0
- package/content/templates/openagreements-employee-ip-inventions-assignment/template.docx +0 -0
- package/content/templates/openagreements-employee-ip-inventions-assignment/template.md +80 -0
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/README.md +30 -0
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/metadata.yaml +60 -0
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/template.docx +0 -0
- package/content/templates/openagreements-employment-confidentiality-acknowledgement/template.md +51 -0
- package/content/templates/openagreements-employment-offer-letter/README.md +33 -0
- package/content/templates/openagreements-employment-offer-letter/metadata.yaml +75 -0
- package/content/templates/openagreements-employment-offer-letter/template.docx +0 -0
- package/content/templates/openagreements-employment-offer-letter/template.md +90 -0
- package/content/templates/working-group-list/metadata.yaml +22 -0
- package/content/templates/working-group-list/template.docx +0 -0
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +199 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/commands/checklist.d.ts +22 -0
- package/dist/commands/checklist.d.ts.map +1 -0
- package/dist/commands/checklist.js +222 -0
- package/dist/commands/checklist.js.map +1 -0
- package/dist/commands/fill.d.ts +18 -0
- package/dist/commands/fill.d.ts.map +1 -0
- package/dist/commands/fill.js +119 -0
- package/dist/commands/fill.js.map +1 -0
- package/dist/commands/list.d.ts +7 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +247 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/recipe.d.ts +24 -0
- package/dist/commands/recipe.d.ts.map +1 -0
- package/dist/commands/recipe.js +96 -0
- package/dist/commands/recipe.js.map +1 -0
- package/dist/commands/scan.d.ts +28 -0
- package/dist/commands/scan.d.ts.map +1 -0
- package/dist/commands/scan.js +138 -0
- package/dist/commands/scan.js.map +1 -0
- package/dist/commands/validate.d.ts +6 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +158 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/core/checklist/index.d.ts +38 -0
- package/dist/core/checklist/index.d.ts.map +1 -0
- package/dist/core/checklist/index.js +229 -0
- package/dist/core/checklist/index.js.map +1 -0
- package/dist/core/checklist/patch-apply.d.ts +65 -0
- package/dist/core/checklist/patch-apply.d.ts.map +1 -0
- package/dist/core/checklist/patch-apply.js +274 -0
- package/dist/core/checklist/patch-apply.js.map +1 -0
- package/dist/core/checklist/patch-schemas.d.ts +86 -0
- package/dist/core/checklist/patch-schemas.d.ts.map +1 -0
- package/dist/core/checklist/patch-schemas.js +89 -0
- package/dist/core/checklist/patch-schemas.js.map +1 -0
- package/dist/core/checklist/patch-validator.d.ts +76 -0
- package/dist/core/checklist/patch-validator.d.ts.map +1 -0
- package/dist/core/checklist/patch-validator.js +404 -0
- package/dist/core/checklist/patch-validator.js.map +1 -0
- package/dist/core/checklist/schemas.d.ts +270 -0
- package/dist/core/checklist/schemas.d.ts.map +1 -0
- package/dist/core/checklist/schemas.js +229 -0
- package/dist/core/checklist/schemas.js.map +1 -0
- package/dist/core/checklist/test-utils.d.ts +7 -0
- package/dist/core/checklist/test-utils.d.ts.map +1 -0
- package/dist/core/checklist/test-utils.js +13 -0
- package/dist/core/checklist/test-utils.js.map +1 -0
- package/dist/core/command-generation/adapters/claude.d.ts +11 -0
- package/dist/core/command-generation/adapters/claude.d.ts.map +1 -0
- package/dist/core/command-generation/adapters/claude.js +91 -0
- package/dist/core/command-generation/adapters/claude.js.map +1 -0
- package/dist/core/command-generation/types.d.ts +14 -0
- package/dist/core/command-generation/types.d.ts.map +1 -0
- package/dist/core/command-generation/types.js +2 -0
- package/dist/core/command-generation/types.js.map +1 -0
- package/dist/core/employment/jurisdiction-rules.d.ts +20 -0
- package/dist/core/employment/jurisdiction-rules.d.ts.map +1 -0
- package/dist/core/employment/jurisdiction-rules.js +57 -0
- package/dist/core/employment/jurisdiction-rules.js.map +1 -0
- package/dist/core/employment/memo.d.ts +57 -0
- package/dist/core/employment/memo.d.ts.map +1 -0
- package/dist/core/employment/memo.js +589 -0
- package/dist/core/employment/memo.js.map +1 -0
- package/dist/core/engine.d.ts +13 -0
- package/dist/core/engine.d.ts.map +1 -0
- package/dist/core/engine.js +182 -0
- package/dist/core/engine.js.map +1 -0
- package/dist/core/external/index.d.ts +8 -0
- package/dist/core/external/index.d.ts.map +1 -0
- package/dist/core/external/index.js +50 -0
- package/dist/core/external/index.js.map +1 -0
- package/dist/core/external/types.d.ts +18 -0
- package/dist/core/external/types.d.ts.map +1 -0
- package/dist/core/external/types.js +2 -0
- package/dist/core/external/types.js.map +1 -0
- package/dist/core/fill-pipeline.d.ts +64 -0
- package/dist/core/fill-pipeline.d.ts.map +1 -0
- package/dist/core/fill-pipeline.js +350 -0
- package/dist/core/fill-pipeline.js.map +1 -0
- package/dist/core/fill-utils.d.ts +39 -0
- package/dist/core/fill-utils.d.ts.map +1 -0
- package/dist/core/fill-utils.js +127 -0
- package/dist/core/fill-utils.js.map +1 -0
- package/dist/core/metadata.d.ts +194 -0
- package/dist/core/metadata.d.ts.map +1 -0
- package/dist/core/metadata.js +197 -0
- package/dist/core/metadata.js.map +1 -0
- package/dist/core/recipe/bracket-normalizer.d.ts +46 -0
- package/dist/core/recipe/bracket-normalizer.d.ts.map +1 -0
- package/dist/core/recipe/bracket-normalizer.js +354 -0
- package/dist/core/recipe/bracket-normalizer.js.map +1 -0
- package/dist/core/recipe/cleaner.d.ts +27 -0
- package/dist/core/recipe/cleaner.d.ts.map +1 -0
- package/dist/core/recipe/cleaner.js +345 -0
- package/dist/core/recipe/cleaner.js.map +1 -0
- package/dist/core/recipe/computed.d.ts +136 -0
- package/dist/core/recipe/computed.d.ts.map +1 -0
- package/dist/core/recipe/computed.js +225 -0
- package/dist/core/recipe/computed.js.map +1 -0
- package/dist/core/recipe/downloader.d.ts +8 -0
- package/dist/core/recipe/downloader.d.ts.map +1 -0
- package/dist/core/recipe/downloader.js +58 -0
- package/dist/core/recipe/downloader.js.map +1 -0
- package/dist/core/recipe/index.d.ts +17 -0
- package/dist/core/recipe/index.d.ts.map +1 -0
- package/dist/core/recipe/index.js +90 -0
- package/dist/core/recipe/index.js.map +1 -0
- package/dist/core/recipe/ooxml-parts.d.ts +21 -0
- package/dist/core/recipe/ooxml-parts.d.ts.map +1 -0
- package/dist/core/recipe/ooxml-parts.js +33 -0
- package/dist/core/recipe/ooxml-parts.js.map +1 -0
- package/dist/core/recipe/patcher.d.ts +34 -0
- package/dist/core/recipe/patcher.d.ts.map +1 -0
- package/dist/core/recipe/patcher.js +423 -0
- package/dist/core/recipe/patcher.js.map +1 -0
- package/dist/core/recipe/replacement-keys.d.ts +33 -0
- package/dist/core/recipe/replacement-keys.d.ts.map +1 -0
- package/dist/core/recipe/replacement-keys.js +53 -0
- package/dist/core/recipe/replacement-keys.js.map +1 -0
- package/dist/core/recipe/source-drift.d.ts +33 -0
- package/dist/core/recipe/source-drift.d.ts.map +1 -0
- package/dist/core/recipe/source-drift.js +113 -0
- package/dist/core/recipe/source-drift.js.map +1 -0
- package/dist/core/recipe/types.d.ts +33 -0
- package/dist/core/recipe/types.d.ts.map +1 -0
- package/dist/core/recipe/types.js +2 -0
- package/dist/core/recipe/types.js.map +1 -0
- package/dist/core/recipe/verifier.d.ts +24 -0
- package/dist/core/recipe/verifier.d.ts.map +1 -0
- package/dist/core/recipe/verifier.js +158 -0
- package/dist/core/recipe/verifier.js.map +1 -0
- package/dist/core/selector.d.ts +41 -0
- package/dist/core/selector.d.ts.map +1 -0
- package/dist/core/selector.js +323 -0
- package/dist/core/selector.js.map +1 -0
- package/dist/core/unified-pipeline.d.ts +53 -0
- package/dist/core/unified-pipeline.d.ts.map +1 -0
- package/dist/core/unified-pipeline.js +107 -0
- package/dist/core/unified-pipeline.js.map +1 -0
- package/dist/core/validation/external.d.ts +16 -0
- package/dist/core/validation/external.d.ts.map +1 -0
- package/dist/core/validation/external.js +114 -0
- package/dist/core/validation/external.js.map +1 -0
- package/dist/core/validation/license.d.ts +15 -0
- package/dist/core/validation/license.d.ts.map +1 -0
- package/dist/core/validation/license.js +30 -0
- package/dist/core/validation/license.js.map +1 -0
- package/dist/core/validation/output.d.ts +12 -0
- package/dist/core/validation/output.d.ts.map +1 -0
- package/dist/core/validation/output.js +47 -0
- package/dist/core/validation/output.js.map +1 -0
- package/dist/core/validation/recipe.d.ts +19 -0
- package/dist/core/validation/recipe.d.ts.map +1 -0
- package/dist/core/validation/recipe.js +159 -0
- package/dist/core/validation/recipe.js.map +1 -0
- package/dist/core/validation/scan-metadata.d.ts +21 -0
- package/dist/core/validation/scan-metadata.d.ts.map +1 -0
- package/dist/core/validation/scan-metadata.js +70 -0
- package/dist/core/validation/scan-metadata.js.map +1 -0
- package/dist/core/validation/template.d.ts +11 -0
- package/dist/core/validation/template.d.ts.map +1 -0
- package/dist/core/validation/template.js +248 -0
- package/dist/core/validation/template.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/paths.d.ts +43 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +149 -0
- package/dist/utils/paths.js.map +1 -0
- package/package.json +148 -0
- package/skills/cloud-service-agreement/CONNECTORS.md +19 -0
- package/skills/cloud-service-agreement/SKILL.md +172 -0
- package/skills/data-privacy-agreement/CONNECTORS.md +19 -0
- package/skills/data-privacy-agreement/SKILL.md +158 -0
- package/skills/delaware-franchise-tax/CONNECTORS.md +16 -0
- package/skills/delaware-franchise-tax/SKILL.md +206 -0
- package/skills/delaware-franchise-tax/reference/ecorp-portal-playwright-notes.md +136 -0
- package/skills/delaware-franchise-tax/reference/faq.md +101 -0
- package/skills/delaware-franchise-tax/reference/filing-instructions.md +111 -0
- package/skills/delaware-franchise-tax/reference/tax-calculation.md +167 -0
- package/skills/employment-contract/CONNECTORS.md +19 -0
- package/skills/employment-contract/SKILL.md +157 -0
- package/skills/nda/CONNECTORS.md +19 -0
- package/skills/nda/SKILL.md +153 -0
- package/skills/open-agreements/CONNECTORS.md +19 -0
- package/skills/open-agreements/SKILL.md +182 -0
- package/skills/safe/CONNECTORS.md +19 -0
- package/skills/safe/SKILL.md +161 -0
- package/skills/services-agreement/CONNECTORS.md +19 -0
- package/skills/services-agreement/SKILL.md +156 -0
- package/skills/unit-test-philosophy/SKILL.md +113 -0
- package/skills/unit-test-philosophy/references/allure-test-spec-writing-guide.md +164 -0
- package/skills/venture-financing/CONNECTORS.md +19 -0
- package/skills/venture-financing/SKILL.md +169 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { createHash, randomUUID } from 'node:crypto';
|
|
2
|
+
import { ClosingChecklistSchema } from './schemas.js';
|
|
3
|
+
import { ChecklistPatchEnvelopeSchema } from './patch-schemas.js';
|
|
4
|
+
export const CHECKLIST_PATCH_VALIDATION_TTL_MS = 10 * 60 * 1000;
|
|
5
|
+
class InMemoryChecklistPatchValidationStore {
|
|
6
|
+
map = new Map();
|
|
7
|
+
async set(artifact) {
|
|
8
|
+
this.map.set(artifact.validation_id, artifact);
|
|
9
|
+
}
|
|
10
|
+
async get(validationId) {
|
|
11
|
+
return this.map.get(validationId) ?? null;
|
|
12
|
+
}
|
|
13
|
+
async delete(validationId) {
|
|
14
|
+
this.map.delete(validationId);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
let validationStore = null;
|
|
18
|
+
export function setChecklistPatchValidationStore(store) {
|
|
19
|
+
validationStore = store;
|
|
20
|
+
}
|
|
21
|
+
export function getChecklistPatchValidationStore() {
|
|
22
|
+
if (!validationStore) {
|
|
23
|
+
validationStore = new InMemoryChecklistPatchValidationStore();
|
|
24
|
+
}
|
|
25
|
+
return validationStore;
|
|
26
|
+
}
|
|
27
|
+
function isRecord(value) {
|
|
28
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
29
|
+
}
|
|
30
|
+
function cloneValue(value) {
|
|
31
|
+
if (typeof structuredClone === 'function') {
|
|
32
|
+
return structuredClone(value);
|
|
33
|
+
}
|
|
34
|
+
return JSON.parse(JSON.stringify(value));
|
|
35
|
+
}
|
|
36
|
+
function stableStringify(value) {
|
|
37
|
+
if (value === null || typeof value !== 'object') {
|
|
38
|
+
return JSON.stringify(value);
|
|
39
|
+
}
|
|
40
|
+
if (Array.isArray(value)) {
|
|
41
|
+
return `[${value.map((item) => stableStringify(item)).join(',')}]`;
|
|
42
|
+
}
|
|
43
|
+
const record = value;
|
|
44
|
+
const keys = Object.keys(record).sort();
|
|
45
|
+
const parts = keys.map((key) => `${JSON.stringify(key)}:${stableStringify(record[key])}`);
|
|
46
|
+
return `{${parts.join(',')}}`;
|
|
47
|
+
}
|
|
48
|
+
export function computeChecklistPatchHash(patch) {
|
|
49
|
+
const structural = {
|
|
50
|
+
...patch,
|
|
51
|
+
operations: patch.operations.map(({ op, path, value }) => ({ op, path, value })),
|
|
52
|
+
};
|
|
53
|
+
return createHash('sha256').update(stableStringify(structural)).digest('hex');
|
|
54
|
+
}
|
|
55
|
+
export const DANGEROUS_KEYS = new Set(['__proto__', 'constructor', 'prototype']);
|
|
56
|
+
function decodePointerToken(token) {
|
|
57
|
+
return token.replace(/~1/g, '/').replace(/~0/g, '~');
|
|
58
|
+
}
|
|
59
|
+
function decodePointer(path) {
|
|
60
|
+
return path.split('/').slice(1).map(decodePointerToken);
|
|
61
|
+
}
|
|
62
|
+
function encodePointer(tokens) {
|
|
63
|
+
if (tokens.length === 0)
|
|
64
|
+
return '';
|
|
65
|
+
return `/${tokens.map((token) => token.replace(/~/g, '~0').replace(/\//g, '~1')).join('/')}`;
|
|
66
|
+
}
|
|
67
|
+
function parseArrayIndex(token) {
|
|
68
|
+
if (!/^(0|[1-9][0-9]*)$/.test(token)) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
return Number(token);
|
|
72
|
+
}
|
|
73
|
+
function resolveParent(root, path) {
|
|
74
|
+
const tokens = decodePointer(path);
|
|
75
|
+
if (tokens.length === 0) {
|
|
76
|
+
return {
|
|
77
|
+
ok: false,
|
|
78
|
+
code: 'TARGET_PATH_INVALID',
|
|
79
|
+
message: 'root path operations are not supported',
|
|
80
|
+
path,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
let current = root;
|
|
84
|
+
const parentTokens = [];
|
|
85
|
+
for (const token of tokens.slice(0, -1)) {
|
|
86
|
+
if (DANGEROUS_KEYS.has(token)) {
|
|
87
|
+
return {
|
|
88
|
+
ok: false,
|
|
89
|
+
code: 'TARGET_PATH_INVALID',
|
|
90
|
+
message: `path token "${token}" is a disallowed key`,
|
|
91
|
+
path: encodePointer(parentTokens.concat(token)),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
if (Array.isArray(current)) {
|
|
95
|
+
const index = parseArrayIndex(token);
|
|
96
|
+
if (index === null) {
|
|
97
|
+
return {
|
|
98
|
+
ok: false,
|
|
99
|
+
code: 'TARGET_PATH_INVALID',
|
|
100
|
+
message: `array path segment "${token}" is not a valid index`,
|
|
101
|
+
path: encodePointer(parentTokens.concat(token)),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
if (index < 0 || index >= current.length) {
|
|
105
|
+
return {
|
|
106
|
+
ok: false,
|
|
107
|
+
code: 'TARGET_NOT_FOUND',
|
|
108
|
+
message: `array index ${index} is out of bounds`,
|
|
109
|
+
path: encodePointer(parentTokens.concat(token)),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
current = current[index];
|
|
113
|
+
parentTokens.push(token);
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if (isRecord(current)) {
|
|
117
|
+
if (!Object.prototype.hasOwnProperty.call(current, token)) {
|
|
118
|
+
return {
|
|
119
|
+
ok: false,
|
|
120
|
+
code: 'TARGET_NOT_FOUND',
|
|
121
|
+
message: `object key "${token}" does not exist`,
|
|
122
|
+
path: encodePointer(parentTokens.concat(token)),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
current = current[token];
|
|
126
|
+
parentTokens.push(token);
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
ok: false,
|
|
131
|
+
code: 'TARGET_PARENT_INVALID',
|
|
132
|
+
message: 'path traverses through a non-container value',
|
|
133
|
+
path: encodePointer(parentTokens),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
ok: true,
|
|
138
|
+
parent: current,
|
|
139
|
+
parentPath: encodePointer(parentTokens),
|
|
140
|
+
finalToken: tokens[tokens.length - 1],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function applyOperationDryRun(root, operation, operationIndex) {
|
|
144
|
+
const parentResult = resolveParent(root, operation.path);
|
|
145
|
+
if (!parentResult.ok) {
|
|
146
|
+
return {
|
|
147
|
+
ok: false,
|
|
148
|
+
diagnostic: {
|
|
149
|
+
code: parentResult.code,
|
|
150
|
+
message: parentResult.message,
|
|
151
|
+
path: parentResult.path,
|
|
152
|
+
operation_index: operationIndex,
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
const { parent, parentPath, finalToken } = parentResult;
|
|
157
|
+
if (DANGEROUS_KEYS.has(finalToken)) {
|
|
158
|
+
return {
|
|
159
|
+
ok: false,
|
|
160
|
+
diagnostic: {
|
|
161
|
+
code: 'TARGET_PATH_INVALID',
|
|
162
|
+
message: `path token "${finalToken}" is a disallowed key`,
|
|
163
|
+
path: operation.path,
|
|
164
|
+
operation_index: operationIndex,
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
if (Array.isArray(parent)) {
|
|
169
|
+
if (finalToken === '-') {
|
|
170
|
+
if (operation.op !== 'add') {
|
|
171
|
+
return {
|
|
172
|
+
ok: false,
|
|
173
|
+
diagnostic: {
|
|
174
|
+
code: 'TARGET_PATH_INVALID',
|
|
175
|
+
message: `"${operation.op}" cannot target "-" append index`,
|
|
176
|
+
path: operation.path,
|
|
177
|
+
operation_index: operationIndex,
|
|
178
|
+
},
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
parent.push(cloneValue(operation.value));
|
|
182
|
+
return {
|
|
183
|
+
ok: true,
|
|
184
|
+
resolved: {
|
|
185
|
+
operation_index: operationIndex,
|
|
186
|
+
op: operation.op,
|
|
187
|
+
path: operation.path,
|
|
188
|
+
parent_path: parentPath,
|
|
189
|
+
parent_container: 'array',
|
|
190
|
+
target_exists_before: false,
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
const index = parseArrayIndex(finalToken);
|
|
195
|
+
if (index === null) {
|
|
196
|
+
return {
|
|
197
|
+
ok: false,
|
|
198
|
+
diagnostic: {
|
|
199
|
+
code: 'TARGET_PATH_INVALID',
|
|
200
|
+
message: `array segment "${finalToken}" is not a valid index`,
|
|
201
|
+
path: operation.path,
|
|
202
|
+
operation_index: operationIndex,
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
if (operation.op === 'add') {
|
|
207
|
+
if (index < 0 || index > parent.length) {
|
|
208
|
+
return {
|
|
209
|
+
ok: false,
|
|
210
|
+
diagnostic: {
|
|
211
|
+
code: 'TARGET_NOT_FOUND',
|
|
212
|
+
message: `array index ${index} is out of bounds for add`,
|
|
213
|
+
path: operation.path,
|
|
214
|
+
operation_index: operationIndex,
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
const existed = index < parent.length;
|
|
219
|
+
parent.splice(index, 0, cloneValue(operation.value));
|
|
220
|
+
return {
|
|
221
|
+
ok: true,
|
|
222
|
+
resolved: {
|
|
223
|
+
operation_index: operationIndex,
|
|
224
|
+
op: operation.op,
|
|
225
|
+
path: operation.path,
|
|
226
|
+
parent_path: parentPath,
|
|
227
|
+
parent_container: 'array',
|
|
228
|
+
target_exists_before: existed,
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
if (index < 0 || index >= parent.length) {
|
|
233
|
+
return {
|
|
234
|
+
ok: false,
|
|
235
|
+
diagnostic: {
|
|
236
|
+
code: 'TARGET_NOT_FOUND',
|
|
237
|
+
message: `array index ${index} does not exist`,
|
|
238
|
+
path: operation.path,
|
|
239
|
+
operation_index: operationIndex,
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
if (operation.op === 'replace') {
|
|
244
|
+
parent[index] = cloneValue(operation.value);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
parent.splice(index, 1);
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
ok: true,
|
|
251
|
+
resolved: {
|
|
252
|
+
operation_index: operationIndex,
|
|
253
|
+
op: operation.op,
|
|
254
|
+
path: operation.path,
|
|
255
|
+
parent_path: parentPath,
|
|
256
|
+
parent_container: 'array',
|
|
257
|
+
target_exists_before: true,
|
|
258
|
+
},
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
if (!isRecord(parent)) {
|
|
262
|
+
return {
|
|
263
|
+
ok: false,
|
|
264
|
+
diagnostic: {
|
|
265
|
+
code: 'TARGET_PARENT_INVALID',
|
|
266
|
+
message: 'target parent is not an object or array',
|
|
267
|
+
path: parentPath,
|
|
268
|
+
operation_index: operationIndex,
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
const existed = Object.prototype.hasOwnProperty.call(parent, finalToken);
|
|
273
|
+
if (operation.op !== 'add' && !existed) {
|
|
274
|
+
return {
|
|
275
|
+
ok: false,
|
|
276
|
+
diagnostic: {
|
|
277
|
+
code: 'TARGET_NOT_FOUND',
|
|
278
|
+
message: `object key "${finalToken}" does not exist`,
|
|
279
|
+
path: operation.path,
|
|
280
|
+
operation_index: operationIndex,
|
|
281
|
+
},
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
if (operation.op === 'remove') {
|
|
285
|
+
delete parent[finalToken];
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
parent[finalToken] = cloneValue(operation.value);
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
ok: true,
|
|
292
|
+
resolved: {
|
|
293
|
+
operation_index: operationIndex,
|
|
294
|
+
op: operation.op,
|
|
295
|
+
path: operation.path,
|
|
296
|
+
parent_path: parentPath,
|
|
297
|
+
parent_container: 'object',
|
|
298
|
+
target_exists_before: existed,
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
export function applyChecklistPatchOperations(root, operations) {
|
|
303
|
+
const resolvedOperations = [];
|
|
304
|
+
for (const [index, operation] of operations.entries()) {
|
|
305
|
+
const applyResult = applyOperationDryRun(root, operation, index);
|
|
306
|
+
if (!applyResult.ok) {
|
|
307
|
+
return { ok: false, diagnostic: applyResult.diagnostic };
|
|
308
|
+
}
|
|
309
|
+
resolvedOperations.push(applyResult.resolved);
|
|
310
|
+
}
|
|
311
|
+
return { ok: true, resolved_operations: resolvedOperations };
|
|
312
|
+
}
|
|
313
|
+
function issuePath(path) {
|
|
314
|
+
if (path.length === 0)
|
|
315
|
+
return '<root>';
|
|
316
|
+
return path
|
|
317
|
+
.map((segment) => (typeof segment === 'symbol' ? segment.toString() : String(segment)))
|
|
318
|
+
.join('.');
|
|
319
|
+
}
|
|
320
|
+
export async function getChecklistPatchValidationArtifact(validationId, opts) {
|
|
321
|
+
const store = opts?.store ?? getChecklistPatchValidationStore();
|
|
322
|
+
const now = opts?.now_ms ?? Date.now();
|
|
323
|
+
const artifact = await store.get(validationId);
|
|
324
|
+
if (!artifact)
|
|
325
|
+
return null;
|
|
326
|
+
if (artifact.expires_at_ms <= now) {
|
|
327
|
+
await store.delete(validationId);
|
|
328
|
+
return null;
|
|
329
|
+
}
|
|
330
|
+
return artifact;
|
|
331
|
+
}
|
|
332
|
+
export async function validateChecklistPatch(input) {
|
|
333
|
+
const diagnostics = [];
|
|
334
|
+
let resolvedOperations = [];
|
|
335
|
+
const checklistResult = ClosingChecklistSchema.safeParse(input.checklist);
|
|
336
|
+
if (!checklistResult.success) {
|
|
337
|
+
diagnostics.push(...checklistResult.error.issues.map((issue) => ({
|
|
338
|
+
code: 'CHECKLIST_SCHEMA_INVALID',
|
|
339
|
+
message: issue.message,
|
|
340
|
+
path: issuePath(issue.path),
|
|
341
|
+
})));
|
|
342
|
+
return { ok: false, diagnostics, resolved_operations: resolvedOperations };
|
|
343
|
+
}
|
|
344
|
+
const patchResult = ChecklistPatchEnvelopeSchema.safeParse(input.patch);
|
|
345
|
+
if (!patchResult.success) {
|
|
346
|
+
diagnostics.push(...patchResult.error.issues.map((issue) => ({
|
|
347
|
+
code: 'PATCH_SCHEMA_INVALID',
|
|
348
|
+
message: issue.message,
|
|
349
|
+
path: issuePath(issue.path),
|
|
350
|
+
})));
|
|
351
|
+
return { ok: false, diagnostics, resolved_operations: resolvedOperations };
|
|
352
|
+
}
|
|
353
|
+
const patch = patchResult.data;
|
|
354
|
+
if (patch.expected_revision !== input.current_revision) {
|
|
355
|
+
diagnostics.push({
|
|
356
|
+
code: 'REVISION_CONFLICT',
|
|
357
|
+
message: `expected_revision ${patch.expected_revision} does not match current revision ${input.current_revision}`,
|
|
358
|
+
path: 'expected_revision',
|
|
359
|
+
});
|
|
360
|
+
return { ok: false, diagnostics, patch, resolved_operations: resolvedOperations };
|
|
361
|
+
}
|
|
362
|
+
const simulatedChecklist = cloneValue(checklistResult.data);
|
|
363
|
+
const applyResult = applyChecklistPatchOperations(simulatedChecklist, patch.operations);
|
|
364
|
+
if (!applyResult.ok) {
|
|
365
|
+
diagnostics.push(applyResult.diagnostic);
|
|
366
|
+
return { ok: false, diagnostics, patch, resolved_operations: resolvedOperations };
|
|
367
|
+
}
|
|
368
|
+
resolvedOperations = applyResult.resolved_operations;
|
|
369
|
+
const postPatchResult = ClosingChecklistSchema.safeParse(simulatedChecklist);
|
|
370
|
+
if (!postPatchResult.success) {
|
|
371
|
+
diagnostics.push(...postPatchResult.error.issues.map((issue) => ({
|
|
372
|
+
code: 'POST_PATCH_SCHEMA_INVALID',
|
|
373
|
+
message: issue.message,
|
|
374
|
+
path: issuePath(issue.path),
|
|
375
|
+
})));
|
|
376
|
+
return { ok: false, diagnostics, patch, resolved_operations: resolvedOperations };
|
|
377
|
+
}
|
|
378
|
+
const now = input.now_ms ?? Date.now();
|
|
379
|
+
const ttl = input.validation_ttl_ms ?? CHECKLIST_PATCH_VALIDATION_TTL_MS;
|
|
380
|
+
const validationId = `val_${randomUUID().replace(/-/g, '')}`;
|
|
381
|
+
const patchHash = computeChecklistPatchHash(patch);
|
|
382
|
+
const artifact = {
|
|
383
|
+
validation_id: validationId,
|
|
384
|
+
checklist_id: input.checklist_id,
|
|
385
|
+
patch_id: patch.patch_id,
|
|
386
|
+
patch_hash: patchHash,
|
|
387
|
+
expected_revision: patch.expected_revision,
|
|
388
|
+
created_at_ms: now,
|
|
389
|
+
expires_at_ms: now + ttl,
|
|
390
|
+
resolved_operations: resolvedOperations,
|
|
391
|
+
};
|
|
392
|
+
const store = input.store ?? getChecklistPatchValidationStore();
|
|
393
|
+
await store.set(artifact);
|
|
394
|
+
return {
|
|
395
|
+
ok: true,
|
|
396
|
+
validation_id: validationId,
|
|
397
|
+
patch_hash: patchHash,
|
|
398
|
+
patch,
|
|
399
|
+
resolved_operations: resolvedOperations,
|
|
400
|
+
resulting_state_valid: true,
|
|
401
|
+
artifact_expires_at_ms: artifact.expires_at_ms,
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
//# sourceMappingURL=patch-validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-validator.js","sourceRoot":"","sources":["../../../src/core/checklist/patch-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAyB,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,4BAA4B,EAA6D,MAAM,oBAAoB,CAAC;AAE7H,MAAM,CAAC,MAAM,iCAAiC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AA4ChE,MAAM,qCAAqC;IACxB,GAAG,GAAG,IAAI,GAAG,EAA4C,CAAC;IAE3E,KAAK,CAAC,GAAG,CAAC,QAA0C;QAClD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,YAAoB;QAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,YAAoB;QAC/B,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAChC,CAAC;CACF;AAED,IAAI,eAAe,GAAyC,IAAI,CAAC;AAEjE,MAAM,UAAU,gCAAgC,CAAC,KAA2C;IAC1F,eAAe,GAAG,KAAK,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,gCAAgC;IAC9C,IAA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