🚀 Update Your Agent
Tell your agent to update the AnySearch skill:
https://github.com/anysearch-ai/anysearch-skill
Upgrade
Option 1 - Tell your agent:
Update the AnySearch skill: https://github.com/anysearch-ai/anysearch-skillOption 2 - Use the bundled updater:
python3 <skill_dir>/scripts/anysearch_cli.py update --check
python3 <skill_dir>/scripts/anysearch_cli.py updateSwap in anysearch_cli.js, .ps1, or .sh for other runtimes.
Option 3 - Git installs:
git -C <your_skill_dir> pullOn v3.1.1 or earlier? Reinstall once from the release zip;
updateships with this version.
What's New in v4.0.0
🔄 Self-Update
- Added
update,--check,--json,--version, and--forceto all four CLIs - Resolves releases from
cdn.anysearch.com/anysearch-skill/latest.json, with GitHub Releases as fallback - Verifies archives against the manifest SHA-256 and
SHA256SUMS.txt - Replaces distribution files only; keeps
.env,runtime.conf, and.update-backup/ - Never runs remote scripts;
--checkexit code 5 means "update available"
📦 CDN Release Pipeline
- Deterministic packaging and
latest.jsonviascripts/build_release.py - Verified publishing via
scripts/publish_cdn.py: upload, byte-compare, then publish the manifest - New Release to CDN workflow; CI builds and dry-runs the publisher on every push/PR
🔎 published_at in Search Results
POST /v1/searchmay now return an optionaldata.results[].published_at- Absolute or relative (
3 hours ago); omitted when unavailable - All four CLIs render it as
- **Published**: ...after the URL, unparsed - Treat it as opaque; line-based consumers should accept the line as optional
🧭 Domain & Tag Alignment
- Supported domains now match the registry (16):
general, resource, code, finance, academic, legal, health, business, cybersecurity, ip, energy, environment, agriculture, travel, film, gaming securityis nowcybersecurity;social_mediais no longer supported- Examples prefer
--tag/--params;--domain/--sub_domain/--sdpremain aliases - Updated examples (
academic.paper,legal.judicial,finance.quote,code.doc); removed stale ones (finance.market,academic.search,legal.case,cn_code) - Authoritative tags still come from
get_sub_domains
🛡️ CLI, Docs & Tests
- Python CLI accepts
--api_keyafter the subcommand - README/README_zh restructured around entry point, install, API key, verification, update, and task cases
- Added six use-case pages, runnable examples, and issue templates
- Codegen now syncs version references and CLI docs;
SHA256SUMS.txtregenerated - Contract tests cover self-update,
published_at, tag/params normalization, and release checksums
⚠️ Compatibility Notes
- Major version: the domain/tag catalog, examples, and search behavior changed
- Replace
securitywithcybersecurity; move offsocial_media - Hard-coded
finance.quoteparams: includemarket, dropcn_code published_atis additive; unknown-field-tolerant clients are unaffected- Self-update preserves
.envandruntime.conf; backups live in.update-backup/
🚀 更新你的 Agent
告诉你的 Agent,去更新 AnySearch skill:
https://github.com/anysearch-ai/anysearch-skill
升级方式
方式一 - 直接告诉你的 Agent:
去更新 AnySearch skill:https://github.com/anysearch-ai/anysearch-skill方式二 - 使用内置更新器:
python3 <skill_dir>/scripts/anysearch_cli.py update --check
python3 <skill_dir>/scripts/anysearch_cli.py update其他运行时替换为对应的 anysearch_cli.js、.ps1 或 .sh。
方式三 - Git 安装:
git -C <your_skill_dir> pull从 v3.1.1 或更早版本升级?请先从发布包重装一次;
update从本版开始提供。
v4.0.0 更新内容
🔄 自更新
- 四种 CLI 均新增
update、--check、--json、--version和--force - 优先从
cdn.anysearch.com/anysearch-skill/latest.json解析版本,CDN 不可用时回退 GitHub Releases - 下载后校验 manifest SHA-256 和包内
SHA256SUMS.txt - 只替换分发文件,保留
.env、runtime.conf和.update-backup/ - 不执行远程脚本;
--check退出码 5 表示“有更新”
📦 CDN 发布链路
- 确定性打包与
latest.json(scripts/build_release.py) - 带校验的 CDN 发布(
scripts/publish_cdn.py):上传、回读比对、再发布 manifest - 新增 Release to CDN workflow;CI 在每次 push/PR 构建并 dry-run 发布
🔎 搜索结果中的 published_at
POST /v1/search可返回可选的data.results[].published_at- 绝对时间或
3 hours ago这类相对值;不可用时省略 - 四种 CLI 在 URL 后输出
- **Published**: ...,不做解析 - 按不透明字符串处理;按行解析的消费方应允许该行缺失
🧭 Domain 与 Tag 对齐
- 支持的 domain 与目录一致(16 个):
general、resource、code、finance、academic、legal、health、business、cybersecurity、ip、energy、environment、agriculture、travel、film、gaming security改为cybersecurity;social_media不再支持- 示例优先使用
--tag/--params;--domain/--sub_domain/--sdp保留为别名 - 更新
academic.paper、legal.judicial、finance.quote、code.doc示例;移除finance.market、academic.search、legal.case、cn_code - 权威 tag 仍以
get_sub_domains为准
🛡️ CLI、文档与测试
- Python CLI 支持把
--api_key放在子命令之后 - README/README_zh 按入口、安装、API Key、验证、更新和任务案例重构
- 新增六个 use-case 页面、可运行示例和 issue 模板
- 代码生成同步版本引用与 CLI 文档,重新生成
SHA256SUMS.txt - 契约测试覆盖自更新、
published_at、tag/params 归一化和发布校验和
⚠️ 兼容性说明
- 大版本:domain/tag 目录、示例和搜索行为有变化
security请改用cybersecurity;social_media请迁移- 硬编码
finance.quote参数:补market,去掉cn_code published_at为新增字段;忽略未知字段的客户端不受影响- 自更新保留
.env和runtime.conf;备份在.update-backup/
Full Changelog: v3.1.1...v4.0.0