plotlink-ows 0.1.13

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 (142) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +151 -0
  3. package/app/db.ts +8 -0
  4. package/app/lib/llm-client.ts +265 -0
  5. package/app/lib/paths.ts +11 -0
  6. package/app/lib/publish.ts +204 -0
  7. package/app/lib/writer-prompt.ts +44 -0
  8. package/app/node_modules/.prisma/local-client/client.d.ts +1 -0
  9. package/app/node_modules/.prisma/local-client/client.js +5 -0
  10. package/app/node_modules/.prisma/local-client/default.d.ts +1 -0
  11. package/app/node_modules/.prisma/local-client/default.js +5 -0
  12. package/app/node_modules/.prisma/local-client/edge.d.ts +1 -0
  13. package/app/node_modules/.prisma/local-client/edge.js +184 -0
  14. package/app/node_modules/.prisma/local-client/index-browser.js +173 -0
  15. package/app/node_modules/.prisma/local-client/index.d.ts +3304 -0
  16. package/app/node_modules/.prisma/local-client/index.js +207 -0
  17. package/app/node_modules/.prisma/local-client/libquery_engine-darwin-arm64.dylib.node +0 -0
  18. package/app/node_modules/.prisma/local-client/package.json +183 -0
  19. package/app/node_modules/.prisma/local-client/query_engine_bg.js +2 -0
  20. package/app/node_modules/.prisma/local-client/query_engine_bg.wasm +0 -0
  21. package/app/node_modules/.prisma/local-client/runtime/edge-esm.js +35 -0
  22. package/app/node_modules/.prisma/local-client/runtime/edge.js +35 -0
  23. package/app/node_modules/.prisma/local-client/runtime/index-browser.d.ts +370 -0
  24. package/app/node_modules/.prisma/local-client/runtime/index-browser.js +17 -0
  25. package/app/node_modules/.prisma/local-client/runtime/library.d.ts +3982 -0
  26. package/app/node_modules/.prisma/local-client/runtime/library.js +147 -0
  27. package/app/node_modules/.prisma/local-client/runtime/react-native.js +84 -0
  28. package/app/node_modules/.prisma/local-client/runtime/wasm-compiler-edge.js +85 -0
  29. package/app/node_modules/.prisma/local-client/runtime/wasm-engine-edge.js +38 -0
  30. package/app/node_modules/.prisma/local-client/schema.prisma +21 -0
  31. package/app/node_modules/.prisma/local-client/wasm-edge-light-loader.mjs +5 -0
  32. package/app/node_modules/.prisma/local-client/wasm-worker-loader.mjs +5 -0
  33. package/app/node_modules/.prisma/local-client/wasm.d.ts +1 -0
  34. package/app/node_modules/.prisma/local-client/wasm.js +191 -0
  35. package/app/prisma/schema.prisma +57 -0
  36. package/app/routes/auth.ts +173 -0
  37. package/app/routes/chat.ts +135 -0
  38. package/app/routes/config.ts +210 -0
  39. package/app/routes/dashboard.ts +186 -0
  40. package/app/routes/oauth.ts +150 -0
  41. package/app/routes/publish.ts +112 -0
  42. package/app/routes/wallet.ts +99 -0
  43. package/app/server.ts +154 -0
  44. package/app/vite.config.ts +19 -0
  45. package/app/web/App.tsx +102 -0
  46. package/app/web/components/Chat.tsx +272 -0
  47. package/app/web/components/Dashboard.tsx +222 -0
  48. package/app/web/components/LLMSetup.tsx +291 -0
  49. package/app/web/components/Layout.tsx +235 -0
  50. package/app/web/components/Login.tsx +62 -0
  51. package/app/web/components/Publish.tsx +245 -0
  52. package/app/web/components/Settings.tsx +175 -0
  53. package/app/web/components/Setup.tsx +84 -0
  54. package/app/web/components/WalletCard.tsx +117 -0
  55. package/app/web/dist/assets/index-C9kXlYO_.css +2 -0
  56. package/app/web/dist/assets/index-CJiiaLHs.js +9 -0
  57. package/app/web/dist/index.html +16 -0
  58. package/app/web/index.html +15 -0
  59. package/app/web/main.tsx +10 -0
  60. package/app/web/plotlink-logo.svg +5 -0
  61. package/app/web/styles.css +51 -0
  62. package/bin/plotlink-ows.js +394 -0
  63. package/lib/ows/index.ts +3 -0
  64. package/lib/ows/policy.ts +68 -0
  65. package/lib/ows/types.ts +14 -0
  66. package/lib/ows/wallet.ts +70 -0
  67. package/package.json +79 -0
  68. package/packages/cli/node_modules/commander/LICENSE +22 -0
  69. package/packages/cli/node_modules/commander/Readme.md +1149 -0
  70. package/packages/cli/node_modules/commander/esm.mjs +16 -0
  71. package/packages/cli/node_modules/commander/index.js +24 -0
  72. package/packages/cli/node_modules/commander/lib/argument.js +149 -0
  73. package/packages/cli/node_modules/commander/lib/command.js +2662 -0
  74. package/packages/cli/node_modules/commander/lib/error.js +39 -0
  75. package/packages/cli/node_modules/commander/lib/help.js +709 -0
  76. package/packages/cli/node_modules/commander/lib/option.js +367 -0
  77. package/packages/cli/node_modules/commander/lib/suggestSimilar.js +101 -0
  78. package/packages/cli/node_modules/commander/package-support.json +16 -0
  79. package/packages/cli/node_modules/commander/package.json +82 -0
  80. package/packages/cli/node_modules/commander/typings/esm.d.mts +3 -0
  81. package/packages/cli/node_modules/commander/typings/index.d.ts +1045 -0
  82. package/packages/cli/node_modules/resolve-from/index.d.ts +31 -0
  83. package/packages/cli/node_modules/resolve-from/index.js +47 -0
  84. package/packages/cli/node_modules/resolve-from/license +9 -0
  85. package/packages/cli/node_modules/resolve-from/package.json +36 -0
  86. package/packages/cli/node_modules/resolve-from/readme.md +72 -0
  87. package/packages/cli/node_modules/tsup/LICENSE +21 -0
  88. package/packages/cli/node_modules/tsup/README.md +75 -0
  89. package/packages/cli/node_modules/tsup/assets/cjs_shims.js +13 -0
  90. package/packages/cli/node_modules/tsup/assets/esm_shims.js +9 -0
  91. package/packages/cli/node_modules/tsup/assets/package.json +3 -0
  92. package/packages/cli/node_modules/tsup/dist/chunk-DI5BO6XE.js +153 -0
  93. package/packages/cli/node_modules/tsup/dist/chunk-JZ25TPTY.js +42 -0
  94. package/packages/cli/node_modules/tsup/dist/chunk-PEEXUWMS.js +6 -0
  95. package/packages/cli/node_modules/tsup/dist/chunk-TWFEYLU4.js +352 -0
  96. package/packages/cli/node_modules/tsup/dist/chunk-VGC3FXLU.js +203 -0
  97. package/packages/cli/node_modules/tsup/dist/cli-default.js +12 -0
  98. package/packages/cli/node_modules/tsup/dist/cli-main.js +8 -0
  99. package/packages/cli/node_modules/tsup/dist/cli-node.js +14 -0
  100. package/packages/cli/node_modules/tsup/dist/index.d.ts +511 -0
  101. package/packages/cli/node_modules/tsup/dist/index.js +1711 -0
  102. package/packages/cli/node_modules/tsup/dist/rollup.js +6949 -0
  103. package/packages/cli/node_modules/tsup/package.json +99 -0
  104. package/packages/cli/node_modules/tsup/schema.json +362 -0
  105. package/packages/cli/package.json +35 -0
  106. package/packages/cli/src/commands/agent-register.ts +77 -0
  107. package/packages/cli/src/commands/chain.ts +29 -0
  108. package/packages/cli/src/commands/claim.ts +70 -0
  109. package/packages/cli/src/commands/create.ts +34 -0
  110. package/packages/cli/src/commands/status.ts +201 -0
  111. package/packages/cli/src/config.ts +103 -0
  112. package/packages/cli/src/index.ts +21 -0
  113. package/packages/cli/src/sdk/abi.ts +222 -0
  114. package/packages/cli/src/sdk/client.ts +713 -0
  115. package/packages/cli/src/sdk/constants.ts +56 -0
  116. package/packages/cli/src/sdk/index.ts +46 -0
  117. package/packages/cli/src/sdk/ipfs.ts +88 -0
  118. package/packages/cli/src/sdk.ts +36 -0
  119. package/packages/cli/tsconfig.json +20 -0
  120. package/packages/cli/tsup.config.ts +14 -0
  121. package/public/.well-known/farcaster.json +38 -0
  122. package/public/basescan-icon.svg +4 -0
  123. package/public/embed-image.png +0 -0
  124. package/public/favicon.png +0 -0
  125. package/public/hunt-token.svg +11 -0
  126. package/public/icon-192.png +0 -0
  127. package/public/icon.png +0 -0
  128. package/public/manifest.json +26 -0
  129. package/public/mc-icon-light.svg +12 -0
  130. package/public/og-image.png +0 -0
  131. package/public/plotlink-logo-symbol.svg +5 -0
  132. package/public/plotlink-logo.svg +5 -0
  133. package/public/screenshot-1.png +0 -0
  134. package/public/screenshot-2.png +0 -0
  135. package/public/screenshot-3.png +0 -0
  136. package/public/splash.png +0 -0
  137. package/public/wide-banner.png +0 -0
  138. package/scripts/backfill-trade-prices.ts +97 -0
  139. package/scripts/backfill-usd-rates.ts +220 -0
  140. package/scripts/e2e-verify.ts +1100 -0
  141. package/scripts/ows-smoke-test.ts +37 -0
  142. package/scripts/score-users.mjs +203 -0
