refactor: re-export js shims from ts sources

This commit is contained in:
2026-04-03 11:07:00 +08:00
parent e8da02f5bc
commit fa9c74e7b7
6 changed files with 11 additions and 96 deletions

View File

@@ -1,42 +1,6 @@
import { buildTool } from '../../Tool.js'
import { z } from 'zod/v4'
const inputSchema = z.strictObject({})
const outputSchema = z.strictObject({})
export const TungstenTool = buildTool({
name: 'tungsten',
searchHint: 'manage tmux-based tasks',
maxResultSizeChars: 1024,
strict: true,
async description() {
return 'Tungsten integration is unavailable in this restored source snapshot.'
},
async prompt() {
return 'Tungsten is unavailable in this build environment.'
},
get inputSchema() {
return inputSchema
},
get outputSchema() {
return outputSchema
},
isEnabled() {
return false
},
userFacingName() {
return 'Tungsten'
},
async call() {
return {
data: {},
isError: true,
content: 'Tungsten tool is not available in this environment.',
}
},
})
export function clearSessionsWithTungstenUsage() {}
export function resetInitializationState() {}
export {
TUNGSTEN_TOOL_NAME,
TungstenTool,
clearSessionsWithTungstenUsage,
resetInitializationState,
} from './TungstenTool.ts'

View File

@@ -1 +1 @@
export const WORKFLOW_TOOL_NAME = 'workflow';
export { WORKFLOW_TOOL_NAME } from './constants.ts'