Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/frontend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
workflow_dispatch:

jobs:
setup:
name: Setup jobs
setup:
name: Build All
runs-on: ubuntu-latest
env:
NODE_VERSION: '18'
Expand All @@ -38,7 +38,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache
uses: actions/cache@v4
with:
Expand All @@ -58,15 +58,15 @@ jobs:
git fetch origin $TARGET_BRANCH
sh .github/scripts/branch-diff.sh origin/$TARGET_BRANCH > changed.json
echo "file=changed.json" >> "$GITHUB_OUTPUT"

- name: Install Dependencies
run: |
node common/scripts/install-run-rush.js install

- name: Build All
run: |
node common/scripts/install-run-rush.js rebuild --verbose --timeline

- name: Lint & Style
run: |
node common/scripts/install-run-rush.js increment --action lint -p ${{ steps.branch-diff.outputs.file }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/frontend-tsc-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
workflow_dispatch:

jobs:
setup:
name: Setup jobs
setup:
name: TS Check
runs-on: ubuntu-latest
env:
NODE_VERSION: '18'
Expand All @@ -37,7 +37,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache
uses: actions/cache@v4
with:
Expand All @@ -57,15 +57,15 @@ jobs:
git fetch origin $TARGET_BRANCH
sh .github/scripts/branch-diff.sh origin/$TARGET_BRANCH > changed.json
echo "file=changed.json" >> "$GITHUB_OUTPUT"

- name: Install Dependencies
run: |
node common/scripts/install-run-rush.js increment --action install -p ${{ steps.branch-diff.outputs.file }}

- name: Prepare Basic Packages
run: |
node common/scripts/install-run-rush.js pre-build -v

- name: TS Check
run: |
node common/scripts/install-run-rush.js increment --action ts-check -p ${{ steps.branch-diff.outputs.file }}
35 changes: 35 additions & 0 deletions .github/workflows/issue-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Issue Notification

on:
issues:
types: ['opened', 'reopened', 'closed']

jobs:
sync:
name: Sync Issues
runs-on: ubuntu-latest
env:
NODE_VERSION: '18'
LARK_APP_ID: ${{ secrets.COZELOOP_LARK_APP_ID }}
LARK_APP_SECRET: ${{ secrets.COZELOOP_LARK_APP_SECRET }}
ISSUE_ACTION: ${{ github.event.action }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_URL: ${{ github.event.issue.html_url }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
REPO_NAME: ${{ github.repository }}

steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install ci-tools
run: |
npm install -g @cozeloop/[email protected]

- name: Notify via lark
run: |
cozeloop-ci lark sync-issue \
--chat-id oc_d02b85f9799a0c35cf164d3a939ef30e
2 changes: 2 additions & 0 deletions .github/workflows/semantic-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
style
test
chore
# all
# idl: idl
# infra:
# - go version update, lint, database, etc
Expand All @@ -41,6 +42,7 @@ jobs:
# workflow: gh workflow
# prompt, evaluation, trace, model, dataset, foundation
scopes: |
all
idl
frontend
backend
Expand Down
23 changes: 21 additions & 2 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,27 @@ Coze Loop 通过提供全生命周期的管理能力,帮助开发者更高效
| 模型 | 支持接入 OpenAI、火山方舟等模型 |

## 快速开始

参考[快速开始](https://github.com/coze-dev/CozeLoop/wiki/2.-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B),了解如何安装部署 Coze Loop 最新版本。
> 参考[快速开始](https://github.com/coze-dev/CozeLoop/wiki/2.-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B),详细了解如何安装部署 Coze Loop 最新版本。
环境要求:
* <span style="background-color: rgb(255, 255, 255)"><span style="color: #1F2328">Go > 1.23.4; 配置 GOPATH</span></span>
* 提前安装 Docker、Docker Compose,并启动 Docker 服务
操作步骤:
1. 获取源码。执行以下命令,获取 Coze Loop 最新版本的源码。
```Bash
# 克隆代码
git clone https://github.com/coze-dev/Coze Loop.git
# 进入Coze Loop目录下
cd Coze Loop
```
2. 配置模型。进入目录 `conf/default/app/runtime/`,编辑文件 `model_config.yaml`,修改 api_key 和 model 字段。以火山方舟为例:
* api_key:火山方舟 API Key,获取方式可参考[获取 API Key](Keyhttps://www.volcengine.com/docs/82379/1541594)。
* model:火山方舟模型接入点的 Endpoint ID,获取方式可参考[获取 Endpoint](https://www.volcengine.com/docs/82379/1099522)。
3. 启动服务。执行以下命令,使用 Docker Compose 快速部署 Coze Loop 开源版。
```Bash
# 启动服务,默认为开发模式
docker compose up --build
```
4. 通过浏览器访问 `http://localhost:8082`,访问 Coze Loop 开源版。

## 使用 Coze Loop 开源版

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface VerifyTokenResponse {
valid?: boolean,
user_id?: string,
}
/** OpenAPI PAT管理,开源版本暂不支持OAuth */
/** OpenAPI PAT管理 */
export const CreatePersonalAccessToken = /*#__PURE__*/createAPI<CreatePersonalAccessTokenRequest, CreatePersonalAccessTokenResponse>({
"url": "/api/auth/v1/personal_access_tokens",
"method": "POST",
Expand Down Expand Up @@ -121,4 +121,4 @@ export const ListPersonalAccessToken = /*#__PURE__*/createAPI<ListPersonalAccess
"resType": "ListPersonalAccessTokenResponse",
"schemaRoot": "api://schemas/foundation_coze.loop.foundation.authn",
"service": "foundationAuthn"
});
});
2 changes: 1 addition & 1 deletion frontend/packages/cozeloop/guard/src/context/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const defaultStrategyImpl: GuardStrategy = {
hidden: false,
guard: false,
preprocess: (callback?: () => void) => {
// 开源版直接调用回调,不做拦截
// 直接调用回调,不做拦截
callback?.();
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct VerifyTokenResponse {
}

service AuthNService {
// OpenAPI PAT管理,开源版本暂不支持OAuth
// OpenAPI PAT管理
CreatePersonalAccessTokenResponse CreatePersonalAccessToken(1: CreatePersonalAccessTokenRequest req) (api.post='/api/auth/v1/personal_access_tokens')
DeletePersonalAccessTokenResponse DeletePersonalAccessToken(1: DeletePersonalAccessTokenRequest req) (api.delete='/api/auth/v1/personal_access_tokens/:id')
UpdatePersonalAccessTokenResponse UpdatePersonalAccessToken(1: UpdatePersonalAccessTokenRequest req) (api.put='/api/auth/v1/personal_access_tokens/:id')
Expand All @@ -95,4 +95,4 @@ service AuthNService {

// 验证token是否有效
VerifyTokenResponse VerifyToken(1: VerifyTokenRequest req)
}
}
Loading