Add agents package with Flue

This commit is contained in:
-Puter
2026-07-19 03:24:40 +05:30
parent 8033a8edb0
commit dd1071cc10
75 changed files with 9205 additions and 51 deletions

View File

@@ -0,0 +1,5 @@
import { defineConfig } from '@flue/cli/config';
export default defineConfig({
target: 'node',
});

View File

@@ -0,0 +1,20 @@
{
"name": "@code/agents",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "flue build",
"check-types": "tsc --noEmit",
"dev": "flue dev",
"run": "flue run"
},
"dependencies": {
"@flue/runtime": "latest"
},
"devDependencies": {
"@code/config": "workspace:*",
"@flue/cli": "latest",
"typescript": "^6"
}
}

View File

@@ -0,0 +1,6 @@
import { defineAgent } from '@flue/runtime';
export default defineAgent(() => ({
model: 'anthropic/claude-sonnet-4-6',
instructions: 'Give a concise, helpful hello-world response for this project.',
}));

View File

@@ -0,0 +1,5 @@
{
"extends": "@code/config/tsconfig.base.json",
"include": ["src/**/*.ts"],
"exclude": ["dist"]
}