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
33 changes: 0 additions & 33 deletions .github/scripts/branch-diff.sh

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/frontend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ jobs:
${{ runner.os }}-rush-store-main
${{ runner.os }}-rush-store

- name: Branch Diff
id: branch-diff
run: |
TARGET_BRANCH="${GITHUB_BASE_REF:-main}"
git fetch origin $TARGET_BRANCH
sh .github/scripts/branch-diff.sh origin/$TARGET_BRANCH > changed.json
echo "file=changed.json" >> "$GITHUB_OUTPUT"
- name: Changed Files
uses: tj-actions/[email protected]
with:
files: |
frontend/**
json: true
write_output_files: true

- name: Install Dependencies
run: |
Expand All @@ -69,5 +69,5 @@ jobs:

- name: Lint & Style
run: |
node common/scripts/install-run-rush.js increment --action lint -p ${{ steps.branch-diff.outputs.file }}
node common/scripts/install-run-rush.js increment --action style -p ${{ steps.branch-diff.outputs.file }}
node common/scripts/install-run-rush.js increment --action lint -p .github/outputs/all_changed_files.json
node common/scripts/install-run-rush.js increment --action style -p .github/outputs/all_changed_files.json
18 changes: 9 additions & 9 deletions .github/workflows/frontend-tsc-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,22 @@ jobs:
${{ runner.os }}-rush-store-main
${{ runner.os }}-rush-store

- name: Branch Diff
id: branch-diff
run: |
TARGET_BRANCH="${GITHUB_BASE_REF:-main}"
git fetch origin $TARGET_BRANCH
sh .github/scripts/branch-diff.sh origin/$TARGET_BRANCH > changed.json
echo "file=changed.json" >> "$GITHUB_OUTPUT"
- name: Changed Files
uses: tj-actions/[email protected]
with:
files: |
frontend/**
json: true
write_output_files: true

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

- 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 }}
node common/scripts/install-run-rush.js increment --action ts-check -p .github/outputs/all_changed_files.json
2 changes: 1 addition & 1 deletion .github/workflows/issue-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

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

- name: Notify via lark
run: |
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/pr-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: PR Notification

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

jobs:
sync:
name: Send Lark Message
runs-on: ubuntu-latest
env:
NODE_VERSION: '18'
LARK_APP_ID: ${{ secrets.COZELOOP_LARK_APP_ID }}
LARK_APP_SECRET: ${{ secrets.COZELOOP_LARK_APP_SECRET }}
REPO_NAME: ${{ github.repository }}
PR_ACTION: ${{ github.event.action }}
PR_URL: ${{ github.event.pull_request.html_url }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_TITLE: ${{ github.event.pull_request.title }}
PR_SENDER: ${{ github.event.sender.login }}
PR_SOURCE_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
PR_SOURCE_REF: ${{ github.event.pull_request.head.ref }}
PR_TARGET_OWNER: ${{ github.event.pull_request.base.repo.owner.login }}
PR_TARGET_REF: ${{ github.event.pull_request.base.ref }}
PR_MERGED: ${{ github.event.pull_request.merged }}

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-pr \
--chat-id oc_d02b85f9799a0c35cf164d3a939ef30e
13 changes: 5 additions & 8 deletions README.cn.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Image](https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/0fe1a642aae842c298076335b6a393bf~tplv-goo7wpa0wc-image.image)
![Image](https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/11faa43b83754c089d2ec953306d3e63~tplv-goo7wpa0wc-image.image)

<div align="center">
<p>
Expand Down Expand Up @@ -33,7 +33,7 @@ Coze Loop 通过提供全生命周期的管理能力,帮助开发者更高效

| **功能** | **功能点** |
| --- | --- |
| Prompt 调试 | * Playground 调试、对比 <br> * Prompt 版本管理 |
| Prompt 调试 | * Playground 调试、对比 <br> * Prompt 版本管理 |
| 评测 | * 管理评测集 <br> * 管理评估器 <br> * 管理实验 |
| 观测 | * SDK 上报 Trace <br> * Trace 数据观测 |
| 模型 | 支持接入 OpenAI、火山方舟等模型 |
Expand Down Expand Up @@ -99,16 +99,13 @@ Coze Loop 通过提供全生命周期的管理能力,帮助开发者更高效
### 技术交流与讨论
加入我们的技术交流群,与其他开发者分享经验、获取项目最新动态:

**飞书群聊**
飞书移动端扫描以下二维码,加入Coze Loop 技术交流群。
* 飞书群聊:飞书移动端扫描以下二维码,加入Coze Loop 技术交流群。

![Image](https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/818dd6ec45d24041873ca101681186c1~tplv-goo7wpa0wc-image.image)

**Discord 服务器**
点击加入:[Coze Community](https://discord.gg/a6YtkysB)
* Discord 服务器:[Coze Community](https://discord.gg/a6YtkysB)

**Telegram 群组**
点击加入:Telegram Group [Coze](https://t.me/+pP9CkPnomDA0Mjgx)
* Telegram 群组:[Coze](https://t.me/+pP9CkPnomDA0Mjgx)

## 致谢
感谢所有为 Coze Loop 项目做出贡献的开发者和社区成员。特别感谢:
Expand Down
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Image](https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/0fe1a642aae842c298076335b6a393bf~tplv-goo7wpa0wc-image.image)
![Image](https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/11faa43b83754c089d2ec953306d3e63~tplv-goo7wpa0wc-image.image)


<div align="center">
Expand Down Expand Up @@ -103,16 +103,13 @@ To efficiently track and resolve issues while ensuring transparency and collabor
### Technical Discussion & Communication
Join our technical discussion groups to share experiences with other developers and stay updated with the latest project developments:

**Feishu Group Chat**
Scan the QR code below on the Lark mobile app to join the Coze Loop technical discussion group
* Lark Group Chat: Scan the QR code below on the Lark mobile app to join the Coze Loop technical discussion group.

![Image](https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/818dd6ec45d24041873ca101681186c1~tplv-goo7wpa0wc-image.image)

**Discord Server**
Click to join: [Coze Community](https://discord.gg/a6YtkysB)
* Discord Server: [Coze Community](https://discord.gg/a6YtkysB)

**Telegram Group**
Click to join: Telegram Group [Coze](https://t.me/+pP9CkPnomDA0Mjgx)
* Telegram Group: [Coze](https://t.me/+pP9CkPnomDA0Mjgx)

## Acknowledgments
Thanks to all developers and community members who contributed to the Coze Loop project Special thanks:
Expand Down
12 changes: 4 additions & 8 deletions frontend/apps/cozeloop/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@ import { pullFeatureFlags, type FEATURE_FLAGS } from '@coze-arch/bot-flags';

import { App } from './app';

const initFlags = () => {
pullFeatureFlags({
timeout: 1000 * 4,
fetchFeatureGating: () => Promise.resolve({} as unknown as FEATURE_FLAGS),
});
};

export async function render() {
await Promise.all([
initIntl({
fallbackLng: ['zh-CN', 'en-US'],
}),
initFlags(),
pullFeatureFlags({
timeout: 1000 * 4,
fetchFeatureGating: () => Promise.resolve({} as unknown as FEATURE_FLAGS),
}),
dynamicImportMdBoxStyle(),
]);

Expand Down
Loading