@agent-native/toolkit 0.204.1-nightly-20261008153353 → 0.205.0
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/agent-native.eject.json +1 -0
- package/dist/app/auth/AuthPage.d.ts.map +1 -1
- package/dist/app/auth/AuthPage.js +3 -11
- package/dist/app/auth/AuthPage.js.map +1 -1
- package/dist/app/chat/AgentSidebar.d.ts +3 -1
- package/dist/app/chat/AgentSidebar.d.ts.map +1 -1
- package/dist/app/chat/AgentSidebar.js +14 -11
- package/dist/app/chat/AgentSidebar.js.map +1 -1
- package/dist/app/chat/RunStuckBanner.d.ts.map +1 -1
- package/dist/app/chat/RunStuckBanner.js +43 -6
- package/dist/app/chat/RunStuckBanner.js.map +1 -1
- package/dist/app/onboarding/FirstRunOnboarding.d.ts.map +1 -1
- package/dist/app/onboarding/FirstRunOnboarding.js +9 -1
- package/dist/app/onboarding/FirstRunOnboarding.js.map +1 -1
- package/dist/app/sharing/ShareButton.d.ts +2 -0
- package/dist/app/sharing/ShareButton.d.ts.map +1 -1
- package/dist/app/sharing/ShareButton.js +2 -2
- package/dist/app/sharing/ShareButton.js.map +1 -1
- package/dist/composer/TiptapComposer.d.ts.map +1 -1
- package/dist/composer/TiptapComposer.js +4 -4
- package/dist/composer/TiptapComposer.js.map +1 -1
- package/package.json +4 -4
- package/src/app/auth/AuthPage.interaction.spec.tsx +10 -1
- package/src/app/auth/AuthPage.tsx +3 -10
- package/src/app/chat/AgentSidebar.spec.tsx +16 -0
- package/src/app/chat/AgentSidebar.tsx +20 -13
- package/src/app/chat/RunStuckBanner.spec.tsx +131 -1
- package/src/app/chat/RunStuckBanner.tsx +54 -8
- package/src/app/onboarding/FirstRunOnboarding.spec.tsx +81 -0
- package/src/app/onboarding/FirstRunOnboarding.tsx +22 -0
- package/src/app/sharing/ShareButton.spec.tsx +22 -0
- package/src/app/sharing/ShareButton.tsx +8 -2
- package/src/composer/TiptapComposer.spec.ts +8 -0
- package/src/composer/TiptapComposer.tsx +4 -3
|
@@ -80,6 +80,8 @@ export interface ShareButtonProps {
|
|
|
80
80
|
shareUrl?: string;
|
|
81
81
|
/** Use a bottom sheet for the share surface below the small-screen breakpoint. */
|
|
82
82
|
mobileSheet?: boolean;
|
|
83
|
+
/** Open the share surface without rendering a trigger button. */
|
|
84
|
+
hideTrigger?: boolean;
|
|
83
85
|
/** Override the optional temporary agent-context link label. */
|
|
84
86
|
agentShareLabel?: string;
|
|
85
87
|
/** Resource-specific agent actions shown in the Clips-style sharing tabs. */
|
|
@@ -347,7 +349,7 @@ export function ShareButton(props: ShareButtonProps) {
|
|
|
347
349
|
if (isSmallScreen) {
|
|
348
350
|
return (
|
|
349
351
|
<Sheet open={controller.open} onOpenChange={controller.handleOpenChange}>
|
|
350
|
-
{props.quickCopy ? (
|
|
352
|
+
{props.hideTrigger ? null : props.quickCopy ? (
|
|
351
353
|
<JoinedShareControl
|
|
352
354
|
trigger={<SheetTrigger asChild>{trigger}</SheetTrigger>}
|
|
353
355
|
copyLabel={props.quickCopy.label}
|
|
@@ -378,7 +380,11 @@ export function ShareButton(props: ShareButtonProps) {
|
|
|
378
380
|
}
|
|
379
381
|
return (
|
|
380
382
|
<Popover open={controller.open} onOpenChange={controller.handleOpenChange}>
|
|
381
|
-
{props.
|
|
383
|
+
{props.hideTrigger ? (
|
|
384
|
+
<PopoverAnchor asChild>
|
|
385
|
+
<span aria-hidden="true" className="fixed end-4 top-16 size-px" />
|
|
386
|
+
</PopoverAnchor>
|
|
387
|
+
) : props.quickCopy ? (
|
|
382
388
|
<PopoverAnchor asChild>
|
|
383
389
|
<JoinedShareControl
|
|
384
390
|
trigger={<PopoverTrigger asChild>{trigger}</PopoverTrigger>}
|
|
@@ -145,6 +145,12 @@ describe("createTiptapComposerExtensions", () => {
|
|
|
145
145
|
);
|
|
146
146
|
expect(compactComposerModelName("grok-code-fast")).toBe("Code Fast");
|
|
147
147
|
expect(compactComposerModelName("deepseek-v3-1")).toBe("DeepSeek");
|
|
148
|
+
expect(compactComposerModelName("deepseek-v4-1-flash")).toBe(
|
|
149
|
+
"DeepSeek Flash",
|
|
150
|
+
);
|
|
151
|
+
expect(compactComposerModelName("z-ai-glm-5-3-flash")).toBe(
|
|
152
|
+
"GLM 5.3 Flash",
|
|
153
|
+
);
|
|
148
154
|
expect(compactComposerModelName("codex-cli")).toBe("Codex");
|
|
149
155
|
expect(compactComposerReasoningEffortLabel("medium")).toBe("Med");
|
|
150
156
|
expect(compactComposerReasoningEffortLabel("minimal")).toBe("Min");
|
|
@@ -4717,6 +4723,8 @@ describe("composerModelCostTier", () => {
|
|
|
4717
4723
|
expect(composerModelCostTier("claude-fable-5")).toBe(3);
|
|
4718
4724
|
expect(composerModelCostTier("gemini-3-1-flash-lite")).toBe(1);
|
|
4719
4725
|
expect(composerModelCostTier("gemini-3-1-pro")).toBe(3);
|
|
4726
|
+
expect(composerModelCostTier("deepseek-v4-1-flash")).toBe(1);
|
|
4727
|
+
expect(composerModelCostTier("z-ai-glm-5-3-flash")).toBe(1);
|
|
4720
4728
|
});
|
|
4721
4729
|
|
|
4722
4730
|
it("returns undefined for unmapped models so no cost label renders", () => {
|
|
@@ -1431,8 +1431,10 @@ const FRIENDLY_MODEL_NAMES: Record<string, string> = {
|
|
|
1431
1431
|
"grok-code-fast": "Grok Code Fast",
|
|
1432
1432
|
"qwen3-coder": "Qwen3 Coder",
|
|
1433
1433
|
"deepseek-v3-1": "DeepSeek v3.1",
|
|
1434
|
+
"deepseek-v4-1-flash": "DeepSeek V4.1 Flash",
|
|
1434
1435
|
"z-ai-glm-4-5": "Z-AI GLM 4.5",
|
|
1435
1436
|
"z-ai-glm-5-1": "Z-AI GLM 5.1",
|
|
1437
|
+
"z-ai-glm-5-3-flash": "Z-AI GLM 5.3 Flash",
|
|
1436
1438
|
};
|
|
1437
1439
|
|
|
1438
1440
|
const LOCAL_RUNTIME_ENGINES = new Set([
|
|
@@ -1585,13 +1587,12 @@ export function compactComposerModelName(
|
|
|
1585
1587
|
.replace(/^Gemini\s+\d+(?:\.\d+)?\s*/i, "")
|
|
1586
1588
|
.replace(/^Claude\s+/i, "")
|
|
1587
1589
|
.replace(/^Qwen\s*\d*(?:\.\d+)?\s*/i, "")
|
|
1588
|
-
.replace(/^DeepSeek\s+v?\d+(?:\.\d+)
|
|
1590
|
+
.replace(/^(DeepSeek)\s+v?\d+(?:\.\d+)?/i, "$1")
|
|
1589
1591
|
.replace(/^Z-AI\s*/i, "")
|
|
1590
1592
|
.replace(/^Grok\s*/i, "")
|
|
1591
1593
|
.replace(/\s+[a-z]*\d+(?:\.\d+)*$/i, "")
|
|
1592
1594
|
.trim();
|
|
1593
|
-
|
|
1594
|
-
return /^deepseek-/i.test(model) ? "DeepSeek" : fullName;
|
|
1595
|
+
return shortName || fullName;
|
|
1595
1596
|
}
|
|
1596
1597
|
|
|
1597
1598
|
export function compactComposerReasoningEffortLabel(
|