Skip to content

Commit be24318

Browse files
committed
Ai Persona updates for easyai
1 parent 50c19aa commit be24318

15 files changed

Lines changed: 67 additions & 34 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ EasyEditor is an easy markdown editor that allows you to write Markdown (MD) and
77
*EasyEditor is a free and open-source project. You can use it for free and modify it as you like.*
88

99
## Latest CODE version
10+
- 1.7.0 - feat: New AI integration for support and documentation.
1011
- 1.6.6 - feat: Add important ability to import docx files and convert to md files
1112
- 1.6.5 - feat: Add KaTeX support for rendering mathematical equations in the preview component.
1213
- 1.6.4 - Implemented new templates and plantuml templates.

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,36 @@ Clean and responsive table rendering.
139139

140140
---
141141

142+
143+
## *License*
144+
This project is licensed under the Open Source (MIT) license with Commons Clause and Trademark Protection.
145+
146+
### *What this means:*
147+
148+
✅ Open Source - Anyone can view, modify, and use the code
149+
✅ Community Contributions - Improvements must be shared back
150+
✅ Free to Use - No cost for personal or internal use
151+
❌ No Commercial Sale - Cannot sell WhizCode or derivatives
152+
❌ No Rebranding - Cannot rebrand as "WhizCode Pro" or similar
153+
❌ No Proprietary Forks - Cannot create closed-source versions
154+
155+
### *You can:*
156+
157+
Use Easyeditor for any purpose (free)
158+
Modify the code for your needs
159+
Use it in your projects (non-commercially)
160+
Distribute modified versions (non-commercially, with attribution)
161+
Contribute improvements back to the project
162+
163+
### *You cannot:*
164+
165+
Sell Easyeditor or any derivative
166+
Offer Easyeditor as a paid service
167+
Charge for hosting or support
168+
Rebrand it as your own product
169+
Create proprietary versions
170+
Remove attribution or license notices
171+
142172
## *Quick Links*
143173

144174
[![Home](https://img.shields.io/badge/🏠_Home-Visit_Site-blue?style=for-the-badge)](https://www.easyeditor.co.uk)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "easyeditor",
33
"description": "EasyEditor - A simple Markdown editor",
4-
"version": "1.6.6",
4+
"version": "1.7.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

release/latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "1.6.6",
2+
"version": "1.7.0",
33
"date": "Sat Feb 21 03:24:31 PM GMT 2026"
44
}

snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: easyeditor
2-
version: '1.6.6'
2+
version: '1.7.0'
33
summary: Easy Markdown Editor
44
description: |
55
Easyeditor is a robust Markdown editor designed for developers and writers.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "easyeditor"
3-
version = "1.6.6"
3+
version = "1.7.0"
44
description = "Easy Markdown Editor"
55
authors = ["Ricardo Wagemaker <wagemra@gmail.com>"]
66
license = "MIT"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"productName": "easyeditor",
3-
"version": "1.6.6",
3+
"version": "1.7.0",
44
"identifier": "RicardoWagemaker.Easyeditor",
55
"build": {
66
"beforeBuildCommand": "npm run build",

src/components/EasyAIPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const EasyAIPanel: React.FC<EasyAIPanelProps> = ({
5454
{ id: 'markdown', label: t('easyai.markdown') },
5555
{ id: 'mermaid', label: t('easyai.mermaid') },
5656
{ id: 'user-story', label: t('easyai.user_story') },
57-
{ id: 'ascii-diag', label: t('easyai.ascii_diag') },
57+
{ id: 'documentation', label: t('easyai.documentation') },
5858
{ id: 'plantuml', label: t('easyai.plantuml') },
5959
{ id: 'md-table', label: t('easyai.md_table') },
6060
{ id: 'fix-code', label: t('easyai.fix_code') },

src/components/easyai/aiPersonas.ts

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,25 @@ const userStoryPersona: AIPersona = {
8888
],
8989
};
9090

91-
const asciiDiagPersona: AIPersona = {
92-
id: 'ascii-diag',
93-
role: 'You are an ASCII Diagram Engineer.',
94-
goal: 'Create clear, text-based ASCII diagrams that can be rendered in any monospace/plain-text environment.',
91+
const documentationPersona: AIPersona = {
92+
id: 'documentation',
93+
role: 'You are a Technical Documentation Specialist and Code Analyst.',
94+
goal: 'Read the selected git folder contents and produce comprehensive, well-structured documentation covering the code, architecture, APIs, and any information stored within the folder.',
9595
editorAwareness:
96-
'Read existing content for domain context. Do NOT modify existing content — only append the new diagram.',
97-
outputFormat: 'ASCII art inside a Markdown fenced code block (``` ... ```)',
98-
description: 'Create portable ASCII art diagrams',
96+
'Read the existing editor content for context about the project. Do NOT modify existing content — only append the new documentation.',
97+
outputFormat: 'Pure CommonMark / GFM Markdown with structured sections',
98+
description: 'Generate comprehensive documentation from a git folder',
9999
rules: [
100-
'Output diagrams using only ASCII characters: +-|/\\><^v*.=#~: and standard alphanumeric characters.',
101-
'Wrap the diagram in a Markdown fenced code block (```) so it preserves alignment.',
102-
'Supported diagram styles: boxes-and-arrows (architecture), sequence (vertical timeline), tables, tree structures, network topology, and simple flow.',
103-
'Use consistent box widths and alignment — ensure the diagram is legible at standard 80-column width.',
104-
'Precede the diagram with a Markdown heading and a one-line description.',
105-
'No Unicode box-drawing characters (─│┌┐└┘) — stick to pure ASCII for maximum portability.',
106-
'Add a brief legend below the diagram if symbols have non-obvious meanings.',
107-
'No HTML, no Mermaid, no PlantUML — ASCII art inside a code fence only.',
100+
'Analyse all files in the selected git folder: source code, configs, READMEs, and data files.',
101+
'Produce a structured document with these sections (as applicable): Overview, Architecture, Module/File Descriptions, API Reference, Configuration, Dependencies, Usage Examples, and Notes.',
102+
'Use clear heading hierarchy (## for major sections, ### for sub-sections) so the document is navigable.',
103+
'For each source file, describe its purpose, key exports (functions, classes, constants), and how it relates to other files in the folder.',
104+
'Include code snippets (with language-tagged fenced blocks) when they clarify usage or important patterns.',
105+
'Document function signatures, parameters, return types, and side effects where identifiable.',
106+
'If configuration files are present (package.json, tsconfig, .env, etc.), summarise their key settings.',
107+
'Output pure Markdown only — no HTML tags, no diagrams unless explicitly requested.',
108+
'Keep descriptions concise but thorough — favour clarity over brevity when explaining complex logic.',
109+
'Never fabricate information — if something is unclear from the code, state that explicitly.',
108110
],
109111
};
110112

@@ -198,7 +200,7 @@ export const aiPersonas: Record<string, AIPersona> = {
198200
'markdown': markdownPersona,
199201
'mermaid': mermaidPersona,
200202
'user-story': userStoryPersona,
201-
'ascii-diag': asciiDiagPersona,
203+
'documentation': documentationPersona,
202204
'plantuml': plantumlPersona,
203205
'md-table': mdTablePersona,
204206
'fix-code': fixCodePersona,

0 commit comments

Comments
 (0)