@copilotkit/core 2.0.0-rc.14 → 2.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +4 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.cjs +1 -1
- package/dist/styles.cjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.mjs +1 -1
- package/dist/styles.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -10360,11 +10360,11 @@ function partialOperation(line) {
|
|
|
10360
10360
|
return null;
|
|
10361
10361
|
}
|
|
10362
10362
|
/**
|
|
10363
|
-
* A line that opens a new top-level operation: `{"version":"
|
|
10363
|
+
* A line that opens a new top-level operation: `{"version":"1…` or
|
|
10364
10364
|
* `{"<operation>":{`. Seen at the start of a line while an earlier object is
|
|
10365
10365
|
* still unbalanced, it means that object is malformed and has ended.
|
|
10366
10366
|
*/
|
|
10367
|
-
const OPERATION_START = new RegExp(`^\\{\\s*"(?:version"\\s*:\\s*"
|
|
10367
|
+
const OPERATION_START = new RegExp(`^\\{\\s*"(?:version"\\s*:\\s*"\\d|(?:${OP_KEYS.join("|")})"\\s*:\\s*\\{)`);
|
|
10368
10368
|
/**
|
|
10369
10369
|
* Scan the top-level object whose "{" is at `start`. Returns the index just
|
|
10370
10370
|
* past it and whether it balanced. An unbalanced object ends early (at the
|
|
@@ -10415,7 +10415,7 @@ const OPERATION_NAMES = [
|
|
|
10415
10415
|
];
|
|
10416
10416
|
/** Whether a value is shaped like one A2UI operation, with named components. */
|
|
10417
10417
|
function isOperationShape(value) {
|
|
10418
|
-
if (!isRecord(value) || value.version !==
|
|
10418
|
+
if (!isRecord(value) || value.version !== _copilotkit_shared.A2UI_VERSION) return false;
|
|
10419
10419
|
const names = OPERATION_NAMES.filter((name) => name in value);
|
|
10420
10420
|
if (names.length !== 1 || Object.keys(value).length !== 2) return false;
|
|
10421
10421
|
const body = value[names[0]];
|
|
@@ -11134,6 +11134,7 @@ const CopilotChatDefaultLabels = Object.freeze({
|
|
|
11134
11134
|
chatToggleOpenLabel: "Open chat",
|
|
11135
11135
|
chatToggleCloseLabel: "Close chat",
|
|
11136
11136
|
chatScrollToBottomLabel: "Scroll to bottom",
|
|
11137
|
+
chatConnectingLabel: "Loading conversation",
|
|
11137
11138
|
modalHeaderTitle: "CopilotKit Chat",
|
|
11138
11139
|
welcomeMessageText: "How can I help you today?",
|
|
11139
11140
|
reasoningMessageThinkingLabel: "Thinking…",
|