@nevuto/novi 0.0.0-stage → 0.3.48
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/COMPONENTS.md +579 -0
- package/LICENSE +21 -0
- package/NOTICE +32 -0
- package/README.md +181 -2
- package/dist/AiAssistant/AiAssistantActionCard.d.ts +39 -0
- package/dist/AiAssistant/AiAssistantActionCard.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantAnswer.d.ts +54 -0
- package/dist/AiAssistant/AiAssistantAnswer.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantBottom.d.ts +22 -0
- package/dist/AiAssistant/AiAssistantBottom.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantHeader.d.ts +34 -0
- package/dist/AiAssistant/AiAssistantHeader.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantImageGroup.d.ts +21 -0
- package/dist/AiAssistant/AiAssistantImageGroup.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantInput.d.ts +70 -0
- package/dist/AiAssistant/AiAssistantInput.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantLauncher.d.ts +41 -0
- package/dist/AiAssistant/AiAssistantLauncher.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantLink.d.ts +27 -0
- package/dist/AiAssistant/AiAssistantLink.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantMenu.d.ts +13 -0
- package/dist/AiAssistant/AiAssistantMenu.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantModal.d.ts +39 -0
- package/dist/AiAssistant/AiAssistantModal.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantQuestion.d.ts +34 -0
- package/dist/AiAssistant/AiAssistantQuestion.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantQuestionCard.d.ts +46 -0
- package/dist/AiAssistant/AiAssistantQuestionCard.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantReasoning.d.ts +34 -0
- package/dist/AiAssistant/AiAssistantReasoning.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantRecommendation.d.ts +26 -0
- package/dist/AiAssistant/AiAssistantRecommendation.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantReference.d.ts +42 -0
- package/dist/AiAssistant/AiAssistantReference.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantReferencePanel.d.ts +28 -0
- package/dist/AiAssistant/AiAssistantReferencePanel.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantSecretField.d.ts +21 -0
- package/dist/AiAssistant/AiAssistantSecretField.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantSuggestions.d.ts +21 -0
- package/dist/AiAssistant/AiAssistantSuggestions.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantTask.d.ts +21 -0
- package/dist/AiAssistant/AiAssistantTask.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantThinking.d.ts +22 -0
- package/dist/AiAssistant/AiAssistantThinking.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantTitle.d.ts +13 -0
- package/dist/AiAssistant/AiAssistantTitle.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantToolCall.d.ts +30 -0
- package/dist/AiAssistant/AiAssistantToolCall.d.ts.map +1 -0
- package/dist/AiAssistant/AiAssistantToolCallGroup.d.ts +22 -0
- package/dist/AiAssistant/AiAssistantToolCallGroup.d.ts.map +1 -0
- package/dist/AiAssistant/index.d.ts +46 -0
- package/dist/AiAssistant/index.d.ts.map +1 -0
- package/dist/AiAssistant/useControlled.d.ts +14 -0
- package/dist/AiAssistant/useControlled.d.ts.map +1 -0
- package/dist/AiAssistant/usePaper.d.ts +9 -0
- package/dist/AiAssistant/usePaper.d.ts.map +1 -0
- package/dist/Novi/Novi.d.ts +55 -0
- package/dist/Novi/Novi.d.ts.map +1 -0
- package/dist/Novi/useResolvedColor.d.ts +3 -0
- package/dist/Novi/useResolvedColor.d.ts.map +1 -0
- package/dist/NoviTile/NoviTile.d.ts +22 -0
- package/dist/NoviTile/NoviTile.d.ts.map +1 -0
- package/dist/engine/decor.d.ts +115 -0
- package/dist/engine/decor.d.ts.map +1 -0
- package/dist/engine/engine.d.ts +210 -0
- package/dist/engine/engine.d.ts.map +1 -0
- package/dist/engine/expressions.d.ts +26 -0
- package/dist/engine/expressions.d.ts.map +1 -0
- package/dist/engine/eyefit.d.ts +35 -0
- package/dist/engine/eyefit.d.ts.map +1 -0
- package/dist/engine/face.d.ts +63 -0
- package/dist/engine/face.d.ts.map +1 -0
- package/dist/engine/frame.d.ts +26 -0
- package/dist/engine/frame.d.ts.map +1 -0
- package/dist/engine/gaze.d.ts +108 -0
- package/dist/engine/gaze.d.ts.map +1 -0
- package/dist/engine/math.d.ts +21 -0
- package/dist/engine/math.d.ts.map +1 -0
- package/dist/engine/profiles.d.ts +8 -0
- package/dist/engine/profiles.d.ts.map +1 -0
- package/dist/engine/shape.d.ts +79 -0
- package/dist/engine/shape.d.ts.map +1 -0
- package/dist/engine/skins.d.ts +44 -0
- package/dist/engine/skins.d.ts.map +1 -0
- package/dist/engine/states.d.ts +85 -0
- package/dist/engine/states.d.ts.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +2940 -0
- package/package.json +48 -3
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { AiAssistantImage } from './AiAssistantImageGroup';
|
|
3
|
+
export type AiAssistantQuestionImage = AiAssistantImage;
|
|
4
|
+
export interface AiAssistantQuestionProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** The text of the question. Omit it for an attachment-only turn. */
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/** Images sent with the question, grouped above the bubble. */
|
|
8
|
+
images?: AiAssistantQuestionImage[];
|
|
9
|
+
/**
|
|
10
|
+
* Renders each image as a button and reports which one was pressed. Without it
|
|
11
|
+
* the images are inert: the lightbox — if the app wants one — is the app's.
|
|
12
|
+
*/
|
|
13
|
+
onImageClick?: (index: number) => void;
|
|
14
|
+
/**
|
|
15
|
+
* What the question was pointed at when it was sent — the composer's references,
|
|
16
|
+
* kept as a record. Shown in their own small bubble above the text.
|
|
17
|
+
*/
|
|
18
|
+
references?: ReactNode;
|
|
19
|
+
/** Skips the mount animation — for a transcript that renders all at once. */
|
|
20
|
+
animate?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* What the person asked — the user's turn in the transcript. Its counterpart is
|
|
24
|
+
* `AiAssistantAnswer`; the card the assistant asks *back* with is
|
|
25
|
+
* `AiAssistantQuestionCard`.
|
|
26
|
+
* A bubble, right-aligned, so the eye can separate the two
|
|
27
|
+
* voices without reading either: the answer is plain text on the page, never a
|
|
28
|
+
* bubble, and that asymmetry is what makes a long thread scannable.
|
|
29
|
+
*
|
|
30
|
+
* Images ride above the bubble in their own group rather than inside it, so the
|
|
31
|
+
* question still reads as one line of text when it is one line of text.
|
|
32
|
+
*/
|
|
33
|
+
export declare function AiAssistantQuestion({ children, images, onImageClick, references, animate, className, ...props }: AiAssistantQuestionProps): import("react").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=AiAssistantQuestion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantQuestion.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantQuestion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,EAAyB,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAGtF,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAA;AAEvD,MAAM,WAAW,wBAAyB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9E,qEAAqE;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAW,EACX,YAAY,EACZ,UAAU,EACV,OAAc,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAa1B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AiAssistantQuestionCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onSubmit'> {
|
|
3
|
+
/** What is being asked. */
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
/** The controls: radios, checkboxes, a field — whatever the question needs. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** `null` drops the mark. */
|
|
8
|
+
icon?: ReactNode | null;
|
|
9
|
+
/**
|
|
10
|
+
* Where in the run this question sits. A node, not two numbers: "1 of 3" is a
|
|
11
|
+
* sentence, and sentences belong to the app's translation layer.
|
|
12
|
+
*/
|
|
13
|
+
progress?: ReactNode;
|
|
14
|
+
/** Renders the back button. Omit it on the first question. */
|
|
15
|
+
onPrevious?: () => void;
|
|
16
|
+
/** Renders the forward button. Omit it on the last question. */
|
|
17
|
+
onNext?: () => void;
|
|
18
|
+
/** Renders the closing button. Omit it anywhere but the last question. */
|
|
19
|
+
onSubmit?: () => void;
|
|
20
|
+
/**
|
|
21
|
+
* Renders the way out. It sits at the far end of the row while the card is part
|
|
22
|
+
* of a run, and joins the other buttons when it is not — leaving and continuing
|
|
23
|
+
* are opposite intents, and a run gives the row the width to say so.
|
|
24
|
+
*/
|
|
25
|
+
onSkip?: () => void;
|
|
26
|
+
/** Replaces the whole button row. */
|
|
27
|
+
footer?: ReactNode;
|
|
28
|
+
skipLabel?: string;
|
|
29
|
+
previousLabel?: string;
|
|
30
|
+
nextLabel?: string;
|
|
31
|
+
submitLabel?: string;
|
|
32
|
+
/** Blocks the forward and closing buttons — an unanswered required question. */
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/** Spins the closing button while the answer is in flight. */
|
|
35
|
+
submitting?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A question the assistant asks back, as a card in the thread — not
|
|
39
|
+
* `AiAssistantQuestion`, which is the person's own turn.
|
|
40
|
+
*
|
|
41
|
+
* Which buttons exist is the whole difference between the first, middle and last
|
|
42
|
+
* question, so there is no `step` prop deciding it: give the handlers that make
|
|
43
|
+
* sense where the card sits, and the row builds itself.
|
|
44
|
+
*/
|
|
45
|
+
export declare function AiAssistantQuestionCard({ title, children, icon, progress, onPrevious, onNext, onSubmit, onSkip, footer, skipLabel, previousLabel, nextLabel, submitLabel, disabled, submitting, className, ...props }: AiAssistantQuestionCardProps): import("react").JSX.Element;
|
|
46
|
+
//# sourceMappingURL=AiAssistantQuestionCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantQuestionCard.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantQuestionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtD,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,GAAG,UAAU,CACrB;IACC,2BAA2B;IAC3B,KAAK,EAAE,SAAS,CAAA;IAChB,+EAA+E;IAC/E,QAAQ,EAAE,SAAS,CAAA;IACnB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,qCAAqC;IACrC,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,MAAM,EACN,QAAQ,EACR,MAAM,EACN,MAAM,EACN,SAA0B,EAC1B,aAA0B,EAC1B,SAAkB,EAClB,WAAsB,EACtB,QAAgB,EAChB,UAAkB,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,4BAA4B,+BA6D9B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AiAssistantReasoningProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onToggle'> {
|
|
3
|
+
/** The reasoning itself. While `working` it can keep growing; the window follows it. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** The heading once the reasoning is done. */
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
/** The heading while it is still being written. */
|
|
8
|
+
workingLabel?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The model is still reasoning: Novi replaces the caret, the text cannot be
|
|
11
|
+
* folded away, and the window stays pinned to the newest line.
|
|
12
|
+
*/
|
|
13
|
+
working?: boolean;
|
|
14
|
+
/** Controlled fold. Ignored while `working`, where the stream is always shown. */
|
|
15
|
+
open?: boolean;
|
|
16
|
+
defaultOpen?: boolean;
|
|
17
|
+
onOpenChange?: (open: boolean) => void;
|
|
18
|
+
/** How much of the stream stays visible while working. */
|
|
19
|
+
peekHeight?: string;
|
|
20
|
+
/** Replaces Novi while working; `null` drops the mark. */
|
|
21
|
+
avatar?: ReactNode | null;
|
|
22
|
+
paper?: string;
|
|
23
|
+
/** Novi's rendered size in px. */
|
|
24
|
+
avatarSize?: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The model's own thinking, shown as it arrives and folded away once it lands.
|
|
28
|
+
*
|
|
29
|
+
* While working, the text sits in a short window pinned to its last line — the
|
|
30
|
+
* newest sentence is the only one worth reading mid-stream, and letting the block
|
|
31
|
+
* grow to full height would push the answer off the screen before it exists.
|
|
32
|
+
*/
|
|
33
|
+
export declare function AiAssistantReasoning({ children, label, workingLabel, working, open, defaultOpen, onOpenChange, peekHeight, avatar, paper, avatarSize, className, ...props }: AiAssistantReasoningProps): import("react").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=AiAssistantReasoning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantReasoning.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantReasoning.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAOrF,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CACrD,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,wFAAwF;IACxF,QAAQ,EAAE,SAAS,CAAA;IACnB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,mDAAmD;IACnD,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kFAAkF;IAClF,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,KAAmB,EACnB,YAA2B,EAC3B,OAAe,EACf,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,UAAmB,EACnB,MAAM,EACN,KAAK,EACL,UAAe,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,+BAqD3B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
type AiAssistantRecommendationBaseProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
/** Replaces the default sparkle. Pass `null` to drop the icon entirely. */
|
|
6
|
+
icon?: ReactNode | null;
|
|
7
|
+
/** Replaces the chevron — a badge, a price, nothing at all. */
|
|
8
|
+
trailing?: ReactNode | null;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
type AiAssistantRecommendationAsAnchor = AiAssistantRecommendationBaseProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof AiAssistantRecommendationBaseProps | 'children'> & {
|
|
12
|
+
href: string;
|
|
13
|
+
};
|
|
14
|
+
type AiAssistantRecommendationAsButton = AiAssistantRecommendationBaseProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof AiAssistantRecommendationBaseProps | 'children'> & {
|
|
15
|
+
href?: undefined;
|
|
16
|
+
};
|
|
17
|
+
export type AiAssistantRecommendationProps = AiAssistantRecommendationAsAnchor | AiAssistantRecommendationAsButton;
|
|
18
|
+
/**
|
|
19
|
+
* The one card in the thread that is not an answer: a route out of the
|
|
20
|
+
* conversation and into the product. The gradient is the whole point — it is what
|
|
21
|
+
* separates a suggestion the assistant is making from the text it is quoting — so
|
|
22
|
+
* it comes from `--gradient-ai-*` in the token layer and both themes carry it.
|
|
23
|
+
*/
|
|
24
|
+
export declare function AiAssistantRecommendation({ title, description, icon, trailing, className, ...props }: AiAssistantRecommendationProps): import("react").JSX.Element;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=AiAssistantRecommendation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantRecommendation.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantRecommendation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIlF,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,KAAK,iCAAiC,GAAG,kCAAkC,GACzE,IAAI,CACF,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,MAAM,kCAAkC,GAAG,UAAU,CACtD,GAAG;IACF,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAEH,KAAK,iCAAiC,GAAG,kCAAkC,GACzE,IAAI,CACF,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,MAAM,kCAAkC,GAAG,UAAU,CACtD,GAAG;IACF,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB,CAAA;AAEH,MAAM,MAAM,8BAA8B,GACtC,iCAAiC,GACjC,iCAAiC,CAAA;AAErC;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,KAAK,EACL,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,8BAA8B,+BAmChC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AiAssistantReferenceProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'prefix'> {
|
|
3
|
+
/** What was picked: a file, a folder, an element, a template, a person. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** The target's own mark. Coloured interactive by default; `tone` or a coloured node overrides it. */
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* An attached image, shown as a thumbnail in place of the icon. Image and file
|
|
9
|
+
* attachments are the same chip as a mention — one row, one way to remove them.
|
|
10
|
+
*/
|
|
11
|
+
thumbnail?: string;
|
|
12
|
+
thumbnailAlt?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Renders the chip as a remove button. Without it the chip is inert — the mark
|
|
15
|
+
* never turns into an ✕. Ignored by the `plain` variant, which is a record.
|
|
16
|
+
*/
|
|
17
|
+
onRemove?: () => void;
|
|
18
|
+
/** Screen-reader name for the remove action; the visible label is `children`. */
|
|
19
|
+
removeLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* `chip` is the composer's pill, with its outline and its remove. `plain` is the
|
|
22
|
+
* same reference once the message is sent: a filled pill, nothing to remove.
|
|
23
|
+
*/
|
|
24
|
+
variant?: 'chip' | 'plain';
|
|
25
|
+
/** A muted lead-in before the mark, e.g. "Target:". */
|
|
26
|
+
prefix?: ReactNode;
|
|
27
|
+
/** `error` reddens the mark. */
|
|
28
|
+
tone?: 'default' | 'error';
|
|
29
|
+
/** The label is code — a selector, a commit — so it is set in the code face. */
|
|
30
|
+
mono?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* What a mention, a target picker or an attachment leaves behind — in the composer
|
|
34
|
+
* before the message is sent, and in the thread afterwards.
|
|
35
|
+
*
|
|
36
|
+
* In the composer, hovering swaps the target's mark for an ✕ in the same square
|
|
37
|
+
* rather than adding a second control: the chip is small, a separate remove button
|
|
38
|
+
* beside a truncated label would take the room the label needs, and there is only
|
|
39
|
+
* one thing to do to a chip once it is there.
|
|
40
|
+
*/
|
|
41
|
+
export declare function AiAssistantReference({ children, icon, thumbnail, thumbnailAlt, onRemove, removeLabel, variant, prefix, tone, mono, className, onClick, ...props }: AiAssistantReferenceProps): import("react").JSX.Element;
|
|
42
|
+
//# sourceMappingURL=AiAssistantReference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantReference.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantReference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI5D,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CACrD,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,QAAQ,CACtB;IACC,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAA;IACnB,sGAAsG;IACtG,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC1B,uDAAuD;IACvD,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,gCAAgC;IAChC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC1B,gFAAgF;IAChF,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,YAAiB,EACjB,QAAQ,EACR,WAAsB,EACtB,OAAgB,EAChB,MAAM,EACN,IAAgB,EAChB,IAAY,EACZ,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,yBAAyB,+BAsE3B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AiAssistantReferencePanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'prefix'> {
|
|
3
|
+
/** What is being referenced: "Storefront error", "3 answers", "4 secrets". */
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
/** The reference itself: console output, answers, a list of keys. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
/** The muted lead-in on the collapsed pill. */
|
|
9
|
+
prefix?: ReactNode;
|
|
10
|
+
/** `error` reddens the mark, in both states. */
|
|
11
|
+
tone?: 'default' | 'error';
|
|
12
|
+
open?: boolean;
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
/** Where the body stops growing and starts scrolling. */
|
|
16
|
+
maxBodyHeight?: string;
|
|
17
|
+
expandLabel?: string;
|
|
18
|
+
collapseLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A reference with something inside it.
|
|
22
|
+
*
|
|
23
|
+
* Collapsed, it is the same pill as any other reference — that is the point: a
|
|
24
|
+
* console dump and a target element read as one row in a thread until the reader
|
|
25
|
+
* asks for one of them. Opened, the pill becomes the panel it always was.
|
|
26
|
+
*/
|
|
27
|
+
export declare function AiAssistantReferencePanel({ title, children, icon, prefix, tone, open, defaultOpen, onOpenChange, maxBodyHeight, expandLabel, collapseLabel, className, ...props }: AiAssistantReferencePanelProps): import("react").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=AiAssistantReferencePanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantReferencePanel.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantReferencePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtD,MAAM,WAAW,8BAA+B,SAAQ,IAAI,CAC1D,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,GAAG,QAAQ,CACnB;IACC,8EAA8E;IAC9E,KAAK,EAAE,SAAS,CAAA;IAChB,qEAAqE;IACrE,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,gDAAgD;IAChD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,IAAgB,EAChB,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,aAAa,EACb,WAAoB,EACpB,aAA0B,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,8BAA8B,+BAiDhC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AiAssistantSecretFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
|
+
/** What the value is, in the app's words: "Sentry DSN". */
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/** The key it is stored under, shown beside the label: `sentry_dsn`. */
|
|
6
|
+
name?: ReactNode;
|
|
7
|
+
/** The control — an `Input`, a `PasswordInput`, whatever the value needs. */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** Guidance under the label, before the control. */
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* One value the assistant is asking for, with the key it will be stored under
|
|
14
|
+
* beside its name — the label is what a person recognises, the key is what they
|
|
15
|
+
* will see again in their environment, and both matter when handing over a secret.
|
|
16
|
+
*
|
|
17
|
+
* The whole field is the `<label>`, so the control inside it is associated by
|
|
18
|
+
* nesting: the app brings its own input and never has to thread an id through.
|
|
19
|
+
*/
|
|
20
|
+
export declare function AiAssistantSecretField({ label, name, children, description, className, ...props }: AiAssistantSecretFieldProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=AiAssistantSecretField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantSecretField.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantSecretField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG3D,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IACxF,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAA;IAChB,wEAAwE;IACxE,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,6EAA6E;IAC7E,QAAQ,EAAE,SAAS,CAAA;IACnB,oDAAoD;IACpD,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,2BAA2B,+BAW7B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AiAssistantSuggestionsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
|
+
/** The suggestions, usually `AiAssistantSuggestion` pills. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** A quiet lead-in above the row: "Ask next", "Related". */
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* What the assistant thinks you might ask next, under the answer it just gave.
|
|
10
|
+
*
|
|
11
|
+
* Pills that wrap rather than rows that stack: a follow-up is an offer, and an
|
|
12
|
+
* offer should not take the vertical room an answer takes.
|
|
13
|
+
*/
|
|
14
|
+
export declare function AiAssistantSuggestions({ children, label, className, ...props }: AiAssistantSuggestionsProps): import("react").JSX.Element;
|
|
15
|
+
export interface AiAssistantSuggestionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/** One follow-up. A button, never a link: it fills the composer, it does not navigate. */
|
|
20
|
+
export declare function AiAssistantSuggestion({ children, icon, className, type, ...props }: AiAssistantSuggestionProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=AiAssistantSuggestions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantSuggestions.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantSuggestions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG5E,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CACvD,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,8DAA8D;IAC9D,QAAQ,EAAE,SAAS,CAAA;IACnB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,2BAA2B,+BAO7B;AAED,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACzF,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,0FAA0F;AAC1F,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,IAAe,EACf,GAAG,KAAK,EACT,EAAE,0BAA0B,+BAO5B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type AiAssistantTaskState = 'pending' | 'running' | 'done' | 'error';
|
|
3
|
+
export interface AiAssistantTaskProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** What the task is. Tense is the app's, as everywhere else. */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** The thing acted on, as a monospace chip. */
|
|
7
|
+
code?: ReactNode;
|
|
8
|
+
state?: AiAssistantTaskState;
|
|
9
|
+
/** Replaces the state mark. */
|
|
10
|
+
marker?: ReactNode;
|
|
11
|
+
/** Announced while the task is running. */
|
|
12
|
+
runningLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A line in a to-do list the assistant is working through.
|
|
16
|
+
*
|
|
17
|
+
* Only the mark and the strike carry the state — the wording never changes as a
|
|
18
|
+
* task completes, so the list reads as the same list throughout.
|
|
19
|
+
*/
|
|
20
|
+
export declare function AiAssistantTask({ children, code, state, marker, runningLabel, className, ...props }: AiAssistantTaskProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=AiAssistantTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantTask.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantTask.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAE3E,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC1E,gEAAgE;IAChE,QAAQ,EAAE,SAAS,CAAA;IACnB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,oBAAoB,CAAA;IAC5B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,IAAI,EACJ,KAAiB,EACjB,MAAM,EACN,YAA4B,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,+BAoBtB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ColorId, ShapeId } from '../engine/skins';
|
|
3
|
+
export interface AiAssistantThinkingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
4
|
+
/** What Novi is doing. Announced to screen readers, so keep it a real sentence. */
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
/** Novi's rendered size in px. */
|
|
7
|
+
size?: number;
|
|
8
|
+
shape?: ShapeId | string;
|
|
9
|
+
color?: ColorId | string;
|
|
10
|
+
/**
|
|
11
|
+
* What shows through Novi's eyes. Defaults to the page's own background token,
|
|
12
|
+
* so only pass this when the row sits on some other surface.
|
|
13
|
+
*/
|
|
14
|
+
paper?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Novi thinking. It is the mascot itself rather than a spinner, because the wait
|
|
18
|
+
* is the one moment the assistant has nothing to say and the avatar has to carry
|
|
19
|
+
* the whole conversation on its own.
|
|
20
|
+
*/
|
|
21
|
+
export declare function AiAssistantThinking({ label, size, shape, color, paper, className, ...props }: AiAssistantThinkingProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=AiAssistantThinking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantThinking.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantThinking.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAIvD,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAChG,mFAAmF;IACnF,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAmB,EACnB,IAAS,EACT,KAAK,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAgB1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AiAssistantTitleProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/** Right-hand slot: a timestamp, a count, a "clear" control. */
|
|
5
|
+
action?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The quiet label that separates one stretch of the conversation from the next —
|
|
9
|
+
* a topic, a day, a session. Deliberately not a heading level: the modal already
|
|
10
|
+
* has one, and screen readers should not hear a second title for a separator.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AiAssistantTitle({ children, action, className, ...props }: AiAssistantTitleProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=AiAssistantTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantTitle.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtD,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,EAAE,SAAS,CAAA;IACnB,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,+BAOhG"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type AiAssistantToolCallState = 'running' | 'done' | 'error';
|
|
3
|
+
export interface AiAssistantToolCallProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* What the tool is doing, or did. The wording is the app's: "Reading" and "Read"
|
|
6
|
+
* are the same row in two tenses, and tense is a translation matter, not a state
|
|
7
|
+
* this package can conjugate.
|
|
8
|
+
*/
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/** The tool's own mark. This package ships no catalogue of tools or their icons. */
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
/** The thing acted on: a path, a query, a commit. Rendered as a monospace chip. */
|
|
13
|
+
code?: ReactNode;
|
|
14
|
+
/** `error` reddens the row and replaces the mark; `running` and `done` differ only in the app's wording. */
|
|
15
|
+
state?: AiAssistantToolCallState;
|
|
16
|
+
/** Nested content — a task list, a summary — indented under the row. */
|
|
17
|
+
details?: ReactNode;
|
|
18
|
+
/** Replaces the mark shown in the error state. */
|
|
19
|
+
errorIcon?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* One line of what the assistant did.
|
|
23
|
+
*
|
|
24
|
+
* Deliberately empty of tool knowledge: no map of tool names to icons, no tense
|
|
25
|
+
* table, no per-tool layout. The app knows its own tools and hands over an icon, a
|
|
26
|
+
* label and a chip; this renders the line and its three states. A new tool on the
|
|
27
|
+
* backend needs no release here.
|
|
28
|
+
*/
|
|
29
|
+
export declare function AiAssistantToolCall({ children, icon, code, state, details, errorIcon, className, ...props }: AiAssistantToolCallProps): import("react").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=AiAssistantToolCall.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantToolCall.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantToolCall.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItD,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAEnE,MAAM,WAAW,wBAAyB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9E;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB,oFAAoF;IACpF,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mFAAmF;IACnF,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,4GAA4G;IAC5G,KAAK,CAAC,EAAE,wBAAwB,CAAA;IAChC,wEAAwE;IACxE,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,KAAc,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,+BAe1B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AiAssistantToolCallGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
3
|
+
/**
|
|
4
|
+
* The summary the fold stands for — "4 edits made". Counting and wording are the
|
|
5
|
+
* app's: it knows what it grouped and in which language it says so.
|
|
6
|
+
*/
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
/** The calls themselves, usually `AiAssistantToolCall` rows. */
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
defaultOpen?: boolean;
|
|
12
|
+
onOpenChange?: (open: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A run of tool calls folded into one line.
|
|
16
|
+
*
|
|
17
|
+
* A turn that touched four files is four lines of noise until something goes wrong
|
|
18
|
+
* in one of them, so the group states what happened and keeps the calls one click
|
|
19
|
+
* away — with the same rule down the side that nests a to-do list under its row.
|
|
20
|
+
*/
|
|
21
|
+
export declare function AiAssistantToolCallGroup({ title, children, open, defaultOpen, onOpenChange, className, ...props }: AiAssistantToolCallGroupProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=AiAssistantToolCallGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiAssistantToolCallGroup.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/AiAssistantToolCallGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKlE,MAAM,WAAW,6BAA8B,SAAQ,IAAI,CACzD,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,CACR;IACC;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB,gEAAgE;IAChE,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACvC;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,6BAA6B,+BA0B/B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export { AiAssistantModal } from './AiAssistantModal';
|
|
2
|
+
export type { AiAssistantModalProps } from './AiAssistantModal';
|
|
3
|
+
export { AiAssistantHeader } from './AiAssistantHeader';
|
|
4
|
+
export type { AiAssistantHeaderProps } from './AiAssistantHeader';
|
|
5
|
+
export { AiAssistantTitle } from './AiAssistantTitle';
|
|
6
|
+
export type { AiAssistantTitleProps } from './AiAssistantTitle';
|
|
7
|
+
export { AiAssistantBottom } from './AiAssistantBottom';
|
|
8
|
+
export type { AiAssistantBottomProps } from './AiAssistantBottom';
|
|
9
|
+
export { AiAssistantLink } from './AiAssistantLink';
|
|
10
|
+
export type { AiAssistantLinkProps } from './AiAssistantLink';
|
|
11
|
+
export { AiAssistantInput } from './AiAssistantInput';
|
|
12
|
+
export type { AiAssistantInputProps } from './AiAssistantInput';
|
|
13
|
+
export { AiAssistantLauncher } from './AiAssistantLauncher';
|
|
14
|
+
export type { AiAssistantLauncherProps } from './AiAssistantLauncher';
|
|
15
|
+
export { AiAssistantImageGroup } from './AiAssistantImageGroup';
|
|
16
|
+
export type { AiAssistantImageGroupProps, AiAssistantImage } from './AiAssistantImageGroup';
|
|
17
|
+
export { AiAssistantReferencePanel } from './AiAssistantReferencePanel';
|
|
18
|
+
export type { AiAssistantReferencePanelProps } from './AiAssistantReferencePanel';
|
|
19
|
+
export { AiAssistantActionCard } from './AiAssistantActionCard';
|
|
20
|
+
export type { AiAssistantActionCardProps } from './AiAssistantActionCard';
|
|
21
|
+
export { AiAssistantQuestionCard } from './AiAssistantQuestionCard';
|
|
22
|
+
export type { AiAssistantQuestionCardProps } from './AiAssistantQuestionCard';
|
|
23
|
+
export { AiAssistantSecretField } from './AiAssistantSecretField';
|
|
24
|
+
export type { AiAssistantSecretFieldProps } from './AiAssistantSecretField';
|
|
25
|
+
export { AiAssistantReference } from './AiAssistantReference';
|
|
26
|
+
export type { AiAssistantReferenceProps } from './AiAssistantReference';
|
|
27
|
+
export { AiAssistantQuestion } from './AiAssistantQuestion';
|
|
28
|
+
export type { AiAssistantQuestionProps, AiAssistantQuestionImage } from './AiAssistantQuestion';
|
|
29
|
+
export { AiAssistantAnswer } from './AiAssistantAnswer';
|
|
30
|
+
export type { AiAssistantAnswerProps, AiAssistantSource, AiAssistantFeedback, } from './AiAssistantAnswer';
|
|
31
|
+
export { AiAssistantSuggestions, AiAssistantSuggestion } from './AiAssistantSuggestions';
|
|
32
|
+
export type { AiAssistantSuggestionsProps, AiAssistantSuggestionProps, } from './AiAssistantSuggestions';
|
|
33
|
+
export { AiAssistantRecommendation } from './AiAssistantRecommendation';
|
|
34
|
+
export type { AiAssistantRecommendationProps } from './AiAssistantRecommendation';
|
|
35
|
+
export { AiAssistantToolCall } from './AiAssistantToolCall';
|
|
36
|
+
export type { AiAssistantToolCallProps, AiAssistantToolCallState } from './AiAssistantToolCall';
|
|
37
|
+
export { AiAssistantToolCallGroup } from './AiAssistantToolCallGroup';
|
|
38
|
+
export type { AiAssistantToolCallGroupProps } from './AiAssistantToolCallGroup';
|
|
39
|
+
export { AiAssistantTask } from './AiAssistantTask';
|
|
40
|
+
export type { AiAssistantTaskProps, AiAssistantTaskState } from './AiAssistantTask';
|
|
41
|
+
export { AiAssistantReasoning } from './AiAssistantReasoning';
|
|
42
|
+
export type { AiAssistantReasoningProps } from './AiAssistantReasoning';
|
|
43
|
+
export { AiAssistantThinking } from './AiAssistantThinking';
|
|
44
|
+
export type { AiAssistantThinkingProps } from './AiAssistantThinking';
|
|
45
|
+
export { usePaper } from './usePaper';
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The controlled/uncontrolled pattern, once.
|
|
3
|
+
*
|
|
4
|
+
* Four of these components hold a fold or a vote that the app may or may not want
|
|
5
|
+
* to own, and each was re-implementing the same six lines — with the same chance of
|
|
6
|
+
* getting one of them subtly wrong. `controlled` winning whenever it is not
|
|
7
|
+
* `undefined` is the rule the whole library follows.
|
|
8
|
+
*
|
|
9
|
+
* Which mode a value is in is latched on the first render: React warns about a
|
|
10
|
+
* field that switches, and silently swapping modes mid-life is how a fold starts
|
|
11
|
+
* ignoring its own handler.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useControlled<T>(controlled: T | undefined, defaultValue: T, onChange?: (value: T) => void): [T, (next: T) => void];
|
|
14
|
+
//# sourceMappingURL=useControlled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useControlled.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/useControlled.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC7B,UAAU,EAAE,CAAC,GAAG,SAAS,EACzB,YAAY,EAAE,CAAC,EACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAC5B,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,CAcxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Novi's eyes are holes punched through its body, so it has to be told what shows
|
|
3
|
+
* through them. Hard-coding white leaves two bright slots on a dark theme, so this
|
|
4
|
+
* reads the page's own background token and re-reads it when the theme flips.
|
|
5
|
+
*
|
|
6
|
+
* Pass `override` when the avatar sits on a surface that is not the page ground.
|
|
7
|
+
*/
|
|
8
|
+
export declare function usePaper(override?: string, fallback?: string): string;
|
|
9
|
+
//# sourceMappingURL=usePaper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaper.d.ts","sourceRoot":"","sources":["../../src/AiAssistant/usePaper.ts"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,SAAqB,GAAG,MAAM,CAqBjF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ExpressionId } from '../engine/expressions';
|
|
2
|
+
import { GazeScript } from '../engine/gaze';
|
|
3
|
+
import { ColorId, ShapeId } from '../engine/skins';
|
|
4
|
+
import { StateId } from '../engine/states';
|
|
5
|
+
export interface NoviProps {
|
|
6
|
+
/** rendered width and height in px */
|
|
7
|
+
size?: number;
|
|
8
|
+
/** body shape id from the catalogue; an unknown value falls back to the circle */
|
|
9
|
+
shape?: ShapeId | string;
|
|
10
|
+
/** colour id from the catalogue */
|
|
11
|
+
color?: ColorId | string;
|
|
12
|
+
/** resting expression id */
|
|
13
|
+
expression?: ExpressionId | string;
|
|
14
|
+
/**
|
|
15
|
+
* The page's background colour. The eyes are holes in the body, so this is what
|
|
16
|
+
* shows through them, and it is also what the burst's particles fade into. Give it
|
|
17
|
+
* the real background or the eyes read as lighter than the page.
|
|
18
|
+
*/
|
|
19
|
+
paper?: string;
|
|
20
|
+
/** the animation state to play; changing it morphs, it does not jump */
|
|
21
|
+
state?: StateId;
|
|
22
|
+
/**
|
|
23
|
+
* Freezes the render at this local time, in seconds since the state began. The
|
|
24
|
+
* engine is a pure function of time, so this gives a reproducible image with no
|
|
25
|
+
* animation loop at all — what thumbnails want.
|
|
26
|
+
*/
|
|
27
|
+
frozenAt?: number;
|
|
28
|
+
/** the gaze follows the pointer */
|
|
29
|
+
follow?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Resting yaw the head holds when the pointer is centred, in degrees. Positive
|
|
32
|
+
* turns Novi towards screen right. Use it to make Novi face what matters on the
|
|
33
|
+
* page; 0 keeps it looking straight ahead.
|
|
34
|
+
*/
|
|
35
|
+
turn?: number;
|
|
36
|
+
/**
|
|
37
|
+
* A scripted gaze, evaluated every frame with the time elapsed since it was set.
|
|
38
|
+
* Independent of `follow`, which aims at the pointer — here the script decides
|
|
39
|
+
* everything, including its own duration.
|
|
40
|
+
*/
|
|
41
|
+
gaze?: GazeScript | null;
|
|
42
|
+
/** accessible label; omit to mark the avatar decorative */
|
|
43
|
+
label?: string;
|
|
44
|
+
className?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Novi, Nevuto's mascot: one filled shape that morphs between states, with two eyes
|
|
48
|
+
* cut out of it as holes.
|
|
49
|
+
*
|
|
50
|
+
* Fully controlled by props — it holds no opinion about what it should look like.
|
|
51
|
+
* Whatever picks the shape, the colour and the expression (a server, a form, a
|
|
52
|
+
* preference) lives outside.
|
|
53
|
+
*/
|
|
54
|
+
export declare function Novi({ size, shape, color, expression, paper, state, frozenAt, follow, turn, gaze, label, className, }: NoviProps): import("react").JSX.Element;
|
|
55
|
+
//# sourceMappingURL=Novi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Novi.d.ts","sourceRoot":"","sources":["../../src/Novi/Novi.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAwC,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAE/F,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEvE,OAAO,EAML,KAAK,OAAO,EACZ,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG5D,MAAM,WAAW,SAAS;IACxB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,mCAAmC;IACnC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mCAAmC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAwBD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,EACnB,IAAU,EACV,KAAqB,EACrB,KAAqB,EACrB,UAA+B,EAC/B,KAAoC,EACpC,KAAc,EACd,QAAQ,EACR,MAAc,EACd,IAAQ,EACR,IAAW,EACX,KAAK,EACL,SAAS,GACV,EAAE,SAAS,+BA4SX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResolvedColor.d.ts","sourceRoot":"","sources":["../../src/Novi/useResolvedColor.ts"],"names":[],"mappings":"AAwBA,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAexE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NoviProps } from '../Novi/Novi';
|
|
2
|
+
export interface NoviTileProps extends Omit<NoviProps, 'frozenAt' | 'follow' | 'gaze' | 'size'> {
|
|
3
|
+
size?: number;
|
|
4
|
+
/** overrides the canonical time; by default the state's most legible pose */
|
|
5
|
+
frozenAt?: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A frozen Novi, held at the moment its state reads best.
|
|
9
|
+
*
|
|
10
|
+
* What a picker grid wants. Freezing is not a detail: an animated thumbnail would
|
|
11
|
+
* run one rAF loop per cell, so a grid of sixteen expressions would run sixteen. The
|
|
12
|
+
* engine being a pure function of time, a frozen render costs one `sample()` and
|
|
13
|
+
* nothing after it.
|
|
14
|
+
*
|
|
15
|
+
* The canonical time comes from `POSES`, so no caller has to guess which instant
|
|
16
|
+
* shows a state off — and every grid in every screen shows the same image.
|
|
17
|
+
*
|
|
18
|
+
* Bare on purpose: the selected outline, the label and the button live in whatever
|
|
19
|
+
* renders the grid, which owns the design system this sits in.
|
|
20
|
+
*/
|
|
21
|
+
export declare function NoviTile({ size, state, frozenAt, ...rest }: NoviTileProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=NoviTile.d.ts.map
|