Skip to content

Commit 90a2ce2

Browse files
feat: grimoire tools feature def and module
1 parent 60c75f2 commit 90a2ce2

3 files changed

Lines changed: 22 additions & 57 deletions

File tree

grimoire/modules/spells/src/runtime/plugins/index.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export const toolFeatures = {
2+
tools: 'tools',
3+
} as const
4+
5+
export type ToolFeatures = typeof toolFeatures
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineNovaModule } from '@gtc-nova/kit'
2+
import { toolFeatures, type ToolFeatures } from './features'
3+
4+
export const toolModule = defineNovaModule<ToolFeatures>({
5+
name: 'tools',
6+
features: toolFeatures,
7+
featureTypeFunctions: {
8+
tools: () => {
9+
console.log('tools')
10+
},
11+
},
12+
pluginsDir: './../src/runtime/plugins',
13+
metaUrl: import.meta.url,
14+
hooks: [],
15+
})
16+
17+
export type * from './types'

0 commit comments

Comments
 (0)