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

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 (42) hide show
  1. package/README.md +69 -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/contracts.test.d.ts +1 -0
  15. package/dist/index.d.ts +4 -4
  16. package/dist/index.js +520 -519
  17. package/dist/node/index.js +520 -519
  18. package/dist/node/operations/index.js +6 -6
  19. package/dist/node/telemetry.js +4 -4
  20. package/dist/node/workflows/generate-financial-summary.js +1 -1
  21. package/dist/node/workflows/generate-openbanking-overview.js +1 -1
  22. package/dist/node/workflows/index.js +203 -203
  23. package/dist/node/workflows/ingest-email-threads.js +1 -1
  24. package/dist/node/workflows/process-uploaded-document.js +1 -1
  25. package/dist/node/workflows/refresh-openbanking-balances.js +1 -1
  26. package/dist/node/workflows/sync-openbanking-accounts.js +1 -1
  27. package/dist/node/workflows/sync-openbanking-transactions.js +1 -1
  28. package/dist/node/workflows/upcoming-payments-reminder.js +1 -1
  29. package/dist/operations/index.d.ts +1 -1
  30. package/dist/operations/index.js +6 -6
  31. package/dist/telemetry.js +4 -4
  32. package/dist/workflows/generate-financial-summary.js +1 -1
  33. package/dist/workflows/generate-openbanking-overview.js +1 -1
  34. package/dist/workflows/index.d.ts +4 -4
  35. package/dist/workflows/index.js +203 -203
  36. package/dist/workflows/ingest-email-threads.js +1 -1
  37. package/dist/workflows/process-uploaded-document.js +1 -1
  38. package/dist/workflows/refresh-openbanking-balances.js +1 -1
  39. package/dist/workflows/sync-openbanking-accounts.js +1 -1
  40. package/dist/workflows/sync-openbanking-transactions.js +1 -1
  41. package/dist/workflows/upcoming-payments-reminder.js +1 -1
  42. package/package.json +10 -9
package/README.md CHANGED
@@ -1,43 +1,79 @@
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
+ - Canonical `telemetry` export via `pocketFamilyOfficeTelemetry`.
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 test`
22
+ - `bun run typecheck`
29
23
 
30
24
  ## Usage
31
25
 
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.
26
+ Use `@contractspec/example.pocket-family-office` as a reference implementation, or import its exported surfaces into a workspace that composes ContractSpec examples and bundles.
27
+
28
+ ## Architecture
29
+
30
+ - `src/blueprint.ts` is part of the package's public or composition surface.
31
+ - `src/connections` is part of the package's public or composition surface.
32
+ - `src/docs/` contains docblocks and documentation-facing exports.
33
+ - `src/example.ts` is the runnable example entrypoint.
34
+ - `src/index.ts` is the root public barrel and package entrypoint.
35
+ - `src/knowledge` is part of the package's public or composition surface.
36
+ - `src/operations` is part of the package's public or composition surface.
37
+ - `src/telemetry.ts` defines the exported telemetry spec.
38
+
39
+ ## Public Entry Points
37
40
 
41
+ - Export `.` resolves through `./src/index.ts`.
42
+ - Export `./blueprint` resolves through `./src/blueprint.ts`.
43
+ - Export `./connections/samples` resolves through `./src/connections/samples.ts`.
44
+ - Export `./docs` resolves through `./src/docs/index.ts`.
45
+ - Export `./docs/pocket-family-office.docblock` resolves through `./src/docs/pocket-family-office.docblock.ts`.
46
+ - Export `./example` resolves through `./src/example.ts`.
47
+ - Export `./knowledge/sources.sample` resolves through `./src/knowledge/sources.sample.ts`.
48
+ - Export `./operations` resolves through `./src/operations/index.ts`.
49
+ - Export `./pocket-family-office.capability` resolves through `./src/pocket-family-office.capability.ts`.
50
+ - Export `./pocket-family-office.feature` resolves through `./src/pocket-family-office.feature.ts`.
51
+ - Export `./telemetry` resolves through `./src/telemetry.ts`.
52
+ - The package publishes 20 total export subpaths; keep docs aligned with `package.json`.
38
53
 
54
+ ## Local Commands
39
55
 
56
+ - `bun run dev` — contractspec-bun-build dev
57
+ - `bun run build` — bun run prebuild && bun run build:bundle && bun run build:types
58
+ - `bun run test` — bun test
59
+ - `bun run lint` — bun lint:fix
60
+ - `bun run lint:check` — biome check .
61
+ - `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
62
+ - `bun run typecheck` — tsc --noEmit
63
+ - `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose
64
+ - `bun run publish:pkg:canary` — bun publish:pkg --tag canary
65
+ - `bun run clean` — bun rimraf dist .turbo
66
+ - `bun run build:bundle` — contractspec-bun-build transpile
67
+ - `bun run build:types` — contractspec-bun-build types
68
+ - `bun run prebuild` — contractspec-bun-build prebuild
40
69
 
70
+ ## Recent Updates
41
71
 
72
+ - Replace eslint+prettier by biomejs to optimize speed.
73
+ - Missing contract layers.
74
+ - Resolve lint/test regressions after voice capability updates.
75
+ - Major change to content generation.
42
76
 
77
+ ## Notes
43
78
 
79
+ - Works alongside `@contractspec/lib.contracts-integrations`, `@contractspec/lib.contracts-spec`, `@contractspec/lib.knowledge`, `@contractspec/lib.schema`, `@contractspec/tool.bun`, ...