Skip to content

Commit da82a63

Browse files
committed
📦 NEW:
0 parents  commit da82a63

72 files changed

Lines changed: 9843 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["@baseai/docs"]
11+
}

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@baseai/eslint-config/library.js'],
4+
settings: {
5+
next: {
6+
rootDir: ['apps/*/'],
7+
},
8+
},
9+
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Bug report
2+
description: Report a bug for BaseAI.
3+
labels: []
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
This template is to report bugs for the BaseAI. If you need help with your own project, feel free to [start a new thread in our discussions](https://github.com/LangbaseInc/baseai/discussions).
9+
- type: textarea
10+
attributes:
11+
label: Description
12+
description: A detailed bug description for BaseAI and steps to reproduce it. Include the API, framework, and AI provider you're using.
13+
placeholder: |
14+
Steps to reproduce...
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Code example
20+
description: Provide an example code snippet that may have a problem
21+
placeholder: |
22+
...
23+
- type: textarea
24+
attributes:
25+
label: Additional context
26+
description: |
27+
Any additional information that might help us investigate.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Feature Request
2+
description: Propose a new feature for BaseAI.
3+
labels: []
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Use this template to propose new features for BaseAI. If you need help with your project, [start a new thread in our discussions](https://github.com/LangbaseInc/baseai/discussions).
9+
- type: textarea
10+
attributes:
11+
label: Feature Description
12+
description: Describe the feature you are proposing. Include the API, framework, and AI provider.
13+
placeholder: Feature description...
14+
validations:
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Use Case
19+
description: Explain how this feature would be beneficial.
20+
placeholder: Use case...
21+
- type: textarea
22+
attributes:
23+
label: Additional Context
24+
description: Any additional information that might help us understand your request.
25+
placeholder: Additional context...

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a Question
4+
url: https://github.com/LangbaseInc/baseai/discussions
5+
about: Please ask your questions in our discussions forum.

.github/SECURITY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Reporting Security Issues
2+
3+
If you find a security vulnerability, please email us at `security@langbase.com`.
4+
5+
We will promptly investigate and fix legitimate reports.

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'daily'

.github/playwright.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [ main, master ]
5+
pull_request:
6+
branches: [ main, master ]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: lts/*
16+
- name: Install dependencies
17+
run: npm install -g pnpm && pnpm install
18+
- name: Install Playwright Browsers
19+
run: pnpm exec playwright install --with-deps
20+
- name: Run Playwright tests
21+
run: pnpm exec playwright test
22+
- uses: actions/upload-artifact@v4
23+
if: always()
24+
with:
25+
name: playwright-report
26+
path: playwright-report/
27+
retention-days: 30
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* `changeset version` updates the version and adds a changelog file in
3+
* the example apps, but we don't want to do that. So this script reverts
4+
* any "version" field changes and deletes the `CHANGELOG.md` file.
5+
*
6+
* Source: https://github.com/TooTallNate/nx.js/blob/main/.github/scripts/cleanup-examples.mjs
7+
*/
8+
9+
import {
10+
readFileSync,
11+
readdirSync,
12+
statSync,
13+
unlinkSync,
14+
writeFileSync,
15+
} from 'node:fs';
16+
import {join} from 'path';
17+
import {fileURLToPath} from 'url';
18+
19+
const examplesUrl = new URL('../../examples', import.meta.url);
20+
const examplesDir = fileURLToPath(examplesUrl);
21+
22+
console.log('Cleaning up examples...', examplesDir);
23+
24+
for (const app of readdirSync(examplesDir)) {
25+
const appPath = join(examplesDir, app);
26+
if (statSync(appPath).isDirectory()) {
27+
const packageJsonPath = join(appPath, 'package.json');
28+
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
29+
packageJson.version = '0.0.0';
30+
writeFileSync(
31+
packageJsonPath,
32+
JSON.stringify(packageJson, null, 2) + '\n',
33+
);
34+
35+
try {
36+
const changelogUrl = new URL(
37+
`examples/${app}/CHANGELOG.md`,
38+
examplesUrl,
39+
);
40+
console.log('Deleting', changelogUrl);
41+
unlinkSync(changelogUrl);
42+
} catch (err) {
43+
if (err.code !== 'ENOENT') throw err;
44+
}
45+
}
46+
}

0 commit comments

Comments
 (0)