janet-cli 0.3.1__tar.gz → 0.3.2__tar.gz
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.
- {janet_cli-0.3.1/janet_cli.egg-info → janet_cli-0.3.2}/PKG-INFO +1 -1
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/__init__.py +1 -1
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/markdown/generator.py +21 -4
- {janet_cli-0.3.1 → janet_cli-0.3.2/janet_cli.egg-info}/PKG-INFO +1 -1
- {janet_cli-0.3.1 → janet_cli-0.3.2}/pyproject.toml +1 -1
- {janet_cli-0.3.1 → janet_cli-0.3.2}/.env.example +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/LICENSE +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/MANIFEST.in +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/README.md +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/__main__.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/api/__init__.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/api/client.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/api/models.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/api/organizations.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/api/projects.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/api/tickets.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/auth/__init__.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/auth/callback_server.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/auth/oauth_flow.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/auth/token_manager.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/cli.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/config/__init__.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/config/manager.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/config/models.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/markdown/__init__.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/markdown/yjs_converter.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/sync/__init__.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/sync/file_manager.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/sync/readme_generator.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/sync/sse_watcher.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/sync/sync_engine.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/utils/__init__.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/utils/console.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/utils/errors.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet/utils/paths.py +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet_cli.egg-info/SOURCES.txt +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet_cli.egg-info/dependency_links.txt +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet_cli.egg-info/entry_points.txt +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet_cli.egg-info/requires.txt +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/janet_cli.egg-info/top_level.txt +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/requirements.txt +0 -0
- {janet_cli-0.3.1 → janet_cli-0.3.2}/setup.cfg +0 -0
|
@@ -47,21 +47,25 @@ class MarkdownGenerator:
|
|
|
47
47
|
# 3. Description (pass attachments for inline image handling)
|
|
48
48
|
sections.append(self._generate_description(ticket, attachments))
|
|
49
49
|
|
|
50
|
-
# 4.
|
|
50
|
+
# 4. AI Summary (if available)
|
|
51
|
+
if ticket.get("ai_summary"):
|
|
52
|
+
sections.append(self._generate_ai_summary(ticket))
|
|
53
|
+
|
|
54
|
+
# 5. Comments
|
|
51
55
|
if ticket.get("comments"):
|
|
52
56
|
sections.append(
|
|
53
57
|
self._generate_comments(ticket["comments"], organization_members)
|
|
54
58
|
)
|
|
55
59
|
|
|
56
|
-
#
|
|
60
|
+
# 6. Attachments
|
|
57
61
|
if attachments:
|
|
58
62
|
sections.append(self._generate_attachments(attachments, organization_members))
|
|
59
63
|
|
|
60
|
-
#
|
|
64
|
+
# 7. Child Tasks
|
|
61
65
|
if ticket.get("child_tasks"):
|
|
62
66
|
sections.append(self._generate_child_tasks(ticket["child_tasks"]))
|
|
63
67
|
|
|
64
|
-
#
|
|
68
|
+
# 8. Footer
|
|
65
69
|
sections.append(self._generate_footer(ticket_key))
|
|
66
70
|
|
|
67
71
|
return "\n".join(sections)
|
|
@@ -159,6 +163,19 @@ class MarkdownGenerator:
|
|
|
159
163
|
lines.append("") # Empty line after description
|
|
160
164
|
return "\n".join(lines)
|
|
161
165
|
|
|
166
|
+
def _generate_ai_summary(self, ticket: Dict) -> str:
|
|
167
|
+
"""Generate AI summary section."""
|
|
168
|
+
lines = ["## AI Summary\n"]
|
|
169
|
+
|
|
170
|
+
ai_summary = ticket.get("ai_summary", "").strip()
|
|
171
|
+
if ai_summary:
|
|
172
|
+
lines.append(ai_summary)
|
|
173
|
+
else:
|
|
174
|
+
lines.append("*No AI summary available*")
|
|
175
|
+
|
|
176
|
+
lines.append("") # Empty line after AI summary
|
|
177
|
+
return "\n".join(lines)
|
|
178
|
+
|
|
162
179
|
def _generate_comments(
|
|
163
180
|
self, comments: List[Dict], organization_members: Optional[List[Dict]] = None
|
|
164
181
|
) -> str:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|