Cohee 
							
						 
					 
					
						
						
							
						
						1f66bc7756 
					 
					
						
						
							
							Don't allow duplicate registrations  
						
						
						
						
					 
					
						2025-01-11 23:18:03 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						1dccb08cd6 
					 
					
						
						
							
							Add enumerator for MacrosParser  
						
						
						
						
					 
					
						2025-01-11 19:04:36 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						7a2276c176 
					 
					
						
						
							
							Fix {{firstIncludedMessageId}} to not rely on DOM  
						
						... 
						
						
						
						Up until now, the {{firstIncludedMessageId}} macro relied on searching the DOM for the actual CSS class applied for the context line.
Bad design, as the actual message was maybe not display, with display X messages enabled.
- Use setInContextMessages() that sets the context line on generation to also update a chat metadata field
- Utilize that field inside the macro
- Update docs to clarify that this will only show the mesid that was relevant during last generation 
						
						
					 
					
						2025-01-09 21:23:18 +01:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						a585f3abcc 
					 
					
						
						
							
							Add {{firstDisplayedMessageId}} macro  
						
						
						
						
					 
					
						2025-01-09 21:12:34 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						d9101ce679 
					 
					
						
						
							
							Add is-mobile command and macro  
						
						
						
						
					 
					
						2024-12-21 22:25:14 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						372ac26080 
					 
					
						
						
							
							Do not allow empty or undefined variable names.  
						
						... 
						
						
						
						Closes  #3204  
					
						2024-12-18 20:22:27 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						b08cdffc64 
					 
					
						
						
							
							Add {{lastGenerationType}} macro  
						
						
						
						
					 
					
						2024-12-02 01:39:57 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						5c90c8b1f6 
					 
					
						
						
							
							Add post-process fn to evaluation  
						
						
						
						
					 
					
						2024-11-02 00:44:12 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						8f373cf1dc 
					 
					
						
						
							
							Macros: refactor with a single replace point  
						
						
						
						
					 
					
						2024-11-01 21:47:25 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						6a5828f2c7 
					 
					
						
						
							
							Fix legacy picks  
						
						
						
						
					 
					
						2024-10-18 08:44:54 +00:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						e9a002bc2b 
					 
					
						
						
							
							unvendor: Replace droll  
						
						
						
						
					 
					
						2024-10-17 08:12:28 +00:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						e1694ede9d 
					 
					
						
						
							
							unvendor: Replace seedrandom  
						
						
						
						
					 
					
						2024-10-17 02:19:47 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						81bdeb6da8 
					 
					
						
						
							
							unvendor: Replace moment  
						
						
						
						
					 
					
						2024-10-17 02:02:45 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						d5fdf307c8 
					 
					
						
						
							
							unvendor: Replace handlebars  
						
						
						
						
					 
					
						2024-10-17 00:34:07 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						93137e3e2a 
					 
					
						
						
							
							[chore] Fix lint errors  
						
						
						
						
					 
					
						2024-10-13 14:02:53 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						3fb83e47ec 
					 
					
						
						
							
							Run eslint  
						
						
						
						
					 
					
						2024-07-14 14:07:23 +03:00 
						 
				 
			
				
					
						
							
							
								kwaroran 
							
						 
					 
					
						
						
							
						
						16f4f58a13 
					 
					
						
						
							
							fix macro to handle unicode points  
						
						
						
						
					 
					
						2024-07-12 06:26:23 +09:00 
						 
				 
			
				
					
						
							
							
								kwaroran 
							
						 
					 
					
						
						
							
						
						5ca23d7866 
					 
					
						
						
							
							Add reverse macro  
						
						
						
						
					 
					
						2024-07-11 15:11:43 +09:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						558f6d15a5 
					 
					
						
						
							
							Fix trim macro breaking on CRLF  
						
						
						
						
					 
					
						2024-07-04 19:05:03 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						21c064fc5b 
					 
					
						
						
							
							Fix {{currentSwipeId}} not returning first swipe  
						
						
						
						
					 
					
						2024-07-02 01:28:52 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						c91e7dd948 
					 
					
						
						
							
							Add relative suffix to timediff macro output  
						
						
						
						
					 
					
						2024-07-02 00:59:01 +03:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						b8295ac8f5 
					 
					
						
						
							
							Unregister function for macro registration  
						
						
						
						
					 
					
						2024-06-28 03:01:33 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						719539c2ab 
					 
					
						
						
							
							Improve types and sanitation of macro values  
						
						
						
						
					 
					
						2024-06-26 21:58:57 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						a030237641 
					 
					
						
						
							
							Evaluate macro functions for every instance  
						
						
						
						
					 
					
						2024-06-25 22:44:00 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						24ae2b6fa6 
					 
					
						
						
							
							Add sanitation of macro values  
						
						
						
						
					 
					
						2024-06-25 22:15:40 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						01d38f9218 
					 
					
						
						
							
							Additional validation of custom macro keys  
						
						
						
						
					 
					
						2024-06-25 22:02:05 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						8dab4ecb06 
					 
					
						
						
							
							Add simple custom macros registration  
						
						
						
						
					 
					
						2024-06-25 21:53:10 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						d8949fddc7 
					 
					
						
						
							
							Escape commas in comma-separated random and pick  
						
						
						
						
					 
					
						2024-06-02 15:02:54 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						b559f2f559 
					 
					
						
						
							
							V3 spec (IMPORT ONLY)  
						
						
						
						
					 
					
						2024-06-01 22:07:57 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						a93777e3b7 
					 
					
						
						
							
							(chore) JSDoc comment  
						
						
						
						
					 
					
						2024-05-11 23:38:26 +03:00 
						 
				 
			
				
					
						
							
							
								Hydroerotic 
							
						 
					 
					
						
						
							
						
						1f81086a21 
					 
					
						
						
							
							Update macros.js  
						
						
						
						
					 
					
						2024-05-11 14:13:03 +03:00 
						 
				 
			
				
					
						
							
							
								Hydroerotic 
							
						 
					 
					
						
						
							
						
						432be2ee57 
					 
					
						
						
							
							Update macros.js  
						
						
						
						
					 
					
						2024-05-11 13:52:31 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						fb5d998cd0 
					 
					
						
						
							
							Allow all macro in story strings  
						
						
						
						
					 
					
						2024-04-21 14:06:33 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						42e1ade148 
					 
					
						
						
							
							Add a {{noop}} macro  
						
						
						
						
					 
					
						2024-04-10 01:04:12 +03:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						7311997e7a 
					 
					
						
						
							
							Merge pull request  #2042  from Wolfsblvt/macro-main-system-prompt  
						
						... 
						
						
						
						Add a main {{systemPrompt}} macro 
						
						
					 
					
						2024-04-09 10:21:33 +03:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						845409a239 
					 
					
						
						
							
							Add a main {{systemPrompt}} macro  
						
						
						
						
					 
					
						2024-04-08 20:05:59 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						0c41ab6090 
					 
					
						
						
							
							Fix chatIdHash being empty on the first evaluation  
						
						
						
						
					 
					
						2024-04-08 15:10:15 +03:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						b027c04066 
					 
					
						
						
							
							Remove chat save on pick macro  
						
						
						
						
					 
					
						2024-04-07 20:37:05 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						82a30b6ba5 
					 
					
						
						
							
							Fix pick macro rerolling on branches/renames  
						
						
						
						
					 
					
						2024-04-07 04:40:15 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						d5cb4f403a 
					 
					
						
						
							
							Fix currently reswiped messages being returned on macros  
						
						... 
						
						
						
						- Build one utility function to get the last message id matching a criteria
