MCPcopy Create free account

hub / github.com/aomukai/Writingway2 / functions

Functions422 in github.com/aomukai/Writingway2

↓ 26 callersMethodrespond_json
(self, status: int, payload: dict)
tools/writingway-server.py:315
↓ 8 callersMethod_send_json
Send a JSON response with CORS headers.
tools/updater-server.py:170
↓ 7 callersFunctionlistByProject
(tableName, projectId, sortField)
src/modules/github-backup.js:25
↓ 7 callersFunctionlistByProject
(tableName, projectId, sortField)
src/modules/filesystem-save.js:37
↓ 7 callersFunctionloadPrompts
(app)
src/prompts.js:3
↓ 5 callersFunctionproviderLabel
(provider)
src/modules/github-backup.js:11
↓ 4 callersFunctionbroadcast
(type, data)
src/modules/tab-sync.js:417
↓ 4 callersFunctionllama_server_path
()
tools/writingway-server.py:92
↓ 4 callersFunctionsanitize_filename
(value: str)
tools/writingway-server.py:47
↓ 3 callersMethodend_headers
(self)
tools/writingway-server.py:311
↓ 3 callersFunctionllama_server_filename
()
tools/writingway-server.py:87
↓ 3 callersFunctionlocalAIAvailable
(app)
src/modules/ai-settings.js:4
↓ 3 callersFunctionproject_backup_dir
(project_id: str)
tools/writingway-server.py:61
↓ 3 callersFunctionruntime_platform
()
tools/writingway-server.py:66
↓ 3 callersFunctionsetEditorReadOnly
(readonly)
src/modules/tab-sync.js:328
↓ 3 callersFunctionsetFilesystemSaveMessage
(app, message, tone = 'success', durationMs = 0)
src/modules/filesystem-save.js:14
↓ 2 callersFunctioncheckIfShouldBecomePrimary
()
src/modules/tab-sync.js:309
↓ 2 callersFunctioncheck_status
Check if an update is staged and ready.
tools/updater-server.py:145
↓ 2 callersFunctionclamp
(v, a, b)
src/app.js:605
↓ 2 callersMethodread_json_payload
(self)
tools/writingway-server.py:425
↓ 2 callersFunctionremoveReadOnlyBanner
()
src/modules/tab-sync.js:405
↓ 2 callersFunctionruntime_info
()
tools/writingway-server.py:120
↓ 2 callersFunctionwireSplitter
()
src/app.js:607
↓ 1 callersFunctionaddReadOnlyBanner
()
src/modules/tab-sync.js:367
↓ 1 callersFunctionbackup_filename
(project: dict, exported_at: str | None = None)
tools/writingway-server.py:140
↓ 1 callersFunctionbuildProjectSnapshot
(app)
src/modules/filesystem-save.js:48
↓ 1 callersFunctionbuildPrompt
(beat, sceneContext, options = {})
src/generation.js:6
↓ 1 callersFunctionclearFilesystemSaveMessage
(app)
src/modules/filesystem-save.js:6
↓ 1 callersFunctionclear_update
Clear staged update files.
tools/updater-server.py:150
↓ 1 callersFunctiondownload_file
(url: str, destination: Path)
tools/writingway-server.py:217
↓ 1 callersFunctiondownload_update
Download the latest update zip to .update/latest.zip. Returns (success, message) tuple.
tools/updater-server.py:80
↓ 1 callersFunctionensure_llama_server_executable
()
tools/writingway-server.py:251
↓ 1 callersFunctionensure_update_dir
Create .update directory if it doesn't exist.
tools/updater-server.py:35
↓ 1 callersFunctionextract_archive
(archive_path: Path, target_dir: Path)
tools/writingway-server.py:223
↓ 1 callersFunctionfind_gguf_models
()
tools/writingway-server.py:96
↓ 1 callersFunctiongetSceneContent
(sceneId)
src/modules/github-backup.js:36
↓ 1 callersFunctiongetSceneContent
(sceneId)
src/modules/filesystem-save.js:28
↓ 1 callersFunctionget_download_url
Get the download URL for the latest release. First tries GitHub Releases API for the latest release asset. Falls back to archive/refs/hea
tools/updater-server.py:40
↓ 1 callersFunctiongithub_json
(url: str)
tools/writingway-server.py:150
↓ 1 callersFunctionhandleMessage
(type, data)
src/modules/tab-sync.js:111
↓ 1 callersMethodhandle_create_backup
(self)
tools/writingway-server.py:444
↓ 1 callersMethodhandle_get_backup
(self, query: str)
tools/writingway-server.py:548
↓ 1 callersMethodhandle_install_llama
(self)
tools/writingway-server.py:495
↓ 1 callersMethodhandle_list_backups
(self, query: str)
tools/writingway-server.py:519
↓ 1 callersMethodhandle_save_project
(self)
tools/writingway-server.py:362
↓ 1 callersMethodhandle_shutdown
(self)
tools/writingway-server.py:509
↓ 1 callersFunctioninstall_llama_cpp
(variant: str)
tools/writingway-server.py:269
↓ 1 callersFunctionjson_bytes
(payload: dict)
tools/writingway-server.py:43
↓ 1 callersFunctionllama_install_choices
(platform_id: str, arch: str)
tools/writingway-server.py:102
↓ 1 callersFunctionmain
Start the updater server.
tools/updater-server.py:224
↓ 1 callersFunctionmain
()
tools/writingway-server.py:577
↓ 1 callersFunctionmessagesToChatML
* Convert messages array to ChatML format string * @param {Array} messages - Array of {role, content} objects * @returns {string} - Formatte
src/generation.js:153
↓ 1 callersFunctionopenPrompt
(app, id)
src/prompts.js:32
↓ 1 callersFunctionproject_filename
(project: dict)
tools/writingway-server.py:53
↓ 1 callersFunctionproviderAvailable
(provider)
src/modules/github-backup.js:21
↓ 1 callersFunctionsafeMergeUpdate
(id, patch)
src/save-utils.js:119
↓ 1 callersFunctionselect_llama_asset
(assets: list[dict], platform_id: str, arch: str, variant: str)
tools/writingway-server.py:156
↓ 1 callersFunctionstartHeartbeat
()
src/modules/tab-sync.js:275
↓ 1 callersFunctionstopHeartbeat
()
src/modules/tab-sync.js:283
↓ 1 callersFunctionstreamGeneration
(prompt, onToken, app)
src/generation.js:108
↓ 1 callersFunctionstreamGenerationAPI
(prompt, onToken, provider, apiKey, model, customEndpoint, temperature, maxTokens, app, useProviderDefaults)
src/generation.js:221
↓ 1 callersFunctionstreamGenerationLocal
(prompt, onToken, endpoint, temperature, maxTokens, useProviderDefaults)
src/generation.js:165
↓ 1 callersFunctiontryWire
()
src/app.js:678
Method__init__
(self, *args, **kwargs)
tools/writingway-server.py:308
Function_doCloseCompendium
* Internal: Actually close the compendium panel * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:143
Function_doCreateCompendiumEntry
* Internal: Actually create a new compendium entry * @param {Object} app - Alpine app instance * @param {string} category - Category
src/modules/compendium-manager.js:275
Function_doLoadCompendiumCategory
* Internal: Actually toggle category (close path) * @param {Object} app - Alpine app instance * @param {string} category - Category
src/modules/compendium-manager.js:221
Function_doMoveCompendiumEntryToCategory
* Internal: Actually move compendium entry to a different category * @param {Object} app - Alpine app instance * @param {string} id
src/modules/compendium-manager.js:526
Function_doSelectCompendiumEntry
* Internal: Actually select and load a compendium entry * @param {Object} app - Alpine app instance * @param {string} id - Entry ID
src/modules/compendium-manager.js:310
Function_getTextareaSelectionCoords
(textarea, selectionIndex)
src/app.js:352
FunctionacceptGeneration
()
src/app.js:2158
FunctionacceptRewrite
()
src/app.js:369
FunctionacceptRewrite
* Accept the rewritten text and replace the original * @param {Object} app - Alpine app instance
src/modules/editor.js:220
FunctionaddCompTag
()
src/app.js:1404
FunctionaddCompTag
* Add a tag to the current compendium entry * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:356
FunctionapplyFormatting
(format)
src/app.js:1805
FunctionbackToProjects
()
src/app.js:1143
FunctionbackupNeedsAttention
()
src/app.js:2297
FunctionbackupNow
()
src/app.js:2373
FunctionbackupNow
(app)
src/modules/github-backup.js:138
FunctionbackupProviderIsAvailable
(provider = this.backupProvider)
src/app.js:2289
FunctionbackupProviderName
(provider = this.backupProvider)
src/app.js:2282
FunctionbackupProviderRequiresGitHubToken
()
src/app.js:2293
FunctionbackupToGist
(app)
src/modules/github-backup.js:180
FunctionbackupToLocalVersioning
(app)
src/modules/github-backup.js:327
FunctionbackupWarningMessage
()
src/app.js:2304
FunctionbuildContextFromPanel
()
src/app.js:2242
FunctionbuildContextFromPanel
* Build context from context panel settings * @param {Object} app - Alpine app instance * @returns {Promise<Object>} Context object
src/modules/context-panel.js:39
FunctionbuildPrompt
(beatInput, sceneContent, opts)
src/modules/generation.js:6
FunctionbuildRewritePrompt
()
src/app.js:361
FunctionbuildRewritePrompt
* Build the prompt for rewriting selected text * @param {Object} app - Alpine app instance * @returns {string} The rewrite prompt
src/modules/editor.js:161
FunctionbuildWorkshopPrompt
* Build the prompt for the workshop chat including context * @param {Object} app - The Alpine.js app instance * @param {string} userMessage
src/workshop.js:27
FunctioncanBackup
(app)
src/modules/github-backup.js:61
FunctioncanRestore
(app)
src/modules/github-backup.js:65
FunctioncancelCompendiumAction
()
src/app.js:1438
FunctioncancelCompendiumAction
* Handle "Cancel" button in unsaved changes modal * @param {Object} app - Alpine app instance
src/modules/compendium-manager.js:124
FunctioncheckAndNotify
* Check for updates and notify user if available * @param {Object} app - Alpine app instance * @param {boolean} silent - If true, do
src/update-checker.js:185
FunctioncheckExportReminder
()
src/app.js:1305
FunctioncheckForDeadTabs
()
src/modules/tab-sync.js:290
FunctioncheckForUpdates
* Check for updates by comparing commit dates * @returns {Promise<Object|null>} Update info or null if no update
src/update-checker.js:22
next →1–100 of 422, ranked by callers