@@ -0,0 +1,44 @@
1
+ export const WRITER_SYSTEM_PROMPT = `You are PlotLink Writer, a collaborative fiction writing assistant.
2
+
3
+ ## Role
4
+ You help users brainstorm, outline, draft, and refine original fiction stories for the PlotLink platform.
5
+
6
+ ## Capabilities
7
+ - Brainstorm story ideas, themes, and premises
8
+ - Suggest titles, genres, and story structures
9
+ - Write chapters/plots with vivid prose, dialogue, and pacing
10
+ - Refine and edit drafts based on user feedback
11
+ - Maintain continuity across multiple plots in a storyline
12
+
13
+ ## Workflow
14
+ 1. **Discuss** — Talk with the user about their story idea
15
+ 2. **Outline** — Propose a story structure (title, genre, key beats)
16
+ 3. **Draft** — Write the story content
17
+ 4. **Refine** — Edit based on feedback
18
+ 5. **Finalize** — When the user is happy, present the final version
19
+
20
+ ## PlotLink Story Structure
21
+ - A **Storyline** is the overarching narrative (has a title, genre, and token)
22
+ - Each **Plot** is a chapter/episode in the storyline
23
+ - The first plot is the **Genesis** — it establishes the story
24
+ - Subsequent plots continue the narrative
25
+
26
+ ## Output Format
27
+ When presenting a finalized story, use this format:
28
+ \`\`\`
29
+ TITLE: [Story Title]
30
+ GENRE: [Genre]
31
+ ---
32
+ [Story content here]
33
+ \`\`\`
34
+
35
+ ## Available Genres
36
+ Action, Adventure, Comedy, Drama, Fantasy, Historical, Horror, Mystery, Romance, Sci-Fi, Thriller, Literary Fiction, Slice of Life
37
+
38
+ ## Guidelines
39
+ - Write engaging, original fiction with strong voice
40
+ - Use vivid sensory details and natural dialogue
41
+ - Keep plots between 500-2000 words for readability
42
+ - Be responsive to the user's creative direction
43
+ - Ask clarifying questions when the idea needs development
44
+ - When the user says "finalize" or "looks good", present the final version in the output format above`;
@@ -0,0 +1 @@
1
+ export * from "./index"
@@ -0,0 +1,5 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ module.exports = { ...require('.') }
@@ -0,0 +1 @@
1
+ export * from "./index"
@@ -0,0 +1,5 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ module.exports = { ...require('#main-entry-point') }
@@ -0,0 +1 @@
1
+ export * from "./default"
@@ -0,0 +1,184 @@
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
+
@@ -0,0 +1,173 @@
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)