-
Notifications
You must be signed in to change notification settings - Fork 11
feat(mobile): rebuild the chat tab on the harness SDK #5895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
+44,961
−3,491
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| CREATE TABLE `chats` ( | ||
| `session_id` text PRIMARY KEY NOT NULL, | ||
| `scope` text NOT NULL, | ||
| `updated_at` integer NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
| CREATE INDEX `chats_scope_updated_at` ON `chats` (`scope`,`updated_at`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| { | ||
| "version": "6", | ||
| "dialect": "sqlite", | ||
| "id": "32071253-3838-4db3-aee9-d05b75bc652b", | ||
| "prevId": "e7d69526-c2d6-4633-b14f-24bcef818f44", | ||
| "tables": { | ||
| "chats": { | ||
| "name": "chats", | ||
| "columns": { | ||
| "session_id": { | ||
| "name": "session_id", | ||
| "type": "text", | ||
| "primaryKey": true, | ||
| "notNull": true, | ||
| "autoincrement": false | ||
| }, | ||
| "scope": { | ||
| "name": "scope", | ||
| "type": "text", | ||
| "primaryKey": false, | ||
| "notNull": true, | ||
| "autoincrement": false | ||
| }, | ||
| "updated_at": { | ||
| "name": "updated_at", | ||
| "type": "integer", | ||
| "primaryKey": false, | ||
| "notNull": true, | ||
| "autoincrement": false | ||
| } | ||
| }, | ||
| "indexes": { | ||
| "chats_scope_updated_at": { | ||
| "name": "chats_scope_updated_at", | ||
| "columns": [ | ||
| "scope", | ||
| "updated_at" | ||
| ], | ||
| "isUnique": false | ||
| } | ||
| }, | ||
| "foreignKeys": {}, | ||
| "compositePrimaryKeys": {}, | ||
| "uniqueConstraints": {}, | ||
| "checkConstraints": {} | ||
| }, | ||
| "kv": { | ||
| "name": "kv", | ||
| "columns": { | ||
| "scope": { | ||
| "name": "scope", | ||
| "type": "text", | ||
| "primaryKey": false, | ||
| "notNull": true, | ||
| "autoincrement": false | ||
| }, | ||
| "k": { | ||
| "name": "k", | ||
| "type": "text", | ||
| "primaryKey": false, | ||
| "notNull": true, | ||
| "autoincrement": false | ||
| }, | ||
| "v": { | ||
| "name": "v", | ||
| "type": "text", | ||
| "primaryKey": false, | ||
| "notNull": true, | ||
| "autoincrement": false | ||
| }, | ||
| "updated_at": { | ||
| "name": "updated_at", | ||
| "type": "integer", | ||
| "primaryKey": false, | ||
| "notNull": true, | ||
| "autoincrement": false | ||
| } | ||
| }, | ||
| "indexes": {}, | ||
| "foreignKeys": {}, | ||
| "compositePrimaryKeys": { | ||
| "kv_scope_k_pk": { | ||
| "columns": [ | ||
| "scope", | ||
| "k" | ||
| ], | ||
| "name": "kv_scope_k_pk" | ||
| } | ||
| }, | ||
| "uniqueConstraints": {}, | ||
| "checkConstraints": {} | ||
| } | ||
| }, | ||
| "views": {}, | ||
| "enums": {}, | ||
| "_meta": { | ||
| "schemas": {}, | ||
| "tables": {}, | ||
| "columns": {} | ||
| }, | ||
| "internal": { | ||
| "indexes": {} | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import { useLocalSearchParams } from 'expo-router'; | ||
|
|
||
| import { ChatScreen } from '@/components/chat/chat-screen'; | ||
|
|
||
| export default function ChatConversation() { | ||
| const { id } = useLocalSearchParams<{ id: string }>(); | ||
| return <ChatScreen opened={id} />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,9 @@ | ||
| import { Stack } from 'expo-router'; | ||
|
|
||
| export const unstable_settings = { | ||
| initialRouteName: 'index', | ||
| }; | ||
|
|
||
| export default function ChatLayout() { | ||
| return <Stack screenOptions={{ headerShown: false }} />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| import { QuickChatScreen } from '@/components/quick-chat/quick-chat-screen'; | ||
| import { ChatListScreen } from '@/components/chat/chat-list-screen'; | ||
|
|
||
| export default function QuickChatIndex() { | ||
| return <QuickChatScreen />; | ||
| export default function ChatIndex() { | ||
| return <ChatListScreen />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { View } from 'react-native'; | ||
| import { useTranslation } from 'react-i18next'; | ||
|
|
||
| import { Text } from '@/components/ui/text'; | ||
|
|
||
| /** Says, everywhere the chat is shown, that the chat is not finished yet. */ | ||
| export function BetaPill() { | ||
| const { t } = useTranslation(); | ||
| return ( | ||
| <View className="rounded-full border border-border bg-secondary px-2 py-0.5"> | ||
| <Text className="font-mono-medium text-[10px] uppercase leading-4 tracking-[0.2px] text-muted-foreground"> | ||
| {t('modelChat.beta')} | ||
| </Text> | ||
| </View> | ||
| ); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: The
check-unusedjob never builds the harness SDKThe SDK build was added to the typecheck, lint, i18n-leftover and test jobs, but not to
check-unused.apps/mobilenow depends on@kilocode/harness-sdk, whoseexportsresolve intodist/, andscripts/prepare.shis a no-op in CI (if [ -n "${CI:-}" ]; it only builds trpc), socheck-unusedruns knip with nodist. The new runtime imports insrc/lib/chat/{layers,registry,tools}.tsthen fail to resolve and knip exits non-zero. Add the same build step beforepnpm --filter kilo-app run check:unused.Reply with
@kilocode-bot fix itto have Kilo Code address this issue.