plotlink-ows 1.0.33 → 1.2.95

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 (152) hide show
  1. package/README.md +4 -0
  2. package/app/lib/active-wallet.ts +260 -0
  3. package/app/lib/agent-command.ts +85 -0
  4. package/app/lib/agent-readiness.ts +133 -0
  5. package/app/lib/apply-schema.ts +55 -0
  6. package/app/lib/bubble-text.ts +160 -0
  7. package/app/lib/cartoon-coach.ts +198 -0
  8. package/app/lib/cartoon-markdown.ts +83 -0
  9. package/app/lib/cartoon-prompt.ts +122 -0
  10. package/app/lib/cartoon-readiness.ts +813 -0
  11. package/app/lib/clean-image-sync.ts +245 -0
  12. package/app/lib/codex-images.ts +152 -0
  13. package/app/lib/cut-asset-diagnostics.ts +120 -0
  14. package/app/lib/cuts.ts +302 -0
  15. package/app/lib/fonts.ts +109 -0
  16. package/app/lib/generate-claude-md.ts +8 -1
  17. package/app/lib/generate-story-instructions.ts +731 -0
  18. package/app/lib/image-asset-validate.ts +123 -0
  19. package/app/lib/lettering-status.ts +133 -0
  20. package/app/lib/overlays.ts +637 -0
  21. package/app/lib/paths.ts +10 -0
  22. package/app/lib/public-title.ts +65 -0
  23. package/app/lib/publish.ts +16 -2
  24. package/app/lib/story-progress.ts +242 -0
  25. package/app/lib/terminal-protocol.ts +16 -0
  26. package/app/lib/terminal-redact.ts +50 -0
  27. package/app/prisma/schema.sql +25 -0
  28. package/app/routes/agent.ts +42 -0
  29. package/app/routes/codex-images.ts +67 -0
  30. package/app/routes/dashboard.ts +6 -4
  31. package/app/routes/publish.ts +259 -45
  32. package/app/routes/settings.ts +92 -37
  33. package/app/routes/stories.ts +961 -5
  34. package/app/routes/terminal.ts +383 -31
  35. package/app/routes/wallet.ts +58 -30
  36. package/app/server.ts +47 -12
  37. package/app/vite.config.ts +6 -0
  38. package/app/web/components/CartoonNextAction.tsx +145 -0
  39. package/app/web/components/CartoonPreview.tsx +267 -0
  40. package/app/web/components/CartoonPublishPage.tsx +407 -0
  41. package/app/web/components/CartoonPublishPreview.tsx +121 -0
  42. package/app/web/components/CartoonStepGuide.tsx +90 -0
  43. package/app/web/components/CartoonWorkflowNav.tsx +68 -0
  44. package/app/web/components/CodexImportPicker.tsx +230 -0
  45. package/app/web/components/CutListPanel.tsx +1337 -0
  46. package/app/web/components/Dashboard.tsx +15 -6
  47. package/app/web/components/EpisodesPage.tsx +80 -0
  48. package/app/web/components/FinishEpisodePanel.tsx +151 -0
  49. package/app/web/components/Layout.tsx +7 -4
  50. package/app/web/components/LetteringEditor.tsx +1182 -0
  51. package/app/web/components/PreviewPanel.tsx +952 -78
  52. package/app/web/components/Settings.tsx +63 -0
  53. package/app/web/components/StoriesPage.tsx +745 -33
  54. package/app/web/components/StoryBrowser.tsx +22 -14
  55. package/app/web/components/StoryInfoPage.tsx +266 -0
  56. package/app/web/components/StoryProgressPanel.tsx +446 -0
  57. package/app/web/components/TerminalPanel.tsx +233 -11
  58. package/app/web/components/WalletCard.tsx +110 -8
  59. package/app/web/components/WorkflowCoach.tsx +156 -0
  60. package/app/web/components/asset-image.tsx +114 -0
  61. package/app/web/components/asset-test-utils.ts +44 -0
  62. package/app/web/components/export-cut.ts +320 -0
  63. package/app/web/dist/assets/export-cut-che5mMWc.js +1 -0
  64. package/app/web/dist/assets/index-CcfChGEK.css +32 -0
  65. package/app/web/dist/assets/index-Dc2TQ3Ij.js +143 -0
  66. package/app/web/dist/index.html +2 -2
  67. package/app/web/lib/cartoon-publish-summary.ts +43 -0
  68. package/app/web/lib/codex-import.ts +94 -0
  69. package/app/web/lib/image-compress.ts +53 -0
  70. package/app/web/lib/import-image.ts +58 -0
  71. package/app/web/lib/publish-helpers.ts +385 -0
  72. package/app/web/lib/upload-retry.ts +130 -0
  73. package/app/web/lib/verify-public-title.ts +105 -0
  74. package/app/web/styles.css +9 -0
  75. package/bin/plotlink-ows.js +53 -16
  76. package/bin/startup-plan.cjs +58 -0
  77. package/lib/genres.ts +92 -0
  78. package/package.json +60 -20
  79. package/scripts/gen-schema-sql.mjs +49 -0
  80. package/scripts/package-hygiene.mjs +116 -0
  81. package/scripts/preflight.mjs +173 -0
  82. package/scripts/start-smoke.mjs +128 -0
  83. package/app/node_modules/.prisma/local-client/client.d.ts +0 -1
  84. package/app/node_modules/.prisma/local-client/client.js +0 -5
  85. package/app/node_modules/.prisma/local-client/default.d.ts +0 -1
  86. package/app/node_modules/.prisma/local-client/default.js +0 -5
  87. package/app/node_modules/.prisma/local-client/edge.d.ts +0 -1
  88. package/app/node_modules/.prisma/local-client/edge.js +0 -184
  89. package/app/node_modules/.prisma/local-client/index-browser.js +0 -173
  90. package/app/node_modules/.prisma/local-client/index.d.ts +0 -3304
  91. package/app/node_modules/.prisma/local-client/index.js +0 -207
  92. package/app/node_modules/.prisma/local-client/libquery_engine-darwin-arm64.dylib.node +0 -0
  93. package/app/node_modules/.prisma/local-client/package.json +0 -183
  94. package/app/node_modules/.prisma/local-client/query_engine_bg.js +0 -2
  95. package/app/node_modules/.prisma/local-client/query_engine_bg.wasm +0 -0
  96. package/app/node_modules/.prisma/local-client/runtime/edge-esm.js +0 -35
  97. package/app/node_modules/.prisma/local-client/runtime/edge.js +0 -35
  98. package/app/node_modules/.prisma/local-client/runtime/index-browser.d.ts +0 -370
  99. package/app/node_modules/.prisma/local-client/runtime/index-browser.js +0 -17
  100. package/app/node_modules/.prisma/local-client/runtime/library.d.ts +0 -3982
  101. package/app/node_modules/.prisma/local-client/runtime/library.js +0 -147
  102. package/app/node_modules/.prisma/local-client/runtime/react-native.js +0 -84
  103. package/app/node_modules/.prisma/local-client/runtime/wasm-compiler-edge.js +0 -85
  104. package/app/node_modules/.prisma/local-client/runtime/wasm-engine-edge.js +0 -38
  105. package/app/node_modules/.prisma/local-client/schema.prisma +0 -21
  106. package/app/node_modules/.prisma/local-client/wasm-edge-light-loader.mjs +0 -5
  107. package/app/node_modules/.prisma/local-client/wasm-worker-loader.mjs +0 -5
  108. package/app/node_modules/.prisma/local-client/wasm.d.ts +0 -1
  109. package/app/node_modules/.prisma/local-client/wasm.js +0 -191
  110. package/app/web/dist/assets/index-B-2Ft7Yv.css +0 -32
  111. package/app/web/dist/assets/index-DxATSk7X.js +0 -134
  112. package/packages/cli/node_modules/commander/LICENSE +0 -22
  113. package/packages/cli/node_modules/commander/Readme.md +0 -1149
  114. package/packages/cli/node_modules/commander/esm.mjs +0 -16
  115. package/packages/cli/node_modules/commander/index.js +0 -24
  116. package/packages/cli/node_modules/commander/lib/argument.js +0 -149
  117. package/packages/cli/node_modules/commander/lib/command.js +0 -2662
  118. package/packages/cli/node_modules/commander/lib/error.js +0 -39
  119. package/packages/cli/node_modules/commander/lib/help.js +0 -709
  120. package/packages/cli/node_modules/commander/lib/option.js +0 -367
  121. package/packages/cli/node_modules/commander/lib/suggestSimilar.js +0 -101
  122. package/packages/cli/node_modules/commander/package-support.json +0 -16
  123. package/packages/cli/node_modules/commander/package.json +0 -82
  124. package/packages/cli/node_modules/commander/typings/esm.d.mts +0 -3
  125. package/packages/cli/node_modules/commander/typings/index.d.ts +0 -1045
  126. package/packages/cli/node_modules/resolve-from/index.d.ts +0 -31
  127. package/packages/cli/node_modules/resolve-from/index.js +0 -47
  128. package/packages/cli/node_modules/resolve-from/license +0 -9
  129. package/packages/cli/node_modules/resolve-from/package.json +0 -36
  130. package/packages/cli/node_modules/resolve-from/readme.md +0 -72
  131. package/packages/cli/node_modules/tsup/LICENSE +0 -21
  132. package/packages/cli/node_modules/tsup/README.md +0 -75
  133. package/packages/cli/node_modules/tsup/assets/cjs_shims.js +0 -13
  134. package/packages/cli/node_modules/tsup/assets/esm_shims.js +0 -9
  135. package/packages/cli/node_modules/tsup/assets/package.json +0 -3
  136. package/packages/cli/node_modules/tsup/dist/chunk-DI5BO6XE.js +0 -153
  137. package/packages/cli/node_modules/tsup/dist/chunk-JZ25TPTY.js +0 -42
  138. package/packages/cli/node_modules/tsup/dist/chunk-PEEXUWMS.js +0 -6
  139. package/packages/cli/node_modules/tsup/dist/chunk-TWFEYLU4.js +0 -352
  140. package/packages/cli/node_modules/tsup/dist/chunk-VGC3FXLU.js +0 -203
  141. package/packages/cli/node_modules/tsup/dist/cli-default.js +0 -12
  142. package/packages/cli/node_modules/tsup/dist/cli-main.js +0 -8
  143. package/packages/cli/node_modules/tsup/dist/cli-node.js +0 -14
  144. package/packages/cli/node_modules/tsup/dist/index.d.ts +0 -511
  145. package/packages/cli/node_modules/tsup/dist/index.js +0 -1711
  146. package/packages/cli/node_modules/tsup/dist/rollup.js +0 -6949
  147. package/packages/cli/node_modules/tsup/package.json +0 -99
  148. package/packages/cli/node_modules/tsup/schema.json +0 -362
  149. package/public/screenshot-1.png +0 -0
  150. package/public/screenshot-2.png +0 -0
  151. package/public/screenshot-3.png +0 -0
  152. package/scripts/e2e-verify.ts +0 -1100
