indent 0.1.18__tar.gz → 0.1.19__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.

Potentially problematic release.


This version of indent might be problematic. Click here for more details.

Files changed (51) hide show
  1. {indent-0.1.18 → indent-0.1.19}/PKG-INFO +1 -1
  2. {indent-0.1.18 → indent-0.1.19}/exponent/__init__.py +2 -2
  3. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/tool_execution.py +17 -11
  4. {indent-0.1.18 → indent-0.1.19}/.gitignore +0 -0
  5. {indent-0.1.18 → indent-0.1.19}/exponent/cli.py +0 -0
  6. {indent-0.1.18 → indent-0.1.19}/exponent/commands/cloud_commands.py +0 -0
  7. {indent-0.1.18 → indent-0.1.19}/exponent/commands/common.py +0 -0
  8. {indent-0.1.18 → indent-0.1.19}/exponent/commands/config_commands.py +0 -0
  9. {indent-0.1.18 → indent-0.1.19}/exponent/commands/run_commands.py +0 -0
  10. {indent-0.1.18 → indent-0.1.19}/exponent/commands/settings.py +0 -0
  11. {indent-0.1.18 → indent-0.1.19}/exponent/commands/types.py +0 -0
  12. {indent-0.1.18 → indent-0.1.19}/exponent/commands/upgrade.py +0 -0
  13. {indent-0.1.18 → indent-0.1.19}/exponent/commands/utils.py +0 -0
  14. {indent-0.1.18 → indent-0.1.19}/exponent/core/config.py +0 -0
  15. {indent-0.1.18 → indent-0.1.19}/exponent/core/graphql/__init__.py +0 -0
  16. {indent-0.1.18 → indent-0.1.19}/exponent/core/graphql/client.py +0 -0
  17. {indent-0.1.18 → indent-0.1.19}/exponent/core/graphql/get_chats_query.py +0 -0
  18. {indent-0.1.18 → indent-0.1.19}/exponent/core/graphql/github_config_queries.py +0 -0
  19. {indent-0.1.18 → indent-0.1.19}/exponent/core/graphql/mutations.py +0 -0
  20. {indent-0.1.18 → indent-0.1.19}/exponent/core/graphql/queries.py +0 -0
  21. {indent-0.1.18 → indent-0.1.19}/exponent/core/graphql/subscriptions.py +0 -0
  22. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/checkpoints.py +0 -0
  23. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/cli_rpc_types.py +0 -0
  24. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/client.py +0 -0
  25. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/code_execution.py +0 -0
  26. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/error_info.py +0 -0
  27. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/exceptions.py +0 -0
  28. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/file_write.py +0 -0
  29. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/files.py +0 -0
  30. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/git.py +0 -0
  31. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/http_fetch.py +0 -0
  32. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/languages/python_execution.py +0 -0
  33. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/languages/shell_streaming.py +0 -0
  34. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/languages/types.py +0 -0
  35. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/session.py +0 -0
  36. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/system_context.py +0 -0
  37. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/tool_type_utils.py +0 -0
  38. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/truncation.py +0 -0
  39. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/types.py +0 -0
  40. {indent-0.1.18 → indent-0.1.19}/exponent/core/remote_execution/utils.py +0 -0
  41. {indent-0.1.18 → indent-0.1.19}/exponent/core/types/__init__.py +0 -0
  42. {indent-0.1.18 → indent-0.1.19}/exponent/core/types/command_data.py +0 -0
  43. {indent-0.1.18 → indent-0.1.19}/exponent/core/types/event_types.py +0 -0
  44. {indent-0.1.18 → indent-0.1.19}/exponent/core/types/generated/__init__.py +0 -0
  45. {indent-0.1.18 → indent-0.1.19}/exponent/core/types/generated/strategy_info.py +0 -0
  46. {indent-0.1.18 → indent-0.1.19}/exponent/migration-docs/login.md +0 -0
  47. {indent-0.1.18 → indent-0.1.19}/exponent/py.typed +0 -0
  48. {indent-0.1.18 → indent-0.1.19}/exponent/utils/__init__.py +0 -0
  49. {indent-0.1.18 → indent-0.1.19}/exponent/utils/colors.py +0 -0
  50. {indent-0.1.18 → indent-0.1.19}/exponent/utils/version.py +0 -0
  51. {indent-0.1.18 → indent-0.1.19}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: indent
3
- Version: 0.1.18
3
+ Version: 0.1.19
4
4
  Summary: Indent is an AI Pair Programmer
5
5
  Author-email: Sashank Thupukari <sashank@exponent.run>
6
6
  Requires-Python: <3.13,>=3.10
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.1.18'
32
- __version_tuple__ = version_tuple = (0, 1, 18)
31
+ __version__ = version = '0.1.19'
32
+ __version_tuple__ = version_tuple = (0, 1, 19)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -1,3 +1,4 @@
1
+ import asyncio
1
2
  import logging
2
3
  import uuid
3
4
  from collections.abc import Callable
@@ -109,26 +110,31 @@ async def execute_read_file( # noqa: PLR0911, PLR0915
109
110
  is_image, media_type = is_image_file(tool_input.file_path)
110
111
  if is_image and media_type and upload_client is not None:
111
112
  try:
112
- import aiohttp
113
+ import urllib.request
113
114
 
114
115
  file_name = Path(tool_input.file_path).name
115
116
  s3_key = f"images/{uuid.uuid4()}/{file_name}"
116
117
 
117
118
  upload_response = await upload_client.request_upload_url(s3_key, media_type)
118
119
 
119
- async with aiohttp.ClientSession() as session:
120
- f = await file.open("rb")
121
- async with f:
122
- file_data = await f.read()
123
- async with session.put(
120
+ f = await file.open("rb")
121
+ async with f:
122
+ file_data = await f.read()
123
+
124
+ def _upload() -> int:
125
+ req = urllib.request.Request(
124
126
  upload_response.upload_url,
125
127
  data=file_data,
126
128
  headers={"Content-Type": media_type},
127
- ) as resp:
128
- if resp.status != 200:
129
- raise RuntimeError(
130
- f"Upload failed with status {resp.status}"
131
- )
129
+ method="PUT",
130
+ )
131
+ with urllib.request.urlopen(req) as resp:
132
+ status: int = resp.status
133
+ return status
134
+
135
+ status = await asyncio.to_thread(_upload)
136
+ if status != 200:
137
+ raise RuntimeError(f"Upload failed with status {status}")
132
138
 
133
139
  return ReadToolArtifactResult(
134
140
  s3_uri=upload_response.s3_uri,
File without changes
File without changes
File without changes
File without changes
File without changes