Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
eb42d91
feat: Update store selection process and enhance log service integration
tautcony Jul 3, 2026
260c053
feat: Enhance ChapterDiagnostic with Arguments and improve error hand…
tautcony Jul 4, 2026
25e4752
fix: Correct case of 'Full' in blame-hang-dump-type for consistency i…
tautcony Jul 4, 2026
c8522ba
test: speed up Avalonia unit test execution
tautcony Jul 4, 2026
2e2f18f
feat: Add macOS app bundle support and update application icon
tautcony Jul 4, 2026
93094e5
feat: Add empty-state visual for chapter grid with SVG rendering
tautcony Jul 5, 2026
fc862f9
feat: Improve event handling in ApplicationLogPanelProvider and enhan…
tautcony Jul 5, 2026
28f935b
feat: Implement expression editor with syntax highlighting, completio…
tautcony Jul 5, 2026
158e431
feat: Refactor code for improved readability and performance
tautcony Jul 6, 2026
1d027fe
feat: Update application version to 3.0.0 and enhance window title wi…
tautcony Jul 6, 2026
c25be0a
feat: Add Windows file association service and remove unsupported pla…
tautcony Jul 6, 2026
0becd66
feat: Introduce structured CLI command interface for ChapterTool with…
tautcony Jul 6, 2026
d4374fa
feat: Add 'About' section to settings with application details and re…
tautcony Jul 6, 2026
56683e8
feat: Update CI workflow to run on Ubuntu and enhance publish scripts…
tautcony Jul 6, 2026
be0645f
docs: add code review fix todo
tautcony Jul 6, 2026
b5d4f3f
fix: preserve WebVTT cue end times
tautcony Jul 6, 2026
bfc6e33
fix: avoid shell command interpolation
tautcony Jul 6, 2026
b4170d6
fix: complete Windows file association registration
tautcony Jul 6, 2026
565e151
fix: disable empty preview command
tautcony Jul 6, 2026
a066505
refactor: remove unused cue parser injection
tautcony Jul 6, 2026
51edd43
fix: import IFO chapters from request content
tautcony Jul 6, 2026
9711c0a
test: decouple core media tests from infrastructure
tautcony Jul 6, 2026
ebcae34
fix: require executable external tool candidates
tautcony Jul 6, 2026
67d3e84
fix: preserve corrupt settings files
tautcony Jul 6, 2026
a900a49
fix: log shell service failures
tautcony Jul 6, 2026
0a20053
fix: clarify ffmpeg directory setting
tautcony Jul 6, 2026
54c35fb
fix: localize native picker options
tautcony Jul 6, 2026
9d41143
fix: name icon-only buttons for accessibility
tautcony Jul 6, 2026
a674ff5
refactor: keep bdmv stdout out of diagnostics
tautcony Jul 6, 2026
295d6d4
feat: expose file association in settings
tautcony Jul 6, 2026
72b7a24
test: remove fixed ui command delay
tautcony Jul 6, 2026
92b9d24
test: await matroska integration setup
tautcony Jul 6, 2026
08504a5
fix: parse quoted mkvtoolnix display icon
tautcony Jul 6, 2026
9020976
fix: hide eac3to export window
tautcony Jul 6, 2026
e3626ed
refactor: hide infrastructure test doubles
tautcony Jul 6, 2026
a152682
test: strengthen screenshot assertions
tautcony Jul 6, 2026
b688350
Revert "feat: expose file association in settings"
tautcony Jul 7, 2026
107ad8b
refactor: remove file association service implementation and related …
tautcony Jul 7, 2026
df25f2d
chore: upgrade version to 23.0.0
tautcony Jul 7, 2026
53514f7
refactor: streamline ChapterToolCliApplication initialization and enh…
tautcony Jul 7, 2026
4882c42
chore: remove unsed file
tautcony Jul 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .codex/skills/openspec-apply-change/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
generatedBy: "1.4.1"
generatedBy: "1.5.0"
---

Implement tasks from an OpenSpec change.

