@contractspec/example.pocket-family-office 3.7.6 → 3.7.7

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 (41) hide show
  1. package/README.md +65 -33
  2. package/dist/browser/index.js +520 -519
  3. package/dist/browser/operations/index.js +6 -6
  4. package/dist/browser/telemetry.js +4 -4
  5. package/dist/browser/workflows/generate-financial-summary.js +1 -1
  6. package/dist/browser/workflows/generate-openbanking-overview.js +1 -1
  7. package/dist/browser/workflows/index.js +203 -203
  8. package/dist/browser/workflows/ingest-email-threads.js +1 -1
  9. package/dist/browser/workflows/process-uploaded-document.js +1 -1
  10. package/dist/browser/workflows/refresh-openbanking-balances.js +1 -1
  11. package/dist/browser/workflows/sync-openbanking-accounts.js +1 -1
  12. package/dist/browser/workflows/sync-openbanking-transactions.js +1 -1
  13. package/dist/browser/workflows/upcoming-payments-reminder.js +1 -1
  14. package/dist/index.d.ts +4 -4
  15. package/dist/index.js +520 -519
  16. package/dist/node/index.js +520 -519
  17. package/dist/node/operations/index.js +6 -6
  18. package/dist/node/telemetry.js +4 -4
  19. package/dist/node/workflows/generate-financial-summary.js +1 -1
  20. package/dist/node/workflows/generate-openbanking-overview.js +1 -1
  21. package/dist/node/workflows/index.js +203 -203
  22. package/dist/node/workflows/ingest-email-threads.js +1 -1
  23. package/dist/node/workflows/process-uploaded-document.js +1 -1
  24. package/dist/node/workflows/refresh-openbanking-balances.js +1 -1
  25. package/dist/node/workflows/sync-openbanking-accounts.js +1 -1
  26. package/dist/node/workflows/sync-openbanking-transactions.js +1 -1
  27. package/dist/node/workflows/upcoming-payments-reminder.js +1 -1
  28. package/dist/operations/index.d.ts +1 -1
  29. package/dist/operations/index.js +6 -6
  30. package/dist/telemetry.js +4 -4
  31. package/dist/workflows/generate-financial-summary.js +1 -1
  32. package/dist/workflows/generate-openbanking-overview.js +1 -1
  33. package/dist/workflows/index.d.ts +4 -4
  34. package/dist/workflows/index.js +203 -203
  35. package/dist/workflows/ingest-email-threads.js +1 -1
  36. package/dist/workflows/process-uploaded-document.js +1 -1
  37. package/dist/workflows/refresh-openbanking-balances.js +1 -1
  38. package/dist/workflows/sync-openbanking-accounts.js +1 -1
  39. package/dist/workflows/sync-openbanking-transactions.js +1 -1
  40. package/dist/workflows/upcoming-payments-reminder.js +1 -1
  41. package/package.json +6 -6
package/README.md CHANGED
@@ -1,43 +1,75 @@
1
- # Pocket Family Office Vertical
2
-
3
- Website: https://contractspec.io/
4
-
5
-
6
- This vertical demonstrates how a spec-first application orchestrates
7
- financial document automation, payment reminders, and AI summarisation
8
- using ContractSpec. It is designed for multi-tenant deployments where
9
- each household configures its own integrations while reusing a shared
10
- blueprint.
11
-
12
- ## Contents
13
-
14
- - `blueprint.ts` the global `AppBlueprintSpec` describing required
15
- capabilities, integration slots, workflows, and telemetry.
16
- - `tenant.sample.ts` – example `TenantAppConfig` showing per-tenant
17
- bindings to integrations, knowledge spaces, and locales.
18
- - `connections/` – sample `IntegrationConnection` descriptors for the
19
- nine priority providers (Mistral, Qdrant, GCS, Gmail, Google Calendar,
20
- Postmark, ElevenLabs, Stripe, Twilio).
21
- - `knowledge/` example `KnowledgeSourceConfig` entries wiring Gmail
22
- threads and uploaded documents into canonical knowledge spaces.
23
- - `contracts/` – command specs powering document ingestion, reminders,
24
- financial summaries, and Gmail synchronisation.
25
- - `workflows/` – workflow specs orchestrating end-to-end automation for
26
- uploads, reminders, financial overviews, and email ingestion.
27
- - `tests/` – Vitest scenarios covering blueprint validation, config
28
- composition, and a full end-to-end ingestion/query flow.
1
+ # @contractspec/example.pocket-family-office
2
+
3
+ Website: https://contractspec.io
4
+
5
+ **Pocket Family Office example - personal finance automation with open banking.**
6
+
7
+ ## What This Demonstrates
8
+
9
+ - Workflow-driven open banking integration (sync accounts, transactions, balances).
10
+ - Financial summary and overview generation workflows.
11
+ - Document processing and email thread ingestion.
12
+ - Capability and feature definition patterns.
13
+ - Telemetry integration.
14
+ - Sample tenant and connection configuration.
15
+
16
+ ## Running Locally
17
+
18
+ From `packages/examples/pocket-family-office`:
19
+ - `bun run dev`
20
+ - `bun run build`
21
+ - `bun run typecheck`
29
22
 
