You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request adds comprehensive support for Warp.dev terminal rules to the dotagent project. Warp.dev is a modern terminal application that allows users to define custom rules and workflows. This implementation enables users to import Warp rules from `WARP.md` files and export their unified `.agent/` rules back to Warp format.
6
+
7
+
## What is Warp.dev?
8
+
9
+
Warp.dev is a next-generation terminal application that provides:
10
+
- AI-powered command suggestions and completions
11
+
- Workflow automation capabilities
12
+
- Shared sessions and collaboration features
13
+
- Custom rule definitions for terminal behavior
14
+
- Modern UI with built-in command documentation
15
+
16
+
Warp uses `WARP.md` files to store terminal configuration, rules, and workflow definitions, similar to how other tools use their respective configuration files.
17
+
18
+
## Changes Made
19
+
20
+
### Type Definitions (`src/types.ts`)
21
+
- Added `'warp'` to the `Format` type union
22
+
- Updated `ImportResult.format` and `ExportOptions.format` to use the new `Format` type for better type safety
23
+
24
+
### Importer Implementation (`src/importers.ts`)
25
+
- Added `importWarp()` function to read and parse `WARP.md` files
26
+
- Added detection for both `WARP.md` and `WARP.local.md` files in `importAll()`
27
+
- Implemented private rule detection for Warp local files
28
+
- Created metadata with appropriate description: "Warp.dev terminal rules and instructions"
29
+
- Preserved content formatting and structure during import
30
+
31
+
### Exporter Implementation (`src/exporters.ts`)
32
+
- Added `exportToWarp()` function to convert unified rules to Warp format
33
+
- Implemented support for both always-apply and conditional rules
34
+
- Added proper headers from rule descriptions
35
+
- Integrated Warp export into the `exportAll()` function
36
+
- Maintained consistent formatting with other single-file exporters
37
+
38
+
### CLI Integration (`src/cli.ts`)
39
+
- Added 'warp' to supported formats in help text and validation
40
+
- Added Warp.dev option to export format selection menu
41
+
- Implemented auto-detection of `WARP.md` files in convert command
42
+
- Added proper error handling and help text updates
43
+
- Included `WARP.md` and `WARP.local.md` in gitignore patterns
44
+
45
+
### Module Exports (`src/index.ts`)
46
+
- Exported `importWarp` and `exportToWarp` functions for public API access
47
+
- Maintained consistent export structure with other formats
48
+
49
+
### Testing (`test/warp.test.ts`)
50
+
- Comprehensive test suite covering all Warp functionality:
0 commit comments