mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
refactor: change npm package from @memoh to @memohai
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
# @memoh/cli
|
||||
# @memohai/cli
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
type ModelsAddRequest,
|
||||
type ScheduleSchedule,
|
||||
type ScheduleListResponse,
|
||||
} from '@memoh/sdk'
|
||||
} from '@memohai/sdk'
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Initialize SDK client
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
import { client } from '@memoh/sdk/client'
|
||||
import { client } from '@memohai/sdk/client'
|
||||
import { readConfig, readToken, getBaseURL } from '../utils/store'
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,4 +17,4 @@ export type {
|
||||
ScheduleSchedule,
|
||||
SettingsSettings,
|
||||
AccountsAccount,
|
||||
} from '@memoh/sdk'
|
||||
} from '@memohai/sdk'
|
||||
|
||||
@@ -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,2 +1,2 @@
|
||||
# @memoh/config
|
||||
# @memohai/config
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@memoh/config",
|
||||
"name": "@memohai/config",
|
||||
"version": "0.5.0",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@memoh/icon",
|
||||
"name": "@memohai/icon",
|
||||
"version": "0.5.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
@@ -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 @@
|
||||
# @memoh/sdk
|
||||
# @memohai/sdk
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@memoh/sdk",
|
||||
"name": "@memohai/sdk",
|
||||
"version": "0.5.0",
|
||||
"description": "",
|
||||
"exports": {
|
||||
|
||||
@@ -1 +1 @@
|
||||
# @memoh/ui
|
||||
# @memohai/ui
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@memoh/ui",
|
||||
"name": "@memohai/ui",
|
||||
"version": "0.5.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
Reference in New Issue
Block a user