✅ 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:
24
node_modules/openai/internal/qs/utils.mjs
generated
vendored
24
node_modules/openai/internal/qs/utils.mjs
generated
vendored
@@ -1,8 +1,7 @@
|
||||
import { RFC1738 } from "./formats.mjs";
|
||||
import { isArray } from "../utils/values.mjs";
|
||||
export let has = (obj, key) => ((has = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty)),
|
||||
has(obj, key));
|
||||
const hex_table = /* @__PURE__ */ (() => {
|
||||
const has = Object.prototype.hasOwnProperty;
|
||||
const is_array = Array.isArray;
|
||||
const hex_table = (() => {
|
||||
const array = [];
|
||||
for (let i = 0; i < 256; ++i) {
|
||||
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
||||
@@ -15,7 +14,7 @@ function compact_queue(queue) {
|
||||
if (!item)
|
||||
continue;
|
||||
const obj = item.obj[item.prop];
|
||||
if (isArray(obj)) {
|
||||
if (is_array(obj)) {
|
||||
const compacted = [];
|
||||
for (let j = 0; j < obj.length; ++j) {
|
||||
if (typeof obj[j] !== 'undefined') {
|
||||
@@ -41,11 +40,12 @@ export function merge(target, source, options = {}) {
|
||||
return target;
|
||||
}
|
||||
if (typeof source !== 'object') {
|
||||
if (isArray(target)) {
|
||||
if (is_array(target)) {
|
||||
target.push(source);
|
||||
}
|
||||
else if (target && typeof target === 'object') {
|
||||
if ((options && (options.plainObjects || options.allowPrototypes)) || !has(Object.prototype, source)) {
|
||||
if ((options && (options.plainObjects || options.allowPrototypes)) ||
|
||||
!has.call(Object.prototype, source)) {
|
||||
target[source] = true;
|
||||
}
|
||||
}
|
||||
@@ -58,13 +58,13 @@ export function merge(target, source, options = {}) {
|
||||
return [target].concat(source);
|
||||
}
|
||||
let mergeTarget = target;
|
||||
if (isArray(target) && !isArray(source)) {
|
||||
if (is_array(target) && !is_array(source)) {
|
||||
// @ts-ignore
|
||||
mergeTarget = array_to_object(target, options);
|
||||
}
|
||||
if (isArray(target) && isArray(source)) {
|
||||
if (is_array(target) && is_array(source)) {
|
||||
source.forEach(function (item, i) {
|
||||
if (has(target, i)) {
|
||||
if (has.call(target, i)) {
|
||||
const targetItem = target[i];
|
||||
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
||||
target[i] = merge(targetItem, item, options);
|
||||
@@ -81,7 +81,7 @@ export function merge(target, source, options = {}) {
|
||||
}
|
||||
return Object.keys(source).reduce(function (acc, key) {
|
||||
const value = source[key];
|
||||
if (has(acc, key)) {
|
||||
if (has.call(acc, key)) {
|
||||
acc[key] = merge(acc[key], value, options);
|
||||
}
|
||||
else {
|
||||
@@ -205,7 +205,7 @@ export function combine(a, b) {
|
||||
return [].concat(a, b);
|
||||
}
|
||||
export function maybe_map(val, fn) {
|
||||
if (isArray(val)) {
|
||||
if (is_array(val)) {
|
||||
const mapped = [];
|
||||
for (let i = 0; i < val.length; i += 1) {
|
||||
mapped.push(fn(val[i]));
|
||||
|
||||
Reference in New Issue
Block a user