|
4 | 4 |
|
5 | 5 | def main() -> None: |
6 | 6 | script_dir = os.path.dirname(os.path.abspath(__file__)) |
7 | | - doc_path = os.path.join(script_dir, "..", "LLM_DOC.md") |
8 | | - type_path = os.path.join(script_dir, "..", "dist", "__init__.pyi") |
| 7 | + doc_path = os.path.join(script_dir, "..", "..", "LLM_DOC.md") |
9 | 8 |
|
10 | 9 | user_project_root = os.getcwd() |
11 | 10 | output_directory = os.path.join(user_project_root, ".junie") |
12 | 11 | output_file = os.path.join(output_directory, "guidelines.md") |
13 | 12 |
|
14 | 13 | relative_doc_path = os.path.relpath(doc_path, user_project_root) |
15 | | - relative_type_path = os.path.relpath(type_path, user_project_root) |
16 | 14 |
|
17 | 15 | try: |
18 | 16 | rule = f""" |
19 | 17 | # Nutrient DWS Python Client Usage |
20 | | -- Use the `@nutrient-sdk/dws-client-python` package for operations with document processing operations including conversion, merging, compression, watermarking, signage, and text extraction. |
| 18 | +- Use the `nutrient-dws` package for operations with document processing operations including conversion, merging, compression, watermarking, signage, and text extraction. |
21 | 19 | - Package Documentation and Examples can be found at: {relative_doc_path} |
22 | | -- Python Type Definitions can be found at: {relative_type_path} |
23 | 20 | """ |
24 | 21 | if not os.path.exists(output_directory): |
25 | 22 | os.makedirs(output_directory) |
26 | 23 | with open(output_file, "a", encoding="utf-8") as f: |
27 | 24 | f.write(rule) |
28 | 25 |
|
29 | 26 | print( |
30 | | - f"📄 Updated Junie Code Rules to point to Nutrient DWS documentation at {relative_doc_path} and {relative_type_path}." |
| 27 | + f"📄 Updated Junie Code Rules to point to Nutrient DWS documentation at {relative_doc_path}." |
31 | 28 | ) |
32 | 29 | except Exception as err: |
33 | 30 | print(f"Failed to update .junie/guidelines.md file: {err}", file=sys.stderr) |
|
0 commit comments