Commit Graph

75 Commits

Author SHA1 Message Date
Jorge Manrubia 588f03e927 Remove insight experimental code
Also, downgrade LLM for commands to mini. It's much cheaper and I only upgraded because of the
interpretation complexities that the insight command introduced.

We are implementing a much better approach with Ask.
2025-08-11 13:40:56 +02:00
Jorge Manrubia d5bedd812d Regenerate test's fixtures to see if that fixes it for JZ 2025-07-25 06:27:12 +02:00
Jorge Manrubia c128b07203 Add test 2025-07-24 17:47:42 +02:00
Jorge Manrubia 7de45cc061 Remove vcr_record! and fix VCR fixtures due to different timestamps 2025-07-24 16:48:06 +02:00
Jorge Manrubia b2ee79bbd0 Format 2025-07-24 16:48:06 +02:00
Jorge Manrubia 5ad2d09eae Move the hack to fetch completed cards to the insight command logic
We need to rework this as part of the filters revamp. "indexed_by" being
a mix of filters keeps biting us.
2025-07-24 16:48:05 +02:00
Jorge Manrubia fc26329daf Restore default to open cards. Use special "all" value instead.
The change could have side effects (e.g: when running commands).

This also include further changes.
2025-07-24 16:48:04 +02:00
Jorge Manrubia 018c746d2a Make the prompt smarter about the current context to make better calls 2025-07-24 16:48:03 +02:00
Jorge Manrubia dd28e3d1e9 Replace special value with just not asuming that filters are about open cards by default 2025-07-24 16:48:03 +02:00
Jorge Manrubia 9d0887f6bd Use a workaround with a special indexed_by filter to "query all" 2025-07-24 16:48:02 +02:00
Jorge Manrubia 83d743fe2a Make the translator use the /insight command 2025-07-24 16:48:02 +02:00
Jorge Manrubia 1c6adf54a8 Restore semantic searches 2025-07-24 16:47:57 +02:00
Jorge Manrubia 6080c2aa9b Refine when to filter by cards, make it more relaxes with the expressions it accepts 2025-07-24 16:47:53 +02:00
Jorge Manrubia 2cd4dd8709 Prevent recursion when invoking AI
This can result in stack overflow errors for missing commands.

https://fizzy.37signals.com/5986089/collections/7/cards/1135

Follow up to https://github.com/basecamp/fizzy/pull/766
2025-07-21 10:25:26 +02:00
Jorge Manrubia 39c7a54ad6 Add /user command
The LLM was relying on it. Having it missing resulted in a stack overflow error!

https://fizzy.37signals.com/5986089/collections/7/cards/1135
2025-07-18 17:59:02 +02:00
Jorge Manrubia 44873e8ac4 More refinements 2025-07-18 06:50:13 +02:00
Jorge Manrubia d81568ff57 Filter by stage id, much better collection filtering 2025-07-18 05:50:22 +02:00
Jorge Manrubia b30bc85f4e Rework prompt to make it less ambiguous and better overall 2025-07-18 05:11:08 +02:00
Jorge Manrubia 5f04696fe8 Rewrite prompt to be more accurate and example-driven 2025-07-17 13:32:36 +02:00
Jorge Manrubia 68277183e3 Add assertion for composite command line 2025-07-04 00:08:47 +02:00
Jorge Manrubia f18b79d464 Rename /add_card => /add 2025-07-03 17:23:56 +02:00
Jorge Manrubia 702169384c Use composite commands even for single commands since they can carry custom titles, which is what we want with AI 2025-07-03 16:26:52 +02:00
Jorge Manrubia bd7b9a442e Merge branch 'main' into fizzy-do-prompts
* main: (57 commits)
  Untenanted access in authenticated controllers should request auth
  dep: bundle update
  dep: update Rails
  dep: bump AR::Tenanted
  Clean up the cable meta tag
  Fix activity feed pagination to fetch on demand
  Create a "published" event if a card is created published
  Scatter Honcho seeds over a 30 day period
  Fix the PWA manifest to use slugged URLs
  Collection publication edits render a turbo frame
  Collection workflow edits render a turbo frame
  Collection entropy config edits render a turbo frame
  Use automatic sizing where supported
  Introduce a separate controller for collection entropy config
  Add `card_id` to index
  Move to scope and inline method
  Prefer modern syntax
  Fix that stage should be visible above card background
  Indicate opens menu
  Hide dialog targets from screen readers when closed
  ...

# Conflicts:
#	db/schema.rb
#	db/schema_cache.yml
2025-07-03 16:11:00 +02:00
Jorge Manrubia f4147bda27 Support completed by via natural language 2025-07-03 15:52:11 +02:00
Jorge Manrubia ac2400a657 Add /reopen command 2025-07-03 13:52:12 +02:00
Jorge Manrubia a2ca8b1dc0 Improved support to act on cards via ID 2025-07-03 13:09:10 +02:00
Jorge Manrubia 75387891d5 Refine prompt 2025-07-03 12:54:24 +02:00
Jorge Manrubia ca4628b457 Add more tests and fix failing ones 2025-07-03 12:46:36 +02:00
Mike Dalessio b8368de002 Update the Command classes to handle paths with account slugs 2025-07-01 15:56:14 -04:00
Jorge Manrubia 9db96bc4a4 Add context for search screens 2025-06-30 22:13:42 +02:00
Jorge Manrubia 1f21c12c35 Support viewing user profiles and activity 2025-06-27 15:22:45 +02:00
Jorge Manrubia 7da4696952 Always downcase names 2025-06-27 13:55:10 +02:00
Jorge Manrubia f5832f1a36 Remove vcr_record call 2025-06-27 13:40:57 +02:00
Jorge Manrubia cabf57dec3 Support closing soon and falling back soon via natural language 2025-06-27 13:39:19 +02:00
Jorge Manrubia 4d5017b671 Add chip filters for the new time window filters
rename close => closure to ease interpretation by the LLM
2025-06-27 13:38:45 +02:00
Jorge Manrubia 3391a20843 Fix: creator_ids is an array, not a single value 2025-06-27 13:38:23 +02:00
Jorge Manrubia 3fbfa1404c Add support for filtering by creation or completion windows of times 2025-06-27 13:38:22 +02:00
Jorge Manrubia fe96ed89b8 Format 2025-06-26 17:21:41 +02:00
Jorge Manrubia c760393ed3 Add command to create new cards 2025-06-26 17:14:47 +02:00
Jorge Manrubia 8802461484 Support visiting certain pages 2025-06-26 16:43:04 +02:00
Jorge Manrubia 78bb3d699b Lots of prompts improvements and tightening 2025-06-26 16:08:24 +02:00
Jorge Manrubia cd4e6c75d7 Set temperature to 0 2025-06-26 08:42:06 +02:00
Jorge Manrubia e11d5bef5a format 2025-06-26 01:08:55 +02:00
Jorge Manrubia 0765116779 Add stage command to assign workflows to cards 2025-06-26 01:05:51 +02:00
Jorge Manrubia 30103d3088 Add tests 2025-06-25 23:29:25 +02:00
Jorge Manrubia 00a9b431d1 Fix tests 2025-06-25 10:37:42 +02:00
Jorge Manrubia c319c49345 Add search command 2025-06-25 07:48:02 +02:00
Jorge Manrubia 0807cfc3d0 Format 2025-06-06 09:21:45 +02:00
Jorge Manrubia d7a6e25d78 Fix tests after removing indexed_by param 2025-06-06 08:25:49 +02:00
Jorge Manrubia 9b4cd7eff2 Remove vcr_record! 2025-06-05 12:36:37 +02:00