Skip to content

Commit

Permalink
Add fixie serve to the Node.js CLI. (#271)
Browse files Browse the repository at this point in the history
This seems to be working now.

---------

Co-authored-by: Nick Heiner <NickHeiner@users.noreply.github.com>
  • Loading branch information
Matt Welsh and NickHeiner committed Sep 11, 2023
1 parent 4e332e3 commit 9b215e0
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 46 deletions.
1 change: 1 addition & 0 deletions packages/fixie-hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"private": true,
"type": "module",
"scripts": {
"fixie-serve": "yarn build && npx --package=@fixieai/sdk fixie-serve-bin --packagePath ./dist/index.js",
"dev": "yarn build && npx --package=@fixieai/sdk fixie-serve-bin --packagePath ./dist/index.js --port 8080",
"typecheck": "tsc -p tsconfig.json",
"build": "yarn run typecheck",
Expand Down
2 changes: 2 additions & 0 deletions packages/fixie-hello-world/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { ChatCompletion, SystemMessage, ConversationHistory } from 'ai-jsx/core/completion';

console.log('Fixie Hello World agent starting.');

export default function HelloWorld() {
return (
<ChatCompletion temperature={1}>
Expand Down
3 changes: 2 additions & 1 deletion packages/fixie-hello-world/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"module": "esnext",
"resolveJsonModule": true,
"outDir": "dist",
"declaration": true
"declaration": true,
"lib": ["dom", "dom.iterable", "esnext"]
}
}
4 changes: 3 additions & 1 deletion packages/fixie/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fixieai/fixie",
"version": "1.0.14",
"version": "1.0.15",
"license": "MIT",
"repository": "fixie-ai/ai-jsx",
"bugs": "https://github.com/fixie-ai/ai-jsx/issues",
Expand All @@ -24,6 +24,7 @@
"@apollo/client": "^3.8.1",
"apollo-upload-client": "^17.0.0",
"commander": "^11.0.0",
"execa": "^8.0.1",
"extract-files": "^13.0.0",
"graphql": "^16.8.0",
"js-yaml": "^4.1.0",
Expand All @@ -32,6 +33,7 @@
"terminal-kit": "^3.0.0"
},
"devDependencies": {
"@fixieai/sdk": "*",
"@tsconfig/node18": "^2.0.1",
"@types/apollo-upload-client": "^17.0.2",
"@types/extract-files": "^8.1.1",
Expand Down
Loading

3 comments on commit 9b215e0

@vercel
Copy link

@vercel vercel bot commented on 9b215e0 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-docs – ./packages/docs

ai-jsx-docs.vercel.app
ai-jsx-docs-fixie-ai.vercel.app
ai-jsx-docs-git-main-fixie-ai.vercel.app
docs.ai-jsx.com

@vercel
Copy link

@vercel vercel bot commented on 9b215e0 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-tutorial-nextjs – ./packages/tutorial-nextjs

ai-jsx-tutorial-nextjs-git-main-fixie-ai.vercel.app
ai-jsx-tutorial-nextjs-fixie-ai.vercel.app
ai-jsx-tutorial-nextjs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 9b215e0 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ai-jsx-nextjs-demo – ./packages/nextjs-demo

ai-jsx-nextjs-demo-git-main-fixie-ai.vercel.app
ai-jsx-nextjs-demo.vercel.app
ai-jsx-nextjs-demo-fixie-ai.vercel.app

Please sign in to comment.