1 Commits

Author SHA1 Message Date
07c7ec23d9 Add prompt_journal.md
All checks were successful
Build and Release / Build Windows Exe (push) Successful in 11s
2026-02-06 15:58:20 -05:00

26
prompt_journal.md Normal file
View File

@@ -0,0 +1,26 @@
# Prompt Journal
This document contains a log of the prompts used to build and refine this project.
## Session 1: Initial Refactor & Packaging
1. **Objective**: I have a ruby script that parses excel "WIF" documents that contain server names and network flows source destination ports. I need these to create an ansible inventory with attributes that detail the network connectivity required by each server in the solution. parse the WIF excel document and my existing by-hand ruby script and completely refactor them in python and increase the robustness of the parsing of network flows by using regex and allowing for shifts of cells, be aware of hidden cells and do not include a hidden cell in the output. Some cells may be visually the same cell with formatting/styling but in fact be different cells within the spreasheet - try to accomodate this. Ensure that only flows where the servers listed on the Servers tab are included in the resulting ansible inventory. the new python refactored script should allow me to take another WIF file with different servers and network flows and generate another ansible inventory file. You can see the two starting files to work with in the current project folder
2. **Packaging**: is there a way to package this
3. **Executable**: yes make me an exe
4. **Documentation**: create a readme.md that details how to run this
5. **Git Setup**: add all xls and xlsx to gitignore, add generated yml inventories to gitignore (not individually) all of them and all future. add and push this project to main at https://gitea.krisforbes.ca/krisf/wif2ansible.git. advise me of any potential ip address leakage before commiting and pushing this project
## Session 2: CI/CD & Logic Refinement
6. **CI/CD**: create me a gitea runner to generate a new release and automatically version releases each time a new push is made
7. **Push**: push it and ensure a new exe is generated by gitea runner
8. **Debug**: where is my bundled exe in my release
9. **Debug**: my release should contain an exe downloadable from the releases tab in git but it does not
10. **Debug**: error
11. **Debug**: error again
12. **Logic Update (Ports/DNS)**: when you parse a range of ports to be added to the result, only add the first, last, and middle port. examine the to_mgt_ip function in my original ruby script, this function converts the production interface public ipv4 address listed in the flows tab to the management private nic name by using DNS. please ensure this is implemented in the python version and push the new version
13. **Logic Update (Server Tab)**: thats a good point, you can also use the server's tab of the wif to ensure the name is used for the source so our ansible playbook can connect to the server. With the production ipv4, we have no ability to connect. use the server's tab of the WIF first and fallback to my ruby DNS method
14. **Release**: push a new version
15. **Output Format**: in the genrrated yaml file, i should see all: hosts : and the entires under this should not be IP addresses, they should be the server names from mapping the servers tab of the excel file
16. **Refining Output**: the server name key should not contain SRV### this is part of a reference and is not relevant except to provide mapping from the flows tab information to the servers information, please consider this SRV### information in your servers tab matching logic
17. **Documentation**: add a prompt journal to this project that cotnains a copy of all prompts used and automatically adds new prompts as i send them