Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@threadplane/middleware",
"version": "0.0.1",
"version": "0.0.2",
"description": "Backend middleware for the Threadplane client-tools capability. The /langgraph entrypoint targets LangGraph.js.",
"keywords": ["langgraph", "agent", "client-tools", "middleware", "threadplane"],
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion libs/middleware/src/langgraph/channel.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
import { Annotation } from '@langchain/langgraph';
import type { ClientToolSpec } from './types';
import type { ClientToolSpec } from './types.js';

/**
* State channels for the client-tools catalog. Spread into Annotation.Root so a graph
Expand Down
8 changes: 4 additions & 4 deletions libs/middleware/src/langgraph/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
export type { ClientToolSpec, ClientToolsState, OpenAIFunctionTool, BaseMessage } from './types';
export type { ClientToolSpec, ClientToolsState, OpenAIFunctionTool, BaseMessage } from './types.js';
export {
clientToolSpecs,
clientToolNames,
Expand All @@ -9,6 +9,6 @@ export {
bindClientTools,
routeAfterAgent,
type BindableModel,
} from './middleware';
export { clientToolsChannel } from './channel';
export { clientToolsRouter } from './router';
} from './middleware.js';
export { clientToolsChannel } from './channel.js';
export { clientToolsRouter } from './router.js';
4 changes: 2 additions & 2 deletions libs/middleware/src/langgraph/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
import type { ClientToolSpec, ClientToolsState, OpenAIFunctionTool } from './types';
import type { ClientToolSpec, ClientToolsState, OpenAIFunctionTool } from './types.js';

/** Read the catalog from state.tools, falling back to state.client_tools; drop nameless. */
function catalog(state: ClientToolsState): ClientToolSpec[] {
Expand All @@ -20,7 +20,7 @@ export function clientToolNames(state: ClientToolsState): Set<string> {
return new Set(catalog(state).map((t) => t.name));
}

import type { BaseMessage } from './types';
import type { BaseMessage } from './types.js';

interface ToolCallLike {
name?: string;
Expand Down
4 changes: 2 additions & 2 deletions libs/middleware/src/langgraph/router.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
import { routeAfterAgent } from './middleware';
import type { ClientToolsState } from './types';
import { routeAfterAgent } from './middleware.js';
import type { ClientToolsState } from './types.js';

/**
* A prebuilt conditional-edge callback. serverToolNames is bound once at construction;
Expand Down
Loading