mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 19:49:38 +08:00
A knowledge base screen set that follows the server's own model rather than a
second one: the catalogue is re-read from the server, a base is identified by
its handle, and everything shown about a run comes from the progress snapshot
the server writes.
What the API cannot do is not invented. There is no rename (a base's name is
its directory and its route), no per-document status (only the run's stage and
the file it is parsing right now, so a file borrows the run's state), no task
cancellation, no server-side search or pagination, and rebuilding an index is a
provider-specific confirmation flow the web app owns. The screens say so
instead of offering dead controls.
Uploads go one file per request so each row can describe its own bytes, its own
retry and its own cancellation honestly. Picked files are checked against the
policy the server advertises and handed to the platform as `{uri, name, type}`
descriptors, so the bytes stream from disk instead of passing through
JavaScript. The picker's cache copy is deleted once it is no longer needed,
and only for file:// URIs - a content:// one belongs to the document provider.
Polling backs off from 2s to 8s, stops at a terminal stage, and is suspended
while the app is in the background, where JavaScript is not kept alive; coming
back to the foreground refreshes at once.
75 lines
2.1 KiB
JSON
75 lines
2.1 KiB
JSON
{
|
|
"name": "DeepTutorMobile",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"android": "expo run:android",
|
|
"ios": "expo run:ios",
|
|
"lint": "eslint .",
|
|
"start": "expo start --dev-client",
|
|
"test": "jest",
|
|
"typecheck": "tsc --noEmit",
|
|
"postinstall": "patch-package --error-on-fail"
|
|
},
|
|
"dependencies": {
|
|
"@react-native-async-storage/async-storage": "2.2.0",
|
|
"babel-preset-expo": "57.0.17",
|
|
"expo": "57.0.34",
|
|
"expo-constants": "~57.0.25",
|
|
"expo-dev-client": "57.0.22",
|
|
"expo-document-picker": "~57.0.3",
|
|
"expo-file-system": "~57.0.7",
|
|
"expo-font": "~57.0.4",
|
|
"expo-linking": "~57.0.14",
|
|
"expo-router": "~57.0.32",
|
|
"expo-status-bar": "~57.0.1",
|
|
"patch-package": "8.0.1",
|
|
"react": "19.2.3",
|
|
"react-dom": "19.2.3",
|
|
"react-native": "0.86.3",
|
|
"react-native-reanimated": "4.5.1",
|
|
"react-native-safe-area-context": "5.7.0",
|
|
"react-native-screens": "~4.26.0",
|
|
"react-native-worklets": "0.10.1"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.25.2",
|
|
"@babel/preset-env": "^7.25.3",
|
|
"@babel/runtime": "^7.25.0",
|
|
"@react-native-community/cli": "20.1.0",
|
|
"@react-native-community/cli-platform-android": "20.1.0",
|
|
"@react-native-community/cli-platform-ios": "20.1.0",
|
|
"@react-native/babel-preset": "0.86.3",
|
|
"@react-native/eslint-config": "0.86.3",
|
|
"@react-native/jest-preset": "0.86.3",
|
|
"@react-native/metro-config": "0.86.3",
|
|
"@react-native/typescript-config": "0.86.3",
|
|
"@testing-library/react-native": "^13.3.3",
|
|
"@types/jest": "^29.5.13",
|
|
"@types/react": "~19.2.4",
|
|
"@types/react-test-renderer": "^19.1.0",
|
|
"eslint": "^8.19.0",
|
|
"jest": "^29.6.3",
|
|
"jest-expo": "~57.0.6",
|
|
"prettier": "2.8.8",
|
|
"react-test-renderer": "19.2.3",
|
|
"typescript": "~6.0.3"
|
|
},
|
|
"engines": {
|
|
"node": ">= 22.11.0"
|
|
},
|
|
"overrides": {
|
|
"query-string": {
|
|
"decode-uri-component": "0.5.1"
|
|
}
|
|
},
|
|
"expo": {
|
|
"doctor": {
|
|
"appConfigFieldsNotSyncedCheck": {
|
|
"enabled": false
|
|
}
|
|
}
|
|
}
|
|
}
|