@nymbalhq/platform 1.0.0 → 1.2.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 (41) hide show
  1. package/dist/chunk-UBEGSSFI.js +5332 -0
  2. package/dist/chunk-UBEGSSFI.js.map +1 -0
  3. package/dist/{chunk-PW6ILJF7.js → chunk-XVUH34US.js} +138 -10
  4. package/dist/chunk-XVUH34US.js.map +1 -0
  5. package/dist/db/schema/index.d.ts +3717 -2105
  6. package/dist/db/schema/index.js +1 -2
  7. package/dist/index.d.ts +499 -44
  8. package/dist/index.js +2227 -1888
  9. package/dist/index.js.map +1 -1
  10. package/dist/register-NHG3TIRQ.js +8 -0
  11. package/migrations/postgres/0007_native_search.sql +12 -0
  12. package/migrations/postgres/0008_event_correlation.sql +6 -0
  13. package/migrations/postgres/0009_settings.sql +13 -0
  14. package/migrations/postgres/0010_catch_up_index.sql +2 -0
  15. package/migrations/postgres/0011_audit_entries.sql +27 -0
  16. package/migrations/postgres/meta/0007_snapshot.json +1598 -0
  17. package/migrations/postgres/meta/0008_snapshot.json +1625 -0
  18. package/migrations/postgres/meta/0009_snapshot.json +1705 -0
  19. package/migrations/postgres/meta/0010_snapshot.json +1732 -0
  20. package/migrations/postgres/meta/0011_snapshot.json +1887 -0
  21. package/migrations/postgres/meta/_journal.json +35 -0
  22. package/migrations/sqlite/0007_native_search.sql +39 -0
  23. package/migrations/sqlite/0008_event_correlation.sql +7 -0
  24. package/migrations/sqlite/0009_settings.sql +13 -0
  25. package/migrations/sqlite/0010_catch_up_index.sql +2 -0
  26. package/migrations/sqlite/0011_audit_entries.sql +26 -0
  27. package/migrations/sqlite/meta/0007_snapshot.json +1470 -0
  28. package/migrations/sqlite/meta/0008_snapshot.json +1485 -0
  29. package/migrations/sqlite/meta/0009_snapshot.json +1571 -0
  30. package/migrations/sqlite/meta/0010_snapshot.json +1580 -0
  31. package/migrations/sqlite/meta/0011_snapshot.json +1705 -0
  32. package/migrations/sqlite/meta/_journal.json +35 -0
  33. package/package.json +45 -17
  34. package/recipes/postgres.json +17 -0
  35. package/dist/chunk-74KODSYJ.js +0 -2564
  36. package/dist/chunk-74KODSYJ.js.map +0 -1
  37. package/dist/chunk-PW6ILJF7.js.map +0 -1
  38. package/dist/chunk-PZ5AY32C.js +0 -10
  39. package/dist/register-IVFYBJSX.js +0 -8
  40. package/dist/register-IVFYBJSX.js.map +0 -1
  41. /package/dist/{chunk-PZ5AY32C.js.map → register-NHG3TIRQ.js.map} +0 -0
@@ -50,6 +50,41 @@
50
50
  "when": 1792397455388,
51
51
  "tag": "0006_flat_psylocke",
52
52
  "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "6",
57
+ "when": 1792550522929,
58
+ "tag": "0007_native_search",
59
+ "breakpoints": true
60
+ },
61
+ {
62
+ "idx": 8,
63
+ "version": "6",
64
+ "when": 1792609199341,
65
+ "tag": "0008_event_correlation",
66
+ "breakpoints": true
67
+ },
68
+ {
69
+ "idx": 9,
70
+ "version": "6",
71
+ "when": 1792617492050,
72
+ "tag": "0009_settings",
73
+ "breakpoints": true
74
+ },
75
+ {
76
+ "idx": 10,
77
+ "version": "6",
78
+ "when": 1792645027561,
79
+ "tag": "0010_catch_up_index",
80
+ "breakpoints": true
81
+ },
82
+ {
83
+ "idx": 11,
84
+ "version": "6",
85
+ "when": 1792659499370,
86
+ "tag": "0011_audit_entries",
87
+ "breakpoints": true
53
88
  }
54
89
  ]
55
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nymbalhq/platform",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Nymbal CQRS kernel (command store, document store, event bus)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,31 +25,38 @@
25
25
  "./schema": {
26
26
  "types": "./dist/db/schema/index.d.ts",
27
27
  "import": "./dist/db/schema/index.js"
28
- }
28
+ },
29
+ "./recipes/*": "./recipes/*"
29
30
  },
30
31
  "files": [
31
32
  "dist",
32
33
  "drizzle.config.sqlite.ts",
33
34
  "drizzle.config.postgres.ts",
34
- "migrations"
35
+ "migrations",
36
+ "recipes"
35
37
  ],
