ekwo-os 0.13.0 → 0.14.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.
Files changed (64) hide show
  1. package/README.md +3 -1
  2. package/dist/assets/expected-objects.json +435 -5
  3. package/dist/assets/migrations/20261015042916_an_archive_is_given_its_time.sql +113 -0
  4. package/dist/assets/migrations/20261016065440_an_analysis_for_every_country.sql +292 -0
  5. package/dist/assets/migrations/20261016145816_product_report.sql +92 -0
  6. package/dist/assets/migrations/20261018014537_a_country_chains_its_invoices.sql +41 -0
  7. package/dist/assets/migrations/20261018023930_a_country_reports_its_invoices.sql +34 -0
  8. package/dist/assets/migrations/20261018102431_a_piece_goes_on_its_document.sql +57 -0
  9. package/dist/assets/migrations/20261018130000_a_closed_year_reopens_a_final_close_does_not.sql +364 -0
  10. package/dist/assets/migrations/20261018135109_schema_version_0_14_0.sql +46 -0
  11. package/dist/assets/modules/einvoicing/module.json +2 -2
  12. package/dist/assets/modules/einvoicing/supabase/migrations/20261018015212_einvoicing_fiscalisation.sql +1083 -0
  13. package/dist/assets/seed/00_currencies.sql +5 -1
  14. package/dist/assets/seed/00_territories.sql +78 -0
  15. package/dist/assets/seed/05_framework_generic.sql +121 -2
  16. package/dist/assets/seed/10_pack_be.sql +9 -2
  17. package/dist/assets/seed/11_pack_fr.sql +35 -2
  18. package/dist/assets/seed/13_pack_ee.sql +125 -5
  19. package/dist/assets/seed/19_pack_es.sql +10 -5
  20. package/dist/assets/seed/200_pack_jm.sql +579 -0
  21. package/dist/assets/seed/202_pack_dm.sql +570 -0
  22. package/dist/assets/seed/203_pack_gd.sql +579 -0
  23. package/dist/assets/seed/400_pack_ag.sql +641 -0
  24. package/dist/assets/seed/401_pack_bs.sql +649 -0
  25. package/dist/assets/seed/402_pack_gy.sql +559 -0
  26. package/dist/assets/seed/modules/corporate_tax/10_pack_be.sql +1 -1
  27. package/dist/assets/seed/modules/corporate_tax/11_pack_fr.sql +1 -1
  28. package/dist/assets/seed/modules/corporate_tax/19_pack_es.sql +1 -1
  29. package/dist/assets/seed/modules/fixed_assets/10_pack_be.sql +1 -1
  30. package/dist/assets/seed/modules/fixed_assets/11_pack_fr.sql +1 -1
  31. package/dist/assets/seed/modules/fixed_assets/19_pack_es.sql +1 -1
  32. package/dist/cli.d.ts.map +1 -1
  33. package/dist/cli.js +11 -0
  34. package/dist/cli.js.map +1 -1
  35. package/dist/commands/einvoice.d.ts +3 -2
  36. package/dist/commands/einvoice.d.ts.map +1 -1
  37. package/dist/commands/einvoice.js +123 -5
  38. package/dist/commands/einvoice.js.map +1 -1
  39. package/dist/commands/pack.d.ts.map +1 -1
  40. package/dist/commands/pack.js +17 -1
  41. package/dist/commands/pack.js.map +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/index.js.map +1 -1
  46. package/dist/pack/analysis.d.ts +17 -2
  47. package/dist/pack/analysis.d.ts.map +1 -1
  48. package/dist/pack/analysis.js +56 -14
  49. package/dist/pack/analysis.js.map +1 -1
  50. package/dist/pack/compile.d.ts.map +1 -1
  51. package/dist/pack/compile.js +39 -7
  52. package/dist/pack/compile.js.map +1 -1
  53. package/dist/pack/describe.d.ts +10 -1
  54. package/dist/pack/describe.d.ts.map +1 -1
  55. package/dist/pack/describe.js +4 -1
  56. package/dist/pack/describe.js.map +1 -1
  57. package/dist/pack/read.d.ts +135 -1
  58. package/dist/pack/read.d.ts.map +1 -1
  59. package/dist/pack/read.js +321 -2
  60. package/dist/pack/read.js.map +1 -1
  61. package/dist/schema.d.ts +1 -1
  62. package/dist/schema.js +1 -1
  63. package/package.json +3 -3
  64. package/schema/output.1.json +46 -0
