@powerhousedao/switchboard 2.2.122-dev.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 (39) hide show
  1. package/.dockerignore +5 -0
  2. package/CHANGELOG.md +346 -0
  3. package/Dockerfile +50 -0
  4. package/LICENSE +661 -0
  5. package/dist/src/clients/redis.d.ts +5 -0
  6. package/dist/src/clients/redis.d.ts.map +1 -0
  7. package/dist/src/clients/redis.js +41 -0
  8. package/dist/src/clients/redis.js.map +1 -0
  9. package/dist/src/index.d.ts +3 -0
  10. package/dist/src/index.d.ts.map +1 -0
  11. package/dist/src/index.js +84 -0
  12. package/dist/src/index.js.map +1 -0
  13. package/dist/src/install-packages.d.ts +2 -0
  14. package/dist/src/install-packages.d.ts.map +1 -0
  15. package/dist/src/install-packages.js +9 -0
  16. package/dist/src/install-packages.js.map +1 -0
  17. package/dist/src/profiler.d.ts +4 -0
  18. package/dist/src/profiler.d.ts.map +1 -0
  19. package/dist/src/profiler.js +17 -0
  20. package/dist/src/profiler.js.map +1 -0
  21. package/dist/src/utils/gen-doc-model-type-defs.d.ts +3 -0
  22. package/dist/src/utils/gen-doc-model-type-defs.d.ts.map +1 -0
  23. package/dist/src/utils/gen-doc-model-type-defs.js +55 -0
  24. package/dist/src/utils/gen-doc-model-type-defs.js.map +1 -0
  25. package/dist/src/utils/package-manager.d.ts +33 -0
  26. package/dist/src/utils/package-manager.d.ts.map +1 -0
  27. package/dist/src/utils/package-manager.js +145 -0
  28. package/dist/src/utils/package-manager.js.map +1 -0
  29. package/package.json +48 -0
  30. package/powerhouse.config.json +16 -0
  31. package/prisma/schema.prisma +94 -0
  32. package/scripts/install-packages.sh +14 -0
  33. package/src/clients/redis.ts +51 -0
  34. package/src/index.ts +99 -0
  35. package/src/install-packages.ts +8 -0
  36. package/src/profiler.ts +25 -0
  37. package/src/utils/gen-doc-model-type-defs.ts +65 -0
  38. package/src/utils/package-manager.ts +204 -0
  39. package/tsconfig.json +8 -0
