-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: prepare packages for publishing (#45)
Fixes #29 Introducing Rslib Commenting out documentation entry points temporarily (I need to experiment with this in a follow-up) Moved vision tools to file, from folder, to simplify structure Added missing fields to package.json and fixed typos in some other places Tested and tried this setup in Cali, a different project of mine
- Loading branch information
Showing
22 changed files
with
174 additions
and
53 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 |
---|---|---|
|
@@ -175,4 +175,4 @@ dist | |
.DS_Store | ||
|
||
last-run-id.txt | ||
context-*.json | ||
context-*.json |
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
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 |
---|---|---|
|
@@ -27,7 +27,5 @@ | |
"trustedDependencies": [ | ||
"core-js" | ||
], | ||
"dependencies": { | ||
"nanoid": "^5.0.9" | ||
} | ||
"version": "0.0.1" | ||
} |
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,3 @@ | ||
@dead-simple-ai-agent/framework | ||
==== | ||
|
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 |
---|---|---|
@@ -1,20 +1,47 @@ | ||
{ | ||
"name": "@dead-simple-ai-agent/framework", | ||
"version": "0.0.1", | ||
"description": "A dead simple AI agent framework", | ||
"author": "Mike Grabowski <[email protected]>", | ||
"contributors": [ | ||
"Piotr Karwatka <[email protected]>" | ||
], | ||
"scripts": { | ||
"clean": "rm -rf dist", | ||
"build": "bun run clean && bun run build:lib && bun run build:types", | ||
"build:lib": "rslib build", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --outdir dist/types" | ||
}, | ||
"exports": { | ||
"./*": { | ||
"bun": "./src/*.ts" | ||
}, | ||
"./models/*": { | ||
"bun": "./src/models/*.ts" | ||
"bun": "./src/*.ts", | ||
"types": "./dist/types/*.d.ts", | ||
"require": "./dist/*.cjs", | ||
"import": "./dist/*.js" | ||
} | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"dedent": "^1.5.3", | ||
"openai": "^4.76.0", | ||
"zod": "^3.23.8" | ||
} | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/callstackincubator/ai-agent-framework.git" | ||
}, | ||
"keywords": [ | ||
"ai", | ||
"ai agents", | ||
"ai tools" | ||
], | ||
"files": [ | ||
"dist", | ||
"src", | ||
"README.md" | ||
], | ||
"engines": { | ||
"node": ">=22" | ||
}, | ||
"version": "0.0.1" | ||
} |
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,39 @@ | ||
import { defineConfig } from '@rslib/core' | ||
|
||
const entry = { | ||
agent: './src/agent.ts', | ||
models: './src/models.ts', | ||
teamwork: './src/teamwork.ts', | ||
telemetry: './src/telemetry.ts', | ||
tool: './src/tool.ts', | ||
workflow: './src/workflow.ts', | ||
} | ||
|
||
export default defineConfig({ | ||
lib: [ | ||
{ | ||
source: { | ||
entry, | ||
}, | ||
format: 'esm', | ||
bundle: false, | ||
output: { | ||
distPath: { | ||
root: 'dist', | ||
}, | ||
}, | ||
}, | ||
{ | ||
source: { | ||
entry, | ||
}, | ||
format: 'cjs', | ||
bundle: false, | ||
output: { | ||
distPath: { | ||
root: 'dist', | ||
}, | ||
}, | ||
}, | ||
], | ||
}) |
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
2 changes: 1 addition & 1 deletion
2
packages/framework/src/models/openai.ts → packages/framework/src/models.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
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
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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"extends": "../../tsconfig.json" | ||
"extends": "../../tsconfig.json", | ||
"include": ["./src"] | ||
} |
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,3 @@ | ||
@dead-simple-ai-agent/tools | ||
==== | ||
|
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 |
---|---|---|
@@ -1,20 +1,43 @@ | ||
{ | ||
"name": "@dead-simple-ai-agent/tools", | ||
"version": "0.0.1", | ||
"description": "A dead simple AI agent tools", | ||
"author": "Piotr Karwatka <[email protected]>", | ||
"scripts": { | ||
"clean": "rm -rf dist", | ||
"build": "bun run clean && bun run build:lib && bun run build:types", | ||
"build:lib": "rslib build", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --outdir dist/types" | ||
}, | ||
"exports": { | ||
".": { | ||
"bun": "./src/index.ts" | ||
}, | ||
"./tools": { | ||
"bun": "./src/index.ts" | ||
"./*": { | ||
"bun": "./src/*.ts", | ||
"types": "./dist/types/*.d.ts", | ||
"require": "./dist/*.cjs", | ||
"import": "./dist/*.js" | ||
} | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"dedent": "^1.5.3", | ||
"openai": "^4.76.0", | ||
"@dead-simple-ai-agent/framework": "0.0.1", | ||
"zod": "^3.23.8" | ||
} | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/callstackincubator/ai-agent-framework.git" | ||
}, | ||
"keywords": [ | ||
"ai", | ||
"ai agents", | ||
"ai tools" | ||
], | ||
"files": [ | ||
"dist", | ||
"src", | ||
"README.md" | ||
], | ||
"engines": { | ||
"node": ">=22" | ||
}, | ||
"version": "0.0.1" | ||
} |
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,34 @@ | ||
import { defineConfig } from '@rslib/core' | ||
|
||
const entry = { | ||
vision: './src/vision.ts', | ||
} | ||
|
||
export default defineConfig({ | ||
lib: [ | ||
{ | ||
source: { | ||
entry, | ||
}, | ||
format: 'esm', | ||
bundle: false, | ||
output: { | ||
distPath: { | ||
root: 'dist', | ||
}, | ||
}, | ||
}, | ||
{ | ||
source: { | ||
entry, | ||
}, | ||
format: 'cjs', | ||
bundle: false, | ||
output: { | ||
distPath: { | ||
root: 'dist', | ||
}, | ||
}, | ||
}, | ||
], | ||
}) |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"extends": "../../tsconfig.json" | ||
"extends": "../../tsconfig.json", | ||
"include": ["./src"] | ||
} |
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
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