plotlink-ows 1.0.33 → 1.2.94

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 (145) hide show
  1. package/README.md +4 -0
  2. package/app/lib/agent-command.ts +85 -0
  3. package/app/lib/agent-readiness.ts +133 -0
  4. package/app/lib/apply-schema.ts +55 -0
  5. package/app/lib/bubble-text.ts +160 -0
  6. package/app/lib/cartoon-coach.ts +198 -0
  7. package/app/lib/cartoon-markdown.ts +83 -0
  8. package/app/lib/cartoon-prompt.ts +122 -0
  9. package/app/lib/cartoon-readiness.ts +811 -0
  10. package/app/lib/clean-image-sync.ts +245 -0
  11. package/app/lib/codex-images.ts +152 -0
  12. package/app/lib/cut-asset-diagnostics.ts +120 -0
  13. package/app/lib/cuts.ts +302 -0
  14. package/app/lib/fonts.ts +109 -0
  15. package/app/lib/generate-claude-md.ts +8 -1
  16. package/app/lib/generate-story-instructions.ts +731 -0
  17. package/app/lib/image-asset-validate.ts +123 -0
  18. package/app/lib/lettering-status.ts +133 -0
  19. package/app/lib/overlays.ts +637 -0
  20. package/app/lib/paths.ts +10 -0
  21. package/app/lib/public-title.ts +65 -0
  22. package/app/lib/publish.ts +16 -2
  23. package/app/lib/story-progress.ts +243 -0
  24. package/app/lib/terminal-protocol.ts +16 -0
  25. package/app/lib/terminal-redact.ts +50 -0
  26. package/app/prisma/schema.sql +25 -0
  27. package/app/routes/agent.ts +42 -0
  28. package/app/routes/codex-images.ts +67 -0
  29. package/app/routes/publish.ts +203 -22
  30. package/app/routes/stories.ts +961 -5
  31. package/app/routes/terminal.ts +383 -31
  32. package/app/server.ts +47 -12
  33. package/app/vite.config.ts +6 -0
  34. package/app/web/components/CartoonPreview.tsx +267 -0
  35. package/app/web/components/CartoonPublishPage.tsx +407 -0
  36. package/app/web/components/CartoonPublishPreview.tsx +121 -0
  37. package/app/web/components/CartoonStepGuide.tsx +90 -0
  38. package/app/web/components/CartoonWorkflowNav.tsx +68 -0
  39. package/app/web/components/CodexImportPicker.tsx +230 -0
  40. package/app/web/components/CutListPanel.tsx +1299 -0
  41. package/app/web/components/EpisodesPage.tsx +80 -0
  42. package/app/web/components/FinishEpisodePanel.tsx +151 -0
  43. package/app/web/components/Layout.tsx +7 -4
  44. package/app/web/components/LetteringEditor.tsx +1141 -0
  45. package/app/web/components/PreviewPanel.tsx +951 -78
  46. package/app/web/components/Settings.tsx +63 -0
  47. package/app/web/components/StoriesPage.tsx +710 -33
  48. package/app/web/components/StoryBrowser.tsx +22 -14
  49. package/app/web/components/StoryInfoPage.tsx +266 -0
  50. package/app/web/components/StoryProgressPanel.tsx +516 -0
  51. package/app/web/components/TerminalPanel.tsx +233 -11
  52. package/app/web/components/WorkflowCoach.tsx +128 -0
  53. package/app/web/components/asset-image.tsx +114 -0
  54. package/app/web/components/asset-test-utils.ts +44 -0
  55. package/app/web/components/export-cut.ts +320 -0
  56. package/app/web/dist/assets/export-cut-nKQ_n2-J.js +1 -0
  57. package/app/web/dist/assets/index-BAZGwVwj.js +143 -0
  58. package/app/web/dist/assets/index-DoXH2OlP.css +32 -0
  59. package/app/web/dist/index.html +2 -2
  60. package/app/web/lib/cartoon-publish-summary.ts +43 -0
  61. package/app/web/lib/codex-import.ts +94 -0
  62. package/app/web/lib/image-compress.ts +53 -0
  63. package/app/web/lib/import-image.ts +58 -0
  64. package/app/web/lib/publish-helpers.ts +385 -0
  65. package/app/web/lib/upload-retry.ts +130 -0
  66. package/app/web/lib/verify-public-title.ts +105 -0
  67. package/app/web/styles.css +9 -0
  68. package/bin/plotlink-ows.js +53 -16
  69. package/bin/startup-plan.cjs +58 -0
  70. package/lib/genres.ts +92 -0
  71. package/package.json +60 -20
  72. package/scripts/gen-schema-sql.mjs +49 -0
  73. package/scripts/package-hygiene.mjs +116 -0
  74. package/scripts/preflight.mjs +173 -0
  75. package/scripts/start-smoke.mjs +128 -0
  76. package/app/node_modules/.prisma/local-client/client.d.ts +0 -1
  77. package/app/node_modules/.prisma/local-client/client.js +0 -5
  78. package/app/node_modules/.prisma/local-client/default.d.ts +0 -1
  79. package/app/node_modules/.prisma/local-client/default.js +0 -5
  80. package/app/node_modules/.prisma/local-client/edge.d.ts +0 -1
  81. package/app/node_modules/.prisma/local-client/edge.js +0 -184
  82. package/app/node_modules/.prisma/local-client/index-browser.js +0 -173
  83. package/app/node_modules/.prisma/local-client/index.d.ts +0 -3304
  84. package/app/node_modules/.prisma/local-client/index.js +0 -207
  85. package/app/node_modules/.prisma/local-client/libquery_engine-darwin-arm64.dylib.node +0 -0
  86. package/app/node_modules/.prisma/local-client/package.json +0 -183
  87. package/app/node_modules/.prisma/local-client/query_engine_bg.js +0 -2
  88. package/app/node_modules/.prisma/local-client/query_engine_bg.wasm +0 -0
  89. package/app/node_modules/.prisma/local-client/runtime/edge-esm.js +0 -35
  90. package/app/node_modules/.prisma/local-client/runtime/edge.js +0 -35
  91. package/app/node_modules/.prisma/local-client/runtime/index-browser.d.ts +0 -370
  92. package/app/node_modules/.prisma/local-client/runtime/index-browser.js +0 -17
  93. package/app/node_modules/.prisma/local-client/runtime/library.d.ts +0 -3982
  94. package/app/node_modules/.prisma/local-client/runtime/library.js +0 -147
  95. package/app/node_modules/.prisma/local-client/runtime/react-native.js +0 -84
  96. package/app/node_modules/.prisma/local-client/runtime/wasm-compiler-edge.js +0 -85
  97. package/app/node_modules/.prisma/local-client/runtime/wasm-engine-edge.js +0 -38
  98. package/app/node_modules/.prisma/local-client/schema.prisma +0 -21
  99. package/app/node_modules/.prisma/local-client/wasm-edge-light-loader.mjs +0 -5
  100. package/app/node_modules/.prisma/local-client/wasm-worker-loader.mjs +0 -5
  101. package/app/node_modules/.prisma/local-client/wasm.d.ts +0 -1
  102. package/app/node_modules/.prisma/local-client/wasm.js +0 -191
  103. package/app/web/dist/assets/index-B-2Ft7Yv.css +0 -32
  104. package/app/web/dist/assets/index-DxATSk7X.js +0 -134
  105. package/packages/cli/node_modules/commander/LICENSE +0 -22
  106. package/packages/cli/node_modules/commander/Readme.md +0 -1149
  107. package/packages/cli/node_modules/commander/esm.mjs +0 -16
  108. package/packages/cli/node_modules/commander/index.js +0 -24
  109. package/packages/cli/node_modules/commander/lib/argument.js +0 -149
  110. package/packages/cli/node_modules/commander/lib/command.js +0 -2662
  111. package/packages/cli/node_modules/commander/lib/error.js +0 -39
  112. package/packages/cli/node_modules/commander/lib/help.js +0 -709
  113. package/packages/cli/node_modules/commander/lib/option.js +0 -367
  114. package/packages/cli/node_modules/commander/lib/suggestSimilar.js +0 -101
  115. package/packages/cli/node_modules/commander/package-support.json +0 -16
  116. package/packages/cli/node_modules/commander/package.json +0 -82
  117. package/packages/cli/node_modules/commander/typings/esm.d.mts +0 -3
  118. package/packages/cli/node_modules/commander/typings/index.d.ts +0 -1045
  119. package/packages/cli/node_modules/resolve-from/index.d.ts +0 -31
  120. package/packages/cli/node_modules/resolve-from/index.js +0 -47
  121. package/packages/cli/node_modules/resolve-from/license +0 -9
  122. package/packages/cli/node_modules/resolve-from/package.json +0 -36
  123. package/packages/cli/node_modules/resolve-from/readme.md +0 -72
  124. package/packages/cli/node_modules/tsup/LICENSE +0 -21
  125. package/packages/cli/node_modules/tsup/README.md +0 -75
  126. package/packages/cli/node_modules/tsup/assets/cjs_shims.js +0 -13
  127. package/packages/cli/node_modules/tsup/assets/esm_shims.js +0 -9
  128. package/packages/cli/node_modules/tsup/assets/package.json +0 -3
  129. package/packages/cli/node_modules/tsup/dist/chunk-DI5BO6XE.js +0 -153
  130. package/packages/cli/node_modules/tsup/dist/chunk-JZ25TPTY.js +0 -42
  131. package/packages/cli/node_modules/tsup/dist/chunk-PEEXUWMS.js +0 -6
  132. package/packages/cli/node_modules/tsup/dist/chunk-TWFEYLU4.js +0 -352
  133. package/packages/cli/node_modules/tsup/dist/chunk-VGC3FXLU.js +0 -203
  134. package/packages/cli/node_modules/tsup/dist/cli-default.js +0 -12
  135. package/packages/cli/node_modules/tsup/dist/cli-main.js +0 -8
  136. package/packages/cli/node_modules/tsup/dist/cli-node.js +0 -14
  137. package/packages/cli/node_modules/tsup/dist/index.d.ts +0 -511
  138. package/packages/cli/node_modules/tsup/dist/index.js +0 -1711
  139. package/packages/cli/node_modules/tsup/dist/rollup.js +0 -6949
  140. package/packages/cli/node_modules/tsup/package.json +0 -99
  141. package/packages/cli/node_modules/tsup/schema.json +0 -362
  142. package/public/screenshot-1.png +0 -0
  143. package/public/screenshot-2.png +0 -0
  144. package/public/screenshot-3.png +0 -0
  145. package/scripts/e2e-verify.ts +0 -1100
