This conversation is a recorded vibe coding of how I added the feature to display context information alongside the conversation flow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "conversation_id": "8a174edc-00a5-4206-bf95-e9c3f31ea959", | |
| "next_message": null, | |
| "history": [ | |
| { | |
| "user": { | |
| "additional_context": "", | |
| "env_context": { | |
| "env_state": { | |
| "operating_system": "macos", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "conversation_id": "f44d245a-20e5-4950-99cd-838deb32d7b8", | |
| "next_message": null, | |
| "history": [ | |
| [ | |
| { | |
| "additional_context": "--- CONTEXT ENTRY BEGIN ---\nThis section (like others) contains important information that I want you to use in your responses. I have gathered this context from valuable programmatic script hooks. You must follow any requests and consider all of the information in this section\n\n--- CONTEXT ENTRY END ---\n\n", | |
| "env_context": { | |
| "env_state": { | |
| "operating_system": "macos", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "conversation_id": "14ee9ee5-5d16-4dd3-8b58-a41fe3d9ec4e", | |
| "next_message": null, | |
| "history": [ | |
| [ | |
| { | |
| "additional_context": "--- CONTEXT ENTRY BEGIN ---\nThis section (like others) contains important information that I want you to use in your responses. I have gathered this context from valuable programmatic script hooks. You must follow any requests and consider all of the information in this section\n\n'git-status': \n\n--- CONTEXT ENTRY END ---\n\n", | |
| "env_context": { | |
| "env_state": { | |
| "operating_system": "macos", |
A flexible shell function to serialize source code directories into a single text stream, useful for preprocessing code for LLM analysis or code review.
- Serialize multiple project directories
- Include/exclude file patterns
- Skip binary files
- Verbose mode for debugging
Apache Flink ist eine Open-Source-Stream-Processing-Engine, die für verteilte, hochparallele und fehlertolerante Datenströme entwickelt wurde. Es ermöglicht die Verarbeitung von kontinuierlichen Datenströmen in Echtzeit.
Apache Flink integriert sich nahtlos mit Apache Kafka, dem de-facto-Standard für Datenströme:
- Flink kann Kafka-Topics als Datenquellen nutzen und Ergebnisse in Kafka-Topics schreiben[1][4]
- Flink unterstützt die exakt-einmalige Verarbeitung von Ereignissen, selbst bei Systemausfällen[4]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package de.fermata.flink.app; | |
| import java.time.Instant; | |
| import java.util.Random; | |
| import java.util.stream.StreamSupport; | |
| import org.apache.flink.api.common.state.BroadcastState; | |
| import org.apache.flink.api.common.state.MapStateDescriptor; | |
| import org.apache.flink.api.common.state.ReadOnlyBroadcastState; | |
| import org.apache.flink.api.java.tuple.Tuple2; | |
| import org.apache.flink.configuration.Configuration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package de.fermata.flink.app; | |
| import java.time.Duration; | |
| import java.util.stream.StreamSupport; | |
| import org.apache.flink.api.common.eventtime.*; | |
| import org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator; | |
| import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; | |
| import org.apache.flink.streaming.api.functions.sink.PrintSinkFunction; | |
| import org.apache.flink.streaming.api.functions.windowing.ProcessWindowFunction; | |
| import org.apache.flink.streaming.api.windowing.assigners.TumblingProcessingTimeWindows; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.sql.Timestamp; | |
| import java.util.Comparator; | |
| import java.util.Optional; | |
| import java.util.stream.Collectors; | |
| import java.util.stream.Stream; | |
| import java.util.stream.StreamSupport; | |
| import org.apache.flink.api.common.state.ListState; | |
| import org.apache.flink.api.common.state.ListStateDescriptor; | |
| import org.apache.flink.api.common.typeinfo.TypeInformation; | |
| import org.apache.flink.configuration.Configuration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package de.db.lightgate.streaming.functions; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.concurrent.CompletableFuture; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| import java.util.concurrent.ConcurrentMap; | |
| import java.util.concurrent.CountDownLatch; | |
| import org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction; | |
| import org.apache.flink.streaming.api.watermark.Watermark; |
NewerOlder