mirror of
https://github.com/FlowiseAI/Flowise.git
synced 2026-10-12 02:02:17 +00:00
sandbox: rename class-anchored files to PascalCase
Rename state.ts -> StateBackend.ts and protocol.ts -> BackendProtocol.ts to match the packages/components convention (PascalCase for files whose primary export is a same-named class/interface). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
4e65f92e6d
commit
871a42fa1d
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { StateBackend } from './state'
|
||||
import { FileData } from '../protocol'
|
||||
import { StateBackend } from './StateBackend'
|
||||
import { FileData } from '../BackendProtocol'
|
||||
|
||||
describe('StateBackend', () => {
|
||||
it('write + read round-trip returns the written content', async () => {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { BackendProtocol, DEFAULT_READ_LIMIT, FileData, FilesUpdate, ReadResult, WriteResult } from '../protocol'
|
||||
import { BackendProtocol, DEFAULT_READ_LIMIT, FileData, FilesUpdate, ReadResult, WriteResult } from '../BackendProtocol'
|
||||
import { getMimeType, isTextMimeType, paginateLines } from '../utils'
|
||||
|
||||
type FileStore = Record<string, FileData>
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BackendProtocol, FileData } from './protocol'
|
||||
import { StateBackend } from './backends/state'
|
||||
import { BackendProtocol, FileData } from './BackendProtocol'
|
||||
import { StateBackend } from './backends/StateBackend'
|
||||
|
||||
type FileStore = Record<string, FileData>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DynamicStructuredTool } from '@langchain/core/tools'
|
||||
import { z } from 'zod'
|
||||
import { BackendProtocol } from '../protocol'
|
||||
import { BackendProtocol } from '../BackendProtocol'
|
||||
import { formatWithLineNumbers } from '../utils'
|
||||
|
||||
export function buildFsTools(backend: BackendProtocol): DynamicStructuredTool[] {
|
||||
|
||||
Reference in New Issue
Block a user