@@ -1,184 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
-
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
-
8
- const {
9
- PrismaClientKnownRequestError,
10
- PrismaClientUnknownRequestError,
11
- PrismaClientRustPanicError,
12
- PrismaClientInitializationError,
13
- PrismaClientValidationError,
14
- getPrismaClient,
15
- sqltag,
16
- empty,
17
- join,
18
- raw,
19
- skip,
20
- Decimal,
21
- Debug,
22
- objectEnumValues,
23
- makeStrictEnum,
24
- Extensions,
25
- warnOnce,
26
- defineDmmfProperty,
27
- Public,
28
- getRuntime,
29
- createParam,
30
- } = require('./runtime/edge.js')
31
-
32
-
33
- const Prisma = {}
34
-
35
- exports.Prisma = Prisma
36
- exports.$Enums = {}
37
-
38
- /**
39
- * Prisma Client JS version: 6.19.3
40
- * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
41
- */
42
- Prisma.prismaVersion = {
43
- client: "6.19.3",
44
- engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7"
45
- }
46
-
47
- Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
48
- Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
49
- Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
50
- Prisma.PrismaClientInitializationError = PrismaClientInitializationError
51
- Prisma.PrismaClientValidationError = PrismaClientValidationError
52
- Prisma.Decimal = Decimal
53
-
54
- /**
55
- * Re-export of sql-template-tag
56
- */
57
- Prisma.sql = sqltag
58
- Prisma.empty = empty
59
- Prisma.join = join
60
- Prisma.raw = raw
61
- Prisma.validator = Public.validator
62
-
63
- /**
64
- * Extensions
65
- */
66
- Prisma.getExtensionContext = Extensions.getExtensionContext
67
- Prisma.defineExtension = Extensions.defineExtension
68
-
69
- /**
70
- * Shorthand utilities for JSON filtering
71
- */
72
- Prisma.DbNull = objectEnumValues.instances.DbNull
73
- Prisma.JsonNull = objectEnumValues.instances.JsonNull
74
- Prisma.AnyNull = objectEnumValues.instances.AnyNull
75
-
76
- Prisma.NullTypes = {
77
- DbNull: objectEnumValues.classes.DbNull,
78
- JsonNull: objectEnumValues.classes.JsonNull,
79
- AnyNull: objectEnumValues.classes.AnyNull
80
- }
81
-
82
-
83
-
84
-
85
-
86
- /**
87
- * Enums
88
- */
89
- exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
90
- Serializable: 'Serializable'
91
- });
92
-
93
- exports.Prisma.SessionScalarFieldEnum = {
94
- id: 'id',
95
- token: 'token',
96
- createdAt: 'createdAt',
97
- expiresAt: 'expiresAt'
98
- };
99
-
100
- exports.Prisma.SettingScalarFieldEnum = {
101
- key: 'key',
102
- value: 'value'
103
- };
104
-
105
- exports.Prisma.SortOrder = {
106
- asc: 'asc',
107
- desc: 'desc'
108
- };
109
-
110
-
111
- exports.Prisma.ModelName = {
112
- Session: 'Session',
113
- Setting: 'Setting'
114
- };
115
- /**
116
- * Create the Client
117
- */
118
- const config = {
119
- "generator": {
120
- "name": "client",
121
- "provider": {
122
- "fromEnvVar": null,
123
- "value": "prisma-client-js"
124
- },
125
- "output": {
126
- "value": "/Users/cho/Projects/plotlink-ows/app/node_modules/.prisma/local-client",
127
- "fromEnvVar": null
128
- },
129
- "config": {
130
- "engineType": "library"
131
- },
132
- "binaryTargets": [
133
- {
134
- "fromEnvVar": null,
135
- "value": "darwin-arm64",
136
- "native": true
137
- }
138
- ],
139
- "previewFeatures": [],
140
- "sourceFilePath": "/Users/cho/Projects/plotlink-ows/app/prisma/schema.prisma",
141
- "isCustomOutput": true
142
- },
143
- "relativeEnvPaths": {
144
- "rootEnvPath": null
145
- },
146
- "relativePath": "../../../prisma",
147
- "clientVersion": "6.19.3",
148
- "engineVersion": "c2990dca591cba766e3b7ef5d9e8a84796e47ab7",
149
- "datasourceNames": [
150
- "db"
151
- ],
152
- "activeProvider": "sqlite",
153
- "postinstall": false,
154
- "inlineDatasources": {
155
- "db": {
156
- "url": {
157
- "fromEnvVar": null,
158
- "value": "file:../../data/local.db"
159
- }
160
- }
161
- },
162
- "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../node_modules/.prisma/local-client\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = \"file:../../data/local.db\"\n}\n\nmodel Session {\n id String @id @default(cuid())\n token String @unique\n createdAt DateTime @default(now())\n expiresAt DateTime\n}\n\nmodel Setting {\n key String @id\n value String\n}\n",
163
- "inlineSchemaHash": "e31b194b10534203be1d4e09555579ffc3126c3700c5558a06db395e2bdfcdd9",
164
- "copyEngine": true
165
- }
166
- config.dirname = '/'
167
-
168
- config.runtimeDataModel = JSON.parse("{\"models\":{\"Session\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Setting\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
169
- defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
170
- config.engineWasm = undefined
171
- config.compilerWasm = undefined
172
-
173
- config.injectableEdgeEnv = () => ({
174
- parsed: {}
175
- })
176
-
177
- if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
178
- Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
179
- }
180
-
181
- const PrismaClient = getPrismaClient(config)
182
- exports.PrismaClient = PrismaClient
183
- Object.assign(exports, Prisma)
184
-
@@ -1,173 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
-
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
-
8
- const {
9
- Decimal,
10
- objectEnumValues,
11
- makeStrictEnum,
12
- Public,
13
- getRuntime,
14
- skip
15
- } = require('./runtime/index-browser.js')
16
-
17
-
18
- const Prisma = {}
19
-
20
- exports.Prisma = Prisma
21
- exports.$Enums = {}
22
-
23
- /**
24
- * Prisma Client JS version: 6.19.3
25
- * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
26
- */
27
- Prisma.prismaVersion = {
28
- client: "6.19.3",
29
- engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7"
30
- }
31
-
32
- Prisma.PrismaClientKnownRequestError = () => {
33
- const runtimeName = getRuntime().prettyName;
34
- throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
35
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
36
- )};
37
- Prisma.PrismaClientUnknownRequestError = () => {
38
- const runtimeName = getRuntime().prettyName;
39
- throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
40
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
41
- )}
42
- Prisma.PrismaClientRustPanicError = () => {
43
- const runtimeName = getRuntime().prettyName;
44
- throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
45
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
46
- )}
47
- Prisma.PrismaClientInitializationError = () => {
48
- const runtimeName = getRuntime().prettyName;
49
- throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
50
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
51
- )}
52
- Prisma.PrismaClientValidationError = () => {
53
- const runtimeName = getRuntime().prettyName;
54
- throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
55
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
56
- )}
57
- Prisma.Decimal = Decimal
58
-
59
- /**
60
- * Re-export of sql-template-tag
61
- */
62
- Prisma.sql = () => {
63
- const runtimeName = getRuntime().prettyName;
64
- throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
65
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
66
- )}
67
- Prisma.empty = () => {
68
- const runtimeName = getRuntime().prettyName;
69
- throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
70
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
71
- )}
72
- Prisma.join = () => {
73
- const runtimeName = getRuntime().prettyName;
74
- throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
75
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
76
- )}
77
- Prisma.raw = () => {
78
- const runtimeName = getRuntime().prettyName;
79
- throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
80
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
81
- )}
82
- Prisma.validator = Public.validator
83
-
84
- /**
85
- * Extensions
86
- */
87
- Prisma.getExtensionContext = () => {
88
- const runtimeName = getRuntime().prettyName;
89
- throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
90
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
91
- )}
92
- Prisma.defineExtension = () => {
93
- const runtimeName = getRuntime().prettyName;
94
- throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
95
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
96
- )}
97
-
98
- /**
99
- * Shorthand utilities for JSON filtering
100
- */
101
- Prisma.DbNull = objectEnumValues.instances.DbNull
102
- Prisma.JsonNull = objectEnumValues.instances.JsonNull
103
- Prisma.AnyNull = objectEnumValues.instances.AnyNull
104
-
105
- Prisma.NullTypes = {
106
- DbNull: objectEnumValues.classes.DbNull,
107
- JsonNull: objectEnumValues.classes.JsonNull,
108
- AnyNull: objectEnumValues.classes.AnyNull
109
- }
110
-
111
-
112
-
113
- /**
114
- * Enums
115
- */
116
-
117
- exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
118
- Serializable: 'Serializable'
119
- });
120
-
121
- exports.Prisma.SessionScalarFieldEnum = {
122
- id: 'id',
123
- token: 'token',
124
- createdAt: 'createdAt',
125
- expiresAt: 'expiresAt'
126
- };
127
-
128
- exports.Prisma.SettingScalarFieldEnum = {
129
- key: 'key',
130
- value: 'value'
131
- };
132
-
133
- exports.Prisma.SortOrder = {
134
- asc: 'asc',
135
- desc: 'desc'
136
- };
137
-
138
-
139
- exports.Prisma.ModelName = {
140
- Session: 'Session',
141
- Setting: 'Setting'
142
- };
143
-
144
- /**
145
- * This is a stub Prisma Client that will error at runtime if called.
146
- */
147
- class PrismaClient {
148
- constructor() {
149
- return new Proxy(this, {
150
- get(target, prop) {
151
- let message
152
- const runtime = getRuntime()
153
- if (runtime.isEdge) {
154
- message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
155
- - Use Prisma Accelerate: https://pris.ly/d/accelerate
156
- - Use Driver Adapters: https://pris.ly/d/driver-adapters
157
- `;
158
- } else {
159
- message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
160
- }
161
-
162
- message += `
163
- If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
164
-
165
- throw new Error(message)
166
- }
167
- })
168
- }
169
- }
170
-
171
- exports.PrismaClient = PrismaClient
172
-
173
- Object.assign(exports, Prisma)