30
23
  ## Usage
31
24
 
32
- The files are designed for direct consumption inside tests, CLI
33
- generators, or documentation tooling. They depend exclusively on the
34
- public APIs exported by `@contractspec/lib.contracts-spec`, making them safe to copy
35
- into downstream projects or use as a reference implementation during the
36
- Pocket Family Office hackathon.
25
+ Use `@contractspec/example.pocket-family-office` as a reference implementation, or import its exported surfaces into a workspace that composes ContractSpec examples and bundles.
26
+
27
+ ## Architecture
28
+
29
+ - `src/blueprint.ts` is part of the package's public or composition surface.
30
+ - `src/connections` is part of the package's public or composition surface.
31
+ - `src/docs/` contains docblocks and documentation-facing exports.
32
+ - `src/example.ts` is the runnable example entrypoint.
33
+ - `src/index.ts` is the root public barrel and package entrypoint.
34
+ - `src/knowledge` is part of the package's public or composition surface.
35
+ - `src/operations` is part of the package's public or composition surface.
36
+
37
+ ## Public Entry Points
37
38
 
39
+ - Export `.` resolves through `./src/index.ts`.
40
+ - Export `./blueprint` resolves through `./src/blueprint.ts`.
41
+ - Export `./connections/samples` resolves through `./src/connections/samples.ts`.
42
+ - Export `./docs` resolves through `./src/docs/index.ts`.
43
+ - Export `./docs/pocket-family-office.docblock` resolves through `./src/docs/pocket-family-office.docblock.ts`.
44
+ - Export `./example` resolves through `./src/example.ts`.
45
+ - Export `./knowledge/sources.sample` resolves through `./src/knowledge/sources.sample.ts`.
46
+ - Export `./operations` resolves through `./src/operations/index.ts`.
47
+ - Export `./pocket-family-office.capability` resolves through `./src/pocket-family-office.capability.ts`.
48
+ - Export `./pocket-family-office.feature` resolves through `./src/pocket-family-office.feature.ts`.
49
+ - The package publishes 21 total export subpaths; keep docs aligned with `package.json`.
38
50
 
51
+ ## Local Commands
39
52
 
53
+ - `bun run dev` — contractspec-bun-build dev
54
+ - `bun run build` — bun run prebuild && bun run build:bundle && bun run build:types
55
+ - `bun run lint` — bun lint:fix
56
+ - `bun run lint:check` — biome check .
57
+ - `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
58
+ - `bun run typecheck` — tsc --noEmit
59
+ - `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose
60
+ - `bun run publish:pkg:canary` — bun publish:pkg --tag canary
61
+ - `bun run clean` — bun rimraf dist .turbo
62
+ - `bun run build:bundle` — contractspec-bun-build transpile
63
+ - `bun run build:types` — contractspec-bun-build types
64
+ - `bun run prebuild` — contractspec-bun-build prebuild
40
65
 
66
+ ## Recent Updates
41
67
 
68
+ - Replace eslint+prettier by biomejs to optimize speed.
69
+ - Missing contract layers.
70
+ - Resolve lint/test regressions after voice capability updates.
71
+ - Major change to content generation.
42
72
 
73
+ ## Notes
43
74
 
75
+ - Works alongside `@contractspec/lib.contracts-integrations`, `@contractspec/lib.contracts-spec`, `@contractspec/lib.knowledge`, `@contractspec/lib.schema`, `@contractspec/tool.bun`, ...