Commit Graph

2728 Commits

Author SHA1 Message Date
Jorge Manrubia 202088fc8e Comment AI in tests 2025-05-16 17:28:37 +02:00
Jorge Manrubia 19d0ee8c68 Add production openAI API key 2025-05-16 16:49:20 +02:00
Jorge Manrubia 541f24ab0b Limit the tokens we send for embeds
See insight by Donal here https://github.com/basecamp/fizzy/pull/483#discussion_r2084766023
2025-05-16 16:39:18 +02:00
Jorge Manrubia 40b78e4115 Move extension configuration to config file
Kudos to Mike for the tip
2025-05-16 16:17:54 +02:00
Jorge Manrubia e0e17d2bd0 Add test for the commands controller 2025-05-16 16:12:09 +02:00
Jorge Manrubia 5ac5b5ebde Add test for the composite command 2025-05-16 15:38:22 +02:00
Jorge Manrubia 04e3e56516 Add tests for ai parsing 2025-05-16 15:20:30 +02:00
Jorge Manrubia 2c0f6913ce Test fixes 2025-05-16 15:02:59 +02:00
Jorge Manrubia 7c2a1022a2 Fix test 2025-05-16 14:52:16 +02:00
Jorge Manrubia a5de913608 Improve prompt and tests 2025-05-16 14:49:51 +02:00
Jorge Manrubia 3ccfc165b2 Remove unused command 2025-05-16 14:20:20 +02:00
Jorge Manrubia 5fe5419905 Move similarity search to a param
To keep current tests working. This is all quite experimental. Used as a sandbox for now.
2025-05-16 14:16:14 +02:00
Jorge Manrubia 0a607fab4c Refresh search embeddings in jobs 2025-05-16 14:00:54 +02:00
Jorge Manrubia 54ce3f900c Rename method 2025-05-16 13:29:18 +02:00
Jorge Manrubia 53977fb905 Use symbolized keys 2025-05-16 13:29:18 +02:00
Jorge Manrubia b8f94c4ecb Add VCR and some initial tests 2025-05-16 13:29:18 +02:00
Jorge Manrubia 4c7b99e39d Add separated API key for test environment 2025-05-16 13:29:18 +02:00
Jorge Manrubia cd0a07740e Make sure that uses insight to reply to questions 2025-05-16 13:29:18 +02:00
Jorge Manrubia b079be8388 Be explicit about the model 2025-05-16 13:29:18 +02:00
Jorge Manrubia c12bf1301b More promot improvements 2025-05-16 13:29:18 +02:00
Jorge Manrubia 95d9cec353 Understand "my cards" better 2025-05-16 13:29:18 +02:00
Jorge Manrubia b867a189ae Place the variable context at the end so that it's more cache friendly 2025-05-16 13:29:18 +02:00
Jorge Manrubia 339810862e Not used 2025-05-16 13:29:18 +02:00
Jorge Manrubia 096933d326 Relax conditions to match collections 2025-05-16 13:29:18 +02:00
Jorge Manrubia 6933449d2d Tweak prefix 2025-05-16 13:29:18 +02:00
Jorge Manrubia 50d323d402 Rename method 2025-05-16 13:29:18 +02:00
Jorge Manrubia b2c273bd5f Extract method 2025-05-16 13:29:18 +02:00
Jorge Manrubia 8d017b0a19 Add cache when translating to commands 2025-05-16 13:29:18 +02:00
Jorge Manrubia 7d21443868 Remove unused 2025-05-16 13:29:18 +02:00
Jorge Manrubia 14eb7658d6 Reorder methods 2025-05-16 13:29:18 +02:00
Jorge Manrubia 188ae20fd8 Reorder methods 2025-05-16 13:29:18 +02:00
Jorge Manrubia 8cb16abb16 extract method 2025-05-16 13:29:18 +02:00
Jorge Manrubia 36478934fd Inline method 2025-05-16 13:29:18 +02:00
Jorge Manrubia fbe14a6533 Resolve "my" "I" in the context of the user using the system 2025-05-16 13:29:18 +02:00
Jorge Manrubia 28cd03668a Show multi-line confirmations 2025-05-16 13:29:18 +02:00
Jorge Manrubia aa7a92c448 Move terminal output outside of the frame so that it doesn't gets erased when reloading the frame 2025-05-16 13:29:18 +02:00
Jorge Manrubia 87b4643946 Fix: navigation not working after adding new commands 2025-05-16 13:29:18 +02:00
Jorge Manrubia 09f5efc100 Reflect new commands in the history 2025-05-16 13:29:18 +02:00
Jorge Manrubia 88fd3a7aaa Don't generate invalid JSON 2025-05-16 13:29:18 +02:00
Jorge Manrubia 7c55dd3a09 Make the input permanent
We need to command history to update
2025-05-16 13:29:18 +02:00
Jorge Manrubia d49f503af8 Don't redirect if not needed 2025-05-16 13:29:18 +02:00
Jorge Manrubia 2510c1e0ac Major rework of the command/ai abstractions
- Big simplification of the overall workflow.
- Composite commands store their commands properly, these are undoable now.
- Child commands are excluded from history
2025-05-16 13:29:18 +02:00
Jorge Manrubia cb7404d091 Review readme 2025-05-16 13:29:18 +02:00
Jorge Manrubia 1e5112ffcc Refine prompt 2025-05-16 13:29:18 +02:00
Jorge Manrubia ad734e36d7 Add note en embed vectors 2025-05-16 13:29:18 +02:00
Jorge Manrubia b7b89541c6 Update README with a note about credentials 2025-05-16 13:29:18 +02:00
Jorge Manrubia b060f96c5a Support multi-line prompts 2025-05-16 13:29:18 +02:00
Jorge Manrubia b57cf84335 Improve prompt 2025-05-16 13:29:18 +02:00
Jorge Manrubia 8528223c15 Improve prompt 2025-05-16 13:29:18 +02:00
Jorge Manrubia b2310b108a More improvements 2025-05-16 13:29:18 +02:00