Skip to content

Commit 0392587

Browse files
authored
[feat] [sdk] zod to arktype (#23)
* feat(ci-tools): replace zod with arktype * feat(cozeloop-langchain): replace zod with arktype * feat: rush update * feat: update readme
1 parent 01883f2 commit 0392587

File tree

12 files changed

+380
-140
lines changed

12 files changed

+380
-140
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 60 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"dictionaries": [],
66
"caseSensitive": false,
77
"words": [
8+
"arktype",
89
"autoinstallers",
910
"Bytedance",
1011
"cozeloop",

packages/ci-tools/README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,21 @@ npm install -g @cozeloop/ci-tools
1616
### 2. Usage
1717

1818
> Command usage:
19-
> * global command: run `cozeloop-ci -h` after installing @cozeloop/ci-tools
20-
> * using npx: `npx -p @cozeloop/ci-tools cozeloop-ci -h`
19+
>
20+
> - global command: run `cozeloop-ci -h` after installing @cozeloop/ci-tools
21+
> - using npx: `npx -p @cozeloop/ci-tools cozeloop-ci -h`
2122
22-
* Overview: `cozeloop-ci -h`
23-
* lark related: `cozeloop-ci lark [send-message|sync-issue] -h`
23+
- Overview: `cozeloop-ci -h`
24+
- lark related: `cozeloop-ci lark [send-message|sync-issue|sync-pr] -h`
2425

2526
## Command: `cozeloop-ci lark`
2627

2728
Using lark app id and secret to authenticate for all sub commands.
2829

29-
|Param|Comment|Example|
30-
|----|----|------|
31-
|LARK_APP_ID|Lark app id, `secrets.LARK_APP_ID`|'cli_xxx'
32-
|LARK_APP_SECRET|Lark app secret, `secrets.LARK_APP_SECRET`|'xxx'
30+
| Param | Comment | Example |
31+
| --------------- | -------------------------------------------- | ---------- |
32+
| LARK_APP_ID | Lark app id, `secrets.LARK_APP_ID` | 'cli_xxx' |
33+
| LARK_APP_SECRET | Lark app secret, `secrets.LARK_APP_SECRET` | 'xxx' |
3334

3435
### 1. `cozeloop-ci lark sync-issue`
3536

@@ -40,11 +41,10 @@ Synchronize GitHub issue via lark, with params:
4041
|REPO_NAME|repo name, `github.repository`|'coze-dev/cozeloop-python'|
4142
|ISSUE_ACTION|issue action, `github.event.action`|'opened'|
4243
|ISSUE_NUMBER|issue number, `github.event.issue.number`|3|
43-
|ISSUE_URL|issue html url, `github.event.issue.html_url`|'https://github.com/coze-dev/cozeloop-python/issues/3'|
44+
|ISSUE_URL|issue html url, `github.event.issue.html_url`|`https://github.com/coze-dev/cozeloop-python/issues/3`|
4445
|ISSUE_TITLE|issue title, `github.event.issue.title`|'如何将coze智能体的数据通过cozeloop上报'|
4546
|ISSUE_BODY|issue body, `github.event.issue.body`|'请官方给出coze智能体上报到cozeloop的样例'|
4647

47-
4848
🌰 Setup github workflow to notify via lark when issue opened, reopened or closed.
4949

5050
```yaml
@@ -91,10 +91,10 @@ Synchronize GitHub PR(Pull Request) via lark, with params:
9191

9292
|Param|Comment|Example|
9393
|----|----|------|
94-
|REPO_NAME|po name, `github.repository`|'coze-dev/cozeloop-python'|
94+
|REPO_NAME|repo name, `github.repository`|'coze-dev/cozeloop-python'|
9595
|PR_ACTION|pr action, `github.event.action`|'opened'|
96-
|PR_NUMBER|pr number, `github.event.issue.number`|3|
97-
|PR_URL|pr html url, `github.event.pull_request.html_url`|'https://github.com/coze-dev/cozeloop-python/pull/1'|
96+
|PR_NUMBER|pr number, `github.event.pull_request.number`|3|
97+
|PR_URL|pr html url, `github.event.pull_request.html_url`|`https://github.com/coze-dev/cozeloop-python/pull/1`|
9898
|PR_TITLE|pr title, `github.event.pull_request.title`|'如何将coze智能体的数据通过cozeloop上报'|
9999
|PR_SENDER|pr sender, `github.event.sender`|'xxx'|
100100
|PR_SOURCE_OWNER|pr source owner, `github.event.pull_request.head.repo.owner.login`|'xxx'|
@@ -103,7 +103,6 @@ Synchronize GitHub PR(Pull Request) via lark, with params:
103103
|PR_TARGET_REF|pr target ref, `github.event.pull_request.base.ref`|'xxx'|
104104
|PR_MERGED|pr merged, `github.event.pull_request.merged`|'xxx'|
105105

106-
107106
🌰 Setup github workflow to notify via lark when PR opened, reopened or closed.
108107

109108
```yaml

packages/ci-tools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
},
3737
"dependencies": {
3838
"@larksuiteoapi/node-sdk": "^1.50.1",
39-
"commander": "^14.0.0",
40-
"zod": "^4.1.3"
39+
"arktype": "^2.1.29",
40+
"commander": "^14.0.0"
4141
},
4242
"devDependencies": {
4343
"@loop-infra/eslint-config": "workspace:*",

0 commit comments

Comments
 (0)