Fix chat interface - restore continuous conversation flow

🎯 Major improvements to MissionControl component:
- Always keep input field visible and functional after AI responses
- Auto-clear input after submitting questions for better UX
- Add dynamic visual indicators (first question vs follow-up)
- Improve response layout with clear separation and hints
- Enable proper chat-like experience for continuous learning

🌟 Additional enhancements:
- Better language-specific messaging throughout interface
- Clearer visual hierarchy between input and response areas
- Intuitive flow that guides users to ask follow-up questions
- Maintains responsive design and accessibility

🔧 Technical changes:
- Enhanced MissionControl state management
- Improved component layout and styling
- Better TypeScript integration across components
- Updated tsconfig for stricter type checking
This commit is contained in:
rwiegand
2025-07-14 12:39:05 +02:00
parent b31492a354
commit f893530471
1798 changed files with 25329 additions and 92638 deletions

View File

@@ -1,13 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.maybeParseResponse = maybeParseResponse;
exports.parseResponse = parseResponse;
exports.hasAutoParseableInput = hasAutoParseableInput;
exports.makeParseableResponseTool = makeParseableResponseTool;
exports.isAutoParsableTool = isAutoParsableTool;
exports.shouldParseToolCall = shouldParseToolCall;
exports.validateInputTools = validateInputTools;
exports.addOutputText = addOutputText;
exports.addOutputText = exports.validateInputTools = exports.shouldParseToolCall = exports.isAutoParsableTool = exports.makeParseableResponseTool = exports.hasAutoParseableInput = exports.parseResponse = exports.maybeParseResponse = void 0;
const error_1 = require("../error.js");
const parser_1 = require("../lib/parser.js");
function maybeParseResponse(response, params) {
@@ -39,6 +32,7 @@ function maybeParseResponse(response, params) {
}
return parseResponse(response, params);
}
exports.maybeParseResponse = maybeParseResponse;
function parseResponse(response, params) {
const output = response.output.map((item) => {
if (item.type === 'function_call') {
@@ -86,6 +80,7 @@ function parseResponse(response, params) {
});
return parsed;
}
exports.parseResponse = parseResponse;
function parseTextFormat(params, content) {
if (params.text?.format?.type !== 'json_schema') {
return null;
@@ -102,6 +97,7 @@ function hasAutoParseableInput(params) {
}
return false;
}
exports.hasAutoParseableInput = hasAutoParseableInput;
function makeParseableResponseTool(tool, { parser, callback, }) {
const obj = { ...tool };
Object.defineProperties(obj, {
@@ -120,9 +116,11 @@ function makeParseableResponseTool(tool, { parser, callback, }) {
});
return obj;
}
exports.makeParseableResponseTool = makeParseableResponseTool;
function isAutoParsableTool(tool) {
return tool?.['$brand'] === 'auto-parseable-tool';
}
exports.isAutoParsableTool = isAutoParsableTool;
function getInputToolByName(input_tools, name) {
return input_tools.find((tool) => tool.type === 'function' && tool.name === name);
}
@@ -143,6 +141,7 @@ function shouldParseToolCall(params, toolCall) {
const inputTool = getInputToolByName(params.tools ?? [], toolCall.name);
return isAutoParsableTool(inputTool) || inputTool?.strict || false;
}
exports.shouldParseToolCall = shouldParseToolCall;
function validateInputTools(tools) {
for (const tool of tools ?? []) {
if (tool.type !== 'function') {
@@ -153,6 +152,7 @@ function validateInputTools(tools) {
}
}
}
exports.validateInputTools = validateInputTools;
function addOutputText(rsp) {
const texts = [];
for (const output of rsp.output) {
@@ -167,4 +167,5 @@ function addOutputText(rsp) {
}
rsp.output_text = texts.join('');
}
exports.addOutputText = addOutputText;
//# sourceMappingURL=ResponsesParser.js.map