Skip to content

feat(cli): add @emisso/accounting-cli package - #2

Merged
cdotte merged 2 commits into
feat/initial-implementationfrom
feat/accounting-cli
Mar 17, 2026
Merged

feat(cli): add @emisso/accounting-cli package#2
cdotte merged 2 commits into
feat/initial-implementationfrom
feat/accounting-cli

Conversation

@cdotte

@cdotte cdotte commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New packages/cli/ package — full CLI for the accounting engine built with @effect/cli and @emisso/cli-core
  • 24 commands across 7 groups: chart (list/seed/show), entry (add/list/show/void), import (invoice/payroll/rcv), report (trial-balance/balance-8-columnas/income-statement/balance-sheet), tax (iva/ppm/f29), xml (libro-diario/libro-mayor/balance), period (list/open/close/lock), plus doctor
  • Shared infrastructure — config resolution (CLI flags → env vars → defaults), shared options module (eliminates 45+ redefinitions), Effect wrappers, formatting helpers for tables/CSV/JSON
  • 49 tests covering config resolution, formatters, ledger I/O, and command integration
  • Engine fix — corrected package.json export paths (.mjs.js/.cjs)
  • Also includes CI workflows, AGENTS.md, and llms.txt context files

Test plan

  • pnpm build — all packages build clean
  • tsc --noEmit — no type errors
  • pnpm test:run — 49/49 tests pass
  • node packages/cli/dist/bin/accounting.js --help — shows full command tree
  • node packages/cli/dist/bin/accounting.js --json — JSON output works
  • CI workflow runs on this PR

🤖 Generated with Claude Code

cdotte and others added 2 commits March 14, 2026 14:00
feat: initial implementation of @emisso/accounting
Full CLI for the accounting engine using @effect/cli and @emisso/cli-core.
24 commands across 7 groups: chart, entry, import, report, tax, xml, period,
plus a doctor command. 49 tests passing. Includes shared options module,
config resolution (CLI flags → env vars → defaults), Effect wrappers,
and formatting helpers for tables/CSV/JSON output.

Also fixes engine package.json export paths (.mjs → .js/.cjs).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cdotte
cdotte merged commit e05afec into feat/initial-implementation Mar 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant