refactor: change npm package from @memoh to @memohai

This commit is contained in:
Acbox
2026-03-24 21:30:25 +08:00
parent 5963e787a9
commit ff764d53ac
150 changed files with 311 additions and 296 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
# @memoh/cli
# @memohai/cli
+2 -2
View File
@@ -1,5 +1,5 @@
{
"name": "@memoh/cli",
"name": "@memohai/cli",
"version": "0.5.0",
"description": "Command line interface and core API for Memoh",
"exports": {
@@ -19,7 +19,7 @@
"build:watch": "tsup --watch"
},
"dependencies": {
"@memoh/sdk": "workspace:*",
"@memohai/sdk": "workspace:*",
"commander": "^12.1.0",
"chalk": "^5.4.1",
"ora": "^8.1.1",
+2 -2
View File
@@ -16,8 +16,8 @@ import {
type BotsCreateBotRequest,
type BotsUpdateBotRequest,
type ModelsGetResponse,
} from '@memoh/sdk'
import { client } from '@memoh/sdk/client'
} from '@memohai/sdk'
import { client } from '@memohai/sdk/client'
import { ensureAuth, getErrorMessage, resolveBotId } from './shared'
import { streamChat } from './stream'
+1 -1
View File
@@ -35,7 +35,7 @@ import {
type ModelsAddRequest,
type ScheduleSchedule,
type ScheduleListResponse,
} from '@memoh/sdk'
} from '@memohai/sdk'
// ---------------------------------------------------------------------------
// Initialize SDK client
+1 -1
View File
@@ -2,7 +2,7 @@ import chalk from 'chalk'
import inquirer from 'inquirer'
import ora from 'ora'
import { getBots, type BotsBot } from '@memoh/sdk'
import { getBots, type BotsBot } from '@memohai/sdk'
import { readToken, type TokenInfo } from '../utils/store'
export type BotSummary = BotsBot
+2 -2
View File
@@ -1,6 +1,6 @@
import chalk from 'chalk'
import { client } from '@memoh/sdk/client'
import { postBotsByBotIdCliMessages } from '@memoh/sdk'
import { client } from '@memohai/sdk/client'
import { postBotsByBotIdCliMessages } from '@memohai/sdk'
// ---------------------------------------------------------------------------
// SSE stream types (aligned with frontend useChat.ts)
+1 -1
View File
@@ -1,4 +1,4 @@
import { client } from '@memoh/sdk/client'
import { client } from '@memohai/sdk/client'
import { readConfig, readToken, getBaseURL } from '../utils/store'
/**
+1 -1
View File
@@ -17,4 +17,4 @@ export type {
ScheduleSchedule,
SettingsSettings,
AccountsAccount,
} from '@memoh/sdk'
} from '@memohai/sdk'
+2 -2
View File
@@ -8,8 +8,8 @@ export default defineConfig({
bundle: true,
splitting: false,
clean: true,
// @memoh/sdk exports raw .ts, must be bundled
noExternal: [/^@memoh\/sdk/],
// @memohai/sdk exports raw .ts, must be bundled
noExternal: [/^@memohai\/sdk/],
banner: {
js: '#!/usr/bin/env node',
},
+1 -1
View File
@@ -1,2 +1,2 @@
# @memoh/config
# @memohai/config
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "@memoh/config",
"name": "@memohai/config",
"version": "0.5.0",
"exports": {
".": "./src/index.ts"
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "@memoh/icon",
"name": "@memohai/icon",
"version": "0.5.0",
"private": true,
"type": "module",
+1 -1
View File
@@ -56,7 +56,7 @@ defineOptions({ inheritAttrs: false })
// Main
// ---------------------------------------------------------------------------
console.log('🎨 @memoh/icon generator\n')
console.log('🎨 @memohai/icon generator\n')
fs.mkdirSync(SRC_ICONS_DIR, { recursive: true })
+1 -1
View File
@@ -1 +1 @@
# @memoh/sdk
# @memohai/sdk
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "@memoh/sdk",
"name": "@memohai/sdk",
"version": "0.5.0",
"description": "",
"exports": {
+1 -1
View File
@@ -1 +1 @@
# @memoh/ui
# @memohai/ui
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "@memoh/ui",
"name": "@memohai/ui",
"version": "0.5.0",
"private": true,
"type": "module",