-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename tools with demo_ prefix
Co-Authored-By: Nicolas Arqueros <[email protected]>
- Loading branch information
1 parent
6dde7e1
commit 84221d6
Showing
30 changed files
with
1,975 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "@shinkai_protocol/shinkai-tool-echo", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "apps/shinkai-tool-echo/src", | ||
"projectType": "library", | ||
"tags": ["tool"], | ||
"targets": { | ||
"build": { | ||
"executor": "nx:run-commands", | ||
"defaultConfiguration": "production", | ||
"options": { | ||
"command": "deno task tool-bundler --entry ./apps/shinkai-tool-echo/src/index.ts --outputFolder ./dist/apps/shinkai-tool-echo" | ||
}, | ||
"configurations": { | ||
"development": {}, | ||
"production": {} | ||
} | ||
}, | ||
"lint": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"command": "deno lint apps/shinkai-tool-echo/src/index.ts" | ||
} | ||
}, | ||
"test": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"command": "deno test --no-check --allow-all apps/shinkai-tool-echo/src/**/*.test.ts" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { run } from './index.ts'; | ||
import { assertEquals } from 'jsr:@std/assert'; | ||
|
||
Deno.test('echo', async () => { | ||
const result = await run({}, { message: 'hi' }); | ||
assertEquals(result.message, 'echoing: hi'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export const run: Run<{}, { message: string }, { message: string }> = ( | ||
_configurations, | ||
parameters, | ||
): Promise<{ message: string }> => { | ||
console.log('run echo from js'); | ||
return Promise.resolve({ | ||
message: `echoing: ${parameters.message}`, | ||
}); | ||
}; | ||
|
||
export const definition: ToolDefinition<typeof run> = { | ||
id: 'shinkai-tool-echo', | ||
name: 'Shinkai: Echo', | ||
description: 'Echoes the input message', | ||
author: 'Shinkai', | ||
keywords: ['echo', 'shinkai'], | ||
configurations: { | ||
type: 'object', | ||
properties: {}, | ||
required: [], | ||
}, | ||
parameters: { | ||
type: 'object', | ||
properties: { | ||
message: { type: 'string' }, | ||
}, | ||
required: ['message'], | ||
}, | ||
result: { | ||
type: 'object', | ||
properties: { | ||
message: { type: 'string' }, | ||
}, | ||
required: ['message'], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "@shinkai_protocol/shinkai-tool-ethplorer-tokens", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "apps/shinkai-tool-ethplorer-tokens/src", | ||
"projectType": "library", | ||
"tags": ["tool"], | ||
"targets": { | ||
"build": { | ||
"executor": "nx:run-commands", | ||
"defaultConfiguration": "production", | ||
"options": { | ||
"command": "deno task tool-bundler --entry ./apps/shinkai-tool-ethplorer-tokens/src/index.ts --outputFolder ./dist/apps/shinkai-tool-ethplorer-tokens" | ||
}, | ||
"configurations": { | ||
"development": {}, | ||
"production": {} | ||
} | ||
}, | ||
"lint": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"command": "deno lint apps/shinkai-tool-ethplorer-tokens/src/index.ts" | ||
} | ||
}, | ||
"test": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"command": "deno test --no-check --allow-all apps/shinkai-tool-ethplorer-tokens/src/**/*.test.ts" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.