@cloud411716/fancy-webnovel 1.0.11 → 1.0.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 (2) hide show
  1. package/index.js +7 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -57,30 +57,29 @@ export function apply(ctx) {
57
57
  type: 'object',
58
58
  additionalProperties: true,
59
59
  properties: {
60
- id: { type: 'string', required: true, description: 'Stable id for this question; echoed in the answer.' },
61
- question: { type: 'string', required: true, description: 'The specific question to ask the user.' },
62
- header: { type: 'string', required: false, description: 'Optional short heading for the question.' },
60
+ id: { type: 'string', required: true, description: 'Stable id for this question; echoed in the answer.' },
61
+ question: { type: 'string', required: true, description: 'The specific question to ask the user.' },
62
+ header: { type: 'string', description: 'Optional short heading for the question.' },
63
63
  options: {
64
64
  type: 'array',
65
- required: false,
66
65
  description: 'Optional choices to show the user.',
67
66
  items: {
68
67
  type: 'object',
69
68
  additionalProperties: true,
70
69
  properties: {
71
70
  label: { type: 'string', required: true, description: 'Short user-facing option label.' },
72
- description: { type: 'string', required: false, description: 'One sentence explaining the option.' },
71
+ description: { type: 'string', description: 'One sentence explaining the option.' },
73
72
  },
74
73
  },
75
74
  },
76
- multi_select: { type: 'boolean', required: false },
77
- hideCustomInput: { type: 'boolean', required: false },
75
+ multi_select: { type: 'boolean' },
76
+ hideCustomInput: { type: 'boolean' },
78
77
  },
79
78
  },
80
79
  },
81
80
  },
82
81
  output: {
83
- // No schema: we return null, so render output is suppressed.
82
+ schema: { type: 'null' },
84
83
  render() { return []; },
85
84
  },
86
85
  async execute(args, exec) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {