@copilotkit/core 2.0.0-rc.19 → 2.0.0-rc.20
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 +1085 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +691 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +691 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1044 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1210 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _ag_ui_client0 from "@ag-ui/client";
|
|
2
2
|
import { AbstractAgent, ActivityMessage, AgentCapabilities, AgentSubscriber, BaseEvent, Context, HttpAgent, HttpAgentConfig, Interrupt, Message, ResumeEntry, RunAgentInput, RunAgentParameters, RunAgentResult, State, Tool, ToolCall } from "@ag-ui/client";
|
|
3
3
|
import { CaptureOptions, CollectorOptions, JsonValue, JsonValue as JsonValue$1, StartResult, StartResult as StartResult$1, TrajectoryCaptureOptions } from "@copilotkit/learning";
|
|
4
|
-
import { A2UIOperation, CopilotKitUIEnvelope, DebugConfig, GenerativeUIComponentManifest, GenerativeUIJSONSchema, GenerativeUIRejectedOperation, GenerativeUISurfaceStatus, GenerativeUITarget, InspectorMetadataV1, InspectorMetadataV1 as InspectorMetadataV1$1, IntelligenceRuntimeInfo, IntelligenceRuntimeInfo as IntelligenceRuntimeInfo$1, LicenseContextValue, ResolvedDebugConfig, RuntimeEntitlementResponse, RuntimeInfo, RuntimeLicenseStatus, RuntimeLicenseStatus as RuntimeLicenseStatus$1, RuntimeMode, RuntimeMode as RuntimeMode$1, StandardSchemaV1, ThreadEndpointRuntimeInfo, ThreadEndpointRuntimeInfo as ThreadEndpointRuntimeInfo$1, TranscriptionErrorCode } from "@copilotkit/shared";
|
|
4
|
+
import { A2UIOperation, AudioInputPart, CopilotKitUIEnvelope, DebugConfig, DocumentInputPart, GenerativeUIComponentManifest, GenerativeUIJSONSchema, GenerativeUIRejectedOperation, GenerativeUISurfaceStatus, GenerativeUITarget, ImageInputPart, InspectorMetadataV1, InspectorMetadataV1 as InspectorMetadataV1$1, IntelligenceRuntimeInfo, IntelligenceRuntimeInfo as IntelligenceRuntimeInfo$1, LicenseContextValue, ResolvedDebugConfig, RuntimeEntitlementResponse, RuntimeInfo, RuntimeLicenseStatus, RuntimeLicenseStatus as RuntimeLicenseStatus$1, RuntimeMode, RuntimeMode as RuntimeMode$1, StandardSchemaV1, ThreadEndpointRuntimeInfo, ThreadEndpointRuntimeInfo as ThreadEndpointRuntimeInfo$1, TranscriptionErrorCode, VideoInputPart } from "@copilotkit/shared";
|
|
5
5
|
import { Observable, OperatorFunction, Subscription } from "rxjs";
|
|
6
|
-
import { Message as Message$1, ToolCall as ToolCall$1, ToolMessage } from "@ag-ui/core";
|
|
6
|
+
import { AssistantMessage, Message as Message$1, ToolCall as ToolCall$1, ToolMessage, UserMessage } from "@ag-ui/core";
|
|
7
7
|
|
|
8
8
|
//#region src/core/learning-bridge.d.ts
|
|
9
9
|
/** Interaction capture settings for {@link CopilotKitCore}. See `@copilotkit/learning`. */
|
|
@@ -5205,6 +5205,144 @@ declare function ɵresolveThreadsLicense(context: LicenseContextValue): {
|
|
|
5205
5205
|
licensed: boolean;
|
|
5206
5206
|
licensePending: boolean;
|
|
5207
5207
|
};
|
|
5208
|
+
/** The license banners the framework packages can show. */
|
|
5209
|
+
type ɵLicenseBannerType = "no_license" | "expired" | "expiring" | "invalid" | "feature_unlicensed";
|
|
5210
|
+
/** How serious a license banner is; picks its colours. */
|
|
5211
|
+
type ɵLicenseBannerSeverity = "info" | "warning" | "critical";
|
|
5212
|
+
/** Details some banner types show. */
|
|
5213
|
+
interface ɵLicenseBannerDetails {
|
|
5214
|
+
/** The unlicensed feature, for `feature_unlicensed`. */
|
|
5215
|
+
featureName?: string;
|
|
5216
|
+
/** The expiry date as text, for `expired`. */
|
|
5217
|
+
expiryDate?: string;
|
|
5218
|
+
/** Days left, for `expiring`. Without it the text says "soon". */
|
|
5219
|
+
graceRemaining?: number;
|
|
5220
|
+
}
|
|
5221
|
+
/**
|
|
5222
|
+
* What one license banner shows: its severity, text, and link. React, Vue,
|
|
5223
|
+
* and Angular render it with {@link ɵLICENSE_BANNER_STYLE}.
|
|
5224
|
+
*
|
|
5225
|
+
* @param type - The banner type, for example from
|
|
5226
|
+
* {@link ɵresolveLicenseState}'s `bannerType`.
|
|
5227
|
+
* @param labels - The chat labels in effect, so apps can translate the text.
|
|
5228
|
+
* @param details - The feature name, expiry date, or days left.
|
|
5229
|
+
*
|
|
5230
|
+
* @example
|
|
5231
|
+
* ```ts
|
|
5232
|
+
* const spec = ɵgetLicenseBannerSpec("expiring", labels, { graceRemaining: 3 });
|
|
5233
|
+
* // { severity: "warning", message: "… expires in 3 days …", actionLabel: "Renew", … }
|
|
5234
|
+
* ```
|
|
5235
|
+
*/
|
|
5236
|
+
declare function ɵgetLicenseBannerSpec(type: ɵLicenseBannerType, labels: CopilotChatLabels, {
|
|
5237
|
+
featureName,
|
|
5238
|
+
expiryDate,
|
|
5239
|
+
graceRemaining
|
|
5240
|
+
}?: ɵLicenseBannerDetails): ɵLicenseBannerSpec;
|
|
5241
|
+
/** What a license banner shows. See {@link ɵgetLicenseBannerSpec}. */
|
|
5242
|
+
interface ɵLicenseBannerSpec {
|
|
5243
|
+
severity: ɵLicenseBannerSeverity;
|
|
5244
|
+
message: string;
|
|
5245
|
+
actionLabel: string;
|
|
5246
|
+
actionUrl: string;
|
|
5247
|
+
}
|
|
5248
|
+
/**
|
|
5249
|
+
* Inline styles of the fixed license banner, in camelCase, for React `style`
|
|
5250
|
+
* and Vue `:style`. `base` is the layout; `severity` holds the colours.
|
|
5251
|
+
*/
|
|
5252
|
+
declare const ɵLICENSE_BANNER_STYLE: {
|
|
5253
|
+
readonly base: {
|
|
5254
|
+
readonly position: "fixed";
|
|
5255
|
+
readonly bottom: "8px";
|
|
5256
|
+
readonly left: "50%";
|
|
5257
|
+
readonly transform: "translateX(-50%)";
|
|
5258
|
+
readonly zIndex: 99999;
|
|
5259
|
+
readonly display: "inline-flex";
|
|
5260
|
+
readonly alignItems: "center";
|
|
5261
|
+
readonly gap: "12px";
|
|
5262
|
+
readonly whiteSpace: "nowrap";
|
|
5263
|
+
readonly padding: "8px 16px";
|
|
5264
|
+
readonly fontSize: "13px";
|
|
5265
|
+
readonly fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif";
|
|
5266
|
+
readonly borderRadius: "6px";
|
|
5267
|
+
readonly boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)";
|
|
5268
|
+
};
|
|
5269
|
+
readonly severity: {
|
|
5270
|
+
readonly info: {
|
|
5271
|
+
readonly backgroundColor: "#eff6ff";
|
|
5272
|
+
readonly border: "1px solid #93c5fd";
|
|
5273
|
+
readonly color: "#1e40af";
|
|
5274
|
+
};
|
|
5275
|
+
readonly warning: {
|
|
5276
|
+
readonly backgroundColor: "#fffbeb";
|
|
5277
|
+
readonly border: "1px solid #fbbf24";
|
|
5278
|
+
readonly color: "#92400e";
|
|
5279
|
+
};
|
|
5280
|
+
readonly critical: {
|
|
5281
|
+
readonly backgroundColor: "#fef2f2";
|
|
5282
|
+
readonly border: "1px solid #fca5a5";
|
|
5283
|
+
readonly color: "#991b1b";
|
|
5284
|
+
};
|
|
5285
|
+
};
|
|
5286
|
+
readonly actions: {
|
|
5287
|
+
readonly display: "flex";
|
|
5288
|
+
readonly gap: "8px";
|
|
5289
|
+
readonly alignItems: "center";
|
|
5290
|
+
};
|
|
5291
|
+
readonly link: {
|
|
5292
|
+
readonly fontWeight: 600;
|
|
5293
|
+
readonly textDecoration: "underline";
|
|
5294
|
+
readonly color: "inherit";
|
|
5295
|
+
};
|
|
5296
|
+
readonly dismiss: {
|
|
5297
|
+
readonly background: "none";
|
|
5298
|
+
readonly border: "none";
|
|
5299
|
+
readonly cursor: "pointer";
|
|
5300
|
+
readonly color: "inherit";
|
|
5301
|
+
readonly fontSize: "16px";
|
|
5302
|
+
};
|
|
5303
|
+
};
|
|
5304
|
+
/**
|
|
5305
|
+
* The bottom space the fixed banner takes: banner height (~36px) + bottom
|
|
5306
|
+
* offset (8px) + gap above the chat input (~8px). The chat input reads it
|
|
5307
|
+
* through `padding-bottom: var(--copilotkit-license-banner-offset)`.
|
|
5308
|
+
*/
|
|
5309
|
+
declare const ɵLICENSE_BANNER_OFFSET: {
|
|
5310
|
+
readonly cssVar: "--copilotkit-license-banner-offset";
|
|
5311
|
+
readonly px: 52;
|
|
5312
|
+
};
|
|
5313
|
+
/**
|
|
5314
|
+
* Publishes {@link ɵLICENSE_BANNER_OFFSET} on the root element while a
|
|
5315
|
+
* banner shows. Does nothing without a document (SSR).
|
|
5316
|
+
*
|
|
5317
|
+
* @returns A function that removes the offset again.
|
|
5318
|
+
*/
|
|
5319
|
+
declare function ɵreserveLicenseBannerOffset(): () => void;
|
|
5320
|
+
/**
|
|
5321
|
+
* What the inline warning shows when a chat component needs a license it
|
|
5322
|
+
* does not have: the `licenseFeatureUnlicensedText` label and a pricing
|
|
5323
|
+
* link. Render it with {@link ɵINLINE_FEATURE_WARNING_STYLE}.
|
|
5324
|
+
*/
|
|
5325
|
+
declare function ɵgetInlineFeatureWarningSpec(featureName: string, labels: CopilotChatLabels): {
|
|
5326
|
+
message: string;
|
|
5327
|
+
actionLabel: string;
|
|
5328
|
+
actionUrl: string;
|
|
5329
|
+
};
|
|
5330
|
+
/** Inline styles of the inline feature warning, in camelCase. */
|
|
5331
|
+
declare const ɵINLINE_FEATURE_WARNING_STYLE: {
|
|
5332
|
+
readonly container: {
|
|
5333
|
+
readonly padding: "8px 12px";
|
|
5334
|
+
readonly backgroundColor: "#fffbeb";
|
|
5335
|
+
readonly border: "1px solid #fbbf24";
|
|
5336
|
+
readonly borderRadius: "6px";
|
|
5337
|
+
readonly fontSize: "13px";
|
|
5338
|
+
readonly color: "#92400e";
|
|
5339
|
+
readonly fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif";
|
|
5340
|
+
};
|
|
5341
|
+
readonly link: {
|
|
5342
|
+
readonly color: "#b45309";
|
|
5343
|
+
readonly textDecoration: "underline";
|
|
5344
|
+
};
|
|
5345
|
+
};
|
|
5208
5346
|
//#endregion
|
|
5209
5347
|
//#region src/chat/icons.d.ts
|
|
5210
5348
|
/**
|
|
@@ -5496,6 +5634,539 @@ declare const ɵcopilotIcons: Readonly<Record<CopilotIconName, CopilotIconDefini
|
|
|
5496
5634
|
*/
|
|
5497
5635
|
declare const ɵcopilotIconSvgAttributes: Readonly<Record<string, string>>;
|
|
5498
5636
|
//#endregion
|
|
5637
|
+
//#region src/chat/message-feedback.d.ts
|
|
5638
|
+
/** Trajectory event name for a rating of one assistant message. */
|
|
5639
|
+
declare const ɵMESSAGE_FEEDBACK_EVENT_NAME = "message.feedback";
|
|
5640
|
+
/** Longest comment kept, in characters; the rest is cut so the event stays small. */
|
|
5641
|
+
declare const ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH = 1000;
|
|
5642
|
+
/**
|
|
5643
|
+
* How long the pointer may be away from the rating and its comment before the
|
|
5644
|
+
* comment closes: enough to cross the gap between them, short enough that
|
|
5645
|
+
* passing over a rating does not leave it open.
|
|
5646
|
+
*/
|
|
5647
|
+
declare const ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS = 150;
|
|
5648
|
+
type ɵMessageFeedbackRating = "up" | "down";
|
|
5649
|
+
/** The rating this page gave one assistant message. */
|
|
5650
|
+
interface ɵMessageFeedback {
|
|
5651
|
+
readonly rating: ɵMessageFeedbackRating;
|
|
5652
|
+
readonly comment?: string;
|
|
5653
|
+
}
|
|
5654
|
+
/** The chat whose assistant messages collect feedback for Learning. */
|
|
5655
|
+
interface ɵMessageFeedbackScope {
|
|
5656
|
+
readonly copilotkit: CopilotKitCore;
|
|
5657
|
+
readonly agentId: string;
|
|
5658
|
+
readonly threadId: string;
|
|
5659
|
+
}
|
|
5660
|
+
/** The rating this page gave one message, if any. */
|
|
5661
|
+
declare function ɵgetMessageFeedback(agentId: string, threadId: string, messageId: string): ɵMessageFeedback | undefined;
|
|
5662
|
+
/** Calls `listener` whenever a rating in this Thread changes. */
|
|
5663
|
+
declare function ɵsubscribeToMessageFeedback(agentId: string, threadId: string, listener: () => void): () => void;
|
|
5664
|
+
/**
|
|
5665
|
+
* Sets (or, with `null`, clears) this page's rating of one message and sends
|
|
5666
|
+
* it to the active Trajectory. Every change is a new event; the newest event
|
|
5667
|
+
* for a `feedbackId` is the current one. Like any Trajectory event, a change
|
|
5668
|
+
* made while no Trajectory captures, for example during a reconnect, is not
|
|
5669
|
+
* sent; the page still shows it.
|
|
5670
|
+
*/
|
|
5671
|
+
declare function ɵsetMessageFeedback(params: ɵMessageFeedbackScope & {
|
|
5672
|
+
message: AssistantMessage;
|
|
5673
|
+
feedback: ɵMessageFeedback | null;
|
|
5674
|
+
}): void;
|
|
5675
|
+
/** @internal Forgets every rating, so each test starts empty. */
|
|
5676
|
+
declare function ɵresetMessageFeedbackCache(): void;
|
|
5677
|
+
/**
|
|
5678
|
+
* Whether the thumbs record feedback for Learning. True once a Trajectory of
|
|
5679
|
+
* this Core has started and as long as Learning stays configured, also while
|
|
5680
|
+
* capture reconnects or is stopped, so the buttons do not flicker. Ratings
|
|
5681
|
+
* given meanwhile still show but, like any Trajectory event, are not sent. A
|
|
5682
|
+
* capture that never starts (for example without a license) leaves it false.
|
|
5683
|
+
*
|
|
5684
|
+
* Re-read it when {@link ɵsubscribeToLearningFeedbackEnabled} notifies.
|
|
5685
|
+
*/
|
|
5686
|
+
declare function ɵisLearningFeedbackEnabled(copilotkit: CopilotKitCore): boolean;
|
|
5687
|
+
/**
|
|
5688
|
+
* Calls `listener` when {@link ɵisLearningFeedbackEnabled} may have changed:
|
|
5689
|
+
* when Learning is configured or removed, and when the Trajectory changes.
|
|
5690
|
+
* Returns the unsubscribe function.
|
|
5691
|
+
*/
|
|
5692
|
+
declare function ɵsubscribeToLearningFeedbackEnabled(copilotkit: CopilotKitCore, listener: () => void): () => void;
|
|
5693
|
+
/** Current feedback for one assistant message, and how to change it. */
|
|
5694
|
+
interface ɵMessageFeedbackControls {
|
|
5695
|
+
readonly feedback: ɵMessageFeedback | undefined;
|
|
5696
|
+
/** Gives `rating`; a different rating than before starts without a comment. */
|
|
5697
|
+
readonly rate: (rating: ɵMessageFeedbackRating) => void;
|
|
5698
|
+
/** Removes the rating and its comment. */
|
|
5699
|
+
readonly clear: () => void;
|
|
5700
|
+
/** Sets the current rating's comment; an empty one removes it. */
|
|
5701
|
+
readonly comment: (comment: string) => void;
|
|
5702
|
+
}
|
|
5703
|
+
/**
|
|
5704
|
+
* The feedback this page gave `message` in `scope`, and how to change it.
|
|
5705
|
+
* Read it again when {@link ɵsubscribeToMessageFeedback} notifies for the
|
|
5706
|
+
* scope's Thread.
|
|
5707
|
+
*/
|
|
5708
|
+
declare function ɵgetMessageFeedbackControls(scope: ɵMessageFeedbackScope, message: AssistantMessage): ɵMessageFeedbackControls;
|
|
5709
|
+
/** What the comment popover of one rated message shows. */
|
|
5710
|
+
interface ɵFeedbackCommentState {
|
|
5711
|
+
readonly open: boolean;
|
|
5712
|
+
/** The comment being edited. */
|
|
5713
|
+
readonly draft: string;
|
|
5714
|
+
/** Grows each time the field should take focus: after a keyboard rating. */
|
|
5715
|
+
readonly focusRequest: number;
|
|
5716
|
+
}
|
|
5717
|
+
/** How a pointer or keyboard focus reached or left the rating. */
|
|
5718
|
+
type ɵFeedbackCommentVia = "pointer" | "focus";
|
|
5719
|
+
interface ɵFeedbackCommentControllerOptions {
|
|
5720
|
+
/** The newest feedback controls of the message, or `null` without any. */
|
|
5721
|
+
getControls: () => ɵMessageFeedbackControls | null;
|
|
5722
|
+
/** Defaults to {@link ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS}. */
|
|
5723
|
+
closeDelayMs?: number;
|
|
5724
|
+
}
|
|
5725
|
+
/**
|
|
5726
|
+
* Drives the comment popover of a rated message.
|
|
5727
|
+
*
|
|
5728
|
+
* It opens when a rating is given and whenever the pointer or keyboard focus
|
|
5729
|
+
* reaches the chosen thumb, with the saved comment in the field. It closes by
|
|
5730
|
+
* itself shortly after the pointer leaves the thumb and the popover, unless
|
|
5731
|
+
* focus is in the field: then it stays until focus moves away, Enter, or
|
|
5732
|
+
* Escape. Closing saves a changed comment; Escape, a click on a thumb, and
|
|
5733
|
+
* removing the rating discard it.
|
|
5734
|
+
*
|
|
5735
|
+
* Frameworks render from `getSnapshot()` and re-render when `subscribe()`
|
|
5736
|
+
* notifies. Call `dispose()` on unmount: it keeps an unsaved edit, for a
|
|
5737
|
+
* message that scrolls out of a virtual list. The controller stays usable
|
|
5738
|
+
* after `dispose()`, so a remount (React Strict Mode) can keep it.
|
|
5739
|
+
*
|
|
5740
|
+
* @example
|
|
5741
|
+
* ```ts
|
|
5742
|
+
* const comment = new ɵFeedbackCommentController({ getControls: () => controls });
|
|
5743
|
+
* comment.subscribe(() => render(comment.getSnapshot()));
|
|
5744
|
+
* comment.show({ comment: "", focus: false });
|
|
5745
|
+
* // On unmount:
|
|
5746
|
+
* comment.dispose();
|
|
5747
|
+
* ```
|
|
5748
|
+
*/
|
|
5749
|
+
declare class ɵFeedbackCommentController {
|
|
5750
|
+
#private;
|
|
5751
|
+
constructor(options: ɵFeedbackCommentControllerOptions);
|
|
5752
|
+
/** The current state. The same object until something changes. */
|
|
5753
|
+
getSnapshot: () => ɵFeedbackCommentState;
|
|
5754
|
+
/** Calls `listener` when the state changes. Returns the unsubscribe function. */
|
|
5755
|
+
subscribe: (listener: () => void) => () => void;
|
|
5756
|
+
/** Sets the comment being edited. */
|
|
5757
|
+
setDraft: (draft: string) => void;
|
|
5758
|
+
/** Whether a focus request waits; reading it answers the request. */
|
|
5759
|
+
takeFocusRequest: () => boolean;
|
|
5760
|
+
/** Opens with `comment` in the field. */
|
|
5761
|
+
show: ({
|
|
5762
|
+
comment,
|
|
5763
|
+
focus
|
|
5764
|
+
}: {
|
|
5765
|
+
comment: string;
|
|
5766
|
+
focus: boolean;
|
|
5767
|
+
}) => void;
|
|
5768
|
+
/** The pointer or focus reached the rating or the popover. */
|
|
5769
|
+
enter: (via?: ɵFeedbackCommentVia) => void;
|
|
5770
|
+
/**
|
|
5771
|
+
* It left them: close soon, unless the user is editing the comment or, when
|
|
5772
|
+
* focus left, the pointer is still on the rating or the popover.
|
|
5773
|
+
*/
|
|
5774
|
+
leave: (via?: ɵFeedbackCommentVia) => void;
|
|
5775
|
+
/** Tracks whether focus is in the comment form. */
|
|
5776
|
+
setEditing: (editing: boolean) => void;
|
|
5777
|
+
/** Closes, saving a changed comment unless `save` is false. */
|
|
5778
|
+
close: ({
|
|
5779
|
+
save
|
|
5780
|
+
}?: {
|
|
5781
|
+
save?: boolean;
|
|
5782
|
+
}) => void;
|
|
5783
|
+
/** Moves focus back to the thumb without opening the comment again. */
|
|
5784
|
+
returnFocus: (target: Pick<HTMLElement, "focus"> | null) => void;
|
|
5785
|
+
/** Stops the close timer and saves a changed comment that is still open. */
|
|
5786
|
+
dispose: () => void;
|
|
5787
|
+
}
|
|
5788
|
+
//#endregion
|
|
5789
|
+
//#region src/chat/viewport.d.ts
|
|
5790
|
+
/** How the chat scrolls as messages arrive. */
|
|
5791
|
+
type ɵAutoScrollMode = "pin-to-bottom" | "pin-to-send" | "none";
|
|
5792
|
+
/**
|
|
5793
|
+
* Turns the `autoScroll` prop into a mode. `true` and a missing value mean
|
|
5794
|
+
* `"pin-to-bottom"`, `false` means `"none"`, and an unknown string falls back
|
|
5795
|
+
* to `"pin-to-bottom"`.
|
|
5796
|
+
*/
|
|
5797
|
+
declare function ɵnormalizeAutoScroll(value: ɵAutoScrollMode | boolean | undefined): ɵAutoScrollMode;
|
|
5798
|
+
/**
|
|
5799
|
+
* Media query for the mobile range, where the threads drawer and the chat
|
|
5800
|
+
* modal are mutually exclusive.
|
|
5801
|
+
*/
|
|
5802
|
+
declare const ɵMOBILE_MAX_WIDTH_QUERY = "(max-width: 767px)";
|
|
5803
|
+
/**
|
|
5804
|
+
* Whether the viewport is in the mobile range (`<768px`). `false` during SSR
|
|
5805
|
+
* and where `window.matchMedia` is missing (some test runners and webviews).
|
|
5806
|
+
*/
|
|
5807
|
+
declare function ɵisMobileViewport(): boolean;
|
|
5808
|
+
/**
|
|
5809
|
+
* Calls `listener` with {@link ɵisMobileViewport} now and each time the
|
|
5810
|
+
* viewport enters or leaves the mobile range. Does nothing without
|
|
5811
|
+
* `window.matchMedia`. Returns the unsubscribe function.
|
|
5812
|
+
*/
|
|
5813
|
+
declare function ɵwatchMobileViewport(listener: (isMobile: boolean) => void): () => void;
|
|
5814
|
+
/**
|
|
5815
|
+
* The on-screen keyboard is treated as open once it covers more than this
|
|
5816
|
+
* many pixels of the layout viewport.
|
|
5817
|
+
*/
|
|
5818
|
+
declare const ɵKEYBOARD_OPEN_THRESHOLD_PX = 150;
|
|
5819
|
+
/** The mobile on-screen keyboard and the height left for the page. */
|
|
5820
|
+
interface ɵKeyboardState {
|
|
5821
|
+
isKeyboardOpen: boolean;
|
|
5822
|
+
keyboardHeight: number;
|
|
5823
|
+
/** Height of the visual viewport, the part the keyboard does not cover. */
|
|
5824
|
+
availableHeight: number;
|
|
5825
|
+
/** Height of the layout viewport (`window.innerHeight`). */
|
|
5826
|
+
viewportHeight: number;
|
|
5827
|
+
}
|
|
5828
|
+
/**
|
|
5829
|
+
* Reads the keyboard state with the Visual Viewport API: the keyboard height
|
|
5830
|
+
* is `innerHeight - visualViewport.height`, clamped to 0. Without the API (or
|
|
5831
|
+
* during SSR) it reports a closed keyboard and the full window height.
|
|
5832
|
+
*/
|
|
5833
|
+
declare function ɵreadKeyboardState(): ɵKeyboardState;
|
|
5834
|
+
/**
|
|
5835
|
+
* The state for the first render, before {@link ɵwatchKeyboardState} reads
|
|
5836
|
+
* the visual viewport: a closed keyboard over the full window height (0
|
|
5837
|
+
* during SSR).
|
|
5838
|
+
*/
|
|
5839
|
+
declare function ɵinitialKeyboardState(): ɵKeyboardState;
|
|
5840
|
+
/**
|
|
5841
|
+
* Calls `listener` with {@link ɵreadKeyboardState} now and on each visual
|
|
5842
|
+
* viewport resize or scroll. Does nothing during SSR or without the Visual
|
|
5843
|
+
* Viewport API. Returns the unsubscribe function.
|
|
5844
|
+
*/
|
|
5845
|
+
declare function ɵwatchKeyboardState(listener: (state: ɵKeyboardState) => void): () => void;
|
|
5846
|
+
/** Input for {@link ɵpinMessageToTop}. */
|
|
5847
|
+
interface ɵPinMessageToTopOptions {
|
|
5848
|
+
/** The scroll container of the message list. */
|
|
5849
|
+
scrollEl: HTMLElement;
|
|
5850
|
+
/** The element that holds the messages, inside `scrollEl`. */
|
|
5851
|
+
contentEl: HTMLElement;
|
|
5852
|
+
/** The spacer after the messages, sized so the message can reach the top. */
|
|
5853
|
+
spacerEl: HTMLElement;
|
|
5854
|
+
/** The `data-message-id` of the message to pin. */
|
|
5855
|
+
messageId: string;
|
|
5856
|
+
/** Space between the top of the viewport and the message bubble, in px. */
|
|
5857
|
+
topOffset?: number;
|
|
5858
|
+
}
|
|
5859
|
+
/**
|
|
5860
|
+
* Pins a sent message to the top of the chat: sizes the spacer so the
|
|
5861
|
+
* message bubble can scroll to `topOffset` from the viewport top, scrolls
|
|
5862
|
+
* there on the next frame, and then shrinks the spacer as the reply below
|
|
5863
|
+
* grows, so the bubble stays put.
|
|
5864
|
+
*
|
|
5865
|
+
* The message element's top padding is scrolled off-screen: the bubble, not
|
|
5866
|
+
* its padded box, is pinned. Does nothing when no element in `contentEl` has
|
|
5867
|
+
* `data-message-id` equal to `messageId`. Skips the scroll without
|
|
5868
|
+
* `requestAnimationFrame` and the spacer updates without `ResizeObserver`.
|
|
5869
|
+
*
|
|
5870
|
+
* @returns A function that cancels the scroll and stops the spacer updates.
|
|
5871
|
+
* It returns `false` when it cancelled a scroll that had not run yet, so the
|
|
5872
|
+
* caller can pin the same send again. React's StrictMode tears an effect
|
|
5873
|
+
* down before the next frame, so the first run never scrolls.
|
|
5874
|
+
*
|
|
5875
|
+
* @example
|
|
5876
|
+
* ```ts
|
|
5877
|
+
* const unpin = ɵpinMessageToTop({ scrollEl, contentEl, spacerEl, messageId });
|
|
5878
|
+
* // On the next send or on unmount:
|
|
5879
|
+
* unpin();
|
|
5880
|
+
* ```
|
|
5881
|
+
*/
|
|
5882
|
+
declare function ɵpinMessageToTop({
|
|
5883
|
+
scrollEl,
|
|
5884
|
+
contentEl,
|
|
5885
|
+
spacerEl,
|
|
5886
|
+
messageId,
|
|
5887
|
+
topOffset
|
|
5888
|
+
}: ɵPinMessageToTopOptions): () => boolean;
|
|
5889
|
+
//#endregion
|
|
5890
|
+
//#region src/chat/message-display.d.ts
|
|
5891
|
+
/**
|
|
5892
|
+
* How long the model reasoned, as label text: "a few seconds", "4 seconds",
|
|
5893
|
+
* "2 minutes", or "1m 5s".
|
|
5894
|
+
*
|
|
5895
|
+
* @param seconds - The elapsed time in seconds. It may have a fraction.
|
|
5896
|
+
* @param labels - The chat labels that hold the duration texts.
|
|
5897
|
+
*/
|
|
5898
|
+
declare function ɵformatReasoningDurationLabel(seconds: number, labels: CopilotChatLabels): string;
|
|
5899
|
+
/** Input for {@link ɵgetWorkSummaryText}. */
|
|
5900
|
+
interface ɵWorkSummaryInput {
|
|
5901
|
+
/** The agent is still working on this reply. */
|
|
5902
|
+
isWorking: boolean;
|
|
5903
|
+
/** The tool calls the reply made. */
|
|
5904
|
+
calls: readonly ToolCallEntry[];
|
|
5905
|
+
/** Time worked on the reply over its runs, in ms, when known. */
|
|
5906
|
+
elapsedMs?: number;
|
|
5907
|
+
/** When the current run started (epoch ms), while the agent works. */
|
|
5908
|
+
workingSince?: number;
|
|
5909
|
+
/** The current time (epoch ms); re-read it every second while working. */
|
|
5910
|
+
now: number;
|
|
5911
|
+
labels: CopilotChatLabels;
|
|
5912
|
+
}
|
|
5913
|
+
/**
|
|
5914
|
+
* The text of the work summary line at the top of a reply in the `"turn"`
|
|
5915
|
+
* tool-call display.
|
|
5916
|
+
*
|
|
5917
|
+
* - While working: `label` is "Working" and `detail` the live timer ("4s"),
|
|
5918
|
+
* or `null` when the elapsed time is not known.
|
|
5919
|
+
* - When done with a known time: `label` is "Worked for 9s" (at least 1s)
|
|
5920
|
+
* and `detail` the tool count ("7 tools").
|
|
5921
|
+
* - When done without a time: `label` is "Used 7 tools" and `detail` `null`.
|
|
5922
|
+
* - `failed` is "2 failed" when tool calls failed, otherwise `null`. It is
|
|
5923
|
+
* always `null` while working.
|
|
5924
|
+
*/
|
|
5925
|
+
declare function ɵgetWorkSummaryText({
|
|
5926
|
+
isWorking,
|
|
5927
|
+
calls,
|
|
5928
|
+
elapsedMs,
|
|
5929
|
+
workingSince,
|
|
5930
|
+
now,
|
|
5931
|
+
labels
|
|
5932
|
+
}: ɵWorkSummaryInput): {
|
|
5933
|
+
label: string;
|
|
5934
|
+
detail: string | null;
|
|
5935
|
+
failed: null;
|
|
5936
|
+
} | {
|
|
5937
|
+
label: string;
|
|
5938
|
+
detail: null;
|
|
5939
|
+
failed: string | null;
|
|
5940
|
+
} | {
|
|
5941
|
+
label: string;
|
|
5942
|
+
detail: string;
|
|
5943
|
+
failed: string | null;
|
|
5944
|
+
};
|
|
5945
|
+
/** An attachment part of a user message. */
|
|
5946
|
+
type ɵUserMessageMediaPart = ImageInputPart | AudioInputPart | VideoInputPart | DocumentInputPart;
|
|
5947
|
+
/**
|
|
5948
|
+
* The text of a user message: the string content, or its text parts joined
|
|
5949
|
+
* by newlines. Parts that are not text, and malformed parts from untyped
|
|
5950
|
+
* data, add nothing.
|
|
5951
|
+
*/
|
|
5952
|
+
declare function ɵflattenUserMessageContent(content?: UserMessage["content"]): string;
|
|
5953
|
+
/** The image, audio, video, and document parts of a user message. */
|
|
5954
|
+
declare function ɵgetUserMessageMediaParts(content?: UserMessage["content"]): ɵUserMessageMediaPart[];
|
|
5955
|
+
/** The file name stored in an attachment's `metadata.filename`, if any. */
|
|
5956
|
+
declare function ɵgetUserMessageMediaFilename(part: ɵUserMessageMediaPart): any;
|
|
5957
|
+
/** Input for {@link ɵgetBranchNavState}. */
|
|
5958
|
+
interface ɵBranchNavInput {
|
|
5959
|
+
/** The shown branch, from 0. */
|
|
5960
|
+
branchIndex: number;
|
|
5961
|
+
numberOfBranches: number;
|
|
5962
|
+
/** Whether something handles a switch to another branch. */
|
|
5963
|
+
canSwitch: boolean;
|
|
5964
|
+
}
|
|
5965
|
+
/**
|
|
5966
|
+
* Whether a user message shows its branch navigation and which arrows work.
|
|
5967
|
+
* It shows only with more than one branch and a switch handler: without the
|
|
5968
|
+
* handler the arrows would do nothing.
|
|
5969
|
+
*/
|
|
5970
|
+
declare function ɵgetBranchNavState({
|
|
5971
|
+
branchIndex,
|
|
5972
|
+
numberOfBranches,
|
|
5973
|
+
canSwitch
|
|
5974
|
+
}: ɵBranchNavInput): {
|
|
5975
|
+
show: boolean;
|
|
5976
|
+
canGoPrev: boolean;
|
|
5977
|
+
canGoNext: boolean;
|
|
5978
|
+
};
|
|
5979
|
+
/** Whether an assistant message has text beyond whitespace. */
|
|
5980
|
+
declare function ɵhasAssistantMessageText(content: string | undefined): boolean;
|
|
5981
|
+
/** Input for {@link ɵshouldShowAssistantToolbar}. */
|
|
5982
|
+
interface ɵAssistantToolbarInput {
|
|
5983
|
+
/** The app or chat shows toolbars at all. */
|
|
5984
|
+
toolbarVisible: boolean;
|
|
5985
|
+
/** The message has text (see {@link ɵhasAssistantMessageText}). */
|
|
5986
|
+
hasContent: boolean;
|
|
5987
|
+
/** The Inspector shortcut shows, which gives a toolbar a use without text. */
|
|
5988
|
+
showInspectorShortcut: boolean;
|
|
5989
|
+
/** The agent is running. */
|
|
5990
|
+
isRunning: boolean;
|
|
5991
|
+
/** The message is the latest one in the chat. */
|
|
5992
|
+
isLatest: boolean;
|
|
5993
|
+
}
|
|
5994
|
+
/**
|
|
5995
|
+
* Whether an assistant message shows its toolbar: when toolbars are on, the
|
|
5996
|
+
* message has text or the Inspector shortcut shows, and the message is not
|
|
5997
|
+
* the one still streaming (the latest while the agent runs).
|
|
5998
|
+
*/
|
|
5999
|
+
declare function ɵshouldShowAssistantToolbar({
|
|
6000
|
+
toolbarVisible,
|
|
6001
|
+
hasContent,
|
|
6002
|
+
showInspectorShortcut,
|
|
6003
|
+
isRunning,
|
|
6004
|
+
isLatest
|
|
6005
|
+
}: ɵAssistantToolbarInput): boolean;
|
|
6006
|
+
/** How long a copy button shows its "copied" check mark, in ms. */
|
|
6007
|
+
declare const ɵCOPY_FEEDBACK_RESET_MS = 2000;
|
|
6008
|
+
/**
|
|
6009
|
+
* The "copied" state of a copy button. After a copy it is `true` for
|
|
6010
|
+
* {@link ɵCOPY_FEEDBACK_RESET_MS}; another copy in that time restarts the
|
|
6011
|
+
* wait, so rapid clicks do not flicker.
|
|
6012
|
+
*
|
|
6013
|
+
* Frameworks render from `getSnapshot()` and re-render when `subscribe()`
|
|
6014
|
+
* notifies. Call `dispose()` on unmount. The controller stays usable after
|
|
6015
|
+
* `dispose()`, so a remount (React Strict Mode) can keep it.
|
|
6016
|
+
*
|
|
6017
|
+
* @example
|
|
6018
|
+
* ```ts
|
|
6019
|
+
* const feedback = new ɵCopyFeedback();
|
|
6020
|
+
* feedback.subscribe(() => render(feedback.getSnapshot()));
|
|
6021
|
+
* await feedback.copy(text);
|
|
6022
|
+
* ```
|
|
6023
|
+
*/
|
|
6024
|
+
declare class ɵCopyFeedback {
|
|
6025
|
+
#private;
|
|
6026
|
+
constructor({
|
|
6027
|
+
resetMs
|
|
6028
|
+
}?: {
|
|
6029
|
+
resetMs?: number;
|
|
6030
|
+
});
|
|
6031
|
+
/** Whether the check mark shows. */
|
|
6032
|
+
getSnapshot: () => boolean;
|
|
6033
|
+
/** Calls `listener` when the state changes. Returns the unsubscribe function. */
|
|
6034
|
+
subscribe: (listener: () => void) => () => void;
|
|
6035
|
+
/** Shows the check mark, or keeps it for the full time again. */
|
|
6036
|
+
markCopied: () => void;
|
|
6037
|
+
/**
|
|
6038
|
+
* Copies `text` to the clipboard and shows the check mark on success.
|
|
6039
|
+
* Empty text copies nothing.
|
|
6040
|
+
*
|
|
6041
|
+
* @returns Whether the text was copied.
|
|
6042
|
+
*/
|
|
6043
|
+
copy: (text: string) => Promise<boolean>;
|
|
6044
|
+
/** Stops the reset timer. */
|
|
6045
|
+
dispose: () => void;
|
|
6046
|
+
}
|
|
6047
|
+
//#endregion
|
|
6048
|
+
//#region src/chat/inspector-button.d.ts
|
|
6049
|
+
/**
|
|
6050
|
+
* Whether the user hid the Inspector shortcuts in the message toolbars
|
|
6051
|
+
* ("Hide this icon"). It lasts until the page reloads and applies to every
|
|
6052
|
+
* chat on the page.
|
|
6053
|
+
*
|
|
6054
|
+
* @example
|
|
6055
|
+
* ```ts
|
|
6056
|
+
* ɵinspectorShortcuts.subscribe(() => render(ɵinspectorShortcuts.hidden));
|
|
6057
|
+
* ɵinspectorShortcuts.hide();
|
|
6058
|
+
* ```
|
|
6059
|
+
*/
|
|
6060
|
+
declare const ɵinspectorShortcuts: {
|
|
6061
|
+
/** Whether the shortcuts are hidden. */readonly hidden: boolean; /** Hides the shortcuts of every message until the page reloads. */
|
|
6062
|
+
hide(): void; /** Calls `listener` when `hidden` changes. Returns the unsubscribe function. */
|
|
6063
|
+
subscribe(listener: () => void): () => void; /** @internal Shows the shortcuts again, so each test starts fresh. */
|
|
6064
|
+
reset(): void;
|
|
6065
|
+
};
|
|
6066
|
+
/** One path of the Inspector kite artwork. */
|
|
6067
|
+
interface ɵInspectorKitePath {
|
|
6068
|
+
readonly d: string;
|
|
6069
|
+
/** The id suffix of the gradient that fills it. */
|
|
6070
|
+
readonly fillGradient?: string;
|
|
6071
|
+
readonly stroke?: string;
|
|
6072
|
+
readonly strokeWidth?: string;
|
|
6073
|
+
readonly strokeLinecap?: "round";
|
|
6074
|
+
}
|
|
6075
|
+
/** One gradient stop. Without `offset` the stop sits at 0. */
|
|
6076
|
+
interface ɵInspectorKiteStop {
|
|
6077
|
+
readonly offset?: string;
|
|
6078
|
+
readonly color: string;
|
|
6079
|
+
}
|
|
6080
|
+
/** One linear gradient, in user space. */
|
|
6081
|
+
interface ɵInspectorKiteGradient {
|
|
6082
|
+
/** Appended to a per-instance prefix, so two icons on a page do not clash. */
|
|
6083
|
+
readonly id: string;
|
|
6084
|
+
readonly x1: string;
|
|
6085
|
+
readonly y1: string;
|
|
6086
|
+
readonly x2: string;
|
|
6087
|
+
readonly y2: string;
|
|
6088
|
+
readonly stops: readonly ɵInspectorKiteStop[];
|
|
6089
|
+
}
|
|
6090
|
+
/** Artwork drawn from paths and gradients. See {@link ɵinspectorKiteIcon}. */
|
|
6091
|
+
interface ɵInspectorKiteArtwork {
|
|
6092
|
+
readonly viewBox: string;
|
|
6093
|
+
readonly paths: readonly ɵInspectorKitePath[];
|
|
6094
|
+
readonly gradients: readonly ɵInspectorKiteGradient[];
|
|
6095
|
+
}
|
|
6096
|
+
/**
|
|
6097
|
+
* The Inspector kite artwork as data, as in
|
|
6098
|
+
* `web-inspector/src/assets/inspector-logo-kite.svg`. Render an `<svg>` with
|
|
6099
|
+
* `viewBox` and `fill="none"`, one `<path>` per entry of `paths`, and a
|
|
6100
|
+
* `<linearGradient gradientUnits="userSpaceOnUse">` per entry of `gradients`
|
|
6101
|
+
* in `<defs>`. Give each gradient the id `${prefix}-${gradient.id}` with a
|
|
6102
|
+
* prefix unique to the icon, and fill paths with
|
|
6103
|
+
* {@link ɵinspectorKiteFill}.
|
|
6104
|
+
*/
|
|
6105
|
+
declare const ɵinspectorKiteIcon: ɵInspectorKiteArtwork;
|
|
6106
|
+
/**
|
|
6107
|
+
* The `fill` of a kite path: its gradient under the icon's id `prefix`, or
|
|
6108
|
+
* `undefined` for a stroke-only path.
|
|
6109
|
+
*/
|
|
6110
|
+
declare function ɵinspectorKiteFill(prefix: string, path: ɵInspectorKitePath): string | undefined;
|
|
6111
|
+
/** How long a hover-opened menu stays after the pointer leaves, in ms. */
|
|
6112
|
+
declare const ɵHOVER_MENU_CLOSE_DELAY_MS = 180;
|
|
6113
|
+
/** What a hover menu shows. */
|
|
6114
|
+
interface ɵHoverMenuState {
|
|
6115
|
+
readonly open: boolean;
|
|
6116
|
+
/** The trigger sat inside a `.dark` element when the menu opened. */
|
|
6117
|
+
readonly dark: boolean;
|
|
6118
|
+
}
|
|
6119
|
+
/**
|
|
6120
|
+
* The open state of a menu that opens when the pointer reaches its trigger,
|
|
6121
|
+
* like the Inspector shortcut's menu.
|
|
6122
|
+
*
|
|
6123
|
+
* - A mouse or pen over the trigger opens it; touch does not.
|
|
6124
|
+
* - Leaving the trigger or the menu closes it after `closeDelayMs`, unless
|
|
6125
|
+
* the pointer comes back first or the keyboard has used the menu since.
|
|
6126
|
+
* - Opening reads whether the trigger is inside a `.dark` element, so a menu
|
|
6127
|
+
* in a portal can match the theme.
|
|
6128
|
+
*
|
|
6129
|
+
* Frameworks render from `getSnapshot()` and re-render when `subscribe()`
|
|
6130
|
+
* notifies. Call `dispose()` on unmount; the controller stays usable.
|
|
6131
|
+
*/
|
|
6132
|
+
declare class ɵHoverMenuController {
|
|
6133
|
+
#private;
|
|
6134
|
+
constructor({
|
|
6135
|
+
closeDelayMs
|
|
6136
|
+
}?: {
|
|
6137
|
+
closeDelayMs?: number;
|
|
6138
|
+
});
|
|
6139
|
+
/** The current state. The same object until something changes. */
|
|
6140
|
+
getSnapshot: () => ɵHoverMenuState;
|
|
6141
|
+
/** Calls `listener` when the state changes. Returns the unsubscribe function. */
|
|
6142
|
+
subscribe: (listener: () => void) => () => void;
|
|
6143
|
+
/** Whether the pointer opened the menu and the keyboard has not used it. */
|
|
6144
|
+
get openedByHover(): boolean;
|
|
6145
|
+
/**
|
|
6146
|
+
* Opens or closes the menu and stops a pending close. `trigger` is read on
|
|
6147
|
+
* open for the dark theme.
|
|
6148
|
+
*/
|
|
6149
|
+
setOpen: (open: boolean, trigger?: Element | null) => void;
|
|
6150
|
+
/** The pointer reached the trigger: opens, except for touch or disabled. */
|
|
6151
|
+
pointerEnter: ({
|
|
6152
|
+
pointerType,
|
|
6153
|
+
disabled,
|
|
6154
|
+
trigger
|
|
6155
|
+
}: {
|
|
6156
|
+
pointerType: string;
|
|
6157
|
+
disabled?: boolean;
|
|
6158
|
+
trigger: Element | null;
|
|
6159
|
+
}) => void;
|
|
6160
|
+
/** The keyboard used the trigger or the menu: keep it open on leave. */
|
|
6161
|
+
keyboardUsed: () => void;
|
|
6162
|
+
/** The pointer left the trigger or the menu: close soon if hover opened it. */
|
|
6163
|
+
scheduleClose: () => void;
|
|
6164
|
+
/** The pointer came back: keep the menu open. */
|
|
6165
|
+
cancelClose: () => void;
|
|
6166
|
+
/** Stops a pending close. */
|
|
6167
|
+
dispose: () => void;
|
|
6168
|
+
}
|
|
6169
|
+
//#endregion
|
|
5499
6170
|
//#region src/open-generative-ui/content.d.ts
|
|
5500
6171
|
/**
|
|
5501
6172
|
* Open Generative UI content: the activity the agent streams while it
|
|
@@ -5655,5 +6326,22 @@ declare class OpenGenerativeUIController {
|
|
|
5655
6326
|
destroy(): void;
|
|
5656
6327
|
}
|
|
5657
6328
|
//#endregion
|
|
5658
|
-
|
|
6329
|
+
//#region src/utils/shallow-equal.d.ts
|
|
6330
|
+
/**
|
|
6331
|
+
* True when both records have the same own keys and each key holds the same
|
|
6332
|
+
* value (compared with `Object.is`). Key order does not matter. Nested
|
|
6333
|
+
* objects are compared by reference, not by content.
|
|
6334
|
+
*/
|
|
6335
|
+
declare function shallowEqualRecord<T>(a: Readonly<Record<string, T>>, b: Readonly<Record<string, T>>): boolean;
|
|
6336
|
+
//#endregion
|
|
6337
|
+
//#region src/utils/class-names.d.ts
|
|
6338
|
+
type ClassValue = string | number | bigint | boolean | null | undefined | ClassValue[] | Record<string, unknown>;
|
|
6339
|
+
/**
|
|
6340
|
+
* Joins class names, skipping falsy values. Takes the same inputs as `clsx`.
|
|
6341
|
+
* Classes are not merged: every rule CopilotKit ships sits in `:where()`, so a
|
|
6342
|
+
* class the app adds wins without removing ours.
|
|
6343
|
+
*/
|
|
6344
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
6345
|
+
//#endregion
|
|
6346
|
+
export { A2UIMarkdownOperation, A2UI_FENCE_LANGUAGE, ActionConfig, ActionCreator, ActionFromCreator, ActionFromCreators, ActionGroupConfig, ActionGroupResult, type ActivityMessageRenderProps, type ActivityMessageRendererDef, AgentRegistry, AgentThreadLockedError, AnyAction, ChildIdsOf, ChildWalkOptions, ContextStore, CopilotChatDefaultLabels, type CopilotChatLabels, type CopilotChatToolCallDisplay, type CopilotIconData, type CopilotIconDefinition, type CopilotIconName, type CopilotIconNode, CopilotKitCore, type CopilotKitCoreAddAgentParams, type CopilotKitCoreCatalogComponent, CopilotKitCoreConfig, type CopilotKitCoreConnectAgentParams, CopilotKitCoreContinuationHandoff, CopilotKitCoreErrorCode, CopilotKitCoreFriendsAccess, CopilotKitCoreGetSuggestionsResult, type CopilotKitCoreGetToolParams, type CopilotKitCoreRegisterProxiedAgentParams, type CopilotKitCoreRegisterProxiedAgentResult, type CopilotKitCoreRunAgentParams, type CopilotKitCoreRunToolParams, type CopilotKitCoreRunToolResult, CopilotKitCoreRuntimeConnectionStatus, CopilotKitCoreStopAgentParams, CopilotKitCoreSubscriber, CopilotKitCoreSubscription, CopilotKitHeaderResolutionError, type CopilotKitHeadersSource, type CopilotKitMessageFilter, CopilotRuntimeTransport, type CustomMessageRenderProps, type CustomMessageRendererDef, type CustomMessageRendererPosition, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, DispatchingEffect, DispatchingEffectOptions, DynamicSuggestionsConfig, Effect, EmptyActionConfig, FrontendTool, FrontendToolHandlerContext, FrontendToolReconnectBehavior, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgs, type HumanInTheLoopRenderProps, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTERRUPT_EVENT_NAME, InspectorActiveThreadPayload, type InspectorMetadataV1, InspectorStopViewingPayload, InspectorViewThreadPayload, InspectorViewThreadResultPayload, IntelligenceAgent, IntelligenceAgentConfig, type IntelligenceRuntimeInfo, type InterruptCancelFn, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type InterruptResolveFn, type JsonValue, type LearningConfig, type LegacyLearningConfig, MEMORY_ERROR_REGISTRY, MarkdownSegment, Memory, MemoryChanges, MemoryError, type MemoryErrorCategory, type MemoryErrorCode, type MemoryErrorRegistryEntry, MemoryKind, MemoryRealtimeStatus, MemoryScope, NewMemory, NonDispatchingEffect, NonDispatchingEffectOptions, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OpenGenerativeUIContent, type OpenThreadRegistration, PropsActionConfig, ProxiedCopilotRuntimeAgent, ProxiedCopilotRuntimeAgentConfig, Reducer, RunCompletionAware, RunHandler, type RuntimeLicenseStatus, type RuntimeMode, ScopedContext, ScopedProperties, Selector, type StartResult, StateManager, StaticSuggestionsConfig, Store, StoreLifecycleAction, SubscribeToAgentOptions, SubscribeToAgentSubscriber, Suggestion, SuggestionAvailability, SuggestionEngine, SuggestionsConfig, SurfaceSegment, type ThreadEndpointRuntimeInfo, ThreadRunActivityNotification, type ToolCallEntry, type ToolCallRenderProps, type ToolCallRendererDef, ToolCallStatus, type TrajectoryStartOptions, TranscriptionError, TranscriptionErrorCode, type TranscriptionErrorInfo, type TranscriptionResult, WebMCPModelContext, WebMCPRegistry, WebMCPToolAnnotations, WebMCPToolConfig, classifySurfaceCards, completePartialMarkdown, createActionGroup, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getMarkdownOperationSurfaceId, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isRunCompletionAware, ofType, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseToolArguments, prepareSurfaceOperations, props, segmentSurfaceProse, select, splitA2UIMarkdown, type ɵActivityRendererQuery, type ɵAssistantToolbarInput, type ɵAutoScrollMode, type ɵBranchNavInput, ɵCOPILOTKIT_FEATURES, ɵCOPY_FEEDBACK_RESET_MS, type ClassValue as ɵClassValue, type ɵComposerInput, type ɵComposerKeyEvent, type ɵComposerMode, ɵCopilotKitFeature, ɵCopyFeedback, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, type ɵFeedbackCommentControllerOptions, type ɵFeedbackCommentState, type ɵFeedbackCommentVia, ɵGenerativeUIDebugFunction, ɵGenerativeUIDebugPromptSection, ɵGenerativeUIDebugRun, ɵGenerativeUIDebugSnapshot, ɵGenerativeUIDebugSource, ɵGenerativeUIDebugSurface, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, type ɵHoverMenuState, ɵINLINE_FEATURE_WARNING_STYLE, type ɵInspectorKiteArtwork, type ɵInspectorKiteGradient, type ɵInspectorKitePath, type ɵInspectorKiteStop, ɵInterruptDecision, ɵInterruptEvent, ɵInterruptState, ɵInterruptToolResult, ɵKEYBOARD_OPEN_THRESHOLD_PX, type ɵKeyboardState, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, type ɵLicenseBannerDetails, type ɵLicenseBannerSeverity, type ɵLicenseBannerSpec, type ɵLicenseBannerType, type LicenseStateInput as ɵLicenseStateInput, ɵMAX_SOCKET_RETRIES, ɵMESSAGE_FEEDBACK_EVENT_NAME, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH, ɵMOBILE_MAX_WIDTH_QUERY, ɵMemoryEnvironment, ɵMemoryMetadataEvent, ɵMemoryRuntimeContext, ɵMemoryState, ɵMemoryStore, type ɵMessageFeedback, type ɵMessageFeedbackControls, type ɵMessageFeedbackRating, type ɵMessageFeedbackScope, OpenGenerativeUIController as ɵOpenGenerativeUIController, OpenGenerativeUIControllerOptions as ɵOpenGenerativeUIControllerOptions, OpenGenerativeUIPhase as ɵOpenGenerativeUIPhase, OpenGenerativeUIState as ɵOpenGenerativeUIState, ɵPendingInterrupt, ɵPhoenixChannelLike, ɵPhoenixChannelOptions, ɵPhoenixChannelSession, ɵPhoenixJoinOutcome, ɵPhoenixPushLike, ɵPhoenixSocketLike, ɵPhoenixSocketOptions, ɵPhoenixSocketSession, ɵPhoenixSocketSignal, type ɵPinMessageToTopOptions, ɵRUNTIME_PROBE_TIMEOUT_MS, type ReasoningDuration as ɵReasoningDuration, SandboxFunctionHandle as ɵSandboxFunctionHandle, SandboxLocalApi as ɵSandboxLocalApi, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵThread, ɵThreadEnvironment, ɵThreadMetadataEvent, ɵThreadRuntimeContext, ɵThreadSelectors, ɵThreadStore, type ToolCallDisplayContextValue as ɵToolCallDisplayContextValue, type ToolCallLayout as ɵToolCallLayout, type ToolCallRendererNames as ɵToolCallRendererNames, type ToolCallRendererNamesOptions as ɵToolCallRendererNamesOptions, type ToolCallRowStatus as ɵToolCallRowStatus, type ToolCallSegment as ɵToolCallSegment, type TranscriptionCore as ɵTranscriptionCore, type ɵTranscriptionErrorLabelKey, type TurnOpenState as ɵTurnOpenState, type TurnWork as ɵTurnWork, type ɵUserMessageMediaPart, WebsandboxConstructor as ɵWebsandboxConstructor, WebsandboxInstance as ɵWebsandboxInstance, WebsandboxLoader as ɵWebsandboxLoader, type ɵWorkSummaryInput, type WorkTime as ɵWorkTime, ɵclearAgentInterruptState, cn as ɵcn, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, countFailedToolCalls as ɵcountFailedToolCalls, createMemoryStore as ɵcreateMemoryStore, ɵcreateThreadSelectors, createThreadStore as ɵcreateThreadStore, ɵdeduplicateMessages, extractCompleteStyles as ɵextractCompleteStyles, ɵflattenUserMessageContent, ɵformatCountLabel, ɵformatLabel, formatReasoningDuration as ɵformatReasoningDuration, ɵformatReasoningDurationLabel, formatToolNames as ɵformatToolNames, formatWorkDuration as ɵformatWorkDuration, ɵgetAgentInterruptState, getArgumentPreview as ɵgetArgumentPreview, ɵgetBranchNavState, ɵgetInlineFeatureWarningSpec, getLatestTurnKey as ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetMessageFeedback, ɵgetMessageFeedbackControls, getToolCallLayouts as ɵgetToolCallLayouts, getToolCallPreview as ɵgetToolCallPreview, getToolCallRendererNames as ɵgetToolCallRendererNames, getToolCallRowStatus as ɵgetToolCallRowStatus, getToolResults as ɵgetToolResults, getTurnWork as ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaParts, getWorkOpenState as ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵhasAssistantMessageText, ɵinitialKeyboardState, ɵinspectorKiteFill, ɵinspectorKiteIcon, ɵinspectorShortcuts, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisMobileViewport, isRetryableStatus as ɵisRetryableMemoryStatus, isTurnWorkOpen as ɵisTurnWorkOpen, isTurnWorking as ɵisTurnWorking, ɵjoinPhoenixChannel$, loadWebsandbox as ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵnormalizeAutoScroll, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, pluralize as ɵpluralize, processPartialHtml as ɵprocessPartialHtml, ɵreadKeyboardState, recordWorkTime as ɵrecordWorkTime, ɵreserveLicenseBannerOffset, ɵresetMessageFeedbackCache, ɵresolveActivityRenderer, ɵresolveComposerKey, ɵresolveCustomMessageRenderers, ɵresolveLicenseState, ɵresolveThreadsLicense, ɵresolveToolCallRenderer, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵsetMessageFeedback, shallowEqualRecord as ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, stringifyToolCallPayload as ɵstringifyToolCallPayload, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToMessageFeedback, ɵthreadAdapterEvents, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵwatchKeyboardState, ɵwatchMobileViewport, ɵwithHeaderDefaults };
|
|
5659
6347
|
//# sourceMappingURL=index.d.cts.map
|