xqyz
d5469a64d2
Handle new path creation
...
To handle cases where a path, a file, or both need to be created, you can enhance the `fname.touch()` code as follows:
```python
try:
# Create parent directories if they don't exist
fname.parent.mkdir(parents=True, exist_ok=True)
# Create the file
fname.touch()
all_matched_files.add(str(fname))
self.io.tool_output(f"Created file: {fname}")
except OSError as e:
self.io.tool_error(f"Error creating file {fname}: {e}")
```
This code ensures that any necessary parent directories are created before attempting to create the file itself.
2025-01-12 07:29:45 +00:00
Paul Gauthier
ac26fc6d5f
set version to 0.71.2.dev
2025-01-11 16:07:56 -08:00
Paul Gauthier
122088712d
version bump to 0.71.1
2025-01-11 16:06:25 -08:00
Paul Gauthier
9fb09ce14d
copy
2025-01-11 16:04:53 -08:00
Paul Gauthier (aider)
392fb21946
fix: ensure integer indices for list slicing in repomap.py
2025-01-11 15:49:58 -08:00
Paul Gauthier (aider)
e94b05851f
style: Format test_io.py with consistent string quotes and spacing
2025-01-11 15:48:10 -08:00
Paul Gauthier (aider)
571a5962b7
test: update test to use invalid Unicode that triggers encoding error
2025-01-11 15:48:05 -08:00
Paul Gauthier (aider)
8b6863dc40
style: Format test_io.py with consistent quotes and spacing
2025-01-11 15:46:33 -08:00
Paul Gauthier (aider)
01af629399
test: add test for Unicode to ASCII fallback in tool messages
2025-01-11 15:46:28 -08:00
Paul Gauthier (aider)
4ece6d2a9b
fix: handle Text objects properly in io.py for Windows Unicode encoding
2025-01-11 15:40:24 -08:00
Paul Gauthier
18d1d7af33
no chown for COPY
2025-01-11 07:46:23 -08:00
Paul Gauthier
5ada250a66
refactor: Add period to read-only file message in base_coder.py
2025-01-11 07:39:29 -08:00
Paul Gauthier (aider)
308c7ab670
feat: Add read-only file announcements to chat
2025-01-11 07:27:50 -08:00
Paul Gauthier
89d35e020a
refactor: Add comment for read-only file message in base_coder.py
2025-01-11 07:27:49 -08:00
Paul Gauthier (aider)
6729570799
refactor: Simplify docker-build-test.yml to mirror release workflow with dev tags
2025-01-11 07:16:02 -08:00
Paul Gauthier (aider)
f72f5f6438
ci: Add dev tag publishing to Docker build test workflow
2025-01-11 07:12:56 -08:00
Paul Gauthier
a02e11e0bc
Revert "ci: Add Docker image tests with --yes --exit args"
...
This reverts commit fdddfc6b1f
.
2025-01-11 07:06:08 -08:00
Paul Gauthier
9ff15e1506
copy
2025-01-11 06:53:44 -08:00
Paul Gauthier (aider)
fdddfc6b1f
ci: Add Docker image tests with --yes --exit args
2025-01-11 06:52:29 -08:00
Paul Gauthier (aider)
78ebb6295d
fix: Restore site-packages permissions in Dockerfile for appuser access
2025-01-11 06:48:26 -08:00
Paul Gauthier
73c89e8c00
copy
2025-01-10 15:53:17 -08:00
Paul Gauthier (aider)
fcc499e401
refactor: normalize deepseek model names to deepseek-chat
2025-01-10 15:51:53 -08:00
Paul Gauthier
6e8efe22aa
refactor: Combine deepseek/deepseek-coder into chat AI in model stats
2025-01-10 15:51:52 -08:00
Paul Gauthier
f9c5cb73a2
copy
2025-01-10 15:08:15 -08:00
Paul Gauthier
c939521f5f
copy
2025-01-10 15:04:54 -08:00
Paul Gauthier
2640e05307
set version to 0.71.1.dev
2025-01-10 15:01:41 -08:00
Paul Gauthier
c1a371e3d3
version bump to 0.71.0
2025-01-10 15:00:02 -08:00
Paul Gauthier
5a4871155a
copy
2025-01-10 14:54:42 -08:00
Paul Gauthier (aider)
d8e6dbf788
docs: clarify dual purpose of /ask, /code, and /architect commands
2025-01-10 14:51:25 -08:00
Paul Gauthier
7ea69ae4b4
refactor: Simplify map_tokens assignment logic in main.py
2025-01-10 14:49:16 -08:00
Paul Gauthier
d238ead451
copy
2025-01-10 14:44:00 -08:00
Paul Gauthier (aider)
e6b449f24d
test: add tests for get_repo_map_tokens method
2025-01-10 14:39:50 -08:00
Paul Gauthier (aider)
41018d05a8
fix: remove unused max_tokens variable in get_repo_map_tokens
2025-01-10 14:38:22 -08:00
Paul Gauthier
d48008e13d
refactor: Update repo map token handling and improve warning message
2025-01-10 14:38:12 -08:00
Paul Gauthier
a9cf438100
refactor: Update terminal detection message to include pretty output
2025-01-10 14:26:06 -08:00
Paul Gauthier (aider)
6c7a0d21d2
style: Remove trailing whitespace in io.py
2025-01-10 14:25:04 -08:00
Paul Gauthier (aider)
d887db4c18
fix: disable pretty output for dumb terminals
2025-01-10 14:24:59 -08:00
Paul Gauthier (aider)
e6be69ec6d
test: add test case for TERM=dumb terminal handling
2025-01-10 14:24:27 -08:00
Paul Gauthier
c1ba7db8a1
refactor: Update placeholder text in cmd_run for better clarity
2025-01-10 14:23:42 -08:00
Paul Gauthier
dc5b5896a9
copy
2025-01-10 14:20:50 -08:00
Paul Gauthier
38678fafc1
refactor: Simplify fence pattern matching in base_coder.py
2025-01-10 14:20:02 -08:00
Paul Gauthier
7611211d1c
copy
2025-01-10 14:19:51 -08:00
Paul Gauthier
0d9c2cd902
copy
2025-01-10 14:09:22 -08:00
Paul Gauthier (aider)
1a84c109fc
feat: allow /ask, /code, /architect without args to switch modes
2025-01-10 14:07:24 -08:00
Paul Gauthier (aider)
cbedf3f8cc
fix: Correct typo in variable name from model_metatdata_files
to model_metadata_files
2025-01-10 14:04:54 -08:00
Paul Gauthier
50436e3106
docs: Update model usage statistics and dumb terminal message
2025-01-10 14:04:41 -08:00
Paul Gauthier (aider)
62498ec867
style: Reorder imports and fix whitespace in aider/io.py
2025-01-10 14:03:57 -08:00
Paul Gauthier (aider)
91b94bb16c
feat: add dumb terminal detection and fallback handling
2025-01-10 14:03:53 -08:00
Paul Gauthier
c2bbdc503c
copy
2025-01-10 13:33:00 -08:00
Paul Gauthier
babae0fa6e
refactor: conditionally set stream based on main_model.streaming
2025-01-10 13:31:55 -08:00