Skip to content

Commit

Permalink
[feat]: bot deploy (#420)
Browse files Browse the repository at this point in the history
1. Support creating issues for publishing robots to the market, support
creating issues for deploying robots to websites, and support binding
robots to repositories.

![image](https://github.com/user-attachments/assets/b41ca3d1-c435-41c7-b5da-66d4a91ebf94)

2. 

![image](https://github.com/user-attachments/assets/6a69ebdd-65a7-4466-a1c9-1752f26a7dd1)
  • Loading branch information
ch-liuzhide authored Oct 11, 2024
2 parents ea895fd + a0668a6 commit 90a2bc9
Show file tree
Hide file tree
Showing 44 changed files with 18,010 additions and 22,005 deletions.
36,688 changes: 15,571 additions & 21,117 deletions assistant/yarn.lock

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions client/.kiwi/en/DeployBotModal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
export default {
DeployContent: {
buShuDaoQiTa: 'Deploy to other platforms',
shuaXin: 'Refresh',
qianWangAnZhuang: 'Go to installation',
weiNengHuoQuNin:
'We were unable to fetch the repositories where you have already installed the petercat assistant on the GITHUB platform, please',
zheJiangTiHuanCang:
'This will replace the existing robot in the repository',
dianJiKaiShiPei: 'Click to start configuration',
xuanZeYaoGuanLian: 'Select the GitHub repository to associate',
qingShuRuYuMing:
'Please enter the domain name, usually starting with https://',
muBiaoWangZhanYu: 'Target website domain',
shenHeZhong: 'Under review...',
buShuDaoWoDe: 'Deploy to my website',
zheJiangTiJiaoYi:
'This will submit an issue to the Peter Cat repository, which can be completed after our manual review.',
ninDeJiQiRen:
'Your robot has been made public in the marketplace, please check it out in the market.',
gongKaiDaoPE: 'Publish to the Peter Cat Marketplace',
},
DeployItem: {
shouQi: 'Collapse',
},
index: {
tiaoGuo: 'Skip',
baoCunChengGong: 'Saved successfully!',
buShuChengGong: 'Deployment successful',
},
};
1 change: 1 addition & 0 deletions client/.kiwi/en/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export default {
baoCunChengGong: 'Save Successful',
shengChengShiBaiC: 'Generation Failed',
shengChengChengGong: 'Generation Successful',
baoCunYuBuShu: 'Save and Deploy',
},
};
17 changes: 11 additions & 6 deletions client/.kiwi/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ import components from './components';
import edit from './edit';
import utils from './utils';
import app from './app';
import DeployBotModal from './DeployBotModal';

export default Object.assign({}, {
components,
app,
utils,
edit,
});
export default Object.assign(
{},
{
components,
app,
utils,
edit,
DeployBotModal,
},
);
30 changes: 30 additions & 0 deletions client/.kiwi/ja/DeployBotModal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
export default {
DeployContent: {
buShuDaoQiTa: '他のプラットフォームにデプロイ',
shuaXin: 'リフレッシュ',
qianWangAnZhuang: 'インストールに行く',
weiNengHuoQuNin:
'あなたがGITHUBプラットフォームですでに petercat assistant 助手をインストールしたリポジトリを取得できませんでした。それについて、',
zheJiangTiHuanCang: 'これは元のロボットを置き換えるでしょう。',
dianJiKaiShiPei: '設定を開始するためにはクリックしてください。',
xuanZeYaoGuanLian: '関連付けるGitHubリポジトリを選択してください。',
qingShuRuYuMing:
'ドメイン名を入力してください。通常、https://で始まります。',
muBiaoWangZhanYu: '目標ウェブサイトのドメイン',
shenHeZhong: '審査中...',
buShuDaoWoDe: '私のウェブサイトにデプロイ',
zheJiangTiJiaoYi:
'これはPeter Cat リポジトリに問題を提出し、私達が人間による審査を通った後で公開が完了します。',
ninDeJiQiRen:
'あなたのロボットはすでに市場に公開されています。市場をご覧ください。',
gongKaiDaoPE: 'Peter Cat市場に公開',
},
DeployItem: {
shouQi: '折りたたむ',
},
index: {
tiaoGuo: 'スキップ',
baoCunChengGong: '保存が成功しました!',
buShuChengGong: 'デプロイが成功しました',
},
};
1 change: 1 addition & 0 deletions client/.kiwi/ja/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export default {
baoCunChengGong: '保存に成功しました',
shengChengShiBaiC: '生成に失敗しました',
shengChengChengGong: '生成に成功しました',
baoCunYuBuShu: '保存と展開',
},
};
17 changes: 11 additions & 6 deletions client/.kiwi/ja/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ import components from './components';
import edit from './edit';
import utils from './utils';
import app from './app';
import DeployBotModal from './DeployBotModal';

export default Object.assign({}, {
components,
app,
utils,
edit,
});
export default Object.assign(
{},
{
components,
app,
utils,
edit,
DeployBotModal,
},
);
28 changes: 28 additions & 0 deletions client/.kiwi/ko/DeployBotModal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export default {
DeployContent: {
buShuDaoQiTa: '다른 플랫폼으로 배포',
shuaXin: '새로 고침',
qianWangAnZhuang: '설치로 이동',
weiNengHuoQuNin:
'GITHUB 플랫폼에서 이미 설치된 petercat assistant 도우미를 찾을 수 없습니다. ',
zheJiangTiHuanCang: '이것은 기존 봇을 대체할 것입니다.',
dianJiKaiShiPei: '설정을 시작하려면 클릭하세요.',
xuanZeYaoGuanLian: '연결할 GitHub 저장소를 선택하세요.',
qingShuRuYuMing: '도메인을 입력하세요, 일반적으로 https:// 로 시작합니다.',
muBiaoWangZhanYu: '목표 웹사이트 도메인',
shenHeZhong: '검토 중...',
buShuDaoWoDe: '내 웹사이트에 배포',
zheJiangTiJiaoYi:
'이것은 Peter Cat 저장소에 issue를 제출하게 되며, 우리 인공 검토를 통과하면 공개될 수 있습니다.',
ninDeJiQiRen: '당신의 봇이 시장에 공개되었습니다. 시장을 확인해 보세요.',
gongKaiDaoPE: 'Peter Cat 시장에 공개',
},
DeployItem: {
shouQi: '접기',
},
index: {
tiaoGuo: '건너뛰기',
baoCunChengGong: '성공적으로 저장!',
buShuChengGong: '배포 성공',
},
};
1 change: 1 addition & 0 deletions client/.kiwi/ko/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export default {
baoCunChengGong: '저장 성공',
shengChengShiBaiC: '생성 실패',
shengChengChengGong: '생성 성공',
baoCunYuBuShu: '저장 및 배포',
},
};
17 changes: 11 additions & 6 deletions client/.kiwi/ko/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ import components from './components';
import edit from './edit';
import utils from './utils';
import app from './app';
import DeployBotModal from './DeployBotModal';

