{"id":50100594,"url":"https://github.com/justplus/aichain","last_synced_at":"2026-05-23T07:12:41.783Z","repository":{"id":357827329,"uuid":"1236182409","full_name":"justplus/aichain","owner":"justplus","description":"AIChain Integration","archived":false,"fork":false,"pushed_at":"2026-05-14T11:43:32.000Z","size":1961,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T13:40:24.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T02:48:33.000Z","updated_at":"2026-05-14T11:43:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/justplus/aichain","commit_stats":null,"previous_names":["justplus/aichain"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/justplus/aichain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justplus%2Faichain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justplus%2Faichain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justplus%2Faichain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justplus%2Faichain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justplus","download_url":"https://codeload.github.com/justplus/aichain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justplus%2Faichain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33386199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-23T07:12:40.222Z","updated_at":"2026-05-23T07:12:41.775Z","avatar_url":"https://github.com/justplus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AIChain Skills\n\n---\n\n## 中文\n\n面向 AIChain 开发者集成的 Agent Skill。该 skill 会先通过选择题收集接入背景，再生成 `AIChainProfile`，最后按 WebAPI、JavaScript SDK、Python SDK 或 Android SDK 完成代码集成与端到端测试。\n\n## 安装\n\n从当前仓库安装：\n\n```bash\nnpx skills add justplus/aichain\n```\n\n## 可用 Skill\n\n| Skill | 说明 |\n| --- | --- |\n| `aichain-integration` | 通过选择题收集区域、能力、语种、VAD、打断、图片理解、编码、接入方式和 `chunk_tts` 要求，并生成 AIChain 集成代码与测试。 |\n\n## 配置\n\n真实服务端到端测试需要：\n\n```bash\nexport AICHAIN_REGION=\"cn\"\nexport AICHAIN_APP_ID=\"your-app-id\"\nexport AICHAIN_APP_KEY=\"your-app-key\"\n```\n\n`AICHAIN_ENDPOINT` 可选。用户选择 region 后，skill 会优先从官方文档或 `references/region-endpoints.md` 自动解析 endpoint，例如：\n\n| Region | Endpoint |\n| --- | --- |\n| `cn` | `wss://aichain-sh.xfyun.cn` |\n| `us` | `wss://aichain-us.iflyoversea.com` |\n| `rus` | `wss://aichain-rus.iflyoversea.com` |\n\n可选配置：\n\n```bash\nexport AICHAIN_SN=\"device-or-test-sn\"\nexport AICHAIN_MODEL_ID=\"b16924f42ffe4fd895d4ba4778278bc3\"\nexport AICHAIN_PROFILE_FILE=\"./aichain.profile.json\"\nexport AICHAIN_PROFILE='{\"region\":{\"code\":\"cn\"},\"capabilities\":{\"nlu\":true}}'\n```\n\n## 能力覆盖\n\n该 skill 支持以下能力组合：\n\n- 识别 + 语义 + 合成\n- 语义 + 合成\n- 识别\n- 语义\n- 合成\n\nASR 场景会继续确认语种、半双工/全双工、声学 VAD 或声学 + 语义 VAD。默认规则：\n\n- 纯声学 VAD：`minSilenceDuration=600ms`\n- 声学 + 语义 VAD：`minSilenceDuration=300ms`，`minEndpointingDelay=250ms`\n\nTTS 场景会询问可选的 `chunk_tts`。设备播放缓冲区较小时建议开启；用户不确定时默认开启。\n\n## 文档 Fallback\n\nskill 会先尝试读取官方 Yuque 文档；如果当前 AI 环境没有浏览器/网络访问能力，或页面不可读，会自动使用本地 markdown：\n\n| 接入方式 | 官方文档 | 本地 fallback |\n| --- | --- | --- |\n| WebAPI | `https://www.yuque.com/aiui_open_platform/knowledge/hf7xdluok2yz3dib` | `references/fallback/webapi-source.md` |\n| JS SDK | `https://www.yuque.com/aiui_open_platform/knowledge/uwyv0442g4050ipg` | `references/fallback/js-sdk-source.md` |\n| Python SDK | `https://www.yuque.com/aiui_open_platform/knowledge/kivkb90gkeouobbe` | `references/fallback/python-sdk-source.md` |\n| Android SDK | `https://www.yuque.com/aiui_open_platform/knowledge/mbq79tvlq9vnbia5` | `references/fallback/android-sdk-source.md` |\n\n## SDK 支持\n\n- WebAPI / WebSocket\n- JavaScript / TypeScript SDK\n- Python SDK\n- Android SDK\n\n## 测试\n\n本地 profile 和 fixture 自检：\n\n```bash\nnode scripts/aichain-e2e.mjs --mode self-check\npython3 scripts/aichain_e2e.py --mode self-check\n```\n\n真实 WebAPI smoke test：\n\n```bash\nAICHAIN_REGION=cn \\\nAICHAIN_APP_ID=\"your-app-id\" \\\nAICHAIN_APP_KEY=\"your-app-key\" \\\nnode scripts/aichain-e2e.mjs --mode webapi\n```\n\n测试资产位于 `assets/`：\n\n- 文本：`assets/text/sample_zh.txt`、`assets/text/sample_en.txt`\n- 语音：`assets/audio/zh_16k_pcm.wav`、`assets/audio/en_16k_pcm.wav`\n- 图片：`assets/image/apple.png`\n\n## 许可证\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustplus%2Faichain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustplus%2Faichain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustplus%2Faichain/lists"}