36
38
  "dependencies": {
39
+ "@nymbalhq/config": "1.2.0",
40
+ "@nymbalhq/types": "1.2.0",
37
41
  "bcryptjs": "^2.4.3",
38
- "better-sqlite3": "^11.3.0",
42
+ "better-sqlite3": "^12.11.1",
39
43
  "drizzle-orm": "^0.36.0",
40
44
  "jose": "^5.9.6",
41
45
  "pg": "^8.13.1",
42
46
  "pino": "^9.5.0",
43
47
  "pino-pretty": "^11.3.0",
44
48
  "uuid": "^10.0.0",
45
- "zod": "^3.23.8",
46
- "@nymbalhq/config": "1.0.0",
47
- "@nymbalhq/types": "1.0.0"
49
+ "zod": "^3.23.8"
48
50
  },
49
51
  "peerDependencies": {
50
- "@nymbalhq/adapter-anthropic": "^1.0.0",
51
- "@nymbalhq/adapter-smtp": "^1.0.0",
52
- "@nymbalhq/adapter-stripe": "^1.0.0"
52
+ "@nymbalhq/adapter-anthropic": "^1.2.0",
53
+ "@nymbalhq/adapter-smtp": "^1.2.0",
54
+ "@nymbalhq/adapter-stripe": "^1.2.0",
55
+ "@nymbalhq/doc-store-postgres-jsonb": "^1.2.0",
56
+ "@nymbalhq/doc-store-redis": "^1.2.0",
57
+ "@nymbalhq/event-bus-redis-streams": "^1.2.0",
58
+ "@nymbalhq/media-s3": "^1.2.0",
59
+ "@nymbalhq/security-cloudflare": "^1.2.0"
53
60
  },
54
61
  "peerDependenciesMeta": {
55
62
  "@nymbalhq/adapter-anthropic": {
@@ -60,26 +67,47 @@
60
67
  },
61
68
  "@nymbalhq/adapter-stripe": {
62
69
  "optional": true
70
+ },
71
+ "@nymbalhq/doc-store-postgres-jsonb": {
72
+ "optional": true
73
+ },
74
+ "@nymbalhq/doc-store-redis": {
75
+ "optional": true
76
+ },
77
+ "@nymbalhq/event-bus-redis-streams": {
78
+ "optional": true
79
+ },
80
+ "@nymbalhq/media-s3": {
81
+ "optional": true
82
+ },
83
+ "@nymbalhq/security-cloudflare": {
84
+ "optional": true
63
85
  }
64
86
  },
65
87
  "devDependencies": {
88
+ "@nymbalhq/adapter-anthropic": "1.2.0",
89
+ "@nymbalhq/adapter-smtp": "1.2.0",
90
+ "@nymbalhq/adapter-stripe": "1.2.0",
91
+ "@nymbalhq/doc-store-postgres-jsonb": "1.2.0",
92
+ "@nymbalhq/doc-store-redis": "1.2.0",
93
+ "@nymbalhq/event-bus-redis-streams": "1.2.0",
94
+ "@nymbalhq/media-s3": "1.2.0",
95
+ "@nymbalhq/security-cloudflare": "1.2.0",
66
96
  "@types/bcryptjs": "^2.4.6",
67
97
  "@types/better-sqlite3": "^7.6.11",
68
98
  "@types/pg": "^8.11.10",
69
99
  "@types/uuid": "^10.0.0",
100
+ "@typescript/native": "npm:typescript@^7.0.2",
70
101
  "drizzle-kit": "^0.28.0",
71
102
  "stripe": "^17.4.0",
72
- "tsup": "^8.3.5",
73
- "typescript": "^5.6.3",
74
- "vitest": "^3.0.0",
75
- "@nymbalhq/adapter-anthropic": "1.0.0",
76
- "@nymbalhq/adapter-smtp": "1.0.0",
77
- "@nymbalhq/adapter-stripe": "1.0.0"
103
+ "tsup": "^9.0.0",
104
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
105
+ "vitest": "^3.0.0"
78
106
  },
79
107
  "scripts": {
80
108
  "build": "tsup",
81
109
  "dev": "tsup --watch",
82
- "typecheck": "tsc -p tsconfig.json --noEmit",
110
+ "typecheck": "tsc -p tsconfig.json --noEmit --rootDir ../..",
83
111
  "db:generate:sqlite": "drizzle-kit generate --config=drizzle.config.sqlite.ts",
84
112
  "db:generate:postgres": "drizzle-kit generate --config=drizzle.config.postgres.ts",
85
113
  "db:migrate:sqlite": "drizzle-kit migrate --config=drizzle.config.sqlite.ts",
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "postgres",
3
+ "summary": "Keep commands and events in Postgres instead of the local SQLite file.",
4
+ "install": [],
5
+ "set": [{ "path": "infrastructure.commandStore", "value": "postgres" }],
6
+ "env": [
7
+ {
8
+ "name": "DATABASE_URL",
9
+ "example": "postgres://user:pass@localhost:5432/nymbal",
10
+ "required": true,
11
+ "comment": "The Postgres database the command store connects to"
12
+ }
13
+ ],
14
+ "next": [
15
+ "Run nymbal migrate to create the tables in that database, then nymbal seed for the demo content."
16
+ ]
17
+ }