Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(composer): stop offering skills and commands that cannot run #7673

ClosedBrechard(GitHub profile, opens in a new tab)wants to merge 13 commits intomain fromrefs/pull/7673/headopened View on GitHub

Showing 14 changed files with 31 additions and 5 deletions (loading 12).

x
0 of 14 viewed, 14 left
4 additions and 1 deletionapps/mobile/src/features/threads/ComposerCommandPopover.tsxModified
View file
@@ -1,5 +1,6 @@
import {
resolveProviderSkillSourceKind,
+ type ProviderSkillInsertionSigil,
type ProviderSkillSourceKind,
} from "@t3tools/client-runtime/providerSkills";
import type { ServerProviderSkill, ServerProviderSlashCommand } from "@t3tools/contracts";
@@ -39,6 +40,8 @@
readonly id: string;
readonly type: "skill";
readonly skill: ServerProviderSkill;
+ /** Syntax this pick inserts; the row shows it so the two cannot diverge. */
+ readonly insertionSigil: ProviderSkillInsertionSigil;
readonly label: string;
readonly description: string;
};
@@ -147,7 +150,7 @@
<Text className="shrink-0 text-base font-t3-medium text-foreground" numberOfLines={1}>
{props.isSlashSkill && props.item.type === "skill" ? (
- <Text className="text-foreground-muted">skill:</Text>
+ <Text className="text-foreground-muted">{props.item.insertionSigil}</Text>
{props.item.skill.name}
</>
) : (
27 additions and 4 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file