github anysearch-ai/anysearch-skill v4.0.0
v4.0.0 - Self-Update, CDN Release Pipeline & Search Metadata

one hour ago

🚀 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-skill

Option 2 - Use the bundled updater:

python3 <skill_dir>/scripts/anysearch_cli.py update --check
python3 <skill_dir>/scripts/anysearch_cli.py update

Swap in anysearch_cli.js, .ps1, or .sh for other runtimes.

Option 3 - Git installs:

git -C <your_skill_dir> pull

On v3.1.1 or earlier? Reinstall once from the release zip; update ships with this version.


What's New in v4.0.0

🔄 Self-Update

  • Added update, --check, --json, --version, and --force to 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; --check exit code 5 means "update available"

📦 CDN Release Pipeline

  • Deterministic packaging and latest.json via scripts/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/search may now return an optional data.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
  • security is now cybersecurity; social_media is no longer supported
  • Examples prefer --tag / --params; --domain / --sub_domain / --sdp remain 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_key after 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.txt regenerated
  • 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 security with cybersecurity; move off social_media
  • Hard-coded finance.quote params: include market, drop cn_code
  • published_at is additive; unknown-field-tolerant clients are unaffected
  • Self-update preserves .env and runtime.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

Don't miss a new anysearch-skill release

NewReleases is sending notifications on new releases.