**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`). Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.

**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.

**Steps**
Expand Down Expand Up @@ -50,8 +52,6 @@ Implement tasks from an OpenSpec change.
- If `state: "all_done"`: congratulate, suggest archive
- Otherwise: proceed to implementation

**Workspace guard:** If status JSON reports `actionContext.mode: "workspace-planning"` and `allowedEditRoots` is empty, explain that full workspace apply is not supported in this slice. Treat linked repos and folders as read-only context, ask the user to select an affected area through an explicit implementation workflow, and STOP before editing files.

4. **Read context files**

Read every file path listed under `contextFiles` from the apply instructions output.
Expand Down
6 changes: 3 additions & 3 deletions .codex/skills/openspec-archive-change/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
generatedBy: "1.4.1"
generatedBy: "1.5.0"
---

Archive a completed change in the experimental workflow.

**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`). Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.

**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.

**Steps**
Expand All @@ -33,8 +35,6 @@ Archive a completed change in the experimental workflow.
- `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context
- `artifacts`: List of artifacts with their status (`done` or other)

If status reports `actionContext.mode: "workspace-planning"`, explain that workspace archive is not supported in this slice and STOP. Do not move workspace changes into repo-local archives or edit linked repos.

**If any artifacts are not `done`:**
- Display warning listing incomplete artifacts
- Use **AskUserQuestion tool** to confirm user wants to proceed
Expand Down
248 changes: 248 additions & 0 deletions .codex/skills/openspec-bulk-archive-change/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
---
name: openspec-bulk-archive-change
description: Archive multiple completed changes at once. Use when archiving several parallel changes.
license: MIT
compatibility: Requires openspec CLI.
metadata:
author: openspec
version: "1.0"
generatedBy: "1.5.0"
---

Archive multiple completed changes in a single operation.

This skill allows you to batch-archive changes, handling spec conflicts intelligently by checking the codebase to determine what's actually implemented.

**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`). Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.

**Input**: None required (prompts for selection)

**Steps**

1. **Get active changes**

Run `openspec list --json` to get all active changes.

If no active changes exist, inform user and stop.

2. **Prompt for change selection**

Use **AskUserQuestion tool** with multi-select to let user choose changes:
- Show each change with its schema
- Include an option for "All changes"
- Allow any number of selections (1+ works, 2+ is the typical use case)

**IMPORTANT**: Do NOT auto-select. Always let the user choose.

3. **Batch validation - gather status for all selected changes**

For each selected change, collect:

a. **Artifact status** - Run `openspec status --change "<name>" --json`
- Parse `schemaName`, `artifacts`, `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`
- Note which artifacts are `done` vs other states

b. **Task completion** - Read `artifactPaths.tasks.existingOutputPaths` from status JSON
- Count `- [ ]` (incomplete) vs `- [x]` (complete)
- If no tasks file exists, note as "No tasks"

c. **Delta specs** - Check `artifactPaths.specs.existingOutputPaths` from status JSON
- List which capability specs exist
- For each, extract requirement names (lines matching `### Requirement: <name>`)

4. **Detect spec conflicts**

Build a map of `capability -> [changes that touch it]`:

```
auth -> [change-a, change-b] <- CONFLICT (2+ changes)
api -> [change-c] <- OK (only 1 change)
```

A conflict exists when 2+ selected changes have delta specs for the same capability.

5. **Resolve conflicts agentically**

**For each conflict**, investigate the codebase:

a. **Read the delta specs** from each conflicting change to understand what each claims to add/modify

b. **Search the codebase** for implementation evidence:
- Look for code implementing requirements from each delta spec
- Check for related files, functions, or tests

c. **Determine resolution**:
- If only one change is actually implemented -> sync that one's specs
- If both implemented -> apply in chronological order (older first, newer overwrites)
- If neither implemented -> skip spec sync, warn user

d. **Record resolution** for each conflict:
- Which change's specs to apply
- In what order (if both)
- Rationale (what was found in codebase)

6. **Show consolidated status table**

Display a table summarizing all changes:

```
| Change | Artifacts | Tasks | Specs | Conflicts | Status |
|---------------------|-----------|-------|---------|-----------|--------|
| schema-management | Done | 5/5 | 2 delta | None | Ready |
| project-config | Done | 3/3 | 1 delta | None | Ready |
| add-oauth | Done | 4/4 | 1 delta | auth (!) | Ready* |
| add-verify-skill | 1 left | 2/5 | None | None | Warn |
```