export default Object.assign({}, {
components,
app,
utils,
edit,
});
export default Object.assign(
{},
{
components,
app,
utils,
edit,
DeployBotModal,
},
);
28 changes: 28 additions & 0 deletions client/.kiwi/zh-CN/DeployBotModal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export default {
DeployContent: {
buShuDaoQiTa: '部署到其它平台',
shuaXin: '刷新',
qianWangAnZhuang: '前往安装',
weiNengHuoQuNin:
'未能获取您在 GITHUB 平台上已经安装 petercat assistant\n 助手的仓库,请',
zheJiangTiHuanCang: '这将替换仓库原有机器人',
dianJiKaiShiPei: '点击开始配置',
xuanZeYaoGuanLian: '选择要关联的 GitHub 仓库',
qingShuRuYuMing: '请输入域名,一般以 https:// 开始',
muBiaoWangZhanYu: '目标网站域名',
shenHeZhong: '审核中...',
buShuDaoWoDe: '部署到我的网站',
zheJiangTiJiaoYi:
'这将提交一个 issue 到 Peter Cat\n 仓库,待我们人工审核通过后即可完成公开。',
ninDeJiQiRen: '您的机器人已经公开到了市场,请前往市场查看。',
gongKaiDaoPE: '公开到 Peter Cat 市场',
},
DeployItem: {
shouQi: '收起',
},
index: {
tiaoGuo: '跳过',
baoCunChengGong: '保存成功!',
buShuChengGong: '部署成功',
},
};
1 change: 1 addition & 0 deletions client/.kiwi/zh-CN/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ export default {
baoCunChengGong: '保存成功',
shengChengShiBaiC: '生成失败',
shengChengChengGong: '生成成功',
baoCunYuBuShu: '保存与部署',
},
};
2 changes: 2 additions & 0 deletions client/.kiwi/zh-CN/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import components from './components';
import DeployBotModal from './DeployBotModal';
import edit from './edit';
import utils from './utils';
import app from './app';
Expand All @@ -8,4 +9,5 @@ export default Object.assign({}, {
app,
utils,
edit,
DeployBotModal,
});
28 changes: 28 additions & 0 deletions client/.kiwi/zh-TW/DeployBotModal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export default {
DeployContent: {
buShuDaoQiTa: '部署到其他平台',
shuaXin: '刷新',
qianWangAnZhuang: '前往安裝',
weiNengHuoQuNin:
'未能獲取您在 GITHUB 平台上已經安裝 petercat assistant 助手的倉庫,請',
zheJiangTiHuanCang: '這將替換倉庫原有機器人',
dianJiKaiShiPei: '點擊開始配置',
xuanZeYaoGuanLian: '選擇要關聯的 GitHub 倉庫',
qingShuRuYuMing: '請輸入網域名稱,一般以 https:// 開始',
muBiaoWangZhanYu: '目標網站域名',
shenHeZhong: '審核中...',
buShuDaoWoDe: '部署到我的網站',
zheJiangTiJiaoYi:
'這將提交一個 issue 到 Peter Cat 倉庫,待我們人工審核通過後即可完成公開。',
ninDeJiQiRen: '您的機器人已經公開到了市場,請前往市場查看。',
gongKaiDaoPE: '公開到 Peter Cat 市場',
},
DeployItem: {
shouQi: '收起',
},
index: {
tiaoGuo: '跳過',
baoCunChengGong: '保存成功!',
buShuChengGong: '部署成功',
},
};
1 change: 1 addition & 0 deletions client/.kiwi/zh-TW/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ export default {
baoCunChengGong: '保存成功',
shengChengShiBaiC: '生成失敗',
shengChengChengGong: '生成成功',
baoCunYuBuShu: '保存與部署',
},
};
17 changes: 11 additions & 6 deletions client/.kiwi/zh-TW/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ import components from './components';
import edit from './edit';
import utils from './utils';
import app from './app';
import DeployBotModal from './DeployBotModal';

export default Object.assign({}, {
components,
app,
utils,
edit,
});
export default Object.assign(
{},
{
components,
app,
utils,
edit,
DeployBotModal,
},
);
1 change: 1 addition & 0 deletions client/app/contexts/BotContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const defaultBotProfile: BotProfile = {
helloMessage: '',
llm: 'openai',
token_id: 'default',
domain_whitelist: [],
};

const BotContext = createContext<
Expand Down
Loading

0 comments on commit 90a2bc9

Please sign in to comment.