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.
- package/README.md +4 -0
- package/app/lib/agent-command.ts +85 -0
- package/app/lib/agent-readiness.ts +133 -0
- package/app/lib/apply-schema.ts +55 -0
- package/app/lib/bubble-text.ts +160 -0
- package/app/lib/cartoon-coach.ts +198 -0
- package/app/lib/cartoon-markdown.ts +83 -0
- package/app/lib/cartoon-prompt.ts +122 -0
- package/app/lib/cartoon-readiness.ts +811 -0
- package/app/lib/clean-image-sync.ts +245 -0
- package/app/lib/codex-images.ts +152 -0
- package/app/lib/cut-asset-diagnostics.ts +120 -0
- package/app/lib/cuts.ts +302 -0
- package/app/lib/fonts.ts +109 -0
- package/app/lib/generate-claude-md.ts +8 -1
- package/app/lib/generate-story-instructions.ts +731 -0
- package/app/lib/image-asset-validate.ts +123 -0
- package/app/lib/lettering-status.ts +133 -0
- package/app/lib/overlays.ts +637 -0
- package/app/lib/paths.ts +10 -0
- package/app/lib/public-title.ts +65 -0
- package/app/lib/publish.ts +16 -2
- package/app/lib/story-progress.ts +243 -0
- package/app/lib/terminal-protocol.ts +16 -0
- package/app/lib/terminal-redact.ts +50 -0
- package/app/prisma/schema.sql +25 -0
- package/app/routes/agent.ts +42 -0
- package/app/routes/codex-images.ts +67 -0
- package/app/routes/publish.ts +203 -22
- package/app/routes/stories.ts +961 -5
- package/app/routes/terminal.ts +383 -31
- package/app/server.ts +47 -12
- package/app/vite.config.ts +6 -0
- package/app/web/components/CartoonPreview.tsx +267 -0
- package/app/web/components/CartoonPublishPage.tsx +407 -0
- package/app/web/components/CartoonPublishPreview.tsx +121 -0
- package/app/web/components/CartoonStepGuide.tsx +90 -0
- package/app/web/components/CartoonWorkflowNav.tsx +68 -0
- package/app/web/components/CodexImportPicker.tsx +230 -0
- package/app/web/components/CutListPanel.tsx +1299 -0
- package/app/web/components/EpisodesPage.tsx +80 -0
- package/app/web/components/FinishEpisodePanel.tsx +151 -0
- package/app/web/components/Layout.tsx +7 -4
- package/app/web/components/LetteringEditor.tsx +1141 -0
- package/app/web/components/PreviewPanel.tsx +951 -78
- package/app/web/components/Settings.tsx +63 -0
- package/app/web/components/StoriesPage.tsx +710 -33
- package/app/web/components/StoryBrowser.tsx +22 -14
- package/app/web/components/StoryInfoPage.tsx +266 -0
- package/app/web/components/StoryProgressPanel.tsx +516 -0
- package/app/web/components/TerminalPanel.tsx +233 -11
- package/app/web/components/WorkflowCoach.tsx +128 -0
- package/app/web/components/asset-image.tsx +114 -0
- package/app/web/components/asset-test-utils.ts +44 -0
- package/app/web/components/export-cut.ts +320 -0
- package/app/web/dist/assets/export-cut-nKQ_n2-J.js +1 -0
- package/app/web/dist/assets/index-BAZGwVwj.js +143 -0
- package/app/web/dist/assets/index-DoXH2OlP.css +32 -0
- package/app/web/dist/index.html +2 -2
- package/app/web/lib/cartoon-publish-summary.ts +43 -0
- package/app/web/lib/codex-import.ts +94 -0
- package/app/web/lib/image-compress.ts +53 -0
- package/app/web/lib/import-image.ts +58 -0
- package/app/web/lib/publish-helpers.ts +385 -0
- package/app/web/lib/upload-retry.ts +130 -0
- package/app/web/lib/verify-public-title.ts +105 -0
- package/app/web/styles.css +9 -0
- package/bin/plotlink-ows.js +53 -16
- package/bin/startup-plan.cjs +58 -0
- package/lib/genres.ts +92 -0
- package/package.json +60 -20
- package/scripts/gen-schema-sql.mjs +49 -0
- package/scripts/package-hygiene.mjs +116 -0
- package/scripts/preflight.mjs +173 -0
- package/scripts/start-smoke.mjs +128 -0
- package/app/node_modules/.prisma/local-client/client.d.ts +0 -1
- package/app/node_modules/.prisma/local-client/client.js +0 -5
- package/app/node_modules/.prisma/local-client/default.d.ts +0 -1
- package/app/node_modules/.prisma/local-client/default.js +0 -5
- package/app/node_modules/.prisma/local-client/edge.d.ts +0 -1
- package/app/node_modules/.prisma/local-client/edge.js +0 -184
- package/app/node_modules/.prisma/local-client/index-browser.js +0 -173
- package/app/node_modules/.prisma/local-client/index.d.ts +0 -3304
- package/app/node_modules/.prisma/local-client/index.js +0 -207
- package/app/node_modules/.prisma/local-client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/app/node_modules/.prisma/local-client/package.json +0 -183
- package/app/node_modules/.prisma/local-client/query_engine_bg.js +0 -2
- package/app/node_modules/.prisma/local-client/query_engine_bg.wasm +0 -0
- package/app/node_modules/.prisma/local-client/runtime/edge-esm.js +0 -35
- package/app/node_modules/.prisma/local-client/runtime/edge.js +0 -35
- package/app/node_modules/.prisma/local-client/runtime/index-browser.d.ts +0 -370
- package/app/node_modules/.prisma/local-client/runtime/index-browser.js +0 -17
- package/app/node_modules/.prisma/local-client/runtime/library.d.ts +0 -3982
- package/app/node_modules/.prisma/local-client/runtime/library.js +0 -147
- package/app/node_modules/.prisma/local-client/runtime/react-native.js +0 -84
- package/app/node_modules/.prisma/local-client/runtime/wasm-compiler-edge.js +0 -85
- package/app/node_modules/.prisma/local-client/runtime/wasm-engine-edge.js +0 -38
- package/app/node_modules/.prisma/local-client/schema.prisma +0 -21
- package/app/node_modules/.prisma/local-client/wasm-edge-light-loader.mjs +0 -5
- package/app/node_modules/.prisma/local-client/wasm-worker-loader.mjs +0 -5
- package/app/node_modules/.prisma/local-client/wasm.d.ts +0 -1
- package/app/node_modules/.prisma/local-client/wasm.js +0 -191
- package/app/web/dist/assets/index-B-2Ft7Yv.css +0 -32
- package/app/web/dist/assets/index-DxATSk7X.js +0 -134
- package/packages/cli/node_modules/commander/LICENSE +0 -22
- package/packages/cli/node_modules/commander/Readme.md +0 -1149
- package/packages/cli/node_modules/commander/esm.mjs +0 -16
- package/packages/cli/node_modules/commander/index.js +0 -24
- package/packages/cli/node_modules/commander/lib/argument.js +0 -149
- package/packages/cli/node_modules/commander/lib/command.js +0 -2662
- package/packages/cli/node_modules/commander/lib/error.js +0 -39
- package/packages/cli/node_modules/commander/lib/help.js +0 -709
- package/packages/cli/node_modules/commander/lib/option.js +0 -367
- package/packages/cli/node_modules/commander/lib/suggestSimilar.js +0 -101
- package/packages/cli/node_modules/commander/package-support.json +0 -16
- package/packages/cli/node_modules/commander/package.json +0 -82
- package/packages/cli/node_modules/commander/typings/esm.d.mts +0 -3
- package/packages/cli/node_modules/commander/typings/index.d.ts +0 -1045
- package/packages/cli/node_modules/resolve-from/index.d.ts +0 -31
- package/packages/cli/node_modules/resolve-from/index.js +0 -47
- package/packages/cli/node_modules/resolve-from/license +0 -9
- package/packages/cli/node_modules/resolve-from/package.json +0 -36
- package/packages/cli/node_modules/resolve-from/readme.md +0 -72
- package/packages/cli/node_modules/tsup/LICENSE +0 -21
- package/packages/cli/node_modules/tsup/README.md +0 -75
- package/packages/cli/node_modules/tsup/assets/cjs_shims.js +0 -13
- package/packages/cli/node_modules/tsup/assets/esm_shims.js +0 -9
- package/packages/cli/node_modules/tsup/assets/package.json +0 -3
- package/packages/cli/node_modules/tsup/dist/chunk-DI5BO6XE.js +0 -153
- package/packages/cli/node_modules/tsup/dist/chunk-JZ25TPTY.js +0 -42
- package/packages/cli/node_modules/tsup/dist/chunk-PEEXUWMS.js +0 -6
- package/packages/cli/node_modules/tsup/dist/chunk-TWFEYLU4.js +0 -352
- package/packages/cli/node_modules/tsup/dist/chunk-VGC3FXLU.js +0 -203
- package/packages/cli/node_modules/tsup/dist/cli-default.js +0 -12
- package/packages/cli/node_modules/tsup/dist/cli-main.js +0 -8
- package/packages/cli/node_modules/tsup/dist/cli-node.js +0 -14
- package/packages/cli/node_modules/tsup/dist/index.d.ts +0 -511
- package/packages/cli/node_modules/tsup/dist/index.js +0 -1711
- package/packages/cli/node_modules/tsup/dist/rollup.js +0 -6949
- package/packages/cli/node_modules/tsup/package.json +0 -99
- package/packages/cli/node_modules/tsup/schema.json +0 -362
- package/public/screenshot-1.png +0 -0
- package/public/screenshot-2.png +0 -0
- package/public/screenshot-3.png +0 -0
- package/scripts/e2e-verify.ts +0 -1100
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import commander from './index.js';
|
|
2
|
-
|
|
3
|
-
// wrapper to provide named exports for ESM.
|
|
4
|
-
export const {
|
|
5
|
-
program,
|
|
6
|
-
createCommand,
|
|
7
|
-
createArgument,
|
|
8
|
-
createOption,
|
|
9
|
-
CommanderError,
|
|
10
|
-
InvalidArgumentError,
|
|
11
|
-
InvalidOptionArgumentError, // deprecated old name
|
|
12
|
-
Command,
|
|
13
|
-
Argument,
|
|
14
|
-
Option,
|
|
15
|
-
Help,
|
|
16
|
-
} = commander;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const { Argument } = require('./lib/argument.js');
|
|
2
|
-
const { Command } = require('./lib/command.js');
|
|
3
|
-
const { CommanderError, InvalidArgumentError } = require('./lib/error.js');
|
|
4
|
-
const { Help } = require('./lib/help.js');
|
|
5
|
-
const { Option } = require('./lib/option.js');
|
|
6
|
-
|
|
7
|
-
exports.program = new Command();
|
|
8
|
-
|
|
9
|
-
exports.createCommand = (name) => new Command(name);
|
|
10
|
-
exports.createOption = (flags, description) => new Option(flags, description);
|
|
11
|
-
exports.createArgument = (name, description) => new Argument(name, description);
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Expose classes
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
exports.Command = Command;
|
|
18
|
-
exports.Option = Option;
|
|
19
|
-
exports.Argument = Argument;
|
|
20
|
-
exports.Help = Help;
|
|
21
|
-
|
|
22
|
-
exports.CommanderError = CommanderError;
|
|
23
|
-
exports.InvalidArgumentError = InvalidArgumentError;
|
|
24
|
-
exports.InvalidOptionArgumentError = InvalidArgumentError; // Deprecated
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
const { InvalidArgumentError } = require('./error.js');
|
|
2
|
-
|
|
3
|
-
class Argument {
|
|
4
|
-
/**
|
|
5
|
-
* Initialize a new command argument with the given name and description.
|
|
6
|
-
* The default is that the argument is required, and you can explicitly
|
|
7
|
-
* indicate this with <> around the name. Put [] around the name for an optional argument.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} name
|
|
10
|
-
* @param {string} [description]
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
constructor(name, description) {
|
|
14
|
-
this.description = description || '';
|
|
15
|
-
this.variadic = false;
|
|
16
|
-
this.parseArg = undefined;
|
|
17
|
-
this.defaultValue = undefined;
|
|
18
|
-
this.defaultValueDescription = undefined;
|
|
19
|
-
this.argChoices = undefined;
|
|
20
|
-
|
|
21
|
-
switch (name[0]) {
|
|
22
|
-
case '<': // e.g. <required>
|
|
23
|
-
this.required = true;
|
|
24
|
-
this._name = name.slice(1, -1);
|
|
25
|
-
break;
|
|
26
|
-
case '[': // e.g. [optional]
|
|
27
|
-
this.required = false;
|
|
28
|
-
this._name = name.slice(1, -1);
|
|
29
|
-
break;
|
|
30
|
-
default:
|
|
31
|
-
this.required = true;
|
|
32
|
-
this._name = name;
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (this._name.length > 3 && this._name.slice(-3) === '...') {
|
|
37
|
-
this.variadic = true;
|
|
38
|
-
this._name = this._name.slice(0, -3);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Return argument name.
|
|
44
|
-
*
|
|
45
|
-
* @return {string}
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
name() {
|
|
49
|
-
return this._name;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @package
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
_concatValue(value, previous) {
|
|
57
|
-
if (previous === this.defaultValue || !Array.isArray(previous)) {
|
|
58
|
-
return [value];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return previous.concat(value);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Set the default value, and optionally supply the description to be displayed in the help.
|
|
66
|
-
*
|
|
67
|
-
* @param {*} value
|
|
68
|
-
* @param {string} [description]
|
|
69
|
-
* @return {Argument}
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
default(value, description) {
|
|
73
|
-
this.defaultValue = value;
|
|
74
|
-
this.defaultValueDescription = description;
|
|
75
|
-
return this;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Set the custom handler for processing CLI command arguments into argument values.
|
|
80
|
-
*
|
|
81
|
-
* @param {Function} [fn]
|
|
82
|
-
* @return {Argument}
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
argParser(fn) {
|
|
86
|
-
this.parseArg = fn;
|
|
87
|
-
return this;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Only allow argument value to be one of choices.
|
|
92
|
-
*
|
|
93
|
-
* @param {string[]} values
|
|
94
|
-
* @return {Argument}
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
choices(values) {
|
|
98
|
-
this.argChoices = values.slice();
|
|
99
|
-
this.parseArg = (arg, previous) => {
|
|
100
|
-
if (!this.argChoices.includes(arg)) {
|
|
101
|
-
throw new InvalidArgumentError(
|
|
102
|
-
`Allowed choices are ${this.argChoices.join(', ')}.`,
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
if (this.variadic) {
|
|
106
|
-
return this._concatValue(arg, previous);
|
|
107
|
-
}
|
|
108
|
-
return arg;
|
|
109
|
-
};
|
|
110
|
-
return this;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Make argument required.
|
|
115
|
-
*
|
|
116
|
-
* @returns {Argument}
|
|
117
|
-
*/
|
|
118
|
-
argRequired() {
|
|
119
|
-
this.required = true;
|
|
120
|
-
return this;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Make argument optional.
|
|
125
|
-
*
|
|
126
|
-
* @returns {Argument}
|
|
127
|
-
*/
|
|
128
|
-
argOptional() {
|
|
129
|
-
this.required = false;
|
|
130
|
-
return this;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Takes an argument and returns its human readable equivalent for help usage.
|
|
136
|
-
*
|
|
137
|
-
* @param {Argument} arg
|
|
138
|
-
* @return {string}
|
|
139
|
-
* @private
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
function humanReadableArgName(arg) {
|
|
143
|
-
const nameOutput = arg.name() + (arg.variadic === true ? '...' : '');
|
|
144
|
-
|
|
145
|
-
return arg.required ? '<' + nameOutput + '>' : '[' + nameOutput + ']';
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
exports.Argument = Argument;
|
|
149
|
-
exports.humanReadableArgName = humanReadableArgName;
|