package/.dockerignore ADDED
@@ -0,0 +1,5 @@
1
+ node_modules
2
+ .next
3
+ .env
4
+ dist
5
+ dev.db
package/CHANGELOG.md ADDED
@@ -0,0 +1,346 @@
1
+ ## 2.2.0 (2025-03-19)
2
+
3
+ ### 🚀 Features
4
+
5
+ - added switchboard to release app ([b3aac8851](https://github.com/powerhouse-inc/powerhouse/commit/b3aac8851))
6
+ - **codegen:** update templates to use file extensions ([28b1686a2](https://github.com/powerhouse-inc/powerhouse/commit/28b1686a2))
7
+ - **switchboard:** added sentry ([f1f0c13db](https://github.com/powerhouse-inc/powerhouse/commit/f1f0c13db))
8
+ - **monorepo:** remove migrations ([0c698b39e](https://github.com/powerhouse-inc/powerhouse/commit/0c698b39e))
9
+ - **design-system:** fix storybook type errors ([75cd9dd54](https://github.com/powerhouse-inc/powerhouse/commit/75cd9dd54))
10
+ - **monorepo:** regenerate lockfile ([10b40ad05](https://github.com/powerhouse-inc/powerhouse/commit/10b40ad05))
11
+ - **connect:** remove accidentally added dep ([5f6ba2e41](https://github.com/powerhouse-inc/powerhouse/commit/5f6ba2e41))
12
+ - **design-system:** simplify icons and remove dynamic loader ([1db377567](https://github.com/powerhouse-inc/powerhouse/commit/1db377567))
13
+ - ignore .cursor ([ae05844d2](https://github.com/powerhouse-inc/powerhouse/commit/ae05844d2))
14
+ - **switchboard:** dockerfile with workspace packages ([29eb440f2](https://github.com/powerhouse-inc/powerhouse/commit/29eb440f2))
15
+ - return fetch documents ([#1270](https://github.com/powerhouse-inc/powerhouse/pull/1270))
16
+ - include addDocument in driveContext ([#1269](https://github.com/powerhouse-inc/powerhouse/pull/1269))
17
+ - **builder-tools:** add editors css link in studio plugin ([ca0edbdd1](https://github.com/powerhouse-inc/powerhouse/commit/ca0edbdd1))
18
+ - **connect:** support setting PH_PACKAGES when building ([6ba01dd11](https://github.com/powerhouse-inc/powerhouse/commit/6ba01dd11))
19
+ - **monorepo:** fix merge conflicts ([b58117b74](https://github.com/powerhouse-inc/powerhouse/commit/b58117b74))
20
+ - **design-system:** add allow default project for vitest config ([36197d08e](https://github.com/powerhouse-inc/powerhouse/commit/36197d08e))
21
+ - **ph-cli:** add .ph dir to lint ignore ([9fcdadffe](https://github.com/powerhouse-inc/powerhouse/commit/9fcdadffe))
22
+ - **design-system:** add setup tests ([08c490758](https://github.com/powerhouse-inc/powerhouse/commit/08c490758))
23
+ - **connect:** handle imports ([d22b08138](https://github.com/powerhouse-inc/powerhouse/commit/d22b08138))
24
+ - **switchboard:** load packages through env var ([62be0cf46](https://github.com/powerhouse-inc/powerhouse/commit/62be0cf46))
25
+ - **monorepo:** enable type import lint rule ([5fd802021](https://github.com/powerhouse-inc/powerhouse/commit/5fd802021))
26
+ - **design-system:** use design system styles from src instead of dist ([e866c3f6d](https://github.com/powerhouse-inc/powerhouse/commit/e866c3f6d))
27
+ - **switchboard-gui:** use tailwind v4 ([ee3d41757](https://github.com/powerhouse-inc/powerhouse/commit/ee3d41757))
28
+ - **connect:** atlas import route ([2021bc202](https://github.com/powerhouse-inc/powerhouse/commit/2021bc202))
29
+ - regenerate lockfile ([6c70fbfca](https://github.com/powerhouse-inc/powerhouse/commit/6c70fbfca))
30
+ - **monorepo:** regenerate lockfile ([258eefbd8](https://github.com/powerhouse-inc/powerhouse/commit/258eefbd8))
31
+ - **atlas:** add atlas subgraphs to switchboard ([777434d6a](https://github.com/powerhouse-inc/powerhouse/commit/777434d6a))
32
+ - **design-system:** update snapshots ([77b8c05c9](https://github.com/powerhouse-inc/powerhouse/commit/77b8c05c9))
33
+ - **common:** migrate to tailwind v4 ([50c39373a](https://github.com/powerhouse-inc/powerhouse/commit/50c39373a))
34
+ - **connect:** migrate to tailwind v4 ([8e749cc0d](https://github.com/powerhouse-inc/powerhouse/commit/8e749cc0d))
35
+ - **connect:** use css based design system theme ([edda94703](https://github.com/powerhouse-inc/powerhouse/commit/edda94703))
36
+ - **design-system:** use prettier tw plugin ([2de64bd7d](https://github.com/powerhouse-inc/powerhouse/commit/2de64bd7d))
37
+ - **design-system:** bump tailwind deps ([ca847fdf3](https://github.com/powerhouse-inc/powerhouse/commit/ca847fdf3))
38
+ - **design-system:** port preset to css vars ([b0c3b51d5](https://github.com/powerhouse-inc/powerhouse/commit/b0c3b51d5))
39
+ - **connect:** use import maps ([18a467df9](https://github.com/powerhouse-inc/powerhouse/commit/18a467df9))
40
+ - **connect:** support custom drives ([5803fdd76](https://github.com/powerhouse-inc/powerhouse/commit/5803fdd76))
41
+ - **ph-cli:** fix tsconfig ([2c55fb74a](https://github.com/powerhouse-inc/powerhouse/commit/2c55fb74a))
42
+ - **design-system:** remove use of expand collapse animation ([a12f7130c](https://github.com/powerhouse-inc/powerhouse/commit/a12f7130c))
43
+ - **monorepo:** unify linting and build ([542313e91](https://github.com/powerhouse-inc/powerhouse/commit/542313e91))
44
+ - **monorepo:** remove global dev deps ([ac51963c4](https://github.com/powerhouse-inc/powerhouse/commit/ac51963c4))
45
+ - **builder-tools:** add tailwind vite plugin and cli ([c65240a17](https://github.com/powerhouse-inc/powerhouse/commit/c65240a17))
46
+ - **scalars:** add the icons and install menu dropdown ([95ee538d8](https://github.com/powerhouse-inc/powerhouse/commit/95ee538d8))
47
+ - **common:** fix exports field ([139fa8fc5](https://github.com/powerhouse-inc/powerhouse/commit/139fa8fc5))
48
+ - **common:** use document drive document model from document drive ([131c6ce03](https://github.com/powerhouse-inc/powerhouse/commit/131c6ce03))
49
+ - **monorepo:** resolve type errors from merge ([2fac67372](https://github.com/powerhouse-inc/powerhouse/commit/2fac67372))
50
+ - **document-model:** add utils for simpler state and action inference ([752712b47](https://github.com/powerhouse-inc/powerhouse/commit/752712b47))
51
+ - **scalars:** validate DID format in AID field ([b6865b6fe](https://github.com/powerhouse-inc/powerhouse/commit/b6865b6fe))
52
+ - **connect:** load apps ([06632e3d3](https://github.com/powerhouse-inc/powerhouse/commit/06632e3d3))
53
+ - **connect:** initial support for drive editor container ([3cd390998](https://github.com/powerhouse-inc/powerhouse/commit/3cd390998))
54
+ - **monorepo:** update test exclude in eslint config ([fc95bade1](https://github.com/powerhouse-inc/powerhouse/commit/fc95bade1))
55
+ - **ph-cmd:** add references to ph cmd tsconfig ([50381e1e5](https://github.com/powerhouse-inc/powerhouse/commit/50381e1e5))
56
+ - **monorepo:** let acaldas try ([351cdc55d](https://github.com/powerhouse-inc/powerhouse/commit/351cdc55d))
57
+ - **monorepo:** fix top level type errors ([c2d935805](https://github.com/powerhouse-inc/powerhouse/commit/c2d935805))
58
+ - **monorepo:** include global check-types ([f4b042227](https://github.com/powerhouse-inc/powerhouse/commit/f4b042227))
59
+ - **builder-tools:** remove redundant deps ([fdf091df0](https://github.com/powerhouse-inc/powerhouse/commit/fdf091df0))
60
+ - **connect:** finish type rename ([865be799e](https://github.com/powerhouse-inc/powerhouse/commit/865be799e))
61
+ - **document-model-editor:** move editor to builder tooling ([c4616ffc4](https://github.com/powerhouse-inc/powerhouse/commit/c4616ffc4))
62
+ - **common:** improved drive story ([ec96a6b7e](https://github.com/powerhouse-inc/powerhouse/commit/ec96a6b7e))
63
+ - **common:** document drive generic layout ([e75180949](https://github.com/powerhouse-inc/powerhouse/commit/e75180949))
64
+ - **common:** initial commit ([f561b8c95](https://github.com/powerhouse-inc/powerhouse/commit/f561b8c95))
65
+ - **codegen:** handle codegen location ([4a9ba97d0](https://github.com/powerhouse-inc/powerhouse/commit/4a9ba97d0))
66
+ - **builder-tools:** move editor utils to builder tools ([d115e257d](https://github.com/powerhouse-inc/powerhouse/commit/d115e257d))
67
+ - **monorepo:** allow emit on error ([b29fafabd](https://github.com/powerhouse-inc/powerhouse/commit/b29fafabd))
68
+ - **document-model:** revert change utils file names ([cc2c18055](https://github.com/powerhouse-inc/powerhouse/commit/cc2c18055))
69
+ - **builder-tools:** move connect studio ([1a6011eaa](https://github.com/powerhouse-inc/powerhouse/commit/1a6011eaa))
70
+ - **reactor-api:** fix document drive importsx ([e65f4c6da](https://github.com/powerhouse-inc/powerhouse/commit/e65f4c6da))
71
+ - **document-model:** replace usages of Document ([0c3b5b818](https://github.com/powerhouse-inc/powerhouse/commit/0c3b5b818))
72
+ - **document-drive:** update document drive imports ([f76746d99](https://github.com/powerhouse-inc/powerhouse/commit/f76746d99))
73
+ - **scalars:** add the firts iteration of time-fiel component ([c3dc89afc](https://github.com/powerhouse-inc/powerhouse/commit/c3dc89afc))
74
+ - **codegen:** handle codegen path ([39b0aca84](https://github.com/powerhouse-inc/powerhouse/commit/39b0aca84))
75
+ - **document-model:** update generics ([211dfe954](https://github.com/powerhouse-inc/powerhouse/commit/211dfe954))
76
+ - **document-model:** simplify generics ([572eecd5c](https://github.com/powerhouse-inc/powerhouse/commit/572eecd5c))
77
+ - testing prettier config and extension ([f62bc03d1](https://github.com/powerhouse-inc/powerhouse/commit/f62bc03d1))
78
+ - adding initial benchmark for reactor import ([a34d51a6e](https://github.com/powerhouse-inc/powerhouse/commit/a34d51a6e))
79
+ - export id of external packages ([967f076b6](https://github.com/powerhouse-inc/powerhouse/commit/967f076b6))
80
+ - **connect:** support removing external packages ([a9b1d59cc](https://github.com/powerhouse-inc/powerhouse/commit/a9b1d59cc))
81
+ - **document-drive:** move drive document model to drive package ([d6bb69f07](https://github.com/powerhouse-inc/powerhouse/commit/d6bb69f07))
82
+ - **design-system:** add danger zone settings page ([572345bc9](https://github.com/powerhouse-inc/powerhouse/commit/572345bc9))
83
+ - **ph-cli:** added commands alias ([6fddb07ac](https://github.com/powerhouse-inc/powerhouse/commit/6fddb07ac))
84
+ - **connect:** improved loading of external packages ([7ea94ee5a](https://github.com/powerhouse-inc/powerhouse/commit/7ea94ee5a))
85
+ - **document-model-libs:** update config and deps ([bf250ef60](https://github.com/powerhouse-inc/powerhouse/commit/bf250ef60))
86
+ - **document-model:** rename types ([73bdc1f02](https://github.com/powerhouse-inc/powerhouse/commit/73bdc1f02))
87
+ - **scalars:** improve sidebar performance ([c7a038097](https://github.com/powerhouse-inc/powerhouse/commit/c7a038097))
88
+ - **ph-cli:** enable uninstall command ([#965](https://github.com/powerhouse-inc/powerhouse/pull/965))
89
+ - **monorepo:** add imports eslint plugin ([807602f67](https://github.com/powerhouse-inc/powerhouse/commit/807602f67))
90
+ - **monorepo:** bump deps ([7a898f66f](https://github.com/powerhouse-inc/powerhouse/commit/7a898f66f))
91
+ - **monorepo:** move ph-cmd to clis directory ([8182595c0](https://github.com/powerhouse-inc/powerhouse/commit/8182595c0))
92
+ - **monorepo:** move ph cli to clis directory ([5b677ebdc](https://github.com/powerhouse-inc/powerhouse/commit/5b677ebdc))
93
+ - **reactor-local:** load document models from installed packages ([3d434fd77](https://github.com/powerhouse-inc/powerhouse/commit/3d434fd77))
94
+ - **ph-cli:** use getConfig in connect command ([#917](https://github.com/powerhouse-inc/powerhouse/pull/917))
95
+ - **ph-cli:** trigger release ([6624a5612](https://github.com/powerhouse-inc/powerhouse/commit/6624a5612))
96
+ - push release ([642449fb1](https://github.com/powerhouse-inc/powerhouse/commit/642449fb1))
97
+ - **ph-cli:** added https support for connect ([a9335a4df](https://github.com/powerhouse-inc/powerhouse/commit/a9335a4df))
98
+ - **scalars:** preserve react directives ([b15888e76](https://github.com/powerhouse-inc/powerhouse/commit/b15888e76))
99
+ - **ph-cli:** update connect ver ([#901](https://github.com/powerhouse-inc/powerhouse/pull/901))
100
+ - **ph-cmd:** add scalars as dep ([#897](https://github.com/powerhouse-inc/powerhouse/pull/897))
101
+ - **ph-cli:** added pm2 process manager ([7866ce9d3](https://github.com/powerhouse-inc/powerhouse/commit/7866ce9d3))
102
+ - **ph-cli:** updated connect ver ([#886](https://github.com/powerhouse-inc/powerhouse/pull/886))
103
+ - update ph-cli connect ver ([#884](https://github.com/powerhouse-inc/powerhouse/pull/884))
104
+ - **ph-cli:** added configFile support ([#883](https://github.com/powerhouse-inc/powerhouse/pull/883))
105
+ - split ph-cmd ([#876](https://github.com/powerhouse-inc/powerhouse/pull/876))
106
+ - **ph-cli:** added connect command ([dd20da14c](https://github.com/powerhouse-inc/powerhouse/commit/dd20da14c))
107
+ - **design-system:** merge dspot into main ([bef482f9f](https://github.com/powerhouse-inc/powerhouse/commit/bef482f9f))
108
+ - merge main into dspot-branch ([#769](https://github.com/powerhouse-inc/powerhouse/pull/769))
109
+ - **react-reactor:** updated build config ([#759](https://github.com/powerhouse-inc/powerhouse/pull/759))
110
+ - removed document-model editor v1 ([#745](https://github.com/powerhouse-inc/powerhouse/pull/745))
111
+ - **scalars:** add support to include dependent areas ([b0b385d8f](https://github.com/powerhouse-inc/powerhouse/commit/b0b385d8f))
112
+ - **reactor-browser:** initial package setup ([ad637dcba](https://github.com/powerhouse-inc/powerhouse/commit/ad637dcba))
113
+ - **renown:** added initial renown sdk package ([2864fbc62](https://github.com/powerhouse-inc/powerhouse/commit/2864fbc62))
114
+ - updated nx version ([c9690c354](https://github.com/powerhouse-inc/powerhouse/commit/c9690c354))
115
+ - **document-model:** export generateId method ([71d945b28](https://github.com/powerhouse-inc/powerhouse/commit/71d945b28))
116
+ - **scalars:** generate nanoids by default in id fields ([445ff4bfe](https://github.com/powerhouse-inc/powerhouse/commit/445ff4bfe))
117
+ - **reactor-api:** Added support for processors ([#655](https://github.com/powerhouse-inc/powerhouse/pull/655))
118
+ - **design-system:** release dspot-scalars components ([881b89959](https://github.com/powerhouse-inc/powerhouse/commit/881b89959))
119
+ - **design-system:** update github actions ([b0d86f4cc](https://github.com/powerhouse-inc/powerhouse/commit/b0d86f4cc))
120
+ - **monorepo:** simplify check action ([a22745f4a](https://github.com/powerhouse-inc/powerhouse/commit/a22745f4a))
121
+ - **monorepo:** simplify parallel task execution ([0ed8df13a](https://github.com/powerhouse-inc/powerhouse/commit/0ed8df13a))
122
+ - **monorepo:** handle merge conflicts ([bfa6f0a00](https://github.com/powerhouse-inc/powerhouse/commit/bfa6f0a00))
123
+ - **monorepo:** handle project references ([3b6c046f2](https://github.com/powerhouse-inc/powerhouse/commit/3b6c046f2))
124
+ - **scalars:** add CountryCodeField with configs, tests & base stories ([503b2408e](https://github.com/powerhouse-inc/powerhouse/commit/503b2408e))
125
+ - merge dspot-scalars into main ([5ca898fc1](https://github.com/powerhouse-inc/powerhouse/commit/5ca898fc1))
126
+ - **document-model-libs:** move tailwind config to workspace root ([74b9869af](https://github.com/powerhouse-inc/powerhouse/commit/74b9869af))
127
+ - **document-model-libs:** remove wrong peer deps ([5fd7ef670](https://github.com/powerhouse-inc/powerhouse/commit/5fd7ef670))
128
+ - use unified deps ([38c759a97](https://github.com/powerhouse-inc/powerhouse/commit/38c759a97))
129
+ - **monorepo:** fix export declarations ([589087793](https://github.com/powerhouse-inc/powerhouse/commit/589087793))
130
+ - **scalars:** improve protocols and url field ([6a965cf63](https://github.com/powerhouse-inc/powerhouse/commit/6a965cf63))
131
+ - **design-system:** bump storybook deps ([f21d9539c](https://github.com/powerhouse-inc/powerhouse/commit/f21d9539c))
132
+ - **monorepo:** remove eslint args ([4677e3438](https://github.com/powerhouse-inc/powerhouse/commit/4677e3438))
133
+ - **monorepo:** readd vite for reactor local ([24a9e56bb](https://github.com/powerhouse-inc/powerhouse/commit/24a9e56bb))
134
+ - **monorepo:** add linting for switchboard gui ([dc56c561b](https://github.com/powerhouse-inc/powerhouse/commit/dc56c561b))
135
+ - **monorepo:** gitignore tsbuildinfo files ([d676a703f](https://github.com/powerhouse-inc/powerhouse/commit/d676a703f))
136
+ - **monorepo:** unify typescript and linting ([24b9a2058](https://github.com/powerhouse-inc/powerhouse/commit/24b9a2058))
137
+ - **scalars:** add last styles to SelectField, improve fragments & refactor ([9f03f0052](https://github.com/powerhouse-inc/powerhouse/commit/9f03f0052))
138
+ - **monorepo:** do not skip nx cache ([dfadd9702](https://github.com/powerhouse-inc/powerhouse/commit/dfadd9702))
139
+ - **monorepo:** uncomment test ([dbd423508](https://github.com/powerhouse-inc/powerhouse/commit/dbd423508))
140
+ - **monorepo:** readd special check pr for document drive ([f1b9f7fe1](https://github.com/powerhouse-inc/powerhouse/commit/f1b9f7fe1))
141
+ - **monorepo:** use explicit paths ([ce5deb4c4](https://github.com/powerhouse-inc/powerhouse/commit/ce5deb4c4))
142
+ - **monorepo:** remove set dir as safe ([e80336452](https://github.com/powerhouse-inc/powerhouse/commit/e80336452))
143
+ - **monorepo:** handle document drive separately ([a94d4c263](https://github.com/powerhouse-inc/powerhouse/commit/a94d4c263))
144
+ - **monorepo:** add debug info ([ee1b7cab9](https://github.com/powerhouse-inc/powerhouse/commit/ee1b7cab9))
145
+ - **monorepo:** add read permissions ([ee6397d2c](https://github.com/powerhouse-inc/powerhouse/commit/ee6397d2c))
146
+ - **monorepo:** use set shas lib ([769e74a67](https://github.com/powerhouse-inc/powerhouse/commit/769e74a67))
147
+ - **monorepo:** add base ([22a5fffdd](https://github.com/powerhouse-inc/powerhouse/commit/22a5fffdd))
148
+ - **monorepo:** simplify commands ([75000bb41](https://github.com/powerhouse-inc/powerhouse/commit/75000bb41))
149
+ - **monorepo:** fix yaml syntax error ([5c82fcecc](https://github.com/powerhouse-inc/powerhouse/commit/5c82fcecc))
150
+ - **monorepo:** use workflow dispatch ([d1b4bde9f](https://github.com/powerhouse-inc/powerhouse/commit/d1b4bde9f))
151
+ - **monorepo:** still run on pushes ([869986286](https://github.com/powerhouse-inc/powerhouse/commit/869986286))
152
+ - **monorepo:** add if statements to prevent redundant runs ([193c5df5b](https://github.com/powerhouse-inc/powerhouse/commit/193c5df5b))
153
+ - **monorepo:** prevent duplicate runs ([1ce210b98](https://github.com/powerhouse-inc/powerhouse/commit/1ce210b98))
154
+ - **monorepo:** remove package manager config ([f177433bc](https://github.com/powerhouse-inc/powerhouse/commit/f177433bc))
155
+ - **monorepo:** install pnpm before doing node cache ([ab1cc5a6e](https://github.com/powerhouse-inc/powerhouse/commit/ab1cc5a6e))
156
+ - **monorepo:** simplify pr checks ([40d0cb59f](https://github.com/powerhouse-inc/powerhouse/commit/40d0cb59f))
157
+ - **monorepo:** update release package manual ([405b68774](https://github.com/powerhouse-inc/powerhouse/commit/405b68774))
158
+ - **monorepo:** use workspace protocol in package deps ([2584e9dd0](https://github.com/powerhouse-inc/powerhouse/commit/2584e9dd0))
159
+ - **monorepo:** add preserve local dependency protocols to nx config ([b19023115](https://github.com/powerhouse-inc/powerhouse/commit/b19023115))
160
+ - **powerhouse:** regenerate lockfile ([#588](https://github.com/powerhouse-inc/powerhouse/pull/588))
161
+ - **reactor-local:** added automatic loading and activation of proces… ([#574](https://github.com/powerhouse-inc/powerhouse/pull/574))
162
+ - **scalars:** add strings styles ([58f38f9af](https://github.com/powerhouse-inc/powerhouse/commit/58f38f9af))
163
+ - **document-model-libs:** regenerate lockfile ([04f0b0e61](https://github.com/powerhouse-inc/powerhouse/commit/04f0b0e61))
164
+ - **monorepo:** fix eslint config for react files ([019fa584d](https://github.com/powerhouse-inc/powerhouse/commit/019fa584d))
165
+ - **monorepo:** regenerate lockfile ([869134c51](https://github.com/powerhouse-inc/powerhouse/commit/869134c51))
166
+ - **codegen:** generate actions exceptions ([#499](https://github.com/powerhouse-inc/powerhouse/pull/499))
167
+ - **document-model-libs:** remove unused deps ([f102bd867](https://github.com/powerhouse-inc/powerhouse/commit/f102bd867))
168
+ - **document-model-libs:** move error handling to linter ([4eed29d6a](https://github.com/powerhouse-inc/powerhouse/commit/4eed29d6a))
169
+ - **document-model-libs:** leverage codemirror linting ([a5dca60af](https://github.com/powerhouse-inc/powerhouse/commit/a5dca60af))
170
+ - **scalars:** add EnumField with configs & tests ([313868530](https://github.com/powerhouse-inc/powerhouse/commit/313868530))
171
+ - **document-model-libs:** update name in type ([3fa1bd416](https://github.com/powerhouse-inc/powerhouse/commit/3fa1bd416))
172
+ - **design-system:** extract entry time label to component ([032be787e](https://github.com/powerhouse-inc/powerhouse/commit/032be787e))
173
+ - **design-system:** use intl format for datetime inputs ([d51f80999](https://github.com/powerhouse-inc/powerhouse/commit/d51f80999))
174
+ - **reactor-api, reactor-local:** support local document models on local reactor ([a9a2d27ff](https://github.com/powerhouse-inc/powerhouse/commit/a9a2d27ff))
175
+ - **scalars:** add single/multi select fields with all props & base styles ([e38ef0552](https://github.com/powerhouse-inc/powerhouse/commit/e38ef0552))
176
+ - **ph-cli,reactor-local:** integrate local reactor into ph-cli ([92f2f5300](https://github.com/powerhouse-inc/powerhouse/commit/92f2f5300))
177
+ - **codegen:** regenerate lockfile ([31c2d0c56](https://github.com/powerhouse-inc/powerhouse/commit/31c2d0c56))
178
+ - **scalars, design-system:** added EthereumAddress and AmountTokens scalars ([e5124e193](https://github.com/powerhouse-inc/powerhouse/commit/e5124e193))
179
+ - **ph-cli:** update cli to format by default ([7418e777f](https://github.com/powerhouse-inc/powerhouse/commit/7418e777f))
180
+ - **codegen:** use prettier api to format typescript from gql ([8896d86e3](https://github.com/powerhouse-inc/powerhouse/commit/8896d86e3))
181
+ - **document-model-libs:** regenerate lockfile ([0effee2ec](https://github.com/powerhouse-inc/powerhouse/commit/0effee2ec))
182
+ - qa updates 4 ([50ac4eb5c](https://github.com/powerhouse-inc/powerhouse/commit/50ac4eb5c))
183
+ - **document-model-libs:** add more inputs ([37db4561a](https://github.com/powerhouse-inc/powerhouse/commit/37db4561a))
184
+ - **document-model-libs:** regenerate lockfile ([cf76e91d0](https://github.com/powerhouse-inc/powerhouse/commit/cf76e91d0))
185
+ - **document-model-libs:** address initial QA feedback ([7513155e3](https://github.com/powerhouse-inc/powerhouse/commit/7513155e3))
186
+ - **codegen:** changed bundle to esm ([24b33b509](https://github.com/powerhouse-inc/powerhouse/commit/24b33b509))
187
+ - **switchboard-gui:** updated gitignore ([1fd60a3bd](https://github.com/powerhouse-inc/powerhouse/commit/1fd60a3bd))
188
+ - **scalars:** add tooltip ([e3635ed40](https://github.com/powerhouse-inc/powerhouse/commit/e3635ed40))
189
+ - **scalars:** added exports for codegen ([#434](https://github.com/powerhouse-inc/powerhouse/pull/434))
190
+ - **scalars:** boolean fields scafolding ([217683dec](https://github.com/powerhouse-inc/powerhouse/commit/217683dec))
191
+
192
+ ### 🩹 Fixes
193
+
194
+ - **reactor-local:** support commonjs code on local subgraphs ([c49914e2b](https://github.com/powerhouse-inc/powerhouse/commit/c49914e2b))
195
+ - **stoybook:** removed package.json check on packages ([4a2f88c39](https://github.com/powerhouse-inc/powerhouse/commit/4a2f88c39))
196
+ - **document-drive:** typescript should be a dev dependency of document-drive ([b5ddc8275](https://github.com/powerhouse-inc/powerhouse/commit/b5ddc8275))
197
+ - **reactor-api:** add ethers as peer dependency ([069767f8d](https://github.com/powerhouse-inc/powerhouse/commit/069767f8d))
198
+ - increase max header length in commit lint ([90a28de7f](https://github.com/powerhouse-inc/powerhouse/commit/90a28de7f))
199
+ - **document-drive:** do not export prisma factory on index ([a32ef36aa](https://github.com/powerhouse-inc/powerhouse/commit/a32ef36aa))
200
+ - **ph-cli:** lazy import each command action ([b18c12175](https://github.com/powerhouse-inc/powerhouse/commit/b18c12175))
201
+ - regenerate pnpm-lock file ([d208e7105](https://github.com/powerhouse-inc/powerhouse/commit/d208e7105))
202
+ - **connect,builder-tools:** fix studio imports ([9f3628e7b](https://github.com/powerhouse-inc/powerhouse/commit/9f3628e7b))
203
+ - **document-drive:** no password for redis testing ([1519c3d5b](https://github.com/powerhouse-inc/powerhouse/commit/1519c3d5b))
204
+ - **document-drive:** re-enabling redis queue tests, fixing them, making them non-optional ([532e06038](https://github.com/powerhouse-inc/powerhouse/commit/532e06038))
205
+ - **switchboard:** heroku deployment missing sky ph dep ([d47dc3f84](https://github.com/powerhouse-inc/powerhouse/commit/d47dc3f84))
206
+ - **switchboard:** small optimizations on build and runtime ([63ef21b8a](https://github.com/powerhouse-inc/powerhouse/commit/63ef21b8a))
207
+ - **switchboard:** global ph-cmd install in dockerfile ([3d79fdd5f](https://github.com/powerhouse-inc/powerhouse/commit/3d79fdd5f))
208
+ - **switchboard:** linting issues ([dd3bf5e02](https://github.com/powerhouse-inc/powerhouse/commit/dd3bf5e02))
209
+ - **switchboard:** linting issues ([b5cf4c5b4](https://github.com/powerhouse-inc/powerhouse/commit/b5cf4c5b4))
210
+ - **ph-cmd:** build with tsc ([269653618](https://github.com/powerhouse-inc/powerhouse/commit/269653618))
211
+ - **ph-cli:** cleanup dependencies ([c1fb1b630](https://github.com/powerhouse-inc/powerhouse/commit/c1fb1b630))
212
+ - **switchboard:** updated sky-ph dependency ([39ddbfdfe](https://github.com/powerhouse-inc/powerhouse/commit/39ddbfdfe))
213
+ - **connect:** fixed importmap generation ([cffcb97be](https://github.com/powerhouse-inc/powerhouse/commit/cffcb97be))
214
+ - **switchboard:** added outdated deployment ([339d7b8ed](https://github.com/powerhouse-inc/powerhouse/commit/339d7b8ed))
215
+ - remove tsc build from postinstall ([4a4df5b65](https://github.com/powerhouse-inc/powerhouse/commit/4a4df5b65))
216
+ - **common:** fixed missing useDocumentState hooks in storybook ([0af73b9a0](https://github.com/powerhouse-inc/powerhouse/commit/0af73b9a0))
217
+ - **codegen,document-drive,reactor-api:** fix ph generate command for GraphQL mutations ([2aa75720a](https://github.com/powerhouse-inc/powerhouse/commit/2aa75720a))
218
+ - **document-drive:** copy prisma schema to dist folder ([5c7f7635f](https://github.com/powerhouse-inc/powerhouse/commit/5c7f7635f))
219
+ - **document-drive:** run prisma generate before build ([17ce09135](https://github.com/powerhouse-inc/powerhouse/commit/17ce09135))
220
+ - keep consistent zod version across projects ([97cdadab3](https://github.com/powerhouse-inc/powerhouse/commit/97cdadab3))
221
+ - **codegen,document-model,document-drive:** updated codegen templates ([5e41b78f2](https://github.com/powerhouse-inc/powerhouse/commit/5e41b78f2))
222
+ - **document-drive:** fixing some more compiler errors ([345be42aa](https://github.com/powerhouse-inc/powerhouse/commit/345be42aa))
223
+ - **switchboard:** name mistake ([8e284b3d9](https://github.com/powerhouse-inc/powerhouse/commit/8e284b3d9))
224
+ - **switchboard:** copy paste mistake ([76eb0b1c7](https://github.com/powerhouse-inc/powerhouse/commit/76eb0b1c7))
225
+ - **switchboard:** use tsc instead up tsup and vite node ([de2e7104b](https://github.com/powerhouse-inc/powerhouse/commit/de2e7104b))
226
+ - **document-drive:** fixing some document-helpers tests by fixing imports ([a41ef5f8a](https://github.com/powerhouse-inc/powerhouse/commit/a41ef5f8a))
227
+ - adding vitest as dev dependency ([8c9cac846](https://github.com/powerhouse-inc/powerhouse/commit/8c9cac846))
228
+ - **reactor-api:** added missing dependency ([e5c5c9813](https://github.com/powerhouse-inc/powerhouse/commit/e5c5c9813))
229
+ - **builder-tools:** added missing dependencies ([540b7913b](https://github.com/powerhouse-inc/powerhouse/commit/540b7913b))
230
+ - **connect:** fix bundling ([78dbf0e46](https://github.com/powerhouse-inc/powerhouse/commit/78dbf0e46))
231
+ - **document-model:** revert document model module changes ([87dae96d3](https://github.com/powerhouse-inc/powerhouse/commit/87dae96d3))
232
+ - **connect:** fix ph connect ([a640ce866](https://github.com/powerhouse-inc/powerhouse/commit/a640ce866))
233
+ - **scalars:** improve showErrorOnBlur behavior & callback functions mocks ([283d97318](https://github.com/powerhouse-inc/powerhouse/commit/283d97318))
234
+ - **connect:** fixed ph connect ([c30b530ec](https://github.com/powerhouse-inc/powerhouse/commit/c30b530ec))
235
+ - **connect:** connect bundling fixes ([a56c4e625](https://github.com/powerhouse-inc/powerhouse/commit/a56c4e625))
236
+ - **document-drive:** added bench to package.json but removed from github workflow ([8114c807e](https://github.com/powerhouse-inc/powerhouse/commit/8114c807e))
237
+ - **document-drive:** many broken constructors ([7274c34d4](https://github.com/powerhouse-inc/powerhouse/commit/7274c34d4))
238
+ - **document-drive:** ci should run benchmarks too ([e087b9080](https://github.com/powerhouse-inc/powerhouse/commit/e087b9080))
239
+ - revert nx build dependencies ([3e8de1639](https://github.com/powerhouse-inc/powerhouse/commit/3e8de1639))
240
+ - adding labels and specifying ubuntu version ([7ee6ccfc5](https://github.com/powerhouse-inc/powerhouse/commit/7ee6ccfc5))
241
+ - full revert of this workflow ([f3813d650](https://github.com/powerhouse-inc/powerhouse/commit/f3813d650))
242
+ - re-adding setup node action ([f3d5e201f](https://github.com/powerhouse-inc/powerhouse/commit/f3d5e201f))
243
+ - try moving NX command lower ([ab965457e](https://github.com/powerhouse-inc/powerhouse/commit/ab965457e))
244
+ - nx cycle ([19b7a2961](https://github.com/powerhouse-inc/powerhouse/commit/19b7a2961))
245
+ - apparently github does not tell you when they don't support a label ([39de6f1e3](https://github.com/powerhouse-inc/powerhouse/commit/39de6f1e3))
246
+ - both github workflows that affect document-drive should use the same versions ([3c15a16b2](https://github.com/powerhouse-inc/powerhouse/commit/3c15a16b2))
247
+ - project.json caused an nx cycle, so just check types before building ([875da7d8b](https://github.com/powerhouse-inc/powerhouse/commit/875da7d8b))
248
+ - **ph-cli:** review comments ([2536bb71d](https://github.com/powerhouse-inc/powerhouse/commit/2536bb71d))
249
+ - **connect:** set / as default base path ([4992a62d2](https://github.com/powerhouse-inc/powerhouse/commit/4992a62d2))
250
+ - **connect:** use base path on build ([c62574c99](https://github.com/powerhouse-inc/powerhouse/commit/c62574c99))
251
+ - **reactor-api:** use pascal case for document model schema prefix ([835da67dd](https://github.com/powerhouse-inc/powerhouse/commit/835da67dd))
252
+ - **reactor-api:** type error ([df877b9e8](https://github.com/powerhouse-inc/powerhouse/commit/df877b9e8))
253
+ - **scalars:** update pnpm and commit the .yaml ([6152f6419](https://github.com/powerhouse-inc/powerhouse/commit/6152f6419))
254
+ - **scalars:** try to generate the lock.ymal ([49a69907f](https://github.com/powerhouse-inc/powerhouse/commit/49a69907f))
255
+ - **scalars:** generate the .yaml ([34d8fffdd](https://github.com/powerhouse-inc/powerhouse/commit/34d8fffdd))
256
+ - **scalars:** solving conflict with .yaml file ([3a83b86bc](https://github.com/powerhouse-inc/powerhouse/commit/3a83b86bc))
257
+ - **connect:** docker build ([3b6791178](https://github.com/powerhouse-inc/powerhouse/commit/3b6791178))
258
+ - **scalars:** add the .yaml ([33eecd8c5](https://github.com/powerhouse-inc/powerhouse/commit/33eecd8c5))
259
+ - update docker publish action ([956236a14](https://github.com/powerhouse-inc/powerhouse/commit/956236a14))
260
+ - **connect:** setup npm release ([650f0888d](https://github.com/powerhouse-inc/powerhouse/commit/650f0888d))
261
+ - **connect:** lint ([4ada26501](https://github.com/powerhouse-inc/powerhouse/commit/4ada26501))
262
+ - **connect:** updated dependencies ([de2057222](https://github.com/powerhouse-inc/powerhouse/commit/de2057222))
263
+ - **ph-cmd:** inject ph-cmd version in build time ([#934](https://github.com/powerhouse-inc/powerhouse/pull/934))
264
+ - **ph-cmd:** read version from package.json ([#920](https://github.com/powerhouse-inc/powerhouse/pull/920))
265
+ - **ph-cli:** update connect dep ([#919](https://github.com/powerhouse-inc/powerhouse/pull/919))
266
+ - **codegen:** readded config dependency ([289bdaf41](https://github.com/powerhouse-inc/powerhouse/commit/289bdaf41))
267
+ - **codegen:** fixed create-lib build ([d5523d1e3](https://github.com/powerhouse-inc/powerhouse/commit/d5523d1e3))
268
+ - **codegen:** added prettier dependency ([b104d473e](https://github.com/powerhouse-inc/powerhouse/commit/b104d473e))
269
+ - **reactor-api:** update graphql dependency ([ed0634024](https://github.com/powerhouse-inc/powerhouse/commit/ed0634024))
270
+ - **switchboard:** subgraph manager and db instantiation ([874bdc4b0](https://github.com/powerhouse-inc/powerhouse/commit/874bdc4b0))
271
+ - **monorepo:** remove nx cloud id ([2b7280677](https://github.com/powerhouse-inc/powerhouse/commit/2b7280677))
272
+ - **monorepo:** remove nx cloud id ([45da8784a](https://github.com/powerhouse-inc/powerhouse/commit/45da8784a))
273
+ - **config:** added build ([aaeb785fc](https://github.com/powerhouse-inc/powerhouse/commit/aaeb785fc))
274
+ - **scalars:** update pnpm-lock.yaml ([787f09621](https://github.com/powerhouse-inc/powerhouse/commit/787f09621))
275
+ - **switchboard-gui:** restore prev vite version ([#614](https://github.com/powerhouse-inc/powerhouse/pull/614))
276
+ - **design-system:** added missing deps after rebase ([04f003239](https://github.com/powerhouse-inc/powerhouse/commit/04f003239))
277
+ - **switchboard-gui:** restore prev vite version ([57273e5db](https://github.com/powerhouse-inc/powerhouse/commit/57273e5db))
278
+ - **scalars:** update pnpm-lock.yaml ([d0ace5e5e](https://github.com/powerhouse-inc/powerhouse/commit/d0ace5e5e))
279
+ - **scalars:** fix snapshot tests after conflict resolution ([0fbe8a20d](https://github.com/powerhouse-inc/powerhouse/commit/0fbe8a20d))
280
+ - **design-system:** fix scalars import ([#506](https://github.com/powerhouse-inc/powerhouse/pull/506))
281
+ - **reactor-api:** remove dependency on switchboard ([5afaf7250](https://github.com/powerhouse-inc/powerhouse/commit/5afaf7250))
282
+ - **ph-cli:** bundle cli as esm package and added missing dependencies ([a5a665efd](https://github.com/powerhouse-inc/powerhouse/commit/a5a665efd))
283
+ - **codegen:** fixed bad import ([eefb7b2f0](https://github.com/powerhouse-inc/powerhouse/commit/eefb7b2f0))
284
+ - bad package reference was breaking build -- also a readme update ([4121e51b4](https://github.com/powerhouse-inc/powerhouse/commit/4121e51b4))
285
+ - **switchboard:** startup ([#469](https://github.com/powerhouse-inc/powerhouse/pull/469))
286
+ - **scalars:** code improvements in Radio and Radio Group components ([bd05bd495](https://github.com/powerhouse-inc/powerhouse/commit/bd05bd495))
287
+ - **scalars:** missing dependency ([ef058160e](https://github.com/powerhouse-inc/powerhouse/commit/ef058160e))
288
+
289
+ ### ❤️ Thank You
290
+
291
+ - acaldas @acaldas
292
+ - alejandrocabriales
293
+ - Benjamin Jordan
294
+ - Frank @froid1911
295
+ - frankp.eth @froid1911
296
+ - Guillermo Puente @gpuente
297
+ - Guillermo Puente Sandoval @gpuente
298
+ - nestor
299
+ - Ryan Wolhuter @ryanwolhuter
300
+ - ryanwolhuter @ryanwolhuter
301
+ - Wouter Kampmann
302
+ - Yasiel Cabrera @YasielCabrera
303
+
304
+ ## 2.1.1 (2024-10-29)
305
+
306
+ ### 🧱 Updated Dependencies
307
+
308
+ - Updated @powerhousedao/switchboard-gui to 0.3.0
309
+
310
+ ## 2.1.0 (2024-10-29)
311
+
312
+ ### 🚀 Features
313
+
314
+ - **reactor-api:** init project ([#388](https://github.com/powerhouse-inc/powerhouse/pull/388))
315
+
316
+ ### ❤️ Thank You
317
+
318
+ - acaldas
319
+
320
+ ## 2.0.2 (2024-10-29)
321
+
322
+ ### 🚀 Features
323
+
324
+ - **reactor-api:** init project ([#388](https://github.com/powerhouse-inc/powerhouse/pull/388))
325
+
326
+ ### 🧱 Updated Dependencies
327
+
328
+ - Updated @powerhousedao/reactor-api to 1.1.0
329
+
330
+ ### ❤️ Thank You
331
+
332
+ - acaldas
333
+
334
+ ## 2.0.1 (2024-10-29)
335
+
336
+ ### 🚀 Features
337
+
338
+ - **reactor-api:** init project ([#388](https://github.com/powerhouse-inc/powerhouse/pull/388))
339
+
340
+ ### 🧱 Updated Dependencies
341
+
342
+ - Updated @powerhousedao/general-document-indexer to 1.1.0
343
+
344
+ ### ❤️ Thank You
345
+
346
+ - acaldas
package/Dockerfile ADDED
@@ -0,0 +1,50 @@
1
+ # FROM node:22-alpine AS build
2
+
3
+ # WORKDIR /app
4
+ # RUN [ ! -e /lib/libssl.so.3 ] && ln -s /usr/lib/libssl.so.3 /lib/libssl.so.3 || echo "Link already exists"
5
+ # RUN npm install --global pnpm@9
6
+ # COPY . .
7
+ # RUN pnpm install
8
+ # RUN pnpm run build
9
+ # ENV API_ORIGIN=http://localhost:3000
10
+ # ENV JWT_SECRET="secret"
11
+ # ENV PORT=4001
12
+ # ENV ADMIN_USERS="0x123,0x456"
13
+ # ENV DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
14
+ # ENV REDIS_URL=redis://localhost:6379
15
+ # ENV REDIS_TLS_URL=rediss://localhost:6379
16
+ # ARG PH_PACKAGES
17
+ # ENV PH_PACKAGES=${PH_PACKAGES}
18
+ # RUN node dist/src/install-packages.js
19
+ # CMD pnpx prisma generate && pnpm start
20
+
21
+ FROM node:22-alpine AS build
22
+ RUN apk update && apk add git
23
+ WORKDIR /app
24
+ RUN [ ! -e /lib/libssl.so.3 ] && ln -s /usr/lib/libssl.so.3 /lib/libssl.so.3 || echo "Link already exists"
25
+ RUN npm install --global pnpm@9 husky
26
+ COPY . .
27
+ ARG PH_PACKAGES
28
+ ENV PH_PACKAGES=${PH_PACKAGES}
29
+ ARG NX_SOCKET_DIR="/tmp/nx"
30
+ ENV NX_SOCKET_DIR=${NX_SOCKET_DIR}
31
+ ENV NX_DAEMON=false
32
+ RUN pnpm install --filter @powerhousedao/switchboard...
33
+ RUN pnpm nx run @powerhousedao/switchboard:build
34
+ RUN pnpm --filter "@powerhousedao/switchboard" deploy --prod pruned
35
+ RUN rm -rf pruned/node_modules/.pnpm/@prisma+client@5.17.0_prisma@5.17.0 && cp -R ./node_modules/.pnpm/@prisma+client@5.17.0_prisma@5.17.0 pruned/node_modules/.pnpm
36
+
37
+ # Final production image
38
+ FROM node:22-alpine AS runner
39
+
40
+ WORKDIR /app
41
+ COPY --from=build /app/pruned/dist dist
42
+ COPY --from=build /app/pruned/node_modules node_modules
43
+ COPY --from=build /app/pruned/package.json package.json
44
+ COPY --from=build /app/pruned/powerhouse.config.json powerhouse.config.json
45
+ # COPY --from=build /app/package.json package.json
46
+ RUN [ ! -e /lib/libssl.so.3 ] && ln -s /usr/lib/libssl.so.3 /lib/libssl.so.3 || echo "Link already exists"
47
+ ENV DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
48
+ ARG PH_PACKAGES
49
+ ENV PH_PACKAGES=${PH_PACKAGES}
50
+ CMD node dist/src/index.js