✅ 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:
43
node_modules/openai/internal/qs/utils.js
generated
vendored
43
node_modules/openai/internal/qs/utils.js
generated
vendored
@@ -1,20 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.encode = exports.has = void 0;
|
||||
exports.merge = merge;
|
||||
exports.assign_single_source = assign_single_source;
|
||||
exports.decode = decode;
|
||||
exports.compact = compact;
|
||||
exports.is_regexp = is_regexp;
|
||||
exports.is_buffer = is_buffer;
|
||||
exports.combine = combine;
|
||||
exports.maybe_map = maybe_map;
|
||||
exports.maybe_map = exports.combine = exports.is_buffer = exports.is_regexp = exports.compact = exports.encode = exports.decode = exports.assign_single_source = exports.merge = void 0;
|
||||
const formats_1 = require("./formats.js");
|
||||
const values_1 = require("../utils/values.js");
|
||||
let has = (obj, key) => ((exports.has = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty)),
|
||||
(0, exports.has)(obj, key));
|
||||
exports.has = has;
|
||||
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());
|
||||
@@ -27,7 +17,7 @@ function compact_queue(queue) {
|
||||
if (!item)
|
||||
continue;
|
||||
const obj = item.obj[item.prop];
|
||||
if ((0, values_1.isArray)(obj)) {
|
||||
if (is_array(obj)) {
|
||||
const compacted = [];
|
||||
for (let j = 0; j < obj.length; ++j) {
|
||||
if (typeof obj[j] !== 'undefined') {
|
||||
@@ -53,11 +43,12 @@ function merge(target, source, options = {}) {
|
||||
return target;
|
||||
}
|
||||
if (typeof source !== 'object') {
|
||||
if ((0, values_1.isArray)(target)) {
|
||||
if (is_array(target)) {
|
||||
target.push(source);
|
||||
}
|
||||
else if (target && typeof target === 'object') {
|
||||
if ((options && (options.plainObjects || options.allowPrototypes)) || !(0, exports.has)(Object.prototype, source)) {
|
||||
if ((options && (options.plainObjects || options.allowPrototypes)) ||
|
||||
!has.call(Object.prototype, source)) {
|
||||
target[source] = true;
|
||||
}
|
||||
}
|
||||
@@ -70,13 +61,13 @@ function merge(target, source, options = {}) {
|
||||
return [target].concat(source);
|
||||
}
|
||||
let mergeTarget = target;
|
||||
if ((0, values_1.isArray)(target) && !(0, values_1.isArray)(source)) {
|
||||
if (is_array(target) && !is_array(source)) {
|
||||
// @ts-ignore
|
||||
mergeTarget = array_to_object(target, options);
|
||||
}
|
||||
if ((0, values_1.isArray)(target) && (0, values_1.isArray)(source)) {
|
||||
if (is_array(target) && is_array(source)) {
|
||||
source.forEach(function (item, i) {
|
||||
if ((0, exports.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);
|
||||
@@ -93,7 +84,7 @@ function merge(target, source, options = {}) {
|
||||
}
|
||||
return Object.keys(source).reduce(function (acc, key) {
|
||||
const value = source[key];
|
||||
if ((0, exports.has)(acc, key)) {
|
||||
if (has.call(acc, key)) {
|
||||
acc[key] = merge(acc[key], value, options);
|
||||
}
|
||||
else {
|
||||
@@ -102,12 +93,14 @@ function merge(target, source, options = {}) {
|
||||
return acc;
|
||||
}, mergeTarget);
|
||||
}
|
||||
exports.merge = merge;
|
||||
function assign_single_source(target, source) {
|
||||
return Object.keys(source).reduce(function (acc, key) {
|
||||
acc[key] = source[key];
|
||||
return acc;
|
||||
}, target);
|
||||
}
|
||||
exports.assign_single_source = assign_single_source;
|
||||
function decode(str, _, charset) {
|
||||
const strWithoutPlus = str.replace(/\+/g, ' ');
|
||||
if (charset === 'iso-8859-1') {
|
||||
@@ -122,6 +115,7 @@ function decode(str, _, charset) {
|
||||
return strWithoutPlus;
|
||||
}
|
||||
}
|
||||
exports.decode = decode;
|
||||
const limit = 1024;
|
||||
const encode = (str, _defaultEncoder, charset, _kind, format) => {
|
||||
// This code was originally written by Brian White for the io.js core querystring library.
|
||||
@@ -205,20 +199,24 @@ function compact(value) {
|
||||
compact_queue(queue);
|
||||
return value;
|
||||
}
|
||||
exports.compact = compact;
|
||||
function is_regexp(obj) {
|
||||
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
||||
}
|
||||
exports.is_regexp = is_regexp;
|
||||
function is_buffer(obj) {
|
||||
if (!obj || typeof obj !== 'object') {
|
||||
return false;
|
||||
}
|
||||
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
||||
}
|
||||
exports.is_buffer = is_buffer;
|
||||
function combine(a, b) {
|
||||
return [].concat(a, b);
|
||||
}
|
||||
exports.combine = combine;
|
||||
function maybe_map(val, fn) {
|
||||
if ((0, values_1.isArray)(val)) {
|
||||
if (is_array(val)) {
|
||||
const mapped = [];
|
||||
for (let i = 0; i < val.length; i += 1) {
|
||||
mapped.push(fn(val[i]));
|
||||
@@ -227,4 +225,5 @@ function maybe_map(val, fn) {
|
||||
}
|
||||
return fn(val);
|
||||
}
|
||||
exports.maybe_map = maybe_map;
|
||||
//# sourceMappingURL=utils.js.map
|
||||
Reference in New Issue
Block a user