@contractspec/example.pocket-family-office 3.7.5 → 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.
- package/README.md +65 -33
- package/dist/browser/index.js +520 -519
- package/dist/browser/operations/index.js +6 -6
- package/dist/browser/telemetry.js +4 -4
- package/dist/browser/workflows/generate-financial-summary.js +1 -1
- package/dist/browser/workflows/generate-openbanking-overview.js +1 -1
- package/dist/browser/workflows/index.js +203 -203
- package/dist/browser/workflows/ingest-email-threads.js +1 -1
- package/dist/browser/workflows/process-uploaded-document.js +1 -1
- package/dist/browser/workflows/refresh-openbanking-balances.js +1 -1
- package/dist/browser/workflows/sync-openbanking-accounts.js +1 -1
- package/dist/browser/workflows/sync-openbanking-transactions.js +1 -1
- package/dist/browser/workflows/upcoming-payments-reminder.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +520 -519
- package/dist/node/index.js +520 -519
- package/dist/node/operations/index.js +6 -6
- package/dist/node/telemetry.js +4 -4
- package/dist/node/workflows/generate-financial-summary.js +1 -1
- package/dist/node/workflows/generate-openbanking-overview.js +1 -1
- package/dist/node/workflows/index.js +203 -203
- package/dist/node/workflows/ingest-email-threads.js +1 -1
- package/dist/node/workflows/process-uploaded-document.js +1 -1
- package/dist/node/workflows/refresh-openbanking-balances.js +1 -1
- package/dist/node/workflows/sync-openbanking-accounts.js +1 -1
- package/dist/node/workflows/sync-openbanking-transactions.js +1 -1
- package/dist/node/workflows/upcoming-payments-reminder.js +1 -1
- package/dist/operations/index.d.ts +1 -1
- package/dist/operations/index.js +6 -6
- package/dist/telemetry.js +4 -4
- package/dist/workflows/generate-financial-summary.js +1 -1
- package/dist/workflows/generate-openbanking-overview.js +1 -1
- package/dist/workflows/index.d.ts +4 -4
- package/dist/workflows/index.js +203 -203
- package/dist/workflows/ingest-email-threads.js +1 -1
- package/dist/workflows/process-uploaded-document.js +1 -1
- package/dist/workflows/refresh-openbanking-balances.js +1 -1
- package/dist/workflows/sync-openbanking-accounts.js +1 -1
- package/dist/workflows/sync-openbanking-transactions.js +1 -1
- package/dist/workflows/upcoming-payments-reminder.js +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,43 +1,75 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
Website: https://contractspec.io
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
- `
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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`, ...
|