Skip to content

Commit

Permalink
fix: add Tool interface for proper typing
Browse files Browse the repository at this point in the history
Co-Authored-By: Nicolas Arqueros <nico@dcspark.io>
  • Loading branch information
devin-ai-integration[bot] and nicarq committed Feb 5, 2025
1 parent ec7ebd1 commit c97481a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/build_tools/save_tools.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { DirectoryEntry, Metadata, StoreMetadata } from "./interfaces.ts";

import { join } from "https://deno.land/std/path/mod.ts";
import { exists } from "https://deno.land/std/fs/mod.ts";
import { encodeBase64 } from "jsr:@std/encoding/base64";
interface Tool {
dir: string;
}

import { join } from "https://deno.land/std@0.224.0/path/mod.ts";
import { exists } from "https://deno.land/std@0.224.0/fs/mod.ts";
import { encodeBase64 } from "https://deno.land/std@0.224.0/encoding/base64.ts";
import { generateToolRouterKey, systemTools, stripVersion, author, uploadAsset } from "./system.ts";
import { getCategories } from "./fetch_categories.ts";

Expand All @@ -26,7 +30,7 @@ async function buildToolJson(
metadata: Metadata,
toolType: string,
assets: { file_name: string, data: string }[] | undefined,
tool: DirectoryEntry)
tool: Tool)
{
// Set GENERATE_RANDOM_NAME to true to generate a random name for the tool
// So multiple tools with the same name can be uploaded into the node.
Expand Down

0 comments on commit c97481a

Please sign in to comment.