File tree Expand file tree Collapse file tree
next-runtime-snapshot/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { fileURLToPath } from 'node:url'
22import { defineDevframe } from 'devframe/types'
3- import { serverFunctions } from './rpc'
3+ import { serverFunctions } from './rpc/index.ts '
44
55const BASE_PATH = '/__devframe-files-inspector/'
66const distDir = fileURLToPath ( new URL ( '../dist/client' , import . meta. url ) )
Original file line number Diff line number Diff line change 11import type { RpcDefinitionsToFunctions } from 'devframe/rpc'
2- import { getCwd } from './functions/get-cwd'
3- import { listFiles } from './functions/list-files'
2+ import { getCwd } from './functions/get-cwd.ts '
3+ import { listFiles } from './functions/list-files.ts '
44
55export const serverFunctions = [ getCwd , listFiles ] as const
66
Original file line number Diff line number Diff line change 11import { fileURLToPath } from 'node:url'
22import { defineDevframe } from 'devframe/types'
3- import { serverFunctions } from './rpc'
3+ import { serverFunctions } from './rpc/index.ts '
44
5- export type { EnvEntry , EnvSnapshot } from './rpc/functions/env'
6- export type { MemorySnapshot } from './rpc/functions/memory'
7- export type { SystemInfo } from './rpc/functions/system'
5+ export type { EnvEntry , EnvSnapshot } from './rpc/functions/env.ts '
6+ export type { MemorySnapshot } from './rpc/functions/memory.ts '
7+ export type { SystemInfo } from './rpc/functions/system.ts '
88
99const BASE_PATH = '/__next-runtime-snapshot/'
1010const distDir = fileURLToPath ( new URL ( '../dist/client' , import . meta. url ) )
Original file line number Diff line number Diff line change 11import type { RpcDefinitionsToFunctions } from 'devframe/rpc'
2- import { env } from './functions/env'
3- import { memory } from './functions/memory'
4- import { system } from './functions/system'
2+ import { env } from './functions/env.ts '
3+ import { memory } from './functions/memory.ts '
4+ import { system } from './functions/system.ts '
55
66export const serverFunctions = [ system , memory , env ] as const
77
Original file line number Diff line number Diff line change 11import type { DevToolsNodeContext , RpcStreamingChannel } from 'devframe/types'
22import type { SharedState } from 'devframe/utils/shared-state'
3- import type { ChatHistory } from './types'
3+ import type { ChatHistory } from './types.ts '
44
55export interface StreamingChatContext {
66 channel : RpcStreamingChannel < string >
Original file line number Diff line number Diff line change 11import { fileURLToPath } from 'node:url'
22import { defineDevframe } from 'devframe/types'
3- import { CHANNEL_NAME , HISTORY_KEY , MAX_HISTORY } from './constants'
4- import { setStreamingChatContext } from './context'
5- import { serverFunctions } from './rpc'
3+ import { CHANNEL_NAME , HISTORY_KEY , MAX_HISTORY } from './constants.ts '
4+ import { setStreamingChatContext } from './context.ts '
5+ import { serverFunctions } from './rpc/index.ts '
66
7- export type { ChatHistory , ChatMessage } from './types'
7+ export type { ChatHistory , ChatMessage } from './types.ts '
88
99const BASE_PATH = '/__devframe-streaming-chat/'
1010const distDir = fileURLToPath ( new URL ( '../dist/client' , import . meta. url ) )
Original file line number Diff line number Diff line change 11import { defineRpcFunction } from 'devframe'
2- import { getStreamingChatContext } from '../../context'
2+ import { getStreamingChatContext } from '../../context.ts '
33
44export const clear = defineRpcFunction ( {
55 name : 'devframe-streaming-chat:clear' ,
Original file line number Diff line number Diff line change 11import { defineRpcFunction } from 'devframe'
2- import { DEMO_PROMPTS } from '../../constants'
2+ import { DEMO_PROMPTS } from '../../constants.ts '
33
44export const demoPrompts = defineRpcFunction ( {
55 name : 'devframe-streaming-chat:demo-prompts' ,
Original file line number Diff line number Diff line change 11import { defineRpcFunction } from 'devframe'
22import { nanoid } from 'devframe/utils/nanoid'
33import * as v from 'valibot'
4- import { HISTORY_KEY } from '../../constants'
5- import { getStreamingChatContext } from '../../context'
4+ import { HISTORY_KEY } from '../../constants.ts '
5+ import { getStreamingChatContext } from '../../context.ts '
66
77/**
88 * Synthetic "AI" — splits a canned response into tokens and emits them
Original file line number Diff line number Diff line change 11import type { RpcDefinitionsToFunctions } from 'devframe/rpc'
2- import { clear } from './functions/clear'
3- import { demoPrompts } from './functions/demo-prompts'
4- import { send } from './functions/send'
2+ import { clear } from './functions/clear.ts '
3+ import { demoPrompts } from './functions/demo-prompts.ts '
4+ import { send } from './functions/send.ts '
55
66export const serverFunctions = [ demoPrompts , send , clear ] as const
77
You can’t perform that action at this time.
0 commit comments