Browse Source

feat: Add bunfig.toml for registry configuration and update README with requirements

- Introduced a new bunfig.toml file to specify the npm registry.
- Updated README.md to include requirements for bun version.
mono
谢亚昕 2 months ago
parent
commit
45d2dcac9a
  1. 2
      .bunfig.toml
  2. 5
      README.md
  3. BIN
      bun.lockb
  4. 216
      packages/client/auto-imports.d.ts
  5. 2
      tsup.config.ts

2
.bunfig.toml

@ -0,0 +1,2 @@
[install]
registry = "https://registry.npmmirror.com/"

5
README.md

@ -6,3 +6,8 @@
## 试试grpc,实现node与python通信,扩展更多的功能。 ## 试试grpc,实现node与python通信,扩展更多的功能。
https://grpc.org.cn/docs/languages/node/quickstart/ https://grpc.org.cn/docs/languages/node/quickstart/
https://www.doubao.com/chat/23869592666505474 https://www.doubao.com/chat/23869592666505474
## 要求
bun < 1.2.0

BIN
bun.lockb

Binary file not shown.

216
packages/client/auto-imports.d.ts

@ -6,114 +6,114 @@
// biome-ignore lint: disable // biome-ignore lint: disable
export {} export {}
declare global { declare global {
const $fetch: typeof import('ofetch')['$fetch'] const $fetch: typeof import('ofetch').$fetch
const AIProviderNoImplementedChatError: typeof import('./src/composables/useChat/modules/error')['AIProviderNoImplementedChatError'] const AIProviderNoImplementedChatError: typeof import('./src/composables/useChat/modules/error').AIProviderNoImplementedChatError
const AIProviderNoImplementedPaintError: typeof import('./src/composables/useChat/modules/error')['AIProviderNoImplementedPaintError'] const AIProviderNoImplementedPaintError: typeof import('./src/composables/useChat/modules/error').AIProviderNoImplementedPaintError
const ApiError: typeof import('./src/composables/useChat/modules/error')['ApiError'] const ApiError: typeof import('./src/composables/useChat/modules/error').ApiError
const BaseError: typeof import('./src/composables/useChat/modules/error')['BaseError'] const BaseError: typeof import('./src/composables/useChat/modules/error').BaseError
const Chat: typeof import('./src/composables/useChat/Chat')['Chat'] const Chat: typeof import('./src/composables/useChat/Chat').Chat
const ChatboxAIAPIError: typeof import('./src/composables/useChat/modules/error')['ChatboxAIAPIError'] const ChatboxAIAPIError: typeof import('./src/composables/useChat/modules/error').ChatboxAIAPIError
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue').EffectScope
const MessageHelper: typeof import('./src/composables/useChat/modules/MessageHelper')['MessageHelper'] const MessageHelper: typeof import('./src/composables/useChat/modules/MessageHelper').MessageHelper
const NetworkError: typeof import('./src/composables/useChat/modules/error')['NetworkError'] const NetworkError: typeof import('./src/composables/useChat/modules/error').NetworkError
const Ollama: typeof import('./src/composables/useChat/provider/Ollama')['Ollama'] const Ollama: typeof import('./src/composables/useChat/provider/Ollama').Ollama
const OpenAI: typeof import('./src/composables/useChat/provider/Openai')['OpenAI'] const OpenAI: typeof import('./src/composables/useChat/provider/Openai').OpenAI
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate'] const acceptHMRUpdate: typeof import('pinia').acceptHMRUpdate
const clearSSRContext: typeof import('../../internal/x/composables/ssrContext')['clearSSRContext'] const clearSSRContext: typeof import('../../internal/x/composables/ssrContext').clearSSRContext
const computed: typeof import('vue')['computed'] const computed: typeof import('vue').computed
const createApp: typeof import('vue')['createApp'] const createApp: typeof import('vue').createApp
const createPinia: typeof import('pinia')['createPinia'] const createPinia: typeof import('pinia').createPinia
const createSSRContext: typeof import('../../internal/x/composables/ssrContext')['createSSRContext'] const createSSRContext: typeof import('../../internal/x/composables/ssrContext').createSSRContext
const customRef: typeof import('vue')['customRef'] const customRef: typeof import('vue').customRef
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineAsyncComponent: typeof import('vue').defineAsyncComponent
const defineComponent: typeof import('vue')['defineComponent'] const defineComponent: typeof import('vue').defineComponent
const defineStore: typeof import('pinia')['defineStore'] const defineStore: typeof import('pinia').defineStore
const effectScope: typeof import('vue')['effectScope'] const effectScope: typeof import('vue').effectScope
const getActivePinia: typeof import('pinia')['getActivePinia'] const getActivePinia: typeof import('pinia').getActivePinia
const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentInstance: typeof import('vue').getCurrentInstance
const getCurrentScope: typeof import('vue')['getCurrentScope'] const getCurrentScope: typeof import('vue').getCurrentScope
const getCurrentWatcher: typeof import('vue')['getCurrentWatcher'] const getCurrentWatcher: typeof import('vue').getCurrentWatcher
const h: typeof import('vue')['h'] const h: typeof import('vue').h
const hydrateSSRContext: typeof import('../../internal/x/composables/ssrContext')['hydrateSSRContext'] const hydrateSSRContext: typeof import('../../internal/x/composables/ssrContext').hydrateSSRContext
const inject: typeof import('vue')['inject'] const inject: typeof import('vue').inject
const injectHead: typeof import('@unhead/vue')['injectHead'] const injectHead: typeof import('@unhead/vue').injectHead
const isProxy: typeof import('vue')['isProxy'] const isProxy: typeof import('vue').isProxy
const isReactive: typeof import('vue')['isReactive'] const isReactive: typeof import('vue').isReactive
const isReadonly: typeof import('vue')['isReadonly'] const isReadonly: typeof import('vue').isReadonly
const isRef: typeof import('vue')['isRef'] const isRef: typeof import('vue').isRef
const isShallow: typeof import('vue')['isShallow'] const isShallow: typeof import('vue').isShallow
const mapActions: typeof import('pinia')['mapActions'] const mapActions: typeof import('pinia').mapActions
const mapGetters: typeof import('pinia')['mapGetters'] const mapGetters: typeof import('pinia').mapGetters
const mapState: typeof import('pinia')['mapState'] const mapState: typeof import('pinia').mapState
const mapStores: typeof import('pinia')['mapStores'] const mapStores: typeof import('pinia').mapStores
const mapWritableState: typeof import('pinia')['mapWritableState'] const mapWritableState: typeof import('pinia').mapWritableState
const markRaw: typeof import('vue')['markRaw'] const markRaw: typeof import('vue').markRaw
const nextTick: typeof import('vue')['nextTick'] const nextTick: typeof import('vue').nextTick
const onActivated: typeof import('vue')['onActivated'] const onActivated: typeof import('vue').onActivated
const onBeforeMount: typeof import('vue')['onBeforeMount'] const onBeforeMount: typeof import('vue').onBeforeMount
const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave'] const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave
const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate'] const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] const onBeforeUnmount: typeof import('vue').onBeforeUnmount
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] const onBeforeUpdate: typeof import('vue').onBeforeUpdate
const onDeactivated: typeof import('vue')['onDeactivated'] const onDeactivated: typeof import('vue').onDeactivated
const onErrorCaptured: typeof import('vue')['onErrorCaptured'] const onErrorCaptured: typeof import('vue').onErrorCaptured
const onMounted: typeof import('vue')['onMounted'] const onMounted: typeof import('vue').onMounted
const onRenderTracked: typeof import('vue')['onRenderTracked'] const onRenderTracked: typeof import('vue').onRenderTracked
const onRenderTriggered: typeof import('vue')['onRenderTriggered'] const onRenderTriggered: typeof import('vue').onRenderTriggered
const onScopeDispose: typeof import('vue')['onScopeDispose'] const onScopeDispose: typeof import('vue').onScopeDispose
const onServerPrefetch: typeof import('vue')['onServerPrefetch'] const onServerPrefetch: typeof import('vue').onServerPrefetch
const onUnmounted: typeof import('vue')['onUnmounted'] const onUnmounted: typeof import('vue').onUnmounted
const onUpdated: typeof import('vue')['onUpdated'] const onUpdated: typeof import('vue').onUpdated
const onWatcherCleanup: typeof import('vue')['onWatcherCleanup'] const onWatcherCleanup: typeof import('vue').onWatcherCleanup
const parseCookieHeader: typeof import('../../internal/x/composables/cookieUtils')['parseCookieHeader'] const parseCookieHeader: typeof import('../../internal/x/composables/cookieUtils').parseCookieHeader
const parseDocumentCookies: typeof import('../../internal/x/composables/cookieUtils')['parseDocumentCookies'] const parseDocumentCookies: typeof import('../../internal/x/composables/cookieUtils').parseDocumentCookies
const provide: typeof import('vue')['provide'] const provide: typeof import('vue').provide
const reactive: typeof import('vue')['reactive'] const reactive: typeof import('vue').reactive
const readonly: typeof import('vue')['readonly'] const readonly: typeof import('vue').readonly
const ref: typeof import('vue')['ref'] const ref: typeof import('vue').ref
const render: typeof import('../../internal/x/composables/README.md')['render'] const render: typeof import('../../internal/x/composables/README.md').render
const resolveComponent: typeof import('vue')['resolveComponent'] const resolveComponent: typeof import('vue').resolveComponent
const resolveSSRContext: typeof import('../../internal/x/composables/ssrContext')['resolveSSRContext'] const resolveSSRContext: typeof import('../../internal/x/composables/ssrContext').resolveSSRContext
const serializeCookie: typeof import('../../internal/x/composables/cookieUtils')['serializeCookie'] const serializeCookie: typeof import('../../internal/x/composables/cookieUtils').serializeCookie
const setActivePinia: typeof import('pinia')['setActivePinia'] const setActivePinia: typeof import('pinia').setActivePinia
const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix'] const setMapStoreSuffix: typeof import('pinia').setMapStoreSuffix
const shallowReactive: typeof import('vue')['shallowReactive'] const shallowReactive: typeof import('vue').shallowReactive
const shallowReadonly: typeof import('vue')['shallowReadonly'] const shallowReadonly: typeof import('vue').shallowReadonly
const shallowRef: typeof import('vue')['shallowRef'] const shallowRef: typeof import('vue').shallowRef
const storeToRefs: typeof import('pinia')['storeToRefs'] const storeToRefs: typeof import('pinia').storeToRefs
const toRaw: typeof import('vue')['toRaw'] const toRaw: typeof import('vue').toRaw
const toRef: typeof import('vue')['toRef'] const toRef: typeof import('vue').toRef
const toRefs: typeof import('vue')['toRefs'] const toRefs: typeof import('vue').toRefs
const toValue: typeof import('vue')['toValue'] const toValue: typeof import('vue').toValue
const triggerRef: typeof import('vue')['triggerRef'] const triggerRef: typeof import('vue').triggerRef
const unref: typeof import('vue')['unref'] const unref: typeof import('vue').unref
const useAttrs: typeof import('vue')['useAttrs'] const useAttrs: typeof import('vue').useAttrs
const useAuthStore: typeof import('./src/store/auth')['useAuthStore'] const useAuthStore: typeof import('./src/store/auth').useAuthStore
const useChat: typeof import('./src/composables/useChat/index')['useChat'] const useChat: typeof import('./src/composables/useChat/index').useChat
const useCookie: typeof import('../../internal/x/composables/useCookie')['useCookie'] const useCookie: typeof import('../../internal/x/composables/useCookie').useCookie
const useCssModule: typeof import('vue')['useCssModule'] const useCssModule: typeof import('vue').useCssModule
const useCssVars: typeof import('vue')['useCssVars'] const useCssVars: typeof import('vue').useCssVars
const useFetch: typeof import('../../internal/x/composables/useFetch')['useFetch'] const useFetch: typeof import('../../internal/x/composables/useFetch').useFetch
const useGlobal: typeof import('./src/composables/useGlobal/index')['useGlobal'] const useGlobal: typeof import('./src/composables/useGlobal/index').useGlobal
const useHead: typeof import('@unhead/vue')['useHead'] const useHead: typeof import('@unhead/vue').useHead
const useHeadSafe: typeof import('@unhead/vue')['useHeadSafe'] const useHeadSafe: typeof import('@unhead/vue').useHeadSafe
const useId: typeof import('vue')['useId'] const useId: typeof import('vue').useId
const useLink: typeof import('vue-router')['useLink'] const useLink: typeof import('vue-router').useLink
const useModel: typeof import('vue')['useModel'] const useModel: typeof import('vue').useModel
const useRoute: typeof import('vue-router')['useRoute'] const useRoute: typeof import('vue-router').useRoute
const useRouter: typeof import('vue-router')['useRouter'] const useRouter: typeof import('vue-router').useRouter
const useScroll: typeof import('./src/composables/useScroll/index')['useScroll'] const useScroll: typeof import('./src/composables/useScroll/index').useScroll
const useSeoMeta: typeof import('@unhead/vue')['useSeoMeta'] const useSeoMeta: typeof import('@unhead/vue').useSeoMeta
const useServerHead: typeof import('@unhead/vue')['useServerHead'] const useServerHead: typeof import('@unhead/vue').useServerHead
const useServerHeadSafe: typeof import('@unhead/vue')['useServerHeadSafe'] const useServerHeadSafe: typeof import('@unhead/vue').useServerHeadSafe
const useServerSeoMeta: typeof import('@unhead/vue')['useServerSeoMeta'] const useServerSeoMeta: typeof import('@unhead/vue').useServerSeoMeta
const useShareCache: typeof import('../../internal/x/composables/useShareContext')['useShareCache'] const useShareCache: typeof import('../../internal/x/composables/useShareContext').useShareCache
const useSlots: typeof import('vue')['useSlots'] const useSlots: typeof import('vue').useSlots
const useTemplateRef: typeof import('vue')['useTemplateRef'] const useTemplateRef: typeof import('vue').useTemplateRef
const watch: typeof import('vue')['watch'] const watch: typeof import('vue').watch
const watchEffect: typeof import('vue')['watchEffect'] const watchEffect: typeof import('vue').watchEffect
const watchPostEffect: typeof import('vue')['watchPostEffect'] const watchPostEffect: typeof import('vue').watchPostEffect
const watchSyncEffect: typeof import('vue')['watchSyncEffect'] const watchSyncEffect: typeof import('vue').watchSyncEffect
} }
// for type re-export // for type re-export
declare global { declare global {

2
tsup.config.ts

@ -6,8 +6,6 @@ import fg from "fast-glob"
const jobsEntries = await fg(["packages/server/src/jobs/**/*.ts"], { }); const jobsEntries = await fg(["packages/server/src/jobs/**/*.ts"], { });
const modulesEntries = await fg(["packages/server/src/modules/**/*.ts"], { }); const modulesEntries = await fg(["packages/server/src/modules/**/*.ts"], { });
console.log(process.env.NODE_ENV);
export default defineConfig({ export default defineConfig({
entry: [...jobsEntries, ...modulesEntries, "packages/server/src/booststap.ts"], entry: [...jobsEntries, ...modulesEntries, "packages/server/src/booststap.ts"],
format: "esm", format: "esm",

Loading…
Cancel
Save