Skip to content

Commit ee63b62

Browse files
committed
Setup build and release workflow with rollup config and package updates
1 parent ff390db commit ee63b62

File tree

16 files changed

+641
-19
lines changed

16 files changed

+641
-19
lines changed

.commitlintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
5+
}

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- prod
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
issues: write
14+
pull-requests: write
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '20.x' # Update this line
23+
24+
- name: Cache Node.js modules
25+
uses: actions/cache@v3
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-
31+
32+
- name: Install dependencies
33+
run: npm install --force
34+
35+
- name: Run build
36+
run: npm run build
37+
38+
# - name: Run tests
39+
# run: npm test
40+
41+
- name: Release
42+
run: npx semantic-release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 4,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"jsxSingleQuote": false,
8+
"trailingComma": "es5",
9+
"bracketSpacing": true,
10+
"jsxBracketSameLine": false,
11+
"arrowParens": "always",
12+
"endOfLine": "auto"
13+
}

.releaserc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"branches": [
3+
"prod"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
"@semantic-release/changelog",
9+
[
10+
"@semantic-release/npm",
11+
{
12+
"npmPublish": true
13+
}
14+
],
15+
[
16+
"@semantic-release/github",
17+
{
18+
"successCommentCondition": false,
19+
"failTitle": false
20+
}
21+
],
22+
[
23+
"@semantic-release/git",
24+
{
25+
"assets": [
26+
"package.json",
27+
"CHANGELOG.md"
28+
],
29+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
30+
}
31+
]
32+
]
33+
}

CHANGELOG.md

Whitespace-only changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## About
44

5-
The Agents SDK is a robust JavaScript library designed to streamline the development of AI-powered applications through seamless integration with various Large Language Model (LLM) providers such as OpenAI, Google, and Anthropic. Built with flexibility and extensibility in mind, it implements the Message Control Protocol (MCP) for reliable agent communication and management.
5+
The RiLiGar Agents SDK is a robust JavaScript library designed to streamline the development of AI-powered applications through seamless integration with various Large Language Model (LLM) providers such as OpenAI, Google, and Anthropic, as well as Meta's Llama and ModelContext. Built with flexibility and extensibility in mind, it implements the Message Control Protocol (MCP) for reliable agent communication and management.
66

77
### Key Features
88

bun.lock

Lines changed: 477 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/guardrail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// guardrail-example.js
2-
const { Agent, Runner, functionTool, inputGuardrail, outputGuardrail } = require('../index');
2+
const { Agent, Runner, functionTool, inputGuardrail, outputGuardrail } = require('../src/index');
33

44
// Set your OpenAI API key
55
const OPENAI_API_KEY = process.env.OPENAI_API_KEY;

examples/handoffs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { Agent, Runner } = require('../index');
1+
const { Agent, Runner } = require('../src/index');
22

33
// Set your OpenAI API key
44
const OPENAI_API_KEY = process.env.OPENAI_API_KEY;

examples/hello.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { Agent, Runner } = require('../index');
1+
const { Agent, Runner } = require('../src/index');
22

33
// Set your OpenAI API key
44
const OPENAI_API_KEY = process.env.OPENAI_API_KEY;

0 commit comments

Comments
 (0)