@@ -1,99 +0,0 @@
1
- {
2
- "name": "tsup",
3
- "version": "8.5.1",
4
- "description": "Bundle your TypeScript library with no config, powered by esbuild",
5
- "license": "MIT",
6
- "homepage": "https://tsup.egoist.dev/",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/egoist/tsup.git"
10
- },
11
- "author": "EGOIST",
12
- "files": [
13
- "/assets",
14
- "/dist",
15
- "/schema.json"
16
- ],
17
- "main": "dist/index.js",
18
- "types": "dist/index.d.ts",
19
- "bin": {
20
- "tsup": "dist/cli-default.js",
21
- "tsup-node": "dist/cli-node.js"
22
- },
23
- "peerDependencies": {
24
- "@microsoft/api-extractor": "^7.36.0",
25
- "@swc/core": "^1",
26
- "postcss": "^8.4.12",
27
- "typescript": ">=4.5.0"
28
- },
29
- "peerDependenciesMeta": {
30
- "@microsoft/api-extractor": {
31
- "optional": true
32
- },
33
- "@swc/core": {
34
- "optional": true
35
- },
36
- "postcss": {
37
- "optional": true
38
- },
39
- "typescript": {
40
- "optional": true
41
- }
42
- },
43
- "dependencies": {
44
- "bundle-require": "^5.1.0",
45
- "cac": "^6.7.14",
46
- "chokidar": "^4.0.3",
47
- "consola": "^3.4.0",
48
- "debug": "^4.4.0",
49
- "esbuild": "^0.27.0",
50
- "fix-dts-default-cjs-exports": "^1.0.0",
51
- "joycon": "^3.1.1",
52
- "picocolors": "^1.1.1",
53
- "postcss-load-config": "^6.0.1",
54
- "resolve-from": "^5.0.0",
55
- "rollup": "^4.34.8",
56
- "source-map": "^0.7.6",
57
- "sucrase": "^3.35.0",
58
- "tinyexec": "^0.3.2",
59
- "tinyglobby": "^0.2.11",
60
- "tree-kill": "^1.2.2"
61
- },
62
- "devDependencies": {
63
- "@microsoft/api-extractor": "^7.50.0",
64
- "@rollup/plugin-json": "6.1.0",
65
- "@swc/core": "1.10.18",
66
- "@types/debug": "4.1.12",
67
- "@types/node": "22.13.4",
68
- "@types/resolve": "1.20.6",
69
- "bumpp": "^10.0.3",
70
- "flat": "6.0.1",
71
- "postcss": "8.5.2",
72
- "postcss-simple-vars": "7.0.1",
73
- "prettier": "3.5.1",
74
- "resolve": "1.22.10",
75
- "rollup-plugin-dts": "6.1.1",
76
- "sass": "1.85.0",
77
- "strip-json-comments": "5.0.1",
78
- "svelte": "5.19.9",
79
- "svelte-preprocess": "6.0.3",
80
- "terser": "^5.39.0",
81
- "ts-essentials": "10.0.4",
82
- "tsup": "8.3.6",
83
- "typescript": "5.7.3",
84
- "vitest": "3.0.6",
85
- "wait-for-expect": "3.0.2"
86
- },
87
- "engines": {
88
- "node": ">=18"
89
- },
90
- "scripts": {
91
- "dev": "pnpm run build-fast --watch",
92
- "build": "tsup src/cli-*.ts src/index.ts src/rollup.ts --clean --splitting",
93
- "test": "pnpm run build && pnpm run test-only",
94
- "format": "prettier --write .",
95
- "test-only": "vitest run",
96
- "build-fast": "pnpm run build --no-dts",
97
- "release": "bumpp"
98
- }
99
- }
@@ -1,362 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "tsup",
4
- "version": 1.1,
5
- "anyOf": [
6
- {
7
- "type": "object",
8
- "required": ["tsup"],
9
- "additionalProperties": true,
10
- "properties": {
11
- "tsup": {
12
- "type": ["object", "array"],
13
- "oneOf": [
14
- {
15
- "type": "object",
16
- "additionalProperties": false,
17
- "$ref": "#/definitions/options"
18
- },
19
- {
20
- "type": "array",
21
- "items": {
22
- "additionalProperties": false,
23
- "$ref": "#/definitions/options"
24
- }
25
- }
26
- ]
27
- }
28
- }
29
- },
30
- {
31
- "type": ["object", "array"],
32
- "oneOf": [
33
- {
34
- "type": "object",
35
- "$ref": "#/definitions/options"
36
- },
37
- {
38
- "type": "array",
39
- "items": {
40
- "$ref": "#/definitions/options"
41
- }
42
- }
43
- ]
44
- }
45
- ],
46
- "definitions": {
47
- "options": {
48
- "type": "object",
49
- "markdownDescription": "Configuration options for [tsup](https://tsup.egoist.dev)",
50
- "properties": {
51
- "entry": {
52
- "markdownDescription": "Files that each serve as an input to the bundling algorithm.\n\n---\nReferences:\n- [Entry Points](https://esbuild.github.io/api/#entry-points) - esbuild\n - [Multiple Entrypoints](https://tsup.egoist.dev/#multiple-entrypoints) - tsup",
53
- "oneOf": [
54
- {
55
- "type": "array",
56
- "items": {
57
- "type": "string"
58
- }
59
- },
60
- {
61
- "type": "object"
62
- }
63
- ]
64
- },
65
- "treeshake": {
66
- "markdownDescription": "By default esbuild already does treeshaking but this option allow you to perform additional treeshaking with Rollup and result in smaller bundle size.",
67
- "oneOf": [
68
- {
69
- "type": "boolean"
70
- },
71
- {
72
- "type": "string",
73
- "enum": ["smallest", "safest", "recommended"]
74
- }
75
- ]
76
- },
77
- "name": {
78
- "type": "string",
79
- "description": "Optional config name to show in CLI output"
80
- },
81
- "legacyOutput": {
82
- "type": "boolean",
83
- "description": "Output different formats to different folder instead of using different extension"
84
- },
85
- "target": {
86
- "markdownDescription": "This sets the target environment for the generated code\n\n---\nReferences:\n- [Target](https://esbuild.github.io/api/#target) - esbuild",
87
- "default": "node14",
88
- "oneOf": [
89
- {
90
- "type": "string"
91
- },
92
- {
93
- "type": "array",
94
- "items": {
95
- "type": "string"
96
- }
97
- }
98
- ]
99
- },
100
- "minify": {
101
- "description": "When enabled, the generated code will be minified instead of pretty-printed.",
102
- "oneOf": [
103
- {
104
- "type": "boolean"
105
- },
106
- {
107
- "type": "string",
108
- "enum": ["terser"]
109
- }
110
- ]
111
- },
112
- "minifyWhitespace": {
113
- "type": "boolean"
114
- },
115
- "minifyIdentifiers": {
116
- "type": "boolean"
117
- },
118
- "minifySyntax": {
119
- "type": "boolean"
120
- },
121
- "keepNames": {
122
- "type": "boolean"
123
- },
124
- "watch": {
125
- "oneOf": [
126
- {
127
- "type": "boolean"
128
- },
129
- {
130
- "type": "string",
131
- "items": {
132
- "type": "string"
133
- }
134
- },
135
- {
136
- "type": "array",
137
- "items": {
138
- "type": ["string", "boolean"]
139
- }
140
- }
141
- ]
142
- },
143
- "ignoreWatch": {
144
- "oneOf": [
145
- {
146
- "type": "string"
147
- },
148
- {
149
- "type": "array",
150
- "items": {
151
- "type": "string"
152
- }
153
- }
154
- ]
155
- },
156
- "onSuccess": {
157
- "type": "string"
158
- },
159
- "jsxFactory": {
160
- "type": "string"
161
- },
162
- "jsxFragment": {
163
- "type": "string"
164
- },
165
- "outDir": {
166
- "type": "string"
167
- },
168
- "format": {
169
- "oneOf": [
170
- {
171
- "enum": ["cjs", "iife", "esm"],
172
- "type": "string"
173
- },
174
- {
175
- "type": "array",
176
- "uniqueItems": true,
177
- "items": {
178
- "type": "string",
179
- "enum": ["cjs", "iife", "esm"]
180
- }
181
- }
182
- ]
183
- },
184
- "swc": {
185
- "type": "object"
186
- },
187
- "globalName": {
188
- "type": "string"
189
- },
190
- "env": {
191
- "type": "object"
192
- },
193
- "define": {
194
- "type": "object"
195
- },
196
- "dts": {
197
- "markdownDescription": "This will emit `./dist/index.js` and `./dist/index.d.ts`.\n\nIf you have multiple entry files, each entry will get a corresponding `.d.ts` file. So when you only want to generate declaration file for a single entry, use `--dts <entry>` format, e.g. `--dts src/index.ts`.\n\n**Note** that `--dts` does not resolve external (aka in node_modules) types used in the `.d.ts file`, if that's somehow a requirement, try the experimental `--dts-resolve` flag instead.",
198
- "oneOf": [
199
- {
200
- "type": "boolean"
201
- },
202
- {
203
- "type": "string"
204
- },
205
- {
206
- "type": "object",
207
- "properties": {
208
- "entry": {
209
- "oneOf": [
210
- {
211
- "type": "string"
212
- },
213
- {
214
- "type": "object"
215
- },
216
- {
217
- "type": "array",
218
- "items": {
219
- "type": "string"
220
- }
221
- }
222
- ]
223
- }
224
- }
225
- }
226
- ]
227
- },
228
- "sourcemap": {
229
- "oneOf": [
230
- {
231
- "type": "boolean"
232
- },
233
- {
234
- "enum": ["inline"]
235
- }
236
- ]
237
- },
238
- "noExternal": {
239
- "type": "array",
240
- "items": {
241
- "type": "string"
242
- },
243
- "description": "Always bundle modules matching given patterns"
244
- },
245
- "external": {
246
- "description": "Don't bundle these modules",
247
- "type": "array",
248
- "items": {
249
- "type": "string"
250
- }
251
- },
252
- "replaceNodeEnv": {
253
- "type": "boolean",
254
- "markdownDescription": "Replace `process.env.NODE_ENV` with `production` or `development` `production` when the bundled is minified, `development` otherwise"
255
- },
256
- "splitting": {
257
- "type": "boolean",
258
- "default": true,
259
- "markdownDescription": "You may want to disable code splitting sometimes: [`#255`](https://github.com/egoist/tsup/issues/255)"
260
- },
261
- "clean": {
262
- "description": "Clean output directory before each buil",
263
- "oneOf": [
264
- {
265
- "type": "boolean"
266
- },
267
- {
268
- "type": "array",
269
- "items": {
270
- "type": "string"
271
- }
272
- }
273
- ]
274
- },
275
- "silent": {
276
- "type": "boolean",
277
- "description": "Suppress non-error logs (excluding \"onSuccess\" process output)"
278
- },
279
- "skipNodeModulesBundle": {
280
- "type": "boolean",
281
- "description": "Skip node_modules bundling"
282
- },
283
- "pure": {
284
- "markdownDescription": "See:\n- [Pure](https://esbuild.github.io/api/#pure) - esbuild",
285
- "oneOf": [
286
- {
287
- "type": "boolean"
288
- },
289
- {
290
- "type": "array",
291
- "items": {
292
- "type": "string"
293
- }
294
- }
295
- ]
296
- },
297
- "bundle": {
298
- "default": true,
299
- "type": "boolean",
300
- "description": "Disable bundling, default to true"
301
- },
302
- "inject": {
303
- "markdownDescription": "This option allows you to automatically replace a global variable with an import from another file.\n\n---\nSee:\n- [Inject](https://esbuild.github.io/api/#inject) - esbuild",
304
- "type": "array",
305
- "items": {
306
- "type": "string"
307
- }
308
- },
309
- "metafile": {
310
- "type": "boolean",
311
- "markdownDescription": "Emit esbuild metafile.\n\n---\nSee:\n- [Metafile](https://esbuild.github.io/api/#metafile) - esbuild"
312
- },
313
- "footer": {
314
- "type": "object",
315
- "properties": {
316
- "js": {
317
- "type": "string"
318
- },
319
- "css": {
320
- "type": "string"
321
- }
322
- }
323
- },
324
- "banner": {
325
- "type": "object",
326
- "properties": {
327
- "js": {
328
- "type": "string"
329
- },
330
- "css": {
331
- "type": "string"
332
- }
333
- }
334
- },
335
- "platform": {
336
- "description": "Target platform",
337
- "type": "string",
338
- "default": "node",
339
- "enum": ["node", "browser", "neutral"]
340
- },
341
- "config": {
342
- "markdownDescription": "Disable config file with `false` or pass a custom config filename",
343
- "type": ["boolean", "string"]
344
- },
345
- "tsconfig": {
346
- "type": "string",
347
- "description": " Use a custom tsconfig"
348
- },
349
- "injectStyle": {
350
- "type": "boolean",
351
- "default": false,
352
- "description": "Inject CSS as style tags to document head"
353
- },
354
- "shims": {
355
- "type": "boolean",
356
- "default": false,
357
- "description": "Inject cjs and esm shims if needed"
358
- }
359
- }
360
- }
361
- }
362
- }
Binary file
Binary file
Binary file