Skip to content

Commit

Permalink
Merge pull request #39 from dcSpark/feature/names-n-fixes
Browse files Browse the repository at this point in the history
Fixed authors, Names, SQL new params and added urls string to array
  • Loading branch information
acedward authored Jan 7, 2025
2 parents 0d538fd + 5fff3a0 commit fa61b2a
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 36 deletions.
4 changes: 2 additions & 2 deletions tools/coinbase-call-faucet/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "shinkai-tool-coinbase-call-faucet",
"id": "coinbase-call-faucet",
"version": "1.0.0",
"name": "Shinkai: Coinbase Faucet Caller",
"name": "Coinbase Faucet Caller",
"description": "Tool for calling a faucet on Coinbase",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/coinbase-create-wallet/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "shinkai-tool-coinbase-create-wallet",
"id": "coinbase-create-wallet",
"version": "1.0.0",
"name": "Shinkai: Coinbase Wallet Creator",
"name": "Coinbase Wallet Creator",
"description": "Tool for creating a Coinbase wallet",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/coinbase-get-balance/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "shinkai-tool-coinbase-get-balance",
"id": "coinbase-get-balance",
"version": "1.0.0",
"name": "Shinkai: Coinbase Balance Getter",
"name": "Coinbase Balance Getter",
"description": "Tool for getting the balance of a Coinbase wallet after restoring it",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/coinbase-get-my-address/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "shinkai-tool-coinbase-get-my-address",
"id": "coinbase-get-my-address",
"version": "1.0.0",
"name": "Shinkai: Coinbase My Address Getter",
"name": "Coinbase My Address Getter",
"description": "Tool for getting the default address of a Coinbase wallet",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/coinbase-get-transactions/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "shinkai-tool-coinbase-get-transactions",
"id": "coinbase-get-transactions",
"version": "1.0.0",
"name": "Shinkai: Coinbase Transactions Getter",
"name": "Coinbase Transactions Getter",
"description": "Tool for getting the transactions of a Coinbase wallet after restoring it",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/coinbase-send-tx/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "shinkai-tool-coinbase-send-tx",
"id": "coinbase-send-tx",
"version": "1.0.0",
"name": "Shinkai: Coinbase Transaction Sender",
"name": "Coinbase Transaction Sender",
"description": "Tool for restoring a Coinbase wallet and sending a transaction",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/download-page/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "shinkai-tool-download-pages",
"id": "download-pages",
"version": "1.0.0",
"name": "Shinkai: Download Pages",
"name": "Download Pages",
"description": "Downloads a URL and converts its HTML content to Markdown",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/duckduckgo-search/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "shinkai-tool-duckduckgo-search",
"id": "duckduckgo-search",
"version": "1.0.0",
"name": "Shinkai: DuckDuckGo Search",
"name": "DuckDuckGo Search",
"description": "Searches the DuckDuckGo search engine. Example result: [{\"title\": \"IMDb Top 250 Movies\", \"description\": \"Find out which <b>movies</b> are rated as the <b>best</b> <b>of</b> <b>all</b> <b>time</b> by IMDb users. See the list of 250 titles sorted by ranking, genre, year, and rating, and learn how the list is determined.\", \"url\": \"https://www.imdb.com/chart/top/\"}]",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/email-imap-fetcher/metadata.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"id": "shinkai-tool-email-imap-fetcher",
"id": "email-imap-fetcher",
"name": "Email Fetcher",
"version": "1.0.0",
"description": "Fetches emails from an IMAP server and returns their subject, date, sender, and text content.",
"author": "@@my_local_ai.arb-sep-shinkai",
"author": "Shinkai",
"keywords": [
"email",
"imap",
Expand Down
2 changes: 1 addition & 1 deletion tools/email-responder/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Email Answerer",
"description": "Tool for automatically answering emails by processing their content and responding to them.",
"author": "@@eduardosotomontaner.arb-sep-shinkai",
"author": "Shinkai",
"version": "1.0.0",
"keywords": [
"email",
Expand Down
8 changes: 3 additions & 5 deletions tools/email-responder/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,18 @@ export async function run(config: CONFIG, inputs: INPUTS): Promise<OUTPUT> {
);
`;

await shinkaiSqliteQueryExecutor({ query: createTableQuery, database_name: dbName });
await shinkaiSqliteQueryExecutor({ query: createTableQuery });
// Ensure the connection is closed or cleaned up if necessary
// Verify table creation was successful
const tableCheck = await shinkaiSqliteQueryExecutor({
query: `SELECT name FROM sqlite_master WHERE type='table' AND name=?;`,
database_name: dbName,
query_params: [tableName]
params: [tableName]
});
const tableCreated = tableCheck?.result?.length > 0;
let { emails, login_status } = await emailFetcher({ from_date: inputs.from_date, to_date: inputs.to_date });

const answeredEmailsQuery = await shinkaiSqliteQueryExecutor({
query: `SELECT * FROM ${tableName}`,
database_name: dbName
});
if (!answeredEmailsQuery?.result) {
throw new Error('Failed to query answered emails');
Expand Down Expand Up @@ -153,7 +151,7 @@ export async function run(config: CONFIG, inputs: INPUTS): Promise<OUTPUT> {
escapeSqlString(response.message),
new Date(email.date)
);
await shinkaiSqliteQueryExecutor({ query: insertEmail, database_name: dbName })
await shinkaiSqliteQueryExecutor({ query: insertEmail })
const mailId = emailUniqueId;
mailIds.push(mailId);
}
Expand Down
2 changes: 1 addition & 1 deletion tools/email-sender/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Send Email",
"version": "1.0.0",
"description": "Sends an email using SMTP.",
"author": "@@my_local_ai.arb-sep-shinkai",
"author": "Shinkai",
"keywords": [
"email",
"smtp",
Expand Down
2 changes: 1 addition & 1 deletion tools/file-read/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Read File Contents",
"version": "1.0.0",
"description": "Reads the text contents of a file from the given path.",
"author": "@@shinkai.arb-sep-shinkai",
"author": "Shinkai",
"keywords": [
"file",
"read",
Expand Down
2 changes: 1 addition & 1 deletion tools/file-update/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Update File with Prompt",
"version": "1.0.0",
"description": "Applies a prompt to the file contents.",
"author": "@@shinkai.arb-sep-shinkai",
"author": "Shinkai",
"keywords": [
"file",
"update",
Expand Down
2 changes: 1 addition & 1 deletion tools/file-write/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Write File Contents",
"version": "1.0.0",
"description": "Writes the text contents of a file to the given path.",
"author": "@@shinkai.arb-sep-shinkai",
"author": "Shinkai",
"keywords": [
"file",
"write",
Expand Down
4 changes: 2 additions & 2 deletions tools/math-exp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "shinkai-tool-math-exp",
"name": "Shinkai: Math Expression Evaluator",
"id": "math-exp",
"name": "Math Expression Evaluator",
"description": "Parses and evaluates mathematical expressions. It’s a safer and more math-oriented alternative to using JavaScript’s eval function for mathematical expressions.",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/perplexity-api/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "shinkai-tool-perplexity-api",
"name": "Shinkai: Perplexity API",
"id": "perplexity-api",
"name": "Perplexity API",
"description": "Searches the web using Perplexity API (limited)",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/perplexity/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "shinkai-tool-perplexity",
"name": "Shinkai: Perplexity",
"id": "perplexity",
"name": "Perplexity",
"description": "Searches the internet using Perplexity",
"author": "Shinkai",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions tools/youtube-summary/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "shinkai-tool-youtube-summary",
"name": "Shinkai: YouTube Video Summary",
"id": "youtube-summary",
"name": "YouTube Video Summary",
"description": "Summarizes a YouTube video. Provides a summary with organized sections and clickable timestamp links. Useful for quickly grasping main points, preparing for discussions, or efficient research. Example uses: summarizing tech talks, product reviews, or educational lectures. Parameters: url (string) - The full YouTube video URL to process.",
"author": "Shinkai",
"keywords": [
Expand Down

0 comments on commit fa61b2a

Please sign in to comment.