apiskill 0.1.5 → 0.1.6

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/README.md CHANGED
@@ -26,6 +26,16 @@ npm run dev
26
26
 
27
27
  Open the local URL shown in the terminal. The New Document dialog can import a direct OpenAPI JSON/YAML URL, crawl a Swagger UI / Knife4j / Redoc page, upload a local file, execute a curl command that returns an OpenAPI document, or create a blank document from scratch.
28
28
 
29
+ Cache Settings in the upper-right corner shows the active session cache and changes the saved default. The setting is stored in `~/.apiskill/config.json`; changing it never moves or deletes existing files. Restart Web to use the new location, or use Update Cache Location in version management to copy selected versions there. CLI uses the same setting:
30
+
31
+ ```bash
32
+ apiskill cache show
33
+ apiskill cache set /absolute/path/to/apiskill-cache
34
+ apiskill cache reset
35
+ ```
36
+
37
+ `APISKILL_CACHE_DIR` remains the highest-priority temporary override for automation and isolated runs.
38
+
29
39
  After importing or creating a blank document, use the version selector to switch cached documents, search endpoints by path, summary, tag, method, or parameter text, and open endpoint tabs to inspect request parameters, request bodies, response fields, AI-ready context, and raw JSON. You can also add, edit, or delete manual API operations; those changes are saved as local cached versions.
30
40
 
31
41
  After API document data exists, click Start MOCK Service in the web app or run `apiskill mock` in CLI to start a local random-data MOCK API server from the current interface definitions.
package/README.zh.md CHANGED
@@ -26,6 +26,18 @@ npm run dev
26
26
 
27
27
  打开终端输出的本地地址。“新建文档”弹窗可以导入直接的 OpenAPI JSON/YAML 地址,爬取 Swagger UI / Knife4j / Redoc 页面,上传本地文件,执行返回 OpenAPI 文档的 curl 命令,也可以从零新建空白文档。
28
28
 
29
+ 页面右上角的“缓存设置”可以查看当前会话缓存位置并修改默认缓存地址。设置保存在 `~/.apiskill/config.json`,不会移动或删除已有缓存文件;Web 重启以及后续 CLI、MCP 进程会使用新地址。版本管理中的“更新缓存地址”可以在确认源地址和目标地址后,将指定版本复制到新的默认缓存目录。
30
+
31
+ CLI 使用同一份设置:
32
+
33
+ ```bash
34
+ apiskill cache show
35
+ apiskill cache set /absolute/path/to/apiskill-cache
36
+ apiskill cache reset
37
+ ```
38
+
39
+ `APISKILL_CACHE_DIR` 仍具有最高优先级,适合临时或自动化隔离,不会覆盖已保存的默认设置。
40
+
29
41
  导入或新建文档后,可以用版本选择器切换缓存文档,按路径、摘要、tag、method 或参数文本搜索接口,并打开接口 tab 查看请求参数、请求体、响应字段、AI 友好的上下文和原始 JSON。也可以新增、编辑、删除手动接口;这些改动会保存为本地缓存版本。
30
42
 
31
43
  已有 API 文档数据后,可以在 Web 端点击“启动MOCK服务”,或在 CLI 里运行 `apiskill mock`,根据当前接口定义启动本地随机数据 MOCK API 服务。