Skip to content

Commit

Permalink
initial commit - web skeleton in place
Browse files Browse the repository at this point in the history
  • Loading branch information
ataibarkai committed Jun 19, 2023
0 parents commit 824172f
Show file tree
Hide file tree
Showing 85 changed files with 8,206 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.2.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"next-langchain",
"next-openai"
]
}
10 changes: 10 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-copilotkit`
extends: ['recursivelyai-copilotkit'],
settings: {
next: {
rootDir: ['apps/*/']
}
}
}
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
name: 'Test'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run tests
run: pnpm test
80 changes: 80 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Quality

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
prettier:
name: 'Prettier'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run Prettier check
run: pnpm run prettier-check

eslint:
name: 'ESLint'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run ESLint check
run: pnpm run lint

types:
name: 'TypeScript'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 7

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run TypeScript type check
run: pnpm run type-check
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup pnpm 8
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x

- name: Install Dependencies
run: pnpm i

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}

- name: Get package version
id: package-version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"

- name: Create Git tag
run: git tag v${{ steps.package-version.outputs.version }}

- name: Push Git tag
run: git push origin v${{ steps.package-version.outputs.version }}

- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.package-version.outputs.version }}
release_name: Release v${{ steps.package-version.outputs.version }}
draft: false
prerelease: false
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
.turbo
*.log
.next
dist
dist-ssr
*.local
.env
.cache
server/dist
public/dist
.turbo
18 changes: 18 additions & 0 deletions .kodiak.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# .kodiak.toml
version = 1

[merge]
automerge_label = "automerge"
require_automerge_label = false
method = "squash"
delete_branch_on_merge = true
optimistic_updates = true
prioritize_ready_to_merge = true
notify_on_conflict = false

[merge.message]
title = "pull_request_title"
body = "pull_request_body"
include_pr_number = true
body_type = "markdown"
strip_html_comments = true
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = true
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.next
.nuxt
node_modules
dist
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2023 Recursively.ai

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
1 change: 1 addition & 0 deletions README.md
14 changes: 14 additions & 0 deletions docs/pages/docs/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"index": {
"title": "Introduction",
"theme": {
"breadcrumb": false,
"toc": false
}
},
"getting-started": "Getting Started",
"concepts": "Concepts",
"guides": "Guides",
"api-reference": "API Reference",
"acknowledgements": "Acknowledgements"
}
13 changes: 13 additions & 0 deletions docs/pages/docs/acknowledgements.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Acknowlegements
---

# Acknowlegements

CopilotKit is a community effort. We would like to thank the following people for their contributions to the project:

This library is created by [recursively.ai](https://recursively.ai) team members, with contributions:

- Atai ([@ataiiam](https://twitter.com/ataiiam)) - [Recursively.ai](https://recursively.ai)

[Contributors](https://github.com/RecursivelyAI/CopilotKit/graphs/contributors)
9 changes: 9 additions & 0 deletions docs/pages/docs/api-reference.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: API Reference
---

# API Reference

## React Hooks

- [`useCopilotEntrypoint`](./api-reference/use-copilot-entrypoint)
3 changes: 3 additions & 0 deletions docs/pages/docs/api-reference/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"use-copilot-entrypoint": "useCopilotEntrypoint"
}
14 changes: 14 additions & 0 deletions docs/pages/docs/api-reference/use-copilot-entrypoint.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: useCopilotEntrypoint
layout:
toc: false
---

import { OptionTable } from '@/components/table'
import { FrameworkTabs, Tab } from '@/components/framework-tabs'

# useCopilotEntrypoint

## `useCopilotEntrypoint(options: UseCopilotEntrypointOptions): CopilotEntrypointHelpers` [#usecopilotentrypoint]

`useCopilotEntrypoint` is a utility to allow you to easily bind your page elements to a conversational agent.
7 changes: 7 additions & 0 deletions docs/pages/docs/concepts.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Concepts
---

# Concepts

- [Copilot Tool Use](./concepts/copilot-tool-use)
3 changes: 3 additions & 0 deletions docs/pages/docs/concepts/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"copilot-tool-use": "Copilot Tool Use"
}
10 changes: 10 additions & 0 deletions docs/pages/docs/concepts/copilot-tool-use.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Copilot Tool Use
---

import { InlinePrompt } from '@/components/home/inline-prompt'
import { Steps } from 'nextra-theme-docs'

# Copilot Tool Use

## Why give copilot tools?
10 changes: 10 additions & 0 deletions docs/pages/docs/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Getting Started
---

import { Callout, Tabs, Tab, Steps } from 'nextra-theme-docs'
import { InlinePrompt } from '@/components/home/inline-prompt'

# Quickstart

CopilotKit is a collection of tools to help you build Copilot User Interfaces.
6 changes: 6 additions & 0 deletions docs/pages/docs/guides.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Guides

CopilotKit is compatible with many popular AI and model providers. This section contains guides for using CopilotKit
with models and services from these providers.

- [LangChain](./guides/langchain)
3 changes: 3 additions & 0 deletions docs/pages/docs/guides/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"langchain": "LangChain"
}
7 changes: 7 additions & 0 deletions docs/pages/docs/guides/langchain.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: LangChain
---

# LangChain

Todo
Loading

0 comments on commit 824172f

Please sign in to comment.