auto-coder-web 0.1.111__py3-none-any.whl → 0.1.113__py3-none-any.whl

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.
@@ -285,15 +285,16 @@ def load_providers() -> List[Dict]:
285
285
  },
286
286
  {
287
287
  "name": "google",
288
- "base_url": "default",
289
- "model_type": "saas/gemini",
288
+ "base_url": "https://generativelanguage.googleapis.com/v1beta/openai/",
289
+ "model_type": "saas/openai",
290
290
  "models": [
291
291
  {
292
- "id": "gemini-2.5-pro-exp-03-25",
293
- "name": "gemini-2.5-pro-exp-03-25",
294
- "input_price": 0,
295
- "output_price": 0,
296
- "is_reasoning": True
292
+ "id": "gemini-2.5-pro-preview-05-06",
293
+ "name": "gemini-2.5-pro-preview-05-06",
294
+ "input_price": 8.8,
295
+ "output_price": 77.0,
296
+ "is_reasoning": False,
297
+ "max_output_tokens": 8096*4
297
298
  }
298
299
  ]
299
300
  }
@@ -299,13 +299,7 @@ async def analyze_rules(
299
299
  # Using a placeholder or assuming indexer provides files for now.
300
300
  # Let's try fetching from memory first, might be empty in web context.
301
301
  memory = get_memory() # Get memory specific to project
302
- files = memory.get("current_files", {}).get("files", [])
303
-
304
- if not files:
305
- # If no files in memory, maybe analyze all project files? Or require explicit list?
306
- # For now, report error if no files are targeted.
307
- raise ValueError("No active files found in memory for analysis. Specify files or use a different mechanism.")
308
-
302
+ files = memory.get("current_files", {}).get("files", [])
309
303
 
310
304
  sources = SourceCodeList([])
311
305
  event_manager.write_event(EventContentCreator.create_message(f"Reading {len(files)} files for analysis...").to_dict())
@@ -622,10 +616,7 @@ async def get_context_prompt(
622
616
 
623
617
  # 获取内存中的文件
624
618
  memory = get_memory()
625
- files = memory.get("current_files", {}).get("files", [])
626
-
627
- if not files:
628
- raise HTTPException(status_code=400, detail="没有找到活跃的文件,请指定文件或使用其他机制")
619
+ files = memory.get("current_files", {}).get("files", [])
629
620
 
630
621
  sources = SourceCodeList([])
631
622
  for file in files:
@@ -639,10 +630,7 @@ async def get_context_prompt(
639
630
  sources.sources.append(SourceCode(module_name=file, source_code=source_code))
640
631
  except Exception as e:
641
632
  logger.error(f"读取文件 {file_abs_path} 错误: {e}")
642
- continue
643
-
644
- if not sources.sources:
645
- raise HTTPException(status_code=400, detail="没有有效的源文件可以分析")
633
+ continue
646
634
 
647
635
  # 生成分析提示文本
648
636
  prompt_text = auto_learn.analyze_modules.prompt(sources=sources, query=request_data.query)
auto_coder_web/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.111"
1
+ __version__ = "0.1.113"
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto_coder_web
3
- Version: 0.1.111
3
+ Version: 0.1.113
4
4
  Summary: auto-coder.web: A Python Project
5
5
  Author: allwefantasy
6
6
  Classifier: Programming Language :: Python :: 3.10
7
7
  Classifier: Programming Language :: Python :: 3.11
8
8
  Classifier: Programming Language :: Python :: 3.12
9
9
  Description-Content-Type: text/markdown
10
- Requires-Dist: auto-coder >=0.1.383
11
- Requires-Dist: aiofiles
10
+ Requires-Dist: auto-coder >=0.1.389
11
+ Requires-Dist: aiofiles >=24.1.0
12
12
  Requires-Dist: psutil
13
13
  Requires-Dist: watchdog
14
14
  Requires-Dist: sse-starlette
@@ -7,7 +7,7 @@ auto_coder_web/lang.py,sha256=cXypkDesnMwZ0U6D_CZtxhDTAOp__hoJzYTulQ_8xPc,1108
7
7
  auto_coder_web/proxy.py,sha256=PwT96mcywxFJXK1d50LvUW5FidMHxGukSDYHI4tMBHo,12175
8
8
  auto_coder_web/terminal.py,sha256=65F-mjFaZdoKK5k29re7_H7az6mZeOVqTrC8Wuvn-4g,9835
9
9
  auto_coder_web/types.py,sha256=hwHLmYXaCZo-V66dAOsCK2weBAd87gexBeJBpfjO5aU,1693
10
- auto_coder_web/version.py,sha256=lrG5YEJvZGvdRdN0nHdBVYBbeJk9t0y5VzK8HCgSUHk,24
10
+ auto_coder_web/version.py,sha256=j3sjtalrZ7qzajUh_46Une0yUZprSFiTpVECCQnsaGI,24
11
11
  auto_coder_web/agentic_message_parser/__init__.py,sha256=a6tHO-3fWK2uIU-E3wPISO3H-5I9XHKjofyPxj-m7pY,358
12
12
  auto_coder_web/agentic_message_parser/message_parser.py,sha256=-uGG2QDXS7aLPi7zJopDwlt0S__JFHgKPPZs68LpKhI,2690
13
13
  auto_coder_web/agentic_message_parser/tool_parsers.py,sha256=hCjd02ErCu5u5EmElOPHc6w0UZFX4M59FVJwfy3WkV8,2653
@@ -23,7 +23,7 @@ auto_coder_web/common_router/file_group_router.py,sha256=gkQp59SVlAkN79S8Gd_ah_5
23
23
  auto_coder_web/common_router/file_router.py,sha256=orTiG9hn-eEd8i4HhMhbob4SsRbbEsJvOxk7CCbhoQY,10759
24
24
  auto_coder_web/common_router/filecacher.py,sha256=3LgmGUqfjUyfRz2rxWvXsP-ovyjGW-t0Cl49Tibhd0Y,4666
25
25
  auto_coder_web/common_router/lib_router.py,sha256=p_BdgvjYri41lRDyAOm-IY7uKSICk2g5lsTsz7zk_Ww,11117
26
- auto_coder_web/common_router/model_router.py,sha256=mnpgijdm8OemZmPZyoDrlZ-cYyXOM9hpANqWxKkjktM,14074
26
+ auto_coder_web/common_router/model_router.py,sha256=NtDH8U5_6ZsoCTO1GDdZUuxyOnTVRmWt6MB9feLMaXI,14186
27
27
  auto_coder_web/expert_routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  auto_coder_web/expert_routers/history_router.py,sha256=9NUPlDQJJY5xhGepj38ej3qXAlbaquJDVaSniNhFpqw,12471
29
29
  auto_coder_web/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -40,7 +40,7 @@ auto_coder_web/routers/file_command_router.py,sha256=zLq4wrmyTO3BV1ng7ioUluI2SAM
40
40
  auto_coder_web/routers/index_router.py,sha256=XDHKJX_om7Oik4pMGpQVFAqMS8B2jvjKbR9PBuCGrqY,9934
41
41
  auto_coder_web/routers/mcp_router.py,sha256=G7bLXXf59x5oLUwW_x-q0HJhikykKTHqzIU6KAYhQM4,16773
42
42
  auto_coder_web/routers/rag_router.py,sha256=ELQ2IIPp0qo5CJXoZ1gHD4Y_R2lyFzV74MJcKtZl1wM,4190
43
- auto_coder_web/routers/rules_router.py,sha256=zQ1PeeRnjKhkzJf_tQGF_EqufEq2USV68vjffsTQogE,32671
43
+ auto_coder_web/routers/rules_router.py,sha256=yypIybQNchsh-GO_kwGgSSsM-NlvBmaM6DiWikYgrsQ,32098
44
44
  auto_coder_web/routers/settings_router.py,sha256=djmFzkJlfscPlc3VTqh5kOzMxtMSXvSAubVvSTaHLP4,2505
45
45
  auto_coder_web/routers/todo_router.py,sha256=IkQurQTw0Xk9P8yEtY_iie1z5ZK3CzDQE_NnXl5TEOM,20159
46
46
  auto_coder_web/routers/upload_router.py,sha256=HdQIl3ICcT3EB2kwryTbF-PItWV-Gugses7Y0Eaw2WQ,1798
@@ -348,8 +348,8 @@ auto_coder_web/web/monaco-editor/min/vs/language/typescript/tsWorker.js,sha256=_
348
348
  auto_coder_web/web/sounds/ding-dong.wav,sha256=BveDrGCyt_YMHaJwFJ80L5NfbUF5cl5QjzR-SRehxTk,35324
349
349
  auto_coder_web/web/sounds/gentle-notification.wav,sha256=bzd0MwECdrjmNz7mbqv_y03S7WwD3G6agbIh1rWJ9cQ,72124
350
350
  auto_coder_web/web/sounds/soft-chime.wav,sha256=Akpw7_rHLnX3rE13dRYpyZbmQFLGtp8P53LCdAkT9sA,40364
351
- auto_coder_web-0.1.111.dist-info/METADATA,sha256=_IJOBRZOqMrd077MmNou3BRFgozw0ebPPSsi4HRcRBc,1436
352
- auto_coder_web-0.1.111.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
353
- auto_coder_web-0.1.111.dist-info/entry_points.txt,sha256=oh8kd1ZecWDgdv-bIj_ru3phvl4scuxwXl9DK0Khltg,61
354
- auto_coder_web-0.1.111.dist-info/top_level.txt,sha256=UCzEw494Im0KvR-FTYf2jh-okqHvLsC_0JLOrQZoSpg,15
355
- auto_coder_web-0.1.111.dist-info/RECORD,,
351
+ auto_coder_web-0.1.113.dist-info/METADATA,sha256=b_MvI2y2pu1KUbVJnSTeHHOW31g2pG3EyS5DZSa3FMs,1445
352
+ auto_coder_web-0.1.113.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
353
+ auto_coder_web-0.1.113.dist-info/entry_points.txt,sha256=oh8kd1ZecWDgdv-bIj_ru3phvl4scuxwXl9DK0Khltg,61
354
+ auto_coder_web-0.1.113.dist-info/top_level.txt,sha256=UCzEw494Im0KvR-FTYf2jh-okqHvLsC_0JLOrQZoSpg,15
355
+ auto_coder_web-0.1.113.dist-info/RECORD,,