pigeongov 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/AGENTS.md +258 -0
- package/LICENSE +21 -0
- package/PRIVACY.md +38 -0
- package/README.md +234 -0
- package/agents.json +72 -0
- package/dist/bin/pigeongov.d.ts +2 -0
- package/dist/bin/pigeongov.js +4 -0
- package/dist/bin/pigeongov.js.map +1 -0
- package/dist/src/advisory/decision-support/contribution-optimizer.d.ts +36 -0
- package/dist/src/advisory/decision-support/contribution-optimizer.js +88 -0
- package/dist/src/advisory/decision-support/contribution-optimizer.js.map +1 -0
- package/dist/src/advisory/decision-support/deduction-optimizer.d.ts +31 -0
- package/dist/src/advisory/decision-support/deduction-optimizer.js +96 -0
- package/dist/src/advisory/decision-support/deduction-optimizer.js.map +1 -0
- package/dist/src/advisory/life-events/events.d.ts +4 -0
- package/dist/src/advisory/life-events/events.js +156 -0
- package/dist/src/advisory/life-events/events.js.map +1 -0
- package/dist/src/advisory/life-events/planner.d.ts +19 -0
- package/dist/src/advisory/life-events/planner.js +72 -0
- package/dist/src/advisory/life-events/planner.js.map +1 -0
- package/dist/src/advisory/screener/engine.d.ts +4 -0
- package/dist/src/advisory/screener/engine.js +368 -0
- package/dist/src/advisory/screener/engine.js.map +1 -0
- package/dist/src/advisory/screener/intake.d.ts +68 -0
- package/dist/src/advisory/screener/intake.js +93 -0
- package/dist/src/advisory/screener/intake.js.map +1 -0
- package/dist/src/analytics/stats.d.ts +18 -0
- package/dist/src/analytics/stats.js +158 -0
- package/dist/src/analytics/stats.js.map +1 -0
- package/dist/src/api/handlers/deadlines.d.ts +2 -0
- package/dist/src/api/handlers/deadlines.js +7 -0
- package/dist/src/api/handlers/deadlines.js.map +1 -0
- package/dist/src/api/handlers/openapi.d.ts +2 -0
- package/dist/src/api/handlers/openapi.js +7 -0
- package/dist/src/api/handlers/openapi.js.map +1 -0
- package/dist/src/api/handlers/workflows.d.ts +5 -0
- package/dist/src/api/handlers/workflows.js +73 -0
- package/dist/src/api/handlers/workflows.js.map +1 -0
- package/dist/src/api/index.d.ts +20 -0
- package/dist/src/api/index.js +70 -0
- package/dist/src/api/index.js.map +1 -0
- package/dist/src/api/openapi.d.ts +5 -0
- package/dist/src/api/openapi.js +384 -0
- package/dist/src/api/openapi.js.map +1 -0
- package/dist/src/api/router.d.ts +19 -0
- package/dist/src/api/router.js +57 -0
- package/dist/src/api/router.js.map +1 -0
- package/dist/src/cli/commands/completions.d.ts +2 -0
- package/dist/src/cli/commands/completions.js +396 -0
- package/dist/src/cli/commands/completions.js.map +1 -0
- package/dist/src/cli/commands/deadlines.d.ts +2 -0
- package/dist/src/cli/commands/deadlines.js +47 -0
- package/dist/src/cli/commands/deadlines.js.map +1 -0
- package/dist/src/cli/commands/doctor.d.ts +2 -0
- package/dist/src/cli/commands/doctor.js +50 -0
- package/dist/src/cli/commands/doctor.js.map +1 -0
- package/dist/src/cli/commands/drafts.d.ts +2 -0
- package/dist/src/cli/commands/drafts.js +75 -0
- package/dist/src/cli/commands/drafts.js.map +1 -0
- package/dist/src/cli/commands/extract.d.ts +2 -0
- package/dist/src/cli/commands/extract.js +17 -0
- package/dist/src/cli/commands/extract.js.map +1 -0
- package/dist/src/cli/commands/fees.d.ts +2 -0
- package/dist/src/cli/commands/fees.js +40 -0
- package/dist/src/cli/commands/fees.js.map +1 -0
- package/dist/src/cli/commands/fill.d.ts +25 -0
- package/dist/src/cli/commands/fill.js +354 -0
- package/dist/src/cli/commands/fill.js.map +1 -0
- package/dist/src/cli/commands/glossary.d.ts +2 -0
- package/dist/src/cli/commands/glossary.js +90 -0
- package/dist/src/cli/commands/glossary.js.map +1 -0
- package/dist/src/cli/commands/life-event.d.ts +2 -0
- package/dist/src/cli/commands/life-event.js +41 -0
- package/dist/src/cli/commands/life-event.js.map +1 -0
- package/dist/src/cli/commands/list.d.ts +2 -0
- package/dist/src/cli/commands/list.js +19 -0
- package/dist/src/cli/commands/list.js.map +1 -0
- package/dist/src/cli/commands/machine.d.ts +2 -0
- package/dist/src/cli/commands/machine.js +100 -0
- package/dist/src/cli/commands/machine.js.map +1 -0
- package/dist/src/cli/commands/merge.d.ts +2 -0
- package/dist/src/cli/commands/merge.js +24 -0
- package/dist/src/cli/commands/merge.js.map +1 -0
- package/dist/src/cli/commands/plugin.d.ts +2 -0
- package/dist/src/cli/commands/plugin.js +119 -0
- package/dist/src/cli/commands/plugin.js.map +1 -0
- package/dist/src/cli/commands/profile.d.ts +2 -0
- package/dist/src/cli/commands/profile.js +125 -0
- package/dist/src/cli/commands/profile.js.map +1 -0
- package/dist/src/cli/commands/review.d.ts +2 -0
- package/dist/src/cli/commands/review.js +25 -0
- package/dist/src/cli/commands/review.js.map +1 -0
- package/dist/src/cli/commands/scaffold.d.ts +2 -0
- package/dist/src/cli/commands/scaffold.js +304 -0
- package/dist/src/cli/commands/scaffold.js.map +1 -0
- package/dist/src/cli/commands/schemas.d.ts +2 -0
- package/dist/src/cli/commands/schemas.js +14 -0
- package/dist/src/cli/commands/schemas.js.map +1 -0
- package/dist/src/cli/commands/screen.d.ts +2 -0
- package/dist/src/cli/commands/screen.js +89 -0
- package/dist/src/cli/commands/screen.js.map +1 -0
- package/dist/src/cli/commands/serve.d.ts +2 -0
- package/dist/src/cli/commands/serve.js +46 -0
- package/dist/src/cli/commands/serve.js.map +1 -0
- package/dist/src/cli/commands/start.d.ts +2 -0
- package/dist/src/cli/commands/start.js +16 -0
- package/dist/src/cli/commands/start.js.map +1 -0
- package/dist/src/cli/commands/stats.d.ts +2 -0
- package/dist/src/cli/commands/stats.js +17 -0
- package/dist/src/cli/commands/stats.js.map +1 -0
- package/dist/src/cli/commands/testdata.d.ts +2 -0
- package/dist/src/cli/commands/testdata.js +60 -0
- package/dist/src/cli/commands/testdata.js.map +1 -0
- package/dist/src/cli/commands/tui.d.ts +2 -0
- package/dist/src/cli/commands/tui.js +26 -0
- package/dist/src/cli/commands/tui.js.map +1 -0
- package/dist/src/cli/commands/validate.d.ts +2 -0
- package/dist/src/cli/commands/validate.js +22 -0
- package/dist/src/cli/commands/validate.js.map +1 -0
- package/dist/src/cli/commands/vault.d.ts +2 -0
- package/dist/src/cli/commands/vault.js +73 -0
- package/dist/src/cli/commands/vault.js.map +1 -0
- package/dist/src/cli/commands/workflows.d.ts +2 -0
- package/dist/src/cli/commands/workflows.js +23 -0
- package/dist/src/cli/commands/workflows.js.map +1 -0
- package/dist/src/cli/display/review.d.ts +2 -0
- package/dist/src/cli/display/review.js +4 -0
- package/dist/src/cli/display/review.js.map +1 -0
- package/dist/src/cli/display/summary.d.ts +2 -0
- package/dist/src/cli/display/summary.js +19 -0
- package/dist/src/cli/display/summary.js.map +1 -0
- package/dist/src/cli/display/validation.d.ts +2 -0
- package/dist/src/cli/display/validation.js +16 -0
- package/dist/src/cli/display/validation.js.map +1 -0
- package/dist/src/cli/index.d.ts +1 -0
- package/dist/src/cli/index.js +83 -0
- package/dist/src/cli/index.js.map +1 -0
- package/dist/src/cli/output.d.ts +21 -0
- package/dist/src/cli/output.js +107 -0
- package/dist/src/cli/output.js.map +1 -0
- package/dist/src/cli/prompts/common.d.ts +21 -0
- package/dist/src/cli/prompts/common.js +53 -0
- package/dist/src/cli/prompts/common.js.map +1 -0
- package/dist/src/cli/prompts/credits.d.ts +3 -0
- package/dist/src/cli/prompts/credits.js +23 -0
- package/dist/src/cli/prompts/credits.js.map +1 -0
- package/dist/src/cli/prompts/deductions.d.ts +12 -0
- package/dist/src/cli/prompts/deductions.js +26 -0
- package/dist/src/cli/prompts/deductions.js.map +1 -0
- package/dist/src/cli/prompts/identity.d.ts +8 -0
- package/dist/src/cli/prompts/identity.js +36 -0
- package/dist/src/cli/prompts/identity.js.map +1 -0
- package/dist/src/cli/prompts/income.d.ts +15 -0
- package/dist/src/cli/prompts/income.js +61 -0
- package/dist/src/cli/prompts/income.js.map +1 -0
- package/dist/src/cli/prompts/workflow.d.ts +3 -0
- package/dist/src/cli/prompts/workflow.js +74 -0
- package/dist/src/cli/prompts/workflow.js.map +1 -0
- package/dist/src/cli/support.d.ts +53 -0
- package/dist/src/cli/support.js +80 -0
- package/dist/src/cli/support.js.map +1 -0
- package/dist/src/cli/tui.d.ts +22 -0
- package/dist/src/cli/tui.js +122 -0
- package/dist/src/cli/tui.js.map +1 -0
- package/dist/src/engine/audit-risk/scorer.d.ts +36 -0
- package/dist/src/engine/audit-risk/scorer.js +132 -0
- package/dist/src/engine/audit-risk/scorer.js.map +1 -0
- package/dist/src/engine/crypto/cost-basis.d.ts +19 -0
- package/dist/src/engine/crypto/cost-basis.js +115 -0
- package/dist/src/engine/crypto/cost-basis.js.map +1 -0
- package/dist/src/engine/crypto/transaction-parser.d.ts +36 -0
- package/dist/src/engine/crypto/transaction-parser.js +124 -0
- package/dist/src/engine/crypto/transaction-parser.js.map +1 -0
- package/dist/src/engine/crypto/wash-sale.d.ts +25 -0
- package/dist/src/engine/crypto/wash-sale.js +51 -0
- package/dist/src/engine/crypto/wash-sale.js.map +1 -0
- package/dist/src/engine/equity/espp.d.ts +41 -0
- package/dist/src/engine/equity/espp.js +90 -0
- package/dist/src/engine/equity/espp.js.map +1 -0
- package/dist/src/engine/equity/iso.d.ts +42 -0
- package/dist/src/engine/equity/iso.js +94 -0
- package/dist/src/engine/equity/iso.js.map +1 -0
- package/dist/src/engine/equity/nso.d.ts +35 -0
- package/dist/src/engine/equity/nso.js +63 -0
- package/dist/src/engine/equity/nso.js.map +1 -0
- package/dist/src/engine/equity/rsu.d.ts +33 -0
- package/dist/src/engine/equity/rsu.js +64 -0
- package/dist/src/engine/equity/rsu.js.map +1 -0
- package/dist/src/engine/field-mapper.d.ts +26 -0
- package/dist/src/engine/field-mapper.js +119 -0
- package/dist/src/engine/field-mapper.js.map +1 -0
- package/dist/src/engine/forms/core-1040.d.ts +2 -0
- package/dist/src/engine/forms/core-1040.js +124 -0
- package/dist/src/engine/forms/core-1040.js.map +1 -0
- package/dist/src/engine/forms/form-8949.d.ts +21 -0
- package/dist/src/engine/forms/form-8949.js +96 -0
- package/dist/src/engine/forms/form-8949.js.map +1 -0
- package/dist/src/engine/forms/index.d.ts +7 -0
- package/dist/src/engine/forms/index.js +6 -0
- package/dist/src/engine/forms/index.js.map +1 -0
- package/dist/src/engine/forms/schedule-b.d.ts +15 -0
- package/dist/src/engine/forms/schedule-b.js +78 -0
- package/dist/src/engine/forms/schedule-b.js.map +1 -0
- package/dist/src/engine/forms/schedule-d.d.ts +9 -0
- package/dist/src/engine/forms/schedule-d.js +86 -0
- package/dist/src/engine/forms/schedule-d.js.map +1 -0
- package/dist/src/engine/fpl.d.ts +70 -0
- package/dist/src/engine/fpl.js +127 -0
- package/dist/src/engine/fpl.js.map +1 -0
- package/dist/src/engine/gig/home-office.d.ts +34 -0
- package/dist/src/engine/gig/home-office.js +53 -0
- package/dist/src/engine/gig/home-office.js.map +1 -0
- package/dist/src/engine/gig/mileage.d.ts +30 -0
- package/dist/src/engine/gig/mileage.js +45 -0
- package/dist/src/engine/gig/mileage.js.map +1 -0
- package/dist/src/engine/gig/multi-1099.d.ts +19 -0
- package/dist/src/engine/gig/multi-1099.js +28 -0
- package/dist/src/engine/gig/multi-1099.js.map +1 -0
- package/dist/src/engine/multiyear/carryforward.d.ts +31 -0
- package/dist/src/engine/multiyear/carryforward.js +77 -0
- package/dist/src/engine/multiyear/carryforward.js.map +1 -0
- package/dist/src/engine/multiyear/compare.d.ts +25 -0
- package/dist/src/engine/multiyear/compare.js +94 -0
- package/dist/src/engine/multiyear/compare.js.map +1 -0
- package/dist/src/engine/multiyear/import.d.ts +23 -0
- package/dist/src/engine/multiyear/import.js +193 -0
- package/dist/src/engine/multiyear/import.js.map +1 -0
- package/dist/src/engine/optimizer/filing-status.d.ts +29 -0
- package/dist/src/engine/optimizer/filing-status.js +66 -0
- package/dist/src/engine/optimizer/filing-status.js.map +1 -0
- package/dist/src/engine/orchestrator.d.ts +14 -0
- package/dist/src/engine/orchestrator.js +135 -0
- package/dist/src/engine/orchestrator.js.map +1 -0
- package/dist/src/engine/scenarios/whatif.d.ts +34 -0
- package/dist/src/engine/scenarios/whatif.js +70 -0
- package/dist/src/engine/scenarios/whatif.js.map +1 -0
- package/dist/src/engine/state/ca/calculator.d.ts +3 -0
- package/dist/src/engine/state/ca/calculator.js +107 -0
- package/dist/src/engine/state/ca/calculator.js.map +1 -0
- package/dist/src/engine/state/common.d.ts +39 -0
- package/dist/src/engine/state/common.js +115 -0
- package/dist/src/engine/state/common.js.map +1 -0
- package/dist/src/engine/state/ga/calculator.d.ts +3 -0
- package/dist/src/engine/state/ga/calculator.js +82 -0
- package/dist/src/engine/state/ga/calculator.js.map +1 -0
- package/dist/src/engine/state/il/calculator.d.ts +3 -0
- package/dist/src/engine/state/il/calculator.js +49 -0
- package/dist/src/engine/state/il/calculator.js.map +1 -0
- package/dist/src/engine/state/mi/calculator.d.ts +3 -0
- package/dist/src/engine/state/mi/calculator.js +60 -0
- package/dist/src/engine/state/mi/calculator.js.map +1 -0
- package/dist/src/engine/state/nc/calculator.d.ts +3 -0
- package/dist/src/engine/state/nc/calculator.js +54 -0
- package/dist/src/engine/state/nc/calculator.js.map +1 -0
- package/dist/src/engine/state/nj/calculator.d.ts +3 -0
- package/dist/src/engine/state/nj/calculator.js +90 -0
- package/dist/src/engine/state/nj/calculator.js.map +1 -0
- package/dist/src/engine/state/ny/calculator.d.ts +3 -0
- package/dist/src/engine/state/ny/calculator.js +103 -0
- package/dist/src/engine/state/ny/calculator.js.map +1 -0
- package/dist/src/engine/state/oh/calculator.d.ts +3 -0
- package/dist/src/engine/state/oh/calculator.js +79 -0
- package/dist/src/engine/state/oh/calculator.js.map +1 -0
- package/dist/src/engine/state/pa/calculator.d.ts +3 -0
- package/dist/src/engine/state/pa/calculator.js +58 -0
- package/dist/src/engine/state/pa/calculator.js.map +1 -0
- package/dist/src/engine/state/registry.d.ts +9 -0
- package/dist/src/engine/state/registry.js +67 -0
- package/dist/src/engine/state/registry.js.map +1 -0
- package/dist/src/engine/state/types.d.ts +57 -0
- package/dist/src/engine/state/types.js +2 -0
- package/dist/src/engine/state/types.js.map +1 -0
- package/dist/src/engine/state/va/calculator.d.ts +3 -0
- package/dist/src/engine/state/va/calculator.js +76 -0
- package/dist/src/engine/state/va/calculator.js.map +1 -0
- package/dist/src/engine/suggestions/missed-deductions.d.ts +43 -0
- package/dist/src/engine/suggestions/missed-deductions.js +128 -0
- package/dist/src/engine/suggestions/missed-deductions.js.map +1 -0
- package/dist/src/engine/tax-calculator.d.ts +55 -0
- package/dist/src/engine/tax-calculator.js +156 -0
- package/dist/src/engine/tax-calculator.js.map +1 -0
- package/dist/src/engine/tax-constants-2025.d.ts +56 -0
- package/dist/src/engine/tax-constants-2025.js +138 -0
- package/dist/src/engine/tax-constants-2025.js.map +1 -0
- package/dist/src/engine/types.d.ts +77 -0
- package/dist/src/engine/types.js +2 -0
- package/dist/src/engine/types.js.map +1 -0
- package/dist/src/engine/va-math.d.ts +24 -0
- package/dist/src/engine/va-math.js +90 -0
- package/dist/src/engine/va-math.js.map +1 -0
- package/dist/src/engine/validator.d.ts +7 -0
- package/dist/src/engine/validator.js +108 -0
- package/dist/src/engine/validator.js.map +1 -0
- package/dist/src/glossary/entries/healthcare.d.ts +2 -0
- package/dist/src/glossary/entries/healthcare.js +78 -0
- package/dist/src/glossary/entries/healthcare.js.map +1 -0
- package/dist/src/glossary/entries/immigration.d.ts +2 -0
- package/dist/src/glossary/entries/immigration.js +112 -0
- package/dist/src/glossary/entries/immigration.js.map +1 -0
- package/dist/src/glossary/entries/tax.d.ts +2 -0
- package/dist/src/glossary/entries/tax.js +149 -0
- package/dist/src/glossary/entries/tax.js.map +1 -0
- package/dist/src/glossary/entries/unemployment.d.ts +2 -0
- package/dist/src/glossary/entries/unemployment.js +52 -0
- package/dist/src/glossary/entries/unemployment.js.map +1 -0
- package/dist/src/glossary/index.d.ts +19 -0
- package/dist/src/glossary/index.js +39 -0
- package/dist/src/glossary/index.js.map +1 -0
- package/dist/src/i18n/index.d.ts +21 -0
- package/dist/src/i18n/index.js +92 -0
- package/dist/src/i18n/index.js.map +1 -0
- package/dist/src/mcp/result.d.ts +3 -0
- package/dist/src/mcp/result.js +7 -0
- package/dist/src/mcp/result.js.map +1 -0
- package/dist/src/mcp/return-bundle.d.ts +19 -0
- package/dist/src/mcp/return-bundle.js +49 -0
- package/dist/src/mcp/return-bundle.js.map +1 -0
- package/dist/src/mcp/shared.d.ts +49102 -0
- package/dist/src/mcp/shared.js +354 -0
- package/dist/src/mcp/shared.js.map +1 -0
- package/dist/src/mcp/tools/build-packet.d.ts +7 -0
- package/dist/src/mcp/tools/build-packet.js +23 -0
- package/dist/src/mcp/tools/build-packet.js.map +1 -0
- package/dist/src/mcp/tools/calculate-tax.d.ts +40 -0
- package/dist/src/mcp/tools/calculate-tax.js +17 -0
- package/dist/src/mcp/tools/calculate-tax.js.map +1 -0
- package/dist/src/mcp/tools/deadlines.d.ts +7 -0
- package/dist/src/mcp/tools/deadlines.js +23 -0
- package/dist/src/mcp/tools/deadlines.js.map +1 -0
- package/dist/src/mcp/tools/describe-form.d.ts +14 -0
- package/dist/src/mcp/tools/describe-form.js +23 -0
- package/dist/src/mcp/tools/describe-form.js.map +1 -0
- package/dist/src/mcp/tools/describe-workflow.d.ts +6 -0
- package/dist/src/mcp/tools/describe-workflow.js +16 -0
- package/dist/src/mcp/tools/describe-workflow.js.map +1 -0
- package/dist/src/mcp/tools/explain-flag.d.ts +7 -0
- package/dist/src/mcp/tools/explain-flag.js +19 -0
- package/dist/src/mcp/tools/explain-flag.js.map +1 -0
- package/dist/src/mcp/tools/extract-document.d.ts +13 -0
- package/dist/src/mcp/tools/extract-document.js +20 -0
- package/dist/src/mcp/tools/extract-document.js.map +1 -0
- package/dist/src/mcp/tools/fees.d.ts +7 -0
- package/dist/src/mcp/tools/fees.js +24 -0
- package/dist/src/mcp/tools/fees.js.map +1 -0
- package/dist/src/mcp/tools/fill-form.d.ts +56 -0
- package/dist/src/mcp/tools/fill-form.js +47 -0
- package/dist/src/mcp/tools/fill-form.js.map +1 -0
- package/dist/src/mcp/tools/fill-workflow.d.ts +7 -0
- package/dist/src/mcp/tools/fill-workflow.js +24 -0
- package/dist/src/mcp/tools/fill-workflow.js.map +1 -0
- package/dist/src/mcp/tools/glossary.d.ts +8 -0
- package/dist/src/mcp/tools/glossary.js +54 -0
- package/dist/src/mcp/tools/glossary.js.map +1 -0
- package/dist/src/mcp/tools/list-forms.d.ts +6 -0
- package/dist/src/mcp/tools/list-forms.js +15 -0
- package/dist/src/mcp/tools/list-forms.js.map +1 -0
- package/dist/src/mcp/tools/list-workflows.d.ts +6 -0
- package/dist/src/mcp/tools/list-workflows.js +16 -0
- package/dist/src/mcp/tools/list-workflows.js.map +1 -0
- package/dist/src/mcp/tools/plan-life-event.d.ts +59 -0
- package/dist/src/mcp/tools/plan-life-event.js +41 -0
- package/dist/src/mcp/tools/plan-life-event.js.map +1 -0
- package/dist/src/mcp/tools/review-form.d.ts +40 -0
- package/dist/src/mcp/tools/review-form.js +26 -0
- package/dist/src/mcp/tools/review-form.js.map +1 -0
- package/dist/src/mcp/tools/review-workflow.d.ts +7 -0
- package/dist/src/mcp/tools/review-workflow.js +27 -0
- package/dist/src/mcp/tools/review-workflow.js.map +1 -0
- package/dist/src/mcp/tools/screen-eligibility.d.ts +53 -0
- package/dist/src/mcp/tools/screen-eligibility.js +44 -0
- package/dist/src/mcp/tools/screen-eligibility.js.map +1 -0
- package/dist/src/mcp/tools/start-workflow.d.ts +6 -0
- package/dist/src/mcp/tools/start-workflow.js +17 -0
- package/dist/src/mcp/tools/start-workflow.js.map +1 -0
- package/dist/src/mcp/tools/validate-form.d.ts +48 -0
- package/dist/src/mcp/tools/validate-form.js +30 -0
- package/dist/src/mcp/tools/validate-form.js.map +1 -0
- package/dist/src/mcp/tools/validate-workflow.d.ts +7 -0
- package/dist/src/mcp/tools/validate-workflow.js +24 -0
- package/dist/src/mcp/tools/validate-workflow.js.map +1 -0
- package/dist/src/pdf/batch.d.ts +8 -0
- package/dist/src/pdf/batch.js +15 -0
- package/dist/src/pdf/batch.js.map +1 -0
- package/dist/src/pdf/merge.d.ts +10 -0
- package/dist/src/pdf/merge.js +62 -0
- package/dist/src/pdf/merge.js.map +1 -0
- package/dist/src/pdf/ocr.d.ts +22 -0
- package/dist/src/pdf/ocr.js +52 -0
- package/dist/src/pdf/ocr.js.map +1 -0
- package/dist/src/pdf/reader.d.ts +2 -0
- package/dist/src/pdf/reader.js +354 -0
- package/dist/src/pdf/reader.js.map +1 -0
- package/dist/src/pdf/shared.d.ts +89 -0
- package/dist/src/pdf/shared.js +137 -0
- package/dist/src/pdf/shared.js.map +1 -0
- package/dist/src/pdf/writer.d.ts +7 -0
- package/dist/src/pdf/writer.js +311 -0
- package/dist/src/pdf/writer.js.map +1 -0
- package/dist/src/plugins/loader.d.ts +15 -0
- package/dist/src/plugins/loader.js +86 -0
- package/dist/src/plugins/loader.js.map +1 -0
- package/dist/src/plugins/sandbox.d.ts +14 -0
- package/dist/src/plugins/sandbox.js +88 -0
- package/dist/src/plugins/sandbox.js.map +1 -0
- package/dist/src/plugins/types.d.ts +17 -0
- package/dist/src/plugins/types.js +13 -0
- package/dist/src/plugins/types.js.map +1 -0
- package/dist/src/schemas/2025/f1040.d.ts +127 -0
- package/dist/src/schemas/2025/f1040.js +104 -0
- package/dist/src/schemas/2025/f1040.js.map +1 -0
- package/dist/src/schemas/2025/f1099-int.d.ts +53 -0
- package/dist/src/schemas/2025/f1099-int.js +51 -0
- package/dist/src/schemas/2025/f1099-int.js.map +1 -0
- package/dist/src/schemas/2025/f1099-nec.d.ts +47 -0
- package/dist/src/schemas/2025/f1099-nec.js +45 -0
- package/dist/src/schemas/2025/f1099-nec.js.map +1 -0
- package/dist/src/schemas/2025/form-8949.d.ts +46 -0
- package/dist/src/schemas/2025/form-8949.js +71 -0
- package/dist/src/schemas/2025/form-8949.js.map +1 -0
- package/dist/src/schemas/2025/index.d.ts +1004 -0
- package/dist/src/schemas/2025/index.js +60 -0
- package/dist/src/schemas/2025/index.js.map +1 -0
- package/dist/src/schemas/2025/schedule-1.d.ts +44 -0
- package/dist/src/schemas/2025/schedule-1.js +56 -0
- package/dist/src/schemas/2025/schedule-1.js.map +1 -0
- package/dist/src/schemas/2025/schedule-b.d.ts +32 -0
- package/dist/src/schemas/2025/schedule-b.js +53 -0
- package/dist/src/schemas/2025/schedule-b.js.map +1 -0
- package/dist/src/schemas/2025/schedule-c.d.ts +58 -0
- package/dist/src/schemas/2025/schedule-c.js +46 -0
- package/dist/src/schemas/2025/schedule-c.js.map +1 -0
- package/dist/src/schemas/2025/schedule-d.d.ts +36 -0
- package/dist/src/schemas/2025/schedule-d.js +52 -0
- package/dist/src/schemas/2025/schedule-d.js.map +1 -0
- package/dist/src/schemas/2025/shared.d.ts +98 -0
- package/dist/src/schemas/2025/shared.js +161 -0
- package/dist/src/schemas/2025/shared.js.map +1 -0
- package/dist/src/schemas/2025/w2.d.ts +57 -0
- package/dist/src/schemas/2025/w2.js +62 -0
- package/dist/src/schemas/2025/w2.js.map +1 -0
- package/dist/src/storage/drafts.d.ts +25 -0
- package/dist/src/storage/drafts.js +117 -0
- package/dist/src/storage/drafts.js.map +1 -0
- package/dist/src/storage/paths.d.ts +15 -0
- package/dist/src/storage/paths.js +33 -0
- package/dist/src/storage/paths.js.map +1 -0
- package/dist/src/storage/profile.d.ts +17 -0
- package/dist/src/storage/profile.js +59 -0
- package/dist/src/storage/profile.js.map +1 -0
- package/dist/src/storage/vault.d.ts +38 -0
- package/dist/src/storage/vault.js +187 -0
- package/dist/src/storage/vault.js.map +1 -0
- package/dist/src/testing/synthetic.d.ts +13 -0
- package/dist/src/testing/synthetic.js +164 -0
- package/dist/src/testing/synthetic.js.map +1 -0
- package/dist/src/types.d.ts +362 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/workflows/deadlines.d.ts +13 -0
- package/dist/src/workflows/deadlines.js +88 -0
- package/dist/src/workflows/deadlines.js.map +1 -0
- package/dist/src/workflows/domains/benefits.d.ts +409 -0
- package/dist/src/workflows/domains/benefits.js +744 -0
- package/dist/src/workflows/domains/benefits.js.map +1 -0
- package/dist/src/workflows/domains/business.d.ts +65 -0
- package/dist/src/workflows/domains/business.js +76 -0
- package/dist/src/workflows/domains/business.js.map +1 -0
- package/dist/src/workflows/domains/education.d.ts +251 -0
- package/dist/src/workflows/domains/education.js +504 -0
- package/dist/src/workflows/domains/education.js.map +1 -0
- package/dist/src/workflows/domains/estate.d.ts +217 -0
- package/dist/src/workflows/domains/estate.js +407 -0
- package/dist/src/workflows/domains/estate.js.map +1 -0
- package/dist/src/workflows/domains/healthcare-ext.d.ts +88 -0
- package/dist/src/workflows/domains/healthcare-ext.js +150 -0
- package/dist/src/workflows/domains/healthcare-ext.js.map +1 -0
- package/dist/src/workflows/domains/healthcare.d.ts +92 -0
- package/dist/src/workflows/domains/healthcare.js +126 -0
- package/dist/src/workflows/domains/healthcare.js.map +1 -0
- package/dist/src/workflows/domains/identity-domain.d.ts +291 -0
- package/dist/src/workflows/domains/identity-domain.js +541 -0
- package/dist/src/workflows/domains/identity-domain.js.map +1 -0
- package/dist/src/workflows/domains/immigration-ext.d.ts +282 -0
- package/dist/src/workflows/domains/immigration-ext.js +590 -0
- package/dist/src/workflows/domains/immigration-ext.js.map +1 -0
- package/dist/src/workflows/domains/immigration.d.ts +121 -0
- package/dist/src/workflows/domains/immigration.js +152 -0
- package/dist/src/workflows/domains/immigration.js.map +1 -0
- package/dist/src/workflows/domains/legal.d.ts +235 -0
- package/dist/src/workflows/domains/legal.js +380 -0
- package/dist/src/workflows/domains/legal.js.map +1 -0
- package/dist/src/workflows/domains/permits.d.ts +65 -0
- package/dist/src/workflows/domains/permits.js +74 -0
- package/dist/src/workflows/domains/permits.js.map +1 -0
- package/dist/src/workflows/domains/retirement.d.ts +59 -0
- package/dist/src/workflows/domains/retirement.js +155 -0
- package/dist/src/workflows/domains/retirement.js.map +1 -0
- package/dist/src/workflows/domains/tax.d.ts +133 -0
- package/dist/src/workflows/domains/tax.js +187 -0
- package/dist/src/workflows/domains/tax.js.map +1 -0
- package/dist/src/workflows/domains/unemployment.d.ts +105 -0
- package/dist/src/workflows/domains/unemployment.js +122 -0
- package/dist/src/workflows/domains/unemployment.js.map +1 -0
- package/dist/src/workflows/domains/veterans.d.ts +189 -0
- package/dist/src/workflows/domains/veterans.js +380 -0
- package/dist/src/workflows/domains/veterans.js.map +1 -0
- package/dist/src/workflows/fees.d.ts +15 -0
- package/dist/src/workflows/fees.js +93 -0
- package/dist/src/workflows/fees.js.map +1 -0
- package/dist/src/workflows/helpers.d.ts +8 -0
- package/dist/src/workflows/helpers.js +66 -0
- package/dist/src/workflows/helpers.js.map +1 -0
- package/dist/src/workflows/io.d.ts +3 -0
- package/dist/src/workflows/io.js +38 -0
- package/dist/src/workflows/io.js.map +1 -0
- package/dist/src/workflows/registry.d.ts +51355 -0
- package/dist/src/workflows/registry.js +140 -0
- package/dist/src/workflows/registry.js.map +1 -0
- package/dist/src/workflows/schemas/benefits.d.ts +78 -0
- package/dist/src/workflows/schemas/benefits.js +91 -0
- package/dist/src/workflows/schemas/benefits.js.map +1 -0
- package/dist/src/workflows/schemas/common.d.ts +27 -0
- package/dist/src/workflows/schemas/common.js +28 -0
- package/dist/src/workflows/schemas/common.js.map +1 -0
- package/dist/src/workflows/schemas/education.d.ts +70 -0
- package/dist/src/workflows/schemas/education.js +85 -0
- package/dist/src/workflows/schemas/education.js.map +1 -0
- package/dist/src/workflows/schemas/estate.d.ts +64 -0
- package/dist/src/workflows/schemas/estate.js +85 -0
- package/dist/src/workflows/schemas/estate.js.map +1 -0
- package/dist/src/workflows/schemas/healthcare-ext.d.ts +15 -0
- package/dist/src/workflows/schemas/healthcare-ext.js +17 -0
- package/dist/src/workflows/schemas/healthcare-ext.js.map +1 -0
- package/dist/src/workflows/schemas/healthcare.d.ts +33 -0
- package/dist/src/workflows/schemas/healthcare.js +20 -0
- package/dist/src/workflows/schemas/healthcare.js.map +1 -0
- package/dist/src/workflows/schemas/identity-domain.d.ts +64 -0
- package/dist/src/workflows/schemas/identity-domain.js +87 -0
- package/dist/src/workflows/schemas/identity-domain.js.map +1 -0
- package/dist/src/workflows/schemas/immigration-ext.d.ts +63 -0
- package/dist/src/workflows/schemas/immigration-ext.js +58 -0
- package/dist/src/workflows/schemas/immigration-ext.js.map +1 -0
- package/dist/src/workflows/schemas/immigration.d.ts +48 -0
- package/dist/src/workflows/schemas/immigration.js +27 -0
- package/dist/src/workflows/schemas/immigration.js.map +1 -0
- package/dist/src/workflows/schemas/legal.d.ts +45 -0
- package/dist/src/workflows/schemas/legal.js +45 -0
- package/dist/src/workflows/schemas/legal.js.map +1 -0
- package/dist/src/workflows/schemas/planning.d.ts +23 -0
- package/dist/src/workflows/schemas/planning.js +15 -0
- package/dist/src/workflows/schemas/planning.js.map +1 -0
- package/dist/src/workflows/schemas/retirement.d.ts +14 -0
- package/dist/src/workflows/schemas/retirement.js +22 -0
- package/dist/src/workflows/schemas/retirement.js.map +1 -0
- package/dist/src/workflows/schemas/tax.d.ts +58 -0
- package/dist/src/workflows/schemas/tax.js +51 -0
- package/dist/src/workflows/schemas/tax.js.map +1 -0
- package/dist/src/workflows/schemas/unemployment.d.ts +33 -0
- package/dist/src/workflows/schemas/unemployment.js +19 -0
- package/dist/src/workflows/schemas/unemployment.js.map +1 -0
- package/dist/src/workflows/schemas/veterans.d.ts +47 -0
- package/dist/src/workflows/schemas/veterans.js +51 -0
- package/dist/src/workflows/schemas/veterans.js.map +1 -0
- package/dist/src/workflows/types.d.ts +9 -0
- package/dist/src/workflows/types.js +2 -0
- package/dist/src/workflows/types.js.map +1 -0
- package/dist/xmcp.config.d.ts +3 -0
- package/dist/xmcp.config.js +29 -0
- package/dist/xmcp.config.js.map +1 -0
- package/llms.txt +48 -0
- package/package.json +82 -0
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
export type FilingStatus = "single" | "married_filing_jointly" | "married_filing_separately" | "head_of_household" | "qualifying_surviving_spouse";
|
|
2
|
+
export interface DependentInput {
|
|
3
|
+
name: string;
|
|
4
|
+
ssn: string;
|
|
5
|
+
relationship: string;
|
|
6
|
+
childTaxCreditEligible: boolean;
|
|
7
|
+
eitcEligible?: boolean | undefined;
|
|
8
|
+
}
|
|
9
|
+
export interface Address {
|
|
10
|
+
street1: string;
|
|
11
|
+
street2?: string | undefined;
|
|
12
|
+
city: string;
|
|
13
|
+
state: string;
|
|
14
|
+
zipCode: string;
|
|
15
|
+
}
|
|
16
|
+
export interface PersonIdentity {
|
|
17
|
+
firstName: string;
|
|
18
|
+
lastName: string;
|
|
19
|
+
ssn: string;
|
|
20
|
+
address: Address;
|
|
21
|
+
}
|
|
22
|
+
export interface ValidationFlag {
|
|
23
|
+
field: string;
|
|
24
|
+
severity: "warning" | "error" | "review";
|
|
25
|
+
message: string;
|
|
26
|
+
source?: string | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface ValidationCheck {
|
|
29
|
+
id: string;
|
|
30
|
+
label: string;
|
|
31
|
+
passed: boolean;
|
|
32
|
+
severity: "warning" | "error";
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ReviewSummary {
|
|
36
|
+
headline: string;
|
|
37
|
+
notes: string[];
|
|
38
|
+
flaggedFields: ValidationFlag[];
|
|
39
|
+
}
|
|
40
|
+
export interface W2Document {
|
|
41
|
+
type: "w2";
|
|
42
|
+
employerName: string;
|
|
43
|
+
employerEin?: string | undefined;
|
|
44
|
+
wages: number;
|
|
45
|
+
federalWithheld: number;
|
|
46
|
+
socialSecurityWages?: number | undefined;
|
|
47
|
+
medicareWages?: number | undefined;
|
|
48
|
+
employeeName?: string | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface Form1099NecDocument {
|
|
51
|
+
type: "1099-nec";
|
|
52
|
+
payerName: string;
|
|
53
|
+
nonemployeeCompensation: number;
|
|
54
|
+
federalWithheld?: number | undefined;
|
|
55
|
+
}
|
|
56
|
+
export interface Form1099IntDocument {
|
|
57
|
+
type: "1099-int";
|
|
58
|
+
payerName: string;
|
|
59
|
+
interestIncome: number;
|
|
60
|
+
federalWithheld?: number | undefined;
|
|
61
|
+
}
|
|
62
|
+
export interface Form1098Document {
|
|
63
|
+
type: "1098";
|
|
64
|
+
lenderName: string;
|
|
65
|
+
mortgageInterest: number;
|
|
66
|
+
mortgageInsurancePremiums?: number | undefined;
|
|
67
|
+
pointsPaid?: number | undefined;
|
|
68
|
+
outstandingPrincipal?: number | undefined;
|
|
69
|
+
federalWithheld?: number | undefined;
|
|
70
|
+
}
|
|
71
|
+
export interface Form1095ADocument {
|
|
72
|
+
type: "1095-a";
|
|
73
|
+
marketplaceName: string;
|
|
74
|
+
policyNumber?: string | undefined;
|
|
75
|
+
monthlyPremiums: number[];
|
|
76
|
+
monthlySlcsp: number[];
|
|
77
|
+
monthlyAdvancePtc: number[];
|
|
78
|
+
}
|
|
79
|
+
export interface Form1099DivDocument {
|
|
80
|
+
type: "1099-div";
|
|
81
|
+
payerName: string;
|
|
82
|
+
ordinaryDividends: number;
|
|
83
|
+
qualifiedDividends: number;
|
|
84
|
+
totalCapitalGainDistributions?: number | undefined;
|
|
85
|
+
federalWithheld?: number | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface Form1099BDocument {
|
|
88
|
+
type: "1099-b";
|
|
89
|
+
brokerName: string;
|
|
90
|
+
proceeds: number;
|
|
91
|
+
costBasis: number;
|
|
92
|
+
gainOrLoss?: number | undefined;
|
|
93
|
+
shortTerm: boolean;
|
|
94
|
+
federalWithheld?: number | undefined;
|
|
95
|
+
}
|
|
96
|
+
export interface Form1099RDocument {
|
|
97
|
+
type: "1099-r";
|
|
98
|
+
payerName: string;
|
|
99
|
+
grossDistribution: number;
|
|
100
|
+
taxableAmount: number;
|
|
101
|
+
distributionCode?: string | undefined;
|
|
102
|
+
federalWithheld?: number | undefined;
|
|
103
|
+
}
|
|
104
|
+
export interface K1Document {
|
|
105
|
+
type: "k-1";
|
|
106
|
+
partnershipName: string;
|
|
107
|
+
partnershipEin?: string | undefined;
|
|
108
|
+
ordinaryIncome: number;
|
|
109
|
+
rentalIncome?: number | undefined;
|
|
110
|
+
interestIncome?: number | undefined;
|
|
111
|
+
dividends?: number | undefined;
|
|
112
|
+
capitalGains?: number | undefined;
|
|
113
|
+
}
|
|
114
|
+
export type ImportedDocument = W2Document | Form1099NecDocument | Form1099IntDocument | Form1098Document | Form1095ADocument | Form1099DivDocument | Form1099BDocument | Form1099RDocument | K1Document;
|
|
115
|
+
export interface TaxBracketBreakdown {
|
|
116
|
+
rate: number;
|
|
117
|
+
lowerBound: number;
|
|
118
|
+
upperBound?: number | undefined;
|
|
119
|
+
taxableAmount: number;
|
|
120
|
+
taxAmount: number;
|
|
121
|
+
}
|
|
122
|
+
export type WorkflowDomain = "tax" | "immigration" | "healthcare" | "unemployment" | "business" | "permits" | "education" | "retirement" | "identity" | "benefits" | "veterans" | "legal" | "estate";
|
|
123
|
+
export type WorkflowArtifactFormat = "json" | "pdf" | "checklist" | "summary";
|
|
124
|
+
export interface WorkflowArtifact {
|
|
125
|
+
kind: string;
|
|
126
|
+
label: string;
|
|
127
|
+
format: WorkflowArtifactFormat;
|
|
128
|
+
path?: string | undefined;
|
|
129
|
+
content?: unknown;
|
|
130
|
+
}
|
|
131
|
+
export interface WorkflowEvidenceItem {
|
|
132
|
+
id: string;
|
|
133
|
+
label: string;
|
|
134
|
+
required: boolean;
|
|
135
|
+
status: "provided" | "missing" | "review";
|
|
136
|
+
notes?: string | undefined;
|
|
137
|
+
source?: string | undefined;
|
|
138
|
+
}
|
|
139
|
+
export interface WorkflowQuestionOption {
|
|
140
|
+
label: string;
|
|
141
|
+
value: string;
|
|
142
|
+
}
|
|
143
|
+
export type WorkflowQuestionFieldType = "text" | "textarea" | "currency" | "number" | "select" | "confirm" | "date";
|
|
144
|
+
export interface WorkflowQuestionField {
|
|
145
|
+
key: string;
|
|
146
|
+
label: string;
|
|
147
|
+
type: WorkflowQuestionFieldType;
|
|
148
|
+
helpText?: string | undefined;
|
|
149
|
+
placeholder?: string | undefined;
|
|
150
|
+
options?: WorkflowQuestionOption[] | undefined;
|
|
151
|
+
}
|
|
152
|
+
export interface WorkflowQuestionSection {
|
|
153
|
+
id: string;
|
|
154
|
+
title: string;
|
|
155
|
+
description?: string | undefined;
|
|
156
|
+
fields: WorkflowQuestionField[];
|
|
157
|
+
}
|
|
158
|
+
export interface WorkflowDefinitionSummary {
|
|
159
|
+
id: string;
|
|
160
|
+
domain: WorkflowDomain;
|
|
161
|
+
title: string;
|
|
162
|
+
summary: string;
|
|
163
|
+
status: "active" | "preview" | "planned";
|
|
164
|
+
audience: "individual" | "household" | "business";
|
|
165
|
+
tags: string[];
|
|
166
|
+
year?: number | undefined;
|
|
167
|
+
legacyFormId?: string | undefined;
|
|
168
|
+
}
|
|
169
|
+
export interface WorkflowBundle {
|
|
170
|
+
workflowId: string;
|
|
171
|
+
domain: WorkflowDomain;
|
|
172
|
+
title: string;
|
|
173
|
+
summary: string;
|
|
174
|
+
year?: number | undefined;
|
|
175
|
+
legacyFormId?: string | undefined;
|
|
176
|
+
applicant?: PersonIdentity | undefined;
|
|
177
|
+
household: Array<{
|
|
178
|
+
name: string;
|
|
179
|
+
relationship: string;
|
|
180
|
+
age?: number | undefined;
|
|
181
|
+
notes?: string | undefined;
|
|
182
|
+
}>;
|
|
183
|
+
evidence: WorkflowEvidenceItem[];
|
|
184
|
+
answers: Record<string, unknown>;
|
|
185
|
+
derived: Record<string, unknown>;
|
|
186
|
+
validation: {
|
|
187
|
+
checks: ValidationCheck[];
|
|
188
|
+
flaggedFields: ValidationFlag[];
|
|
189
|
+
};
|
|
190
|
+
review: ReviewSummary;
|
|
191
|
+
outputArtifacts: WorkflowArtifact[];
|
|
192
|
+
provenance: string[];
|
|
193
|
+
filledForm?: unknown;
|
|
194
|
+
calculation?: unknown;
|
|
195
|
+
}
|
|
196
|
+
export interface PigeonGovErrorShape {
|
|
197
|
+
error: string;
|
|
198
|
+
message: string;
|
|
199
|
+
field?: string | undefined;
|
|
200
|
+
suggestion?: string | undefined;
|
|
201
|
+
retryable: boolean;
|
|
202
|
+
docs?: string | undefined;
|
|
203
|
+
exitCode: number;
|
|
204
|
+
}
|
|
205
|
+
export interface StructuredOutput<T = unknown> {
|
|
206
|
+
ok: boolean;
|
|
207
|
+
data?: T | undefined;
|
|
208
|
+
error?: PigeonGovErrorShape | undefined;
|
|
209
|
+
exitCode: number;
|
|
210
|
+
}
|
|
211
|
+
export interface HouseholdProfile {
|
|
212
|
+
id: string;
|
|
213
|
+
people: PersonRecord[];
|
|
214
|
+
address: Address;
|
|
215
|
+
income?: IncomeProfile | undefined;
|
|
216
|
+
updatedAt: string;
|
|
217
|
+
}
|
|
218
|
+
export interface PersonRecord {
|
|
219
|
+
id: string;
|
|
220
|
+
firstName: string;
|
|
221
|
+
lastName: string;
|
|
222
|
+
ssn?: string | undefined;
|
|
223
|
+
dob?: string | undefined;
|
|
224
|
+
relationship: "self" | "spouse" | "child" | "parent" | "other";
|
|
225
|
+
}
|
|
226
|
+
export interface IncomeProfile {
|
|
227
|
+
taxYear: number;
|
|
228
|
+
sources: Array<{
|
|
229
|
+
label: string;
|
|
230
|
+
amount: number;
|
|
231
|
+
type: string;
|
|
232
|
+
}>;
|
|
233
|
+
totalGross: number;
|
|
234
|
+
}
|
|
235
|
+
export interface DraftMetadata {
|
|
236
|
+
id: string;
|
|
237
|
+
workflowId: string;
|
|
238
|
+
schemaVersion: string;
|
|
239
|
+
answers: Record<string, unknown>;
|
|
240
|
+
completedSections: string[];
|
|
241
|
+
resumePoint?: string | undefined;
|
|
242
|
+
createdAt: string;
|
|
243
|
+
updatedAt: string;
|
|
244
|
+
}
|
|
245
|
+
export interface VaultEntry {
|
|
246
|
+
id: string;
|
|
247
|
+
filename: string;
|
|
248
|
+
mimeType: string;
|
|
249
|
+
tags: string[];
|
|
250
|
+
linkedWorkflows: string[];
|
|
251
|
+
addedAt: string;
|
|
252
|
+
sizeBytes: number;
|
|
253
|
+
checksum: string;
|
|
254
|
+
}
|
|
255
|
+
export interface WorkflowDeadline {
|
|
256
|
+
workflowId: string;
|
|
257
|
+
label: string;
|
|
258
|
+
date: string;
|
|
259
|
+
type: "hard" | "soft";
|
|
260
|
+
consequence: string;
|
|
261
|
+
extensionAvailable: boolean;
|
|
262
|
+
}
|
|
263
|
+
export interface WorkflowFee {
|
|
264
|
+
workflowId: string;
|
|
265
|
+
label: string;
|
|
266
|
+
amount: number;
|
|
267
|
+
currency: "USD";
|
|
268
|
+
type: "filing" | "biometric" | "expedite" | "optional";
|
|
269
|
+
waivable: boolean;
|
|
270
|
+
waiverCriteria?: string | undefined;
|
|
271
|
+
}
|
|
272
|
+
export interface GlossaryEntry {
|
|
273
|
+
term: string;
|
|
274
|
+
abbreviation?: string | undefined;
|
|
275
|
+
domain: WorkflowDomain;
|
|
276
|
+
definition: string;
|
|
277
|
+
officialDefinition?: string | undefined;
|
|
278
|
+
source?: string | undefined;
|
|
279
|
+
relatedTerms?: string[] | undefined;
|
|
280
|
+
}
|
|
281
|
+
export interface LifeEvent {
|
|
282
|
+
id: string;
|
|
283
|
+
label: string;
|
|
284
|
+
description: string;
|
|
285
|
+
workflows: LifeEventWorkflow[];
|
|
286
|
+
}
|
|
287
|
+
export interface LifeEventWorkflow {
|
|
288
|
+
workflowId: string;
|
|
289
|
+
priority: number;
|
|
290
|
+
deadline?: string | undefined;
|
|
291
|
+
dependsOn?: string[] | undefined;
|
|
292
|
+
notes: string;
|
|
293
|
+
}
|
|
294
|
+
export interface EligibilityResult {
|
|
295
|
+
workflowId: string;
|
|
296
|
+
eligible: "likely" | "possible" | "unlikely" | "ineligible";
|
|
297
|
+
confidence: number;
|
|
298
|
+
reason: string;
|
|
299
|
+
nextSteps: string[];
|
|
300
|
+
}
|
|
301
|
+
export interface CapitalGainsInput {
|
|
302
|
+
transactions: Array<{
|
|
303
|
+
description: string;
|
|
304
|
+
dateAcquired: string;
|
|
305
|
+
dateSold: string;
|
|
306
|
+
proceeds: number;
|
|
307
|
+
costBasis: number;
|
|
308
|
+
shortTerm: boolean;
|
|
309
|
+
}>;
|
|
310
|
+
}
|
|
311
|
+
export interface DividendDetailInput {
|
|
312
|
+
ordinaryDividends: number;
|
|
313
|
+
qualifiedDividends: number;
|
|
314
|
+
capitalGainDistributions?: number | undefined;
|
|
315
|
+
}
|
|
316
|
+
export interface RentalIncomeInput {
|
|
317
|
+
propertyAddress: string;
|
|
318
|
+
grossRent: number;
|
|
319
|
+
expenses: number;
|
|
320
|
+
depreciation: number;
|
|
321
|
+
netIncome: number;
|
|
322
|
+
}
|
|
323
|
+
export interface HsaInput {
|
|
324
|
+
contributions: number;
|
|
325
|
+
employerContributions: number;
|
|
326
|
+
distributions: number;
|
|
327
|
+
qualifiedMedicalExpenses: number;
|
|
328
|
+
}
|
|
329
|
+
export interface CryptoTransactionInput {
|
|
330
|
+
exchange: string;
|
|
331
|
+
asset: string;
|
|
332
|
+
dateAcquired: string;
|
|
333
|
+
dateSold: string;
|
|
334
|
+
proceeds: number;
|
|
335
|
+
costBasis: number;
|
|
336
|
+
transactionType: "trade" | "staking" | "lending" | "airdrop" | "mining";
|
|
337
|
+
}
|
|
338
|
+
export interface EquityCompensationInput {
|
|
339
|
+
type: "rsu" | "iso" | "nso" | "espp";
|
|
340
|
+
grantDate: string;
|
|
341
|
+
vestDate?: string | undefined;
|
|
342
|
+
exerciseDate?: string | undefined;
|
|
343
|
+
shares: number;
|
|
344
|
+
fairMarketValue: number;
|
|
345
|
+
exercisePrice?: number | undefined;
|
|
346
|
+
salePrice?: number | undefined;
|
|
347
|
+
saleDate?: string | undefined;
|
|
348
|
+
}
|
|
349
|
+
export interface WorkflowPlugin {
|
|
350
|
+
name: string;
|
|
351
|
+
version: string;
|
|
352
|
+
author?: string | undefined;
|
|
353
|
+
license?: string | undefined;
|
|
354
|
+
workflows: Array<{
|
|
355
|
+
summary: WorkflowDefinitionSummary;
|
|
356
|
+
inputSchema: unknown;
|
|
357
|
+
starterData: unknown;
|
|
358
|
+
sections: WorkflowQuestionSection[];
|
|
359
|
+
buildBundle: (input: unknown) => WorkflowBundle;
|
|
360
|
+
}>;
|
|
361
|
+
glossaryTerms?: GlossaryEntry[] | undefined;
|
|
362
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WorkflowDeadline } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Filter deadlines to those in the future (relative to asOfDate) and sort ascending.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getUpcomingDeadlines(deadlines: WorkflowDeadline[], asOfDate?: Date): WorkflowDeadline[];
|
|
6
|
+
/**
|
|
7
|
+
* Generate an ICS calendar file string from an array of deadlines.
|
|
8
|
+
*/
|
|
9
|
+
export declare function generateIcs(deadlines: WorkflowDeadline[]): string;
|
|
10
|
+
/**
|
|
11
|
+
* Hardcoded deadline data for existing workflows.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEFAULT_DEADLINES: WorkflowDeadline[];
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filter deadlines to those in the future (relative to asOfDate) and sort ascending.
|
|
3
|
+
*/
|
|
4
|
+
export function getUpcomingDeadlines(deadlines, asOfDate) {
|
|
5
|
+
const now = asOfDate ?? new Date();
|
|
6
|
+
return deadlines
|
|
7
|
+
.filter((d) => new Date(d.date) > now)
|
|
8
|
+
.sort((a, b) => new Date(a.date).getTime() - new Date(b.date).getTime());
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Format a Date as an ICS DTSTART value: YYYYMMDDTHHMMSSZ
|
|
12
|
+
*/
|
|
13
|
+
function formatIcsDate(dateStr) {
|
|
14
|
+
const d = new Date(dateStr);
|
|
15
|
+
const year = d.getUTCFullYear();
|
|
16
|
+
const month = String(d.getUTCMonth() + 1).padStart(2, "0");
|
|
17
|
+
const day = String(d.getUTCDate()).padStart(2, "0");
|
|
18
|
+
return `${year}${month}${day}T000000Z`;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Generate an ICS calendar file string from an array of deadlines.
|
|
22
|
+
*/
|
|
23
|
+
export function generateIcs(deadlines) {
|
|
24
|
+
const events = deadlines
|
|
25
|
+
.map((d) => `BEGIN:VEVENT\r\nDTSTART:${formatIcsDate(d.date)}\r\nSUMMARY:${d.label}\r\nDESCRIPTION:${d.consequence}\r\nEND:VEVENT`)
|
|
26
|
+
.join("\r\n");
|
|
27
|
+
return [
|
|
28
|
+
"BEGIN:VCALENDAR",
|
|
29
|
+
"VERSION:2.0",
|
|
30
|
+
"PRODID:-//PigeonGov//Deadlines//EN",
|
|
31
|
+
events,
|
|
32
|
+
"END:VCALENDAR",
|
|
33
|
+
].join("\r\n");
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Hardcoded deadline data for existing workflows.
|
|
37
|
+
*/
|
|
38
|
+
export const DEFAULT_DEADLINES = [
|
|
39
|
+
{
|
|
40
|
+
workflowId: "tax/1040",
|
|
41
|
+
label: "Tax filing deadline",
|
|
42
|
+
date: "2026-04-15",
|
|
43
|
+
type: "hard",
|
|
44
|
+
consequence: "Late filing penalty of 5% per month on unpaid taxes",
|
|
45
|
+
extensionAvailable: true,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
workflowId: "tax/1040",
|
|
49
|
+
label: "Extension deadline",
|
|
50
|
+
date: "2026-10-15",
|
|
51
|
+
type: "hard",
|
|
52
|
+
consequence: "No further extensions; penalties and interest accrue",
|
|
53
|
+
extensionAvailable: false,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
workflowId: "immigration/family-visa-intake",
|
|
57
|
+
label: "Apply as soon as eligible",
|
|
58
|
+
date: "2099-12-31",
|
|
59
|
+
type: "soft",
|
|
60
|
+
consequence: "Processing times increase with backlogs; no fixed statutory deadline",
|
|
61
|
+
extensionAvailable: false,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
workflowId: "healthcare/aca-enrollment",
|
|
65
|
+
label: "Open Enrollment start",
|
|
66
|
+
date: "2026-11-01",
|
|
67
|
+
type: "hard",
|
|
68
|
+
consequence: "Cannot enroll in marketplace plan outside open enrollment without a QLE",
|
|
69
|
+
extensionAvailable: false,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
workflowId: "healthcare/aca-enrollment",
|
|
73
|
+
label: "Open Enrollment end",
|
|
74
|
+
date: "2027-01-15",
|
|
75
|
+
type: "hard",
|
|
76
|
+
consequence: "Cannot enroll in marketplace plan outside open enrollment without a QLE",
|
|
77
|
+
extensionAvailable: false,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
workflowId: "unemployment/claim-intake",
|
|
81
|
+
label: "File within 7 days of last day of work",
|
|
82
|
+
date: "2026-12-31",
|
|
83
|
+
type: "soft",
|
|
84
|
+
consequence: "Benefits may be delayed or reduced if filed late; state-specific rules apply",
|
|
85
|
+
extensionAvailable: false,
|
|
86
|
+
},
|
|
87
|
+
];
|
|
88
|
+
//# sourceMappingURL=deadlines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deadlines.js","sourceRoot":"","sources":["../../../src/workflows/deadlines.ts"],"names":[],"mappings":"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"}
|