package/README.md CHANGED
@@ -179,6 +179,7 @@ project reports what was already there and creates nothing a second time.
179
179
  | `ekwo doc pdf <document>` | The PDF of a sale invoice or credit note, rendered from the books by [`@ekwo-ai/invoice-pdf`](../formats/invoice-pdf/README.md), with the logo the company names by URL (fetched by this command, from a public http(s) address only). Written to `--out`, or under its own name in the current directory. `--factur-x` embeds the CII of a posted sale and makes it a Factur-X PDF/A-3 (the rules it breaks end on exit 1); `--page-size Letter`; `--labels <file.json>` gives the words of the layout in the document's language. `ekwo document` is the whole word of `ekwo doc`. Records nothing. |
180
180
  | `ekwo proof stamp` / `upgrade` / `verify` | The sha256 of a filed file — a declaration, the annual accounts of a financial year, a document — committed to Bitcoin through the public OpenTimestamps calendars; only the hash leaves. `upgrade` completes the pending proofs of the company and is made to run on a schedule; `verify` checks a file against its proof and the block it names, and `--out` writes the `.ots` file any verifier reads. See [`docs/filing-proofs.md`](../../docs/filing-proofs.md). |
181
181
  | `ekwo einvoice validate` / `issue` / `status` / `list` | The electronic invoice of a posted sale, in the format its country pack declares, through the `einvoicing` module: `validate` writes it and names the rules it breaks (exit 1 if any), `issue` keeps it and with `--send --to <directory>` writes it to that folder, `status --refresh` follows it. See [`modules/einvoicing`](../../modules/einvoicing/README.md). |
182
+ | `ekwo einvoice fiscalise` / `fiscalisation` | The fiscal record a country's fiscalisation regime requires for every invoice — VERI*FACTU is one — written by the brick its pack names and chained after the last record of the invoicing system described by `--system <file>` (or `EKWO_FISCAL_SYSTEM`); `--dry-run` writes it and chains nothing, a record that breaks a rule is never chained (exit 1). `fiscalisation` walks each chain, and names the records still to send and the posted sales without a record. |
182
183
  | `ekwo peppol validate <file>` / `lookup <participant>` | The Peppol network, with no installation and no sign-in. `validate` reads a UBL invoice or credit note as it arrived and names the rules it breaks — the arithmetic of EN 16931 and the electronic addresses of both parties — with exit 1 if any; nothing is booked. `lookup` checks a participant identifier (`0208:0999999922`, `iso6523-actorid-upis::…` or a symbolic scheme) and asks the DNS of the Service Metadata Locator whether it is registered, and with which Service Metadata Publisher; `--test` asks the acceptance network. Exit 0 only for a registered participant. See [`@ekwo-ai/peppol-ubl`](../formats/peppol-ubl/README.md#participant-identifiers-and-the-sml). |
183
184
 
184
185
  There is no `eject`, because there is nothing to eject from. The schema is in
@@ -470,6 +471,7 @@ Every command takes `--json`; see [what a command answers](#what-a-command-answe
470
471
  | `EKWO_ACCESS_TOKEN` | The same, with a session token already in hand. It is not renewed. |
471
472
  | `EKWO_PROFILE` | `--profile` |
472
473
  | `EKWO_EINVOICE_DIRECTORY` | `--to`, for `ekwo einvoice`. The MCP server reads it too. |
474
+ | `EKWO_FISCAL_SYSTEM` | `--system`, as the JSON itself, for `ekwo einvoice fiscalise`. The MCP server reads it too. |
473
475
  | `EKWO_CONFIG_DIR` | Where profiles and sessions are kept. |
474
476
  | `EKWO_REGISTRY_URL` | `--registry-url`. Default `https://api.ekwo.ai/v1/registrations`. |
475
477
  | `EKWO_NO_REGISTER_INVITE` | Set to `1` to hide the invitation to register that `ekwo init` and `ekwo status` show on an installation that is not registered. The MCP server reads it too. |
@@ -519,7 +521,7 @@ exactly six fields:
519
521
  "organization": "My Organisation",
520
522
  "country": "<cc>",
521
523
  "edition": "community",
522
- "schema_version": "0.13.0",
524
+ "schema_version": "0.14.0",
523
525
  "contact_email": "you@example.com"
524
526
  }
525
527
  ```