For conflicts, show the resolution:
```
* Conflict resolution:
- auth spec: Will apply add-oauth then add-jwt (both implemented, chronological order)
```

For incomplete changes, show warnings:
```
Warnings:
- add-verify-skill: 1 incomplete artifact, 3 incomplete tasks
```

7. **Confirm batch operation**

Use **AskUserQuestion tool** with a single confirmation:

- "Archive N changes?" with options based on status
- Options might include:
- "Archive all N changes"
- "Archive only N ready changes (skip incomplete)"
- "Cancel"

If there are incomplete changes, make clear they'll be archived with warnings.

8. **Execute archive for each confirmed change**

Process changes in the determined order (respecting conflict resolution):

a. **Sync specs** if delta specs exist:
- Use the openspec-sync-specs approach (agent-driven intelligent merge)
- For conflicts, apply in resolved order
- Track if sync was done

b. **Perform the archive**:
```bash
mkdir -p "<planningHome.changesDir>/archive"
mv "<changeRoot>" "<planningHome.changesDir>/archive/YYYY-MM-DD-<name>"
```

c. **Track outcome** for each change:
- Success: archived successfully
- Failed: error during archive (record error)
- Skipped: user chose not to archive (if applicable)

9. **Display summary**

Show final results:

```
## Bulk Archive Complete

Archived 3 changes:
- schema-management-cli -> archive/2026-01-19-schema-management-cli/
- project-config -> archive/2026-01-19-project-config/
- add-oauth -> archive/2026-01-19-add-oauth/

Skipped 1 change:
- add-verify-skill (user chose not to archive incomplete)

Spec sync summary:
- 4 delta specs synced to main specs
- 1 conflict resolved (auth: applied both in chronological order)
```

If any failures:
```
Failed 1 change:
- some-change: Archive directory already exists
```

**Conflict Resolution Examples**

Example 1: Only one implemented
```
Conflict: specs/auth/spec.md touched by [add-oauth, add-jwt]

Checking add-oauth:
- Delta adds "OAuth Provider Integration" requirement
- Searching codebase... found src/auth/oauth.ts implementing OAuth flow

Checking add-jwt:
- Delta adds "JWT Token Handling" requirement
- Searching codebase... no JWT implementation found

Resolution: Only add-oauth is implemented. Will sync add-oauth specs only.
```

Example 2: Both implemented
```
Conflict: specs/api/spec.md touched by [add-rest-api, add-graphql]

Checking add-rest-api (created 2026-01-10):
- Delta adds "REST Endpoints" requirement
- Searching codebase... found src/api/rest.ts

Checking add-graphql (created 2026-01-15):
- Delta adds "GraphQL Schema" requirement
- Searching codebase... found src/api/graphql.ts

Resolution: Both implemented. Will apply add-rest-api specs first,
then add-graphql specs (chronological order, newer takes precedence).
```

**Output On Success**

```
## Bulk Archive Complete

Archived N changes:
- <change-1> -> archive/YYYY-MM-DD-<change-1>/
- <change-2> -> archive/YYYY-MM-DD-<change-2>/

Spec sync summary:
- N delta specs synced to main specs
- No conflicts (or: M conflicts resolved)
```

**Output On Partial Success**

```
## Bulk Archive Complete (partial)

Archived N changes:
- <change-1> -> archive/YYYY-MM-DD-<change-1>/

Skipped M changes:
- <change-2> (user chose not to archive incomplete)

Failed K changes:
- <change-3>: Archive directory already exists
```

**Output When No Changes**

```
## No Changes to Archive

No active changes found. Create a new change to get started.
```

**Guardrails**
- Allow any number of changes (1+ is fine, 2+ is the typical use case)
- Always prompt for selection, never auto-select
- Detect spec conflicts early and resolve by checking codebase
- When both changes are implemented, apply specs in chronological order
- Skip spec sync only when implementation is missing (warn user)
- Show clear per-change status before confirming
- Use single confirmation for entire batch
- Track and report all outcomes (success/skip/fail)
- Preserve .openspec.yaml when moving to archive
- Archive directory target uses current date: YYYY-MM-DD-<name>
- If archive target exists, fail that change but continue with others
Loading
Loading