@comate/zulu 1.3.3 → 1.3.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/comate-engine/assets/skills/auto-commit-comate/SKILL.md +42 -62
- package/comate-engine/assets/skills/auto-commit-comate/references/data_structures.md +69 -75
- package/comate-engine/assets/skills/auto-commit-comate/references/interaction_instruction.md +220 -0
- package/comate-engine/assets/skills/auto-commit-comate/scripts/build_git_commit_payload.py +195 -0
- package/comate-engine/assets/skills/auto-commit-comate/scripts/build_icafe_cards_payload.py +80 -0
- package/comate-engine/assets/skills/auto-commit-comate/scripts/cache_manager.py +69 -0
- package/comate-engine/assets/skills/auto-commit-comate/scripts/git_diff_cli.py +5 -0
- package/comate-engine/assets/skills/auto-commit-comate/scripts/match_card_cli.py +5 -1
- package/comate-engine/assets/skills/auto-commit-comate/scripts/payload_validators.py +309 -0
- package/comate-engine/assets/skills/code-security-comate/SKILL.md +2 -1
- package/comate-engine/assets/skills/code-security-comate/references/vul_repair-go_sql_injection.md +627 -5
- package/comate-engine/assets/skills/code-security-comate/references/vul_repair-java_sql_injection.md +545 -21
- package/comate-engine/assets/skills/code-security-comate/references/vul_repair-php_sql_injection.md +596 -13
- package/comate-engine/assets/skills/code-security-comate/references/vul_repair-python_sql_injection.md +480 -82
- package/comate-engine/assets/skills/code-security-comate/scripts/http_client.py +10 -2
- package/comate-engine/assets/skills/code-security-comate/scripts/repair_vulnerability.py +12 -10
- package/comate-engine/assets/skills/code-security-comate/scripts/report_chat.py +1 -1
- package/comate-engine/assets/skills/comate-docs-comate/SKILL.md +70 -105
- package/comate-engine/assets/skills/comate-docs-comate/references/doc-map-extended.md +52 -7
- package/comate-engine/assets/skills/comate-docs-comate/references/models-and-billing.md +45 -26
- package/comate-engine/assets/skills/comate-docs-comate/references/product-overview.md +60 -14
- package/comate-engine/assets/skills/create-image-comate/SKILL.md +7 -7
- package/comate-engine/assets/skills/get-ugate-token-comate/SKILL.md +2 -0
- package/comate-engine/node_modules/@comate/plugin-engine/dist/index.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/index-7HvPXRep.js +1 -0
- package/comate-engine/node_modules/@comate/plugin-host/dist/index.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/main.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/user-DVjAG3wH.js +44 -0
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.js +8 -8
- package/comate-engine/server.js +378 -266
- package/dist/bundle/index.js +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ name: create-image
|
|
|
3
3
|
description: "Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K resolution."
|
|
4
4
|
metadata:
|
|
5
5
|
enableWhen:
|
|
6
|
-
-
|
|
6
|
+
- isInternalComateIDE
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Nano Banana Pro Image Generation & Editing
|
|
@@ -28,7 +28,7 @@ Generate new images or edit existing ones using Google's Nano Banana Pro API (Ge
|
|
|
28
28
|
|
|
29
29
|
- API endpoint: `https://comate.baidu-int.com/api/aidevops/autocomate/rest/autowork/v1/generate-image`
|
|
30
30
|
- Username is passed via Header `login-name`, NOT in the request body
|
|
31
|
-
- Username: ${
|
|
31
|
+
- Username: ${COMATE_USERNAME_ENCRYPTED}
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
@@ -43,7 +43,7 @@ Generate new images or edit existing ones using Google's Nano Banana Pro API (Ge
|
|
|
43
43
|
```bash
|
|
44
44
|
curl -s -X POST https://comate.baidu-int.com/api/aidevops/autocomate/rest/autowork/v1/generate-image \
|
|
45
45
|
-H "Content-Type: application/json" \
|
|
46
|
-
-H "login-name: ${
|
|
46
|
+
-H "login-name: ${COMATE_USERNAME_ENCRYPTED}" \
|
|
47
47
|
-d '{
|
|
48
48
|
"contents": [{"role": "USER", "parts": [{"text": "YOUR_PROMPT_HERE"}]}],
|
|
49
49
|
"resolution": "1K"
|
|
@@ -63,7 +63,7 @@ $tmpFile = "$env:TEMP\request.json"
|
|
|
63
63
|
|
|
64
64
|
$response = curl.exe -s -X POST https://comate.baidu-int.com/api/aidevops/autocomate/rest/autowork/v1/generate-image `
|
|
65
65
|
-H "Content-Type: application/json" `
|
|
66
|
-
-H "login-name: $env:${
|
|
66
|
+
-H "login-name: $env:${COMATE_USERNAME_ENCRYPTED}" `
|
|
67
67
|
-d "@$tmpFile" | ConvertFrom-Json
|
|
68
68
|
|
|
69
69
|
$imgBase64 = $response.candidates[0].content.parts |
|
|
@@ -105,7 +105,7 @@ EOF
|
|
|
105
105
|
# Step 3: send request
|
|
106
106
|
curl -s -X POST https://comate.baidu-int.com/api/aidevops/autocomate/rest/autowork/v1/generate-image \
|
|
107
107
|
-H "Content-Type: application/json" \
|
|
108
|
-
-H "login-name: ${
|
|
108
|
+
-H "login-name: ${COMATE_USERNAME_ENCRYPTED}" \
|
|
109
109
|
-d @/tmp/request.json \
|
|
110
110
|
| jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' \
|
|
111
111
|
| base64 --decode > output-name.png
|
|
@@ -138,7 +138,7 @@ $tmpFile = "$env:TEMP\request.json"
|
|
|
138
138
|
# Step 3: send request
|
|
139
139
|
$response = curl.exe -s -X POST https://comate.baidu-int.com/api/aidevops/autocomate/rest/autowork/v1/generate-image `
|
|
140
140
|
-H "Content-Type: application/json" `
|
|
141
|
-
-H "login-name: $env:${
|
|
141
|
+
-H "login-name: $env:${COMATE_USERNAME_ENCRYPTED}" `
|
|
142
142
|
-d "@$tmpFile" | ConvertFrom-Json
|
|
143
143
|
|
|
144
144
|
$outBase64 = $response.candidates[0].content.parts |
|
|
@@ -241,7 +241,7 @@ $resolution = if ($maxDim -ge 3000) { "4K" }
|
|
|
241
241
|
| base64 decode | `base64 --decode` | `[IO.File]::WriteAllBytes(path, [Convert]::FromBase64String(...))` (PS 5.1 compatible) |
|
|
242
242
|
| image size detect | `sips` (macOS) / `identify` (Linux) | `System.Drawing.Image` (built-in) |
|
|
243
243
|
| line continuation | `\` | `` ` `` (backtick) |
|
|
244
|
-
| env variable | `${
|
|
244
|
+
| env variable | `${COMATE_USERNAME_ENCRYPTED}` | `$env:COMATE_USERNAME_ENCRYPTED` |
|
|
245
245
|
|
|
246
246
|
---
|
|
247
247
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: get-ugate-token
|
|
3
3
|
description: 获取并缓存 ugate token,供其他 skill 依赖使用进行API调用(多用户版本,永久有效)
|
|
4
|
+
user-invocable: false
|
|
4
5
|
metadata:
|
|
5
6
|
enableWhen:
|
|
6
7
|
- isInternal
|
|
@@ -15,6 +16,7 @@ metadata:
|
|
|
15
16
|
- 所有 token 都是永久有效的
|
|
16
17
|
- 支持用户手动输入 token
|
|
17
18
|
- 用户名: ${COMATE_USERNAME}
|
|
19
|
+
- 用户名加密: ${COMATE_USERNAME_ENCRYPTED}
|
|
18
20
|
|
|
19
21
|
|
|
20
22
|
## 文件结构
|