-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
488 lines (488 loc) · 16.8 KB
/
package.json
File metadata and controls
488 lines (488 loc) · 16.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
{
"name": "prose-minion",
"displayName": "Prose Minion: Writing Toolkit",
"description": "AI prose analysis and writing assistant for fiction authors. Dialogue suggestions, context-aware dictionary, comprehensive prose metrics, style flags, word frequency, and manuscript search. Metrics/search work offline—no API key needed.",
"version": "1.10.1",
"license": "SEE LICENSE IN LICENSE",
"publisher": "OkeyLanders",
"repository": {
"type": "git",
"url": "https://github.com/okeylanders/prose-minion-vscode.git"
},
"homepage": "https://github.com/okeylanders/prose-minion-vscode#readme",
"bugs": {
"url": "https://github.com/okeylanders/prose-minion-vscode/issues"
},
"sponsor": {
"url": "https://buymeacoffee.com/okeylanders"
},
"icon": "assets/prose-minion-book.png",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Other",
"Education",
"Formatters"
],
"keywords": [
"OpenRouter",
"Claude",
"Anthropic",
"GPT",
"ChatGPT",
"OpenAI",
"DeepSeek",
"Gemini",
"Google AI",
"Llama",
"LLM",
"AI models",
"Opus",
"Sonnet",
"Haiku",
"dictionary",
"word count",
"page count",
"word frequency",
"hapax",
"lexical density",
"bigrams",
"trigrams",
"stopwords",
"readability",
"sentence length",
"dialogue percentage",
"pacing analysis",
"style flags",
"intensifiers",
"hedges",
"filler words",
"placeholder words",
"action beats",
"dialogue tags",
"publishing standards",
"manuscript formatting",
"trim size",
"POS tagging",
"part of speech",
"lemmatization",
"text statistics",
"reading time",
"writing",
"fiction",
"creative writing",
"prose",
"author tools",
"novelist",
"manuscript",
"editor",
"literary",
"storytelling",
"narrative",
"dialogue",
"creative",
"writers",
"novel",
"story",
"book",
"writing assistant",
"AI writing",
"prose analysis",
"writing tools",
"fiction writing",
"content writing"
],
"activationEvents": [
"onView:prose-minion.toolsView",
"onCommand:prose-minion.assistantSelection",
"onCommand:prose-minion.wordLookupSelection",
"onCommand:prose-minion.analyzeSelection"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "prose-minion",
"title": "Prose Minion",
"icon": "assets/prose-minion-book.svg"
}
]
},
"views": {
"prose-minion": [
{
"type": "webview",
"id": "prose-minion.toolsView",
"name": "Writing Tools"
}
]
},
"commands": [
{
"command": "prose-minion.assistantSelection",
"title": "Prose Minion: Assistant"
},
{
"command": "prose-minion.wordLookupSelection",
"title": "Prose Minion: Word Lookup"
},
{
"command": "prose-minion.openSettingsOverlay",
"title": "Prose Minion: Settings",
"icon": "$(gear)"
}
],
"menus": {
"editor/context": [
{
"when": "editorHasSelection",
"command": "prose-minion.assistantSelection",
"group": "prose-minion@1"
},
{
"when": "editorHasSelection",
"command": "prose-minion.wordLookupSelection",
"group": "prose-minion"
}
],
"view/title": [
{
"command": "prose-minion.openSettingsOverlay",
"when": "view == prose-minion.toolsView",
"group": "navigation@99"
}
]
},
"configuration": {
"title": "Prose Minion",
"properties": {
"proseMinion.assistantModel": {
"type": "string",
"default": "anthropic/claude-sonnet-4.6",
"description": "AI model for assistant tools (Prose/Dialogue analysis). See Settings Overlay for curated list, or enter any OpenRouter model ID.",
"order": 2
},
"proseMinion.dictionaryModel": {
"type": "string",
"default": "anthropic/claude-haiku-4.5",
"description": "AI model for dictionary and utility tools. See Settings Overlay for curated list, or enter any OpenRouter model ID.",
"order": 3
},
"proseMinion.contextModel": {
"type": "string",
"default": "openai/gpt-5.4",
"description": "AI model for context bot features. See Settings Overlay for curated list, or enter any OpenRouter model ID.",
"order": 4
},
"proseMinion.categoryModel": {
"type": "string",
"default": "anthropic/claude-sonnet-4.6",
"enum": [
"anthropic/claude-sonnet-4.5",
"anthropic/claude-sonnet-4.6",
"anthropic/claude-haiku-4.5",
"anthropic/claude-opus-4.5",
"anthropic/claude-opus-4.6",
"google/gemini-3.1-pro-preview",
"google/gemini-3-flash-preview",
"google/gemini-2.5-flash",
"google/gemini-2.5-pro",
"openai/gpt-5.1-chat",
"openai/gpt-5.2",
"openai/gpt-5.2-chat",
"openai/gpt-5.2-pro",
"openai/gpt-5.3-chat",
"openai/gpt-5.4",
"openai/gpt-5.4-pro",
"deepcogito/cogito-v2.1-671b",
"mistralai/mistral-large-2411",
"z-ai/glm-4.7"
],
"description": "AI model for Category Search (curated list, thinking models)",
"order": 5
},
"proseMinion.includeCraftGuides": {
"type": "boolean",
"default": true,
"description": "Include craft guides in AI prompts (provides additional writing guidance but uses more tokens)",
"order": 6
},
"proseMinion.ui.showTokenWidget": {
"type": "boolean",
"default": true,
"description": "Show the session token usage widget in the header (tokens and optional cost).",
"order": 6
},
"proseMinion.temperature": {
"type": "number",
"default": 0.7,
"minimum": 0,
"maximum": 2,
"description": "AI creativity level (0 = focused, 2 = very creative)",
"order": 7
},
"proseMinion.maxTokens": {
"type": "number",
"default": 10000,
"minimum": 100,
"maximum": 100000,
"description": "Maximum length of AI responses",
"order": 8
},
"proseMinion.contextPaths.characters": {
"type": "string",
"default": "characters/**/*,Characters/**/*",
"description": "Comma-separated glob patterns for character reference files (only .md and .txt files are used).",
"order": 9
},
"proseMinion.contextPaths.locations": {
"type": "string",
"default": "locations/**/*,Locations/**/*,Locations-Settings/**/*",
"description": "Comma-separated glob patterns for setting/location files (only .md and .txt files are used).",
"order": 10
},
"proseMinion.contextPaths.themes": {
"type": "string",
"default": "themes/**/*,Themes/**/*",
"description": "Comma-separated glob patterns for theme notebooks (only .md and .txt files are used).",
"order": 11
},
"proseMinion.contextPaths.things": {
"type": "string",
"default": "things/**/*,Things/**/*",
"description": "Comma-separated glob patterns for important objects or props (only .md and .txt files are used).",
"order": 12
},
"proseMinion.contextPaths.chapters": {
"type": "string",
"default": "drafts/**/*,Drafts/**/*,outlines/**/*,Outlines/**/*",
"description": "Comma-separated glob patterns for draft chapters and outlines (only .md and .txt files are used).",
"order": 13
},
"proseMinion.contextPaths.manuscript": {
"type": "string",
"default": "manuscript/**/*,Manuscript/**/*",
"description": "Comma-separated glob patterns for polished manuscript chapters (only .md and .txt files are used).",
"order": 14
},
"proseMinion.contextPaths.projectBrief": {
"type": "string",
"default": "brief/**/*,Brief/**/*",
"description": "Comma-separated glob patterns for project brief materials (only .md and .txt files are used).",
"order": 15
},
"proseMinion.contextPaths.general": {
"type": "string",
"default": "research/**/*,Research/**/*,tone-and-style/**/*,Tone-And-Style/**/*,literary-devices/**/*,Literary-Devices/**/*,**/story-bible.md,**/synopsis.md,**/voice-and-tone.md,**/genre-conventions.md",
"description": "Comma-separated glob patterns for general reference material (only .md and .txt files are used).",
"order": 16
},
"proseMinion.publishingStandards.preset": {
"type": "string",
"default": "none",
"description": "Publishing standards preset for Metrics comparison: 'none', 'manuscript', or 'genre:<abbreviation|name|slug>'.",
"order": 17
},
"proseMinion.publishingStandards.pageSizeKey": {
"type": "string",
"default": "",
"description": "Selected trim size key for the chosen genre (uses page_sizes[].format when available, otherwise WIDTHxHEIGHT).",
"order": 18
},
"proseMinion.wordFrequency.topN": {
"type": "number",
"default": 100,
"minimum": 10,
"maximum": 1000,
"description": "Top N words to include in the Word Frequency report.",
"order": 19
},
"proseMinion.wordFrequency.includeHapaxList": {
"type": "boolean",
"default": true,
"description": "Include the Hapax (frequency=1) word list at the bottom of the Word Frequency report.",
"order": 20
},
"proseMinion.wordFrequency.hapaxDisplayMax": {
"type": "number",
"default": 300,
"minimum": 50,
"maximum": 5000,
"description": "Maximum Hapax words to display inline in the report (full list still counted).",
"order": 21
},
"proseMinion.wordFrequency.includeStopwordsTable": {
"type": "boolean",
"default": true,
"description": "Include a Top Stopwords table with counts and percentages.",
"order": 22
},
"proseMinion.wordFrequency.contentWordsOnly": {
"type": "boolean",
"default": true,
"description": "Show Top Words using content words only (excludes stopwords).",
"order": 23
},
"proseMinion.wordFrequency.posEnabled": {
"type": "boolean",
"default": true,
"description": "Enable POS sections using wink-pos-tagger. If the tagger cannot initialize, sections are marked unavailable.",
"order": 24
},
"proseMinion.wordFrequency.includeBigrams": {
"type": "boolean",
"default": true,
"description": "Include Top Bigrams (two-word phrases).",
"order": 25
},
"proseMinion.wordFrequency.includeTrigrams": {
"type": "boolean",
"default": true,
"description": "Include Top Trigrams (three-word phrases).",
"order": 26
},
"proseMinion.wordFrequency.enableLemmas": {
"type": "boolean",
"default": false,
"description": "Enable a lemmatized Top Words view (experimental).",
"order": 27
},
"proseMinion.wordFrequency.lengthHistogramMaxChars": {
"type": "number",
"default": 10,
"minimum": 5,
"maximum": 30,
"description": "Maximum token length to show in the Word Length Distribution histogram.",
"order": 28
},
"proseMinion.wordFrequency.minCharacterLength": {
"type": "number",
"default": 1,
"enum": [
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"markdownDescription": "Minimum character length for words in Word Frequency results. Filter helps identify longer, more distinctive word patterns by excluding short common words. **1+** = all words, **3+** = excludes 'it', 'is', 'an', **5+** = multi-syllable words, **6+** = distinctive vocabulary, **7+** = complex words, **8+** = advanced vocabulary, **9+** = rare/specialized words. Applied to Top Words, POS, Bigrams/Trigrams, Hapax List, and Lemmas. Does NOT filter Stop Words or Length Histogram.",
"order": 29
},
"proseMinion.wordSearch.contextWords": {
"type": "number",
"default": 3,
"minimum": 1,
"maximum": 10,
"description": "Number of words to show around each word search match for context",
"order": 30
},
"proseMinion.wordSearch.clusterWindow": {
"type": "number",
"default": 50,
"minimum": 10,
"maximum": 500,
"description": "Maximum word distance to group matches into a cluster",
"order": 31
},
"proseMinion.wordSearch.minClusterSize": {
"type": "number",
"default": 2,
"minimum": 2,
"maximum": 10,
"description": "Minimum number of matches required to form a cluster",
"order": 32
},
"proseMinion.wordSearch.caseSensitive": {
"type": "boolean",
"default": false,
"description": "Enable case-sensitive word search matching",
"order": 33
},
"proseMinion.wordSearch.enableAssistantExpansion": {
"type": "boolean",
"default": false,
"description": "Enable assistant-based expansion for target words (synonyms, inflections).",
"order": 34
},
"proseMinion.applyContextWindowTrimming": {
"type": "boolean",
"default": true,
"markdownDescription": "Apply context window trimming to prevent token limit errors. **Limits**: UI recommends 500-word excerpts; Context Agent (50K words), Analysis Agents (75K words total: excerpt + context + guides). Targets 128K token context window. Disable if using models with larger context windows (e.g., 200K+).",
"order": 35
},
"proseMinion.categorySearch.ngramMode": {
"type": "string",
"enum": [
"words",
"bigrams",
"trigrams"
],
"default": "words",
"description": "Default search mode for new searches. Words = individual words, Bigrams = 2-word phrases, Trigrams = 3-word phrases. Changes take effect on panel reload.",
"order": 36
},
"proseMinion.categorySearch.minPhraseOccurrences": {
"type": "number",
"default": 2,
"minimum": 1,
"maximum": 10,
"description": "Default minimum phrase occurrences for bigram/trigram searches. Phrases appearing fewer times are filtered out. Changes take effect on panel reload.",
"order": 37
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "npm test && npm run typecheck && webpack --mode production",
"watch": "webpack --mode development --watch",
"package": "vsce package",
"lint": "eslint src --ext ts,tsx",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"typecheck": "npm run typecheck:extension && npm run typecheck:webview",
"typecheck:extension": "tsc --noEmit -p tsconfig.json",
"typecheck:webview": "tsc --noEmit -p tsconfig.webview.json",
"test:tier1": "jest --testPathPattern='(useMessageRouter|usePersistence|MessageHandler|useAnalysis|useMetrics)'"
},
"devDependencies": {
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^30.0.0",
"@types/node": "^18.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/vscode": "^1.75.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"autoprefixer": "^10.4.0",
"css-loader": "^6.0.0",
"eslint": "^8.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8.4.0",
"postcss-loader": "^7.0.0",
"style-loader": "^3.0.0",
"tailwindcss": "^3.0.0",
"ts-jest": "^29.4.5",
"ts-loader": "^9.0.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript": "^4.9.0",
"webpack": "^5.0.0",
"webpack-cli": "^5.0.0"
},
"dependencies": {
"@types/marked": "^6.0.0",
"marked": "^16.4.1",
"p-limit": "^7.2.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"wink-pos-tagger": "^2.2.2"
}
}