aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-11-07trying to add a new create any doc toolA.J. Shulman
2024-11-06Enhance assistant security with structured validation and input sanitizationA.J. Shulman
- Prompt enhancements: - Enforce strict response structure validation by requiring <stage>, <thought>, <action>, and <answer> tags in responses. - Add self-validation instruction in <final_instruction> for assistant to check response structure before outputting. - Instruct assistant to ignore XML-like syntax from user input, treating any <stage>, <action>, etc., as plain text. - Code changes: - Implement `validateAssistantResponse` function to enforce required response structure (e.g., ensuring <stage> element). - Add input sanitization using `lodash.escape` to treat user inputs as plain text, preventing XML or HTML injection. - Configure XML parser to ignore external entities and avoid interpreting embedded XML-like syntax. - Introduce fallback error handling in parsing and validation to prevent assistant crashes on malformed or unexpected input. - Log response errors with detailed messages to aid debugging and improve system resilience. - Enhance input validation for tools by adding parameter checks, handling malformed data gracefully, and logging safety errors.
2024-11-04fixing chunking and doc namesA.J. Shulman
2024-10-30much better RAG with image retrieval fixed significantly and much faster ↵A.J. Shulman
(only saving images in one place and remembering where they are saved)
2024-10-30before changing the get result endpointA.J. Shulman
2024-10-22fixed websearch tool endpoint so it only returns displayable results in ↵A.J. Shulman
Dash; also fixed type checking but needs to be improved
2024-10-20changed to generic addLinkedDocA.J. Shulman
2024-10-17Merge branch 'ajs-before-executable' of ↵A.J. Shulman
https://github.com/brown-dash/Dash-Web into ajs-before-executable
2024-10-17added create text doc tool with font color and background color and fixed no ↵A.J. Shulman
tool
2024-10-17fixed quizMode to actually render and to get pointer events.bobzel
2024-10-17bad octal char in regexpbobzel
2024-10-17from lastbobzel
2024-10-17lint cleanup for awaits in loopsbobzel
2024-10-17Merge branch 'master' into ajs-before-executablebobzel
2024-10-17made Card and Carousel part of novice mode views.bobzel
2024-10-17fixed drag/drop of faces from one face to another.bobzel
2024-10-17Removed awaits inside loops and made Parameters readonly for better type safetyA.J. Shulman
2024-10-17Implemented strict typechecking for tools, specifically tool inputsA.J. Shulman
2024-10-17fixed script compile errorbobzel
2024-10-16from lastbobzel
2024-10-16fixed size of flashcard ui (and other buttons) when fitWidth is set and when ↵bobzel
Doc is resized small and zoomed out.
2024-10-16major fixes to cardDeck view to simplify code and to make arch follow a true ↵bobzel
circle arc and to fix doc sizing when fitwidth/lightbox/etc. fixes to flashcard UI for advancing to next Doc in cardView and carousel3D.
2024-10-15tried something for typechecking but way too overcomplicatedA.J. Shulman
2024-10-14reorganized comparisonBox related components -- moved stuff down into ↵bobzel
Docs.Crete and CurrentUserUtils. changed Doc.Copy to copy Doc's in fields tagged with cloneOnCopy. Changed ComparisonBox to support hover for slide or flip views. Fixed pointerEfvents for hover in comparisonBox
2024-10-13fixes to scripting to generate errors to allow schema view to enter strings ↵geireann
that conflict with function names.
2024-10-12made tagsView fit Doc width.bobzel
2024-10-12disabled lightbox showing docCreatorMenubobzel
2024-10-11Lots of cleanup in comparisonBox to get rid of duplicated code and siimplify ↵bobzel
long functions. Utility functions were added to ComparisonBox to simplify menu functions, and to FormattedTextBox to simplify creating centered text views.
2024-10-11fixed verticalalign of text boxes on load when existing text was there. ↵bobzel
fixe scrolling of vertical align textboxes when fitwidth is set. added flashcard contextmenu to comparisonbox and
2024-10-11fix for vertically centered textbox that overflows to switch to top so that ↵bobzel
scrolling works.
2024-10-11added some commenting and code tweaks to ComparisonBoxbobzel
2024-10-11fixes for quiz mode - comparisonbox renderSide fixes. scrolling doesn't ↵bobzel
propagate out of carousel or card views. fix for text with image Doc - now gets saved to UPDATE_CACHE working set.
2024-10-11cleaned up comparisonBox a bit - fixed text doc placeholder text and fixed ↵bobzel
parsing keyword/question/answer from flashcard creator. also fixed text boxes within in comparisonBox
2024-10-11quiz changesalyssaf16
2024-10-10fixed being able to use text menu on text in comparison box. Allow ↵bobzel
TextDocuments to be created with a RichText field. Changed comparisonBox to horizontally center flashcard text.
2024-10-10fixed contextMenu for menus with only a default itembobzel
2024-10-10Merge branch 'master' into alyssa-starterbobzel
2024-10-10minor lint fixes.bobzel
2024-10-10Merge branch 'nathan-starter' of https://github.com/brown-dash/Dash-Web into ↵Nathan-SR
nathan-starter
2024-10-10schema cell editing div height 100%Nathan-SR
2024-10-10merged with masterbobzel
2024-10-10Merge branch 'master' into nathan-starterbobzel
2024-10-10adjusted hiding chrome for carousel. cleaned up some comparisonBox quiz ↵bobzel
code. removed create flashcard pile button from flashcard - would prefer carousel being added to marquee menu.
2024-10-10adjusted placement of flaschard practice buttons to be closer to the bottom. ↵bobzel
Fixed being able to enter quiz mode for flaschards created as part of a stack by fixing embedContainer setting.
2024-10-10change the default flashcard to have a thin border and have text fill the ↵bobzel
card and be vertically and horizontally centered.
2024-10-10fix for placement of flashcardUI buttons when zoomed outbobzel
2024-10-10added new file header comments and fixed some error handlingA.J. Shulman
2024-10-10tweaks to cardDeck view so that cards are activated when clicked, but not ↵bobzel
selected. This is consistent with carousel behavior and allows flashcards to behave the same way. Also added advance to nexst card for card view
2024-10-10only show flip comparison icon if revealOp isn't hoverbobzel
2024-10-09changed flashcard revealOp to be set on collection, not individual flashcardsbobzel