refactor: re-export js shims from ts sources
This commit is contained in:
@@ -1 +1 @@
|
|||||||
export {};
|
export * from './coreTypes.generated.ts'
|
||||||
|
|||||||
@@ -1,22 +1 @@
|
|||||||
export class McpSdkServerConfigWithInstance {}
|
export * from './runtimeTypes.ts'
|
||||||
export class SdkMcpToolDefinition {}
|
|
||||||
export class Query {}
|
|
||||||
export class InternalQuery {}
|
|
||||||
export class SDKSession {}
|
|
||||||
export class SDKSessionOptions {}
|
|
||||||
export class InternalOptions {}
|
|
||||||
export class Options {}
|
|
||||||
|
|
||||||
export const AnyZodRawShape = {}
|
|
||||||
export const InferShape = (schema) => schema
|
|
||||||
|
|
||||||
export class ForkSessionOptions {}
|
|
||||||
export class ForkSessionResult {}
|
|
||||||
export class GetSessionInfoOptions {}
|
|
||||||
export class GetSessionMessagesOptions {}
|
|
||||||
export class ListSessionsOptions {}
|
|
||||||
export class SessionMessage {}
|
|
||||||
export class SDKSessionInfo {}
|
|
||||||
export class SDKUserMessage {}
|
|
||||||
export class SDKResultMessage {}
|
|
||||||
export class SessionMutationOptions {}
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export class SdkMcpToolDefinition {}
|
export * from './toolTypes.ts'
|
||||||
|
|||||||
@@ -1,42 +1,6 @@
|
|||||||
import { buildTool } from '../../Tool.js'
|
export {
|
||||||
import { z } from 'zod/v4'
|
TUNGSTEN_TOOL_NAME,
|
||||||
|
TungstenTool,
|
||||||
const inputSchema = z.strictObject({})
|
clearSessionsWithTungstenUsage,
|
||||||
|
resetInitializationState,
|
||||||
const outputSchema = z.strictObject({})
|
} from './TungstenTool.ts'
|
||||||
|
|
||||||
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() {}
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export const WORKFLOW_TOOL_NAME = 'workflow';
|
export { WORKFLOW_TOOL_NAME } from './constants.ts'
|
||||||
|
|||||||
@@ -1,29 +1 @@
|
|||||||
/** @typedef {import('../services/api/claude.js').BetaContentBlock} BetaContentBlock */
|
export { isConnectorTextBlock } from './connectorText.ts'
|
||||||
/** @typedef {import('../services/api/claude.js').BetaContentBlockParam} BetaContentBlockParam */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {object} ConnectorTextBlock
|
|
||||||
* @property {'connector_text'} type
|
|
||||||
* @property {string} connector_text
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {object} ConnectorTextDelta
|
|
||||||
* @property {'connector_text_delta'} type
|
|
||||||
* @property {string} connector_text
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {unknown} block
|
|
||||||
* @returns {block is ConnectorTextBlock}
|
|
||||||
*/
|
|
||||||
export function isConnectorTextBlock(block) {
|
|
||||||
return (
|
|
||||||
Boolean(block) &&
|
|
||||||
typeof block === 'object' &&
|
|
||||||
block.type === 'connector_text' &&
|
|
||||||
typeof block.connector_text === 'string'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export { }
|
|
||||||
|
|||||||
Reference in New Issue
Block a user