copilot-session-tools 0.12.0__tar.gz → 0.13.0__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.
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/CHANGELOG.md +7 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/PKG-INFO +1 -1
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/pyproject.toml +1 -1
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/__init__.py +1 -1
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/content_types.py +1 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/html_exporter.py +4 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/markdown_exporter.py +4 -1
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/web/templates/session.html +50 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/LICENSE +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/README.md +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/cli.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/database.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/db_retrieval.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/db_schema.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/db_search.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/db_storage.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/py.typed +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/refresh.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/__init__.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/cli.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/content.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/diff.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/discovery.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/git.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/models.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/shared.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/scanner/vscode.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/transcript_cleanup.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/utils.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/version_check.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/web/__init__.py +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/web/templates/error.html +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/web/templates/index.html +0 -0
- {copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/web/webapp.py +0 -0
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.13.0] - 2026-05-29
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Web Viewer / HTML Export**: `role == "system"` messages now render as collapsible `<details>` blocks with a chevron, collapsed by default and expandable inline.
|
|
13
|
+
- **Content Types / Exporters**: New `system-messages` content type for `--include/--exclude`. In markdown export, system messages are omitted unless included. In HTML export, system messages always render but are collapsed by default; including `system-messages` opens them by default.
|
|
14
|
+
|
|
8
15
|
## [0.10.3] - 2026-04-05
|
|
9
16
|
|
|
10
17
|
### Added
|
|
@@ -14,6 +14,7 @@ import typer
|
|
|
14
14
|
|
|
15
15
|
CONTENT_TYPES: dict[str, str] = {
|
|
16
16
|
"thinking": "Include thinking/reasoning blocks",
|
|
17
|
+
"system-messages": "Expand system-role messages by default",
|
|
17
18
|
"diffs": "Include file change diffs",
|
|
18
19
|
"tool-inputs": "Include tool input parameters",
|
|
19
20
|
"agent-details": "Include full agent/subagent content",
|
|
@@ -87,6 +87,7 @@ def session_to_html(session: ChatSession, content_set: set[str] | None = None) -
|
|
|
87
87
|
|
|
88
88
|
include_agent_details = "agent-details" in content_set
|
|
89
89
|
include_thinking = "thinking" in content_set
|
|
90
|
+
include_system_messages = "system-messages" in content_set
|
|
90
91
|
|
|
91
92
|
# Compute CSS hide classes for static export (no Alpine.js)
|
|
92
93
|
static_hide_classes_list: list[str] = []
|
|
@@ -104,6 +105,8 @@ def session_to_html(session: ChatSession, content_set: set[str] | None = None) -
|
|
|
104
105
|
static_hide_classes_list.append("hide-commands")
|
|
105
106
|
if "file-changes" not in content_set:
|
|
106
107
|
static_hide_classes_list.append("hide-file-changes")
|
|
108
|
+
if include_system_messages:
|
|
109
|
+
static_hide_classes_list.append("expand-system-messages")
|
|
107
110
|
|
|
108
111
|
first_user_prompt, message_metadata = _preprocess_messages(session)
|
|
109
112
|
env = _get_jinja_env()
|
|
@@ -119,6 +122,7 @@ def session_to_html(session: ChatSession, content_set: set[str] | None = None) -
|
|
|
119
122
|
is_enriched=True,
|
|
120
123
|
include_agent_details=include_agent_details,
|
|
121
124
|
include_thinking=include_thinking,
|
|
125
|
+
include_system_messages=include_system_messages,
|
|
122
126
|
static_hide_classes=" ".join(static_hide_classes_list),
|
|
123
127
|
)
|
|
124
128
|
|
|
@@ -227,7 +227,7 @@ def session_to_markdown(
|
|
|
227
227
|
session: The ChatSession to convert.
|
|
228
228
|
content_set: Controls which content types to include.
|
|
229
229
|
Supported keys: "diffs", "tool-inputs", "thinking", "agent-details",
|
|
230
|
-
"tools", "commands", "file-changes".
|
|
230
|
+
"tools", "commands", "file-changes", "system-messages".
|
|
231
231
|
If None, uses DEFAULT_INCLUDES from content_types module.
|
|
232
232
|
|
|
233
233
|
Returns:
|
|
@@ -245,6 +245,7 @@ def session_to_markdown(
|
|
|
245
245
|
include_tools = "tools" in content_set
|
|
246
246
|
include_commands = "commands" in content_set
|
|
247
247
|
include_file_changes = "file-changes" in content_set
|
|
248
|
+
include_system_messages = "system-messages" in content_set
|
|
248
249
|
lines = []
|
|
249
250
|
|
|
250
251
|
# Header block with metadata
|
|
@@ -294,6 +295,8 @@ def session_to_markdown(
|
|
|
294
295
|
|
|
295
296
|
# Messages
|
|
296
297
|
for i, message in enumerate(session.messages, 1):
|
|
298
|
+
if message.role == "system" and not include_system_messages:
|
|
299
|
+
continue
|
|
297
300
|
msg_md = message_to_markdown(
|
|
298
301
|
message,
|
|
299
302
|
message_number=i,
|
|
@@ -1004,6 +1004,32 @@ header h1 {
|
|
|
1004
1004
|
display: inline-block;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
|
+
.system-message-details {
|
|
1008
|
+
opacity: 0.85;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
.system-message-details > summary {
|
|
1012
|
+
cursor: pointer;
|
|
1013
|
+
list-style: none;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.system-message-details > summary::-webkit-details-marker {
|
|
1017
|
+
display: none;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.system-message-details > summary .collapsible-icon {
|
|
1021
|
+
display: inline-block;
|
|
1022
|
+
color: var(--text-secondary);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.system-message-details[open] > summary .collapsible-icon {
|
|
1026
|
+
transform: rotate(90deg);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.expand-system-messages .system-message-details {
|
|
1030
|
+
opacity: 1;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1007
1033
|
/* Agent back-link */
|
|
1008
1034
|
.agent-backlink {
|
|
1009
1035
|
display: inline-flex;
|
|
@@ -2524,6 +2550,7 @@ input:checked + .toggle-switch::after {
|
|
|
2524
2550
|
buildContentSet() {
|
|
2525
2551
|
const set = [];
|
|
2526
2552
|
if (this.thinking) set.push('thinking');
|
|
2553
|
+
set.push('system-messages');
|
|
2527
2554
|
if (this.diffs) set.push('diffs');
|
|
2528
2555
|
if (this.toolInputs) set.push('tool-inputs');
|
|
2529
2556
|
if (this.agentDetails) set.push('agent-details');
|
|
@@ -3344,6 +3371,29 @@ input:checked + .toggle-switch::after {
|
|
|
3344
3371
|
🔔 {{ message.content | replace('<system_notification>', '') | replace('</system_notification>', '') | truncate(100) | safe }}
|
|
3345
3372
|
</div>
|
|
3346
3373
|
</div>
|
|
3374
|
+
{% elif message.role == 'system' %}
|
|
3375
|
+
<div class="message system" id="msg-{{ loop.index }}">
|
|
3376
|
+
<details class="system-message-details"{% if static and include_system_messages %} open{% endif %}>
|
|
3377
|
+
<summary class="message-header">
|
|
3378
|
+
<span class="collapsible-icon" aria-hidden="true">▶</span>
|
|
3379
|
+
<div class="message-role">{{ message.role }}</div>
|
|
3380
|
+
{% if message.timestamp %}
|
|
3381
|
+
<span class="message-timestamp">{{ message.timestamp | format_timestamp }}</span>
|
|
3382
|
+
{% endif %}
|
|
3383
|
+
<a href="#msg-{{ loop.index }}" class="message-anchor" title="Link to this message" onclick="event.stopPropagation()">#{{ loop.index }}</a>
|
|
3384
|
+
{% if not static %}
|
|
3385
|
+
<button type="button" class="message-copy-btn" data-message-index="{{ loop.index }}" data-session-id="{{ session.session_id }}" title="Copy this message as markdown" aria-label="Copy message as markdown" onclick="event.stopPropagation()">
|
|
3386
|
+
<i class="fa-regular fa-copy"></i>
|
|
3387
|
+
</button>
|
|
3388
|
+
{% endif %}
|
|
3389
|
+
</summary>
|
|
3390
|
+
<div class="message-content">
|
|
3391
|
+
<div class="message-content-inner">
|
|
3392
|
+
{{ render_content_blocks(message.content_blocks, message.tool_invocations, message.file_changes, message.command_runs, msg_meta, message.content) }}
|
|
3393
|
+
</div>
|
|
3394
|
+
</div>
|
|
3395
|
+
</details>
|
|
3396
|
+
</div>
|
|
3347
3397
|
{% else %}
|
|
3348
3398
|
<div class="message {{ message.role }}" id="msg-{{ loop.index }}">
|
|
3349
3399
|
<div class="message-header">
|
|
File without changes
|
|
File without changes
|
{copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/cli.py
RENAMED
|
File without changes
|
{copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/database.py
RENAMED
|
File without changes
|
|
File without changes
|
{copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/db_schema.py
RENAMED
|
File without changes
|
{copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/db_search.py
RENAMED
|
File without changes
|
|
File without changes
|
{copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/py.typed
RENAMED
|
File without changes
|
{copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/refresh.py
RENAMED
|
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
|
{copilot_session_tools-0.12.0 → copilot_session_tools-0.13.0}/src/copilot_session_tools/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|