- Fix all macros referencing last message still returning a now being reswiped message 
						
						
					 
					
						2024-04-07 00:06:38 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						3632631997 
					 
					
						
						
							
							random and pick allow empty items and trim correctly  
						
						
						
						
					 
					
						2024-04-02 01:02:02 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						9b24397f5a 
					 
					
						
						
							
							Unify {{pick}} and {{random}} regex  
						
						... 
						
						
						
						- Allow all four possible syntax forms, just to make this easier: {{random:1️⃣ :two}}, {{random1️⃣ :two}}, {{random::one,two}} and {{random:one,two}} 
						
						
					 
					
						2024-04-02 00:42:13 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						4f6127c8f2 
					 
					
						
						
							
							Actually support comma-split syntax in random  
						
						
						
						
					 
					
						2024-04-02 01:16:25 +03:00 
						 
				 
			
				
					
						
							
							
								Wolfsblvt 
							
						 
					 
					
						
						
							
						
						70adee3c63 
					 
					
						
						
							
							Add {{pick}} macro replacement  
						
						... 
						
						
						
						- Pick macro that works like random, but is consistent for the chat and context
- Change help text for random to actually utilize the new, preferred syntax 
						
						
					 
					
						2024-04-01 01:47:56 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						d997f8dc53 
					 
					
						
						
							
							Add {{trim}} macro  
						
						
						
						
					 
					
						2024-03-30 12:26:21 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						76cde592ad 
					 
					
						
						
							
							#1940  Allow both random syntaxes in one message  
						
						
						
						
					 
					
						2024-03-23 00:57:33 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						2baea084a1 
					 
					
						
						
							
							Add lastCharMessage and lastUserMessage macros  
						
						
						
						
					 
					
						2024-03-17 02:45:22 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						d311780328 
					 
					
						
						
							
							Fix performance in macro substitution  
						
						
						
						
					 
					
						2024-03-16 01:38:23 +02:00 
						 
				 
			
				
					
						
							
							
								Cohee 
							
						 
					 
					
						
						
							
						
						5f1e290bda 
					 
					
						
						
							
							Disallow multiple {{original}} macro substitutions  
						
						
						
						
					 
					
						2024-01-29 00:58:29 +02:00 
						 
				 
			
				
					
						
							
							
								valadaptive 
							
						 
					 
					
						
						
							
						
						71f47588cd 
					 
					
						
						
							
							Pass macro variables in to evaluateMacros  
						
						... 
						
						
						
						This doesn't cover *all* the variables yet, just the ones that were
previously passed in as arguments. I'll expand this later to separate
the macro parsing from the execution of the functions themselves. 
						
						
					 
					
						2024-01-27 13:20:44 -05:00