Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(browser): 对齐任务内默认输出并收敛凭据适配目录

Dash6a3e4246f191
diff --git a/packages/lizi-mcps/src/browser/opencli-recipes.test.ts b/packages/lizi-mcps/src/browser/opencli-recipes.test.ts
index f4a71e53b9..040d3890e7 100644
--- a/packages/lizi-mcps/src/browser/opencli-recipes.test.ts
+++ b/packages/lizi-mcps/src/browser/opencli-recipes.test.ts
@@ -12,13 +12,62 @@ import { withRecipeHost, recipeDiagnosticPath, recipeOutputPath, readRecipeFileS
import { mkdtemp, writeFile, rm, readFile, realpath, access } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import path from 'node:path';
+// @ts-expect-error Pinned upstream adapter helpers ship JavaScript without declarations.
+import * as gemini from '../../../opencli-vendor/clis/gemini/utils.js';
+// @ts-expect-error Pinned upstream adapter helpers ship JavaScript without declarations.
+import * as qwen from '../../../opencli-vendor/clis/qwen/utils.js';
+import * as network from '../../../opencli-vendor/src/node-network.js';
afterEach(() => {
vi.useRealTimers();
vi.unstubAllGlobals();
+ vi.restoreAllMocks();
});
describe("bundled OpenCLI recipes", () => {
+ // #6826: argument defaults bypassed the task-relative resolver. Unit tier,
+ // real adapter -> shared writer with fake generation/network; previous novel
+ // coverage did not pass image/download argument defaults through prepareInputs.
+ it.each(['gemini/image', 'qwen/image', 'instagram/download'])('saves %s defaults inside the invoking task', async (id) => {
+ const dir = await realpath(await mkdtemp(path.join(tmpdir(), 'cindy-recipe-default-test-')));
+ const url = 'https://example.test/generated.png';
+ const asset = { ok: true, mime: 'image/png', base64: 'aW1hZ2U=' };
+ vi.spyOn(gemini, 'startNewGeminiChat').mockResolvedValue(undefined);
+ vi.spyOn(gemini, 'getGeminiVisibleImageUrls').mockResolvedValue([]);
+ vi.spyOn(gemini, 'sendGeminiMessage').mockResolvedValue(undefined);
+ vi.spyOn(gemini, 'waitForGeminiImages').mockResolvedValue([url]);
+ vi.spyOn(gemini, 'exportGeminiImages').mockResolvedValue([{ mimeType: 'image/png', dataUrl: 'data:image/png;base64,aW1hZ2U=' }]);
+ for (const name of ['ensureOnQianwen', 'dismissLoginModal', 'startNewChat', 'setFeatureToggle'] as const)
+ vi.spyOn(qwen, name).mockResolvedValue(undefined);
+ vi.spyOn(qwen, 'sendMessage').mockResolvedValue({ ok: true });
+ vi.spyOn(qwen, 'hasLoginGate').mockResolvedValue(false);
+ vi.spyOn(qwen, 'getMessageBubbles').mockResolvedValue([{ role: 'Assistant', id: 'answer' }]);
+ vi.spyOn(network, 'fetchWithNodeNetwork').mockImplementation(async () => new Response('image'));
+ const outputs: string[] = [];
+ const page = {
+ goto: async () => {}, wait: async () => {},
+ evaluate: async (js: string) => {
+ if (js === 'window.location.href') return 'https://example.test/';
+ if (id === 'instagram/download') return { ok: true, shortcode: 'B', items: [{ type: 'image', url }] };
+ return js.includes('arrayBuffer()') ? asset : [url];
+ },
+ } as unknown as IPage;
+ try {
+ await executeAdapter(id, id === 'instagram/download' ? { url: 'https://www.instagram.com/p/B/' } : { prompt: 'fixture' }, page, undefined, undefined, {
+ read: () => Buffer.alloc(0), open: () => -1, directory: dir,
+ output: file => {
+ const relative = path.relative(dir, file);
+ if (relative.startsWith('..') || path.isAbsolute(relative)) throw new Error('output outside task');
+ outputs.push(file);
+ return file;
+ },
+ });
+ const file = outputs.find(file => /\.(png|jpg)$/.test(file));
+ expect(file).toBeDefined();
+ expect(await readFile(file!, 'utf8')).toBe('image');
+ } finally { await rm(dir, { recursive: true, force: true }); }
+ });
+
// #6826 output/diagnostic review. Unit tier; the real adapter and screenshot
// entries previously covered reads only. Minimal inputs are one local novel
// output and two overlapping screenshots with the same diagnostic name.
@@ -389,13 +438,24 @@ describe("bundled OpenCLI recipes", () => {
const all = await query();
expect(all.ok).toBe(true);
expect(all.recipeCount).toBe(loadRecipes().size);
- for (const id of ['opencli:zlibrary/search', 'opencli:slock/task-create', 'books-list', 'hockey-search']) {
+ for (const id of ['opencli:zlibrary/search', 'opencli:slock/task-create', 'opencli:claude/login', 'opencli:claude/ask', 'opencli:spotify/auth', 'opencli:spotify/status', 'books-list', 'hockey-search']) {
expect(JSON.stringify(all)).not.toContain(id);
const response = await client.callTool({ name: 'call_tool', arguments: { name: 'browser', args: { action: 'recipe', recipeId: id } } });
expect(JSON.parse((response.content as Array<{ text: string }>)[0].text).ok).toBe(false);
}
expect(JSON.stringify(all)).toContain('open-library-search');
expect(JSON.stringify(all)).toContain('steam-reviews');
+ // The public guide must describe the same task-relative defaults used by
+ // execution; otherwise callers can reintroduce an out-of-task path.
+ for (const [site, command, arg, expected] of [
+ ['gemini', 'image', 'op', './gemini-images'],
+ ['qwen', 'image', 'op', './qianwen-images'],
+ ['instagram', 'download', 'path', './instagram-downloads'],
+ ['midjourney', 'download', 'output', './midjourney-downloads'],
+ ]) {
+ const guide = await query(site);
+ expect(guide.recipes.find((recipe: { id: string }) => recipe.id === `opencli:${site}/${command}`).parameters[arg].default).toBe(expected);
+ }
const site = await query("bilibili");
expect(site.ok).toBe(true);
expect(
diff --git a/packages/opencli-vendor/README.md b/packages/opencli-vendor/README.md
index 9f04c77902..e2bc798aa4 100644
--- a/packages/opencli-vendor/README.md
+++ b/packages/opencli-vendor/README.md
@@ -10,15 +10,15 @@
- 170 个站点/应用,1,223 条命令(916 read、307 write)。
- 1,112 个命令模块,所有生产共享代码、JSON 和其他资源一并引入;不引入上游测试。
-- 上游快照完整保留,但默认目录独立选择:排除 Z-Library 2 条和待重新验证的 Slock 44 条,
- 剩余 1,177 条命令、25 个上游别名。原因记录在 [selection.json](cindy/selection.json),
+- 上游快照完整保留,但默认目录独立选择:排除 Z-Library 2 条、Slock 44 条、Claude.ai 9 条和 Spotify 11 条,
+ 剩余 1,157 条命令、25 个上游别名。原因记录在 [selection.json](cindy/selection.json),
同步会沿用此选择,排除条目不进入模块导入表和可执行目录。
- Cindy 原有 56 个 ID:47 个转到新版适配器,7 个保留原流程,两个爬虫练习站移至
`packages/lizi-mcps/src/browser/recipe-examples`,不再出现在默认列表。
逐项记录见 [legacy-coverage.json](cindy/legacy-coverage.json)。
- Cindy 独立增加 App Store 搜索、Google Play 搜索、TapTap 中国站游戏详情、Steam 玩家评价、
Open Library 书目查询和 Crossref 文献/DOI 查询,共 6 个配方,位于
- `packages/lizi-mcps/src/browser/cindy-recipes`。共 1,262 个可发现 ID;这个数包含别名和兼容入口。
+ `packages/lizi-mcps/src/browser/cindy-recipes`。共 1,242 个可发现 ID、172 份指南;这个数包含别名和兼容入口。
- 兼容入口保持输入名,输出改为新版结构化结果;用户本地覆盖层仍优先于内置层。
通过 `browser(action="siteguide")` 查询精简完整目录;传 `site`(域名或上游站点名)
@@ -35,14 +35,17 @@
- CDP 对象和节点沿用一次配方调用的连接;网络响应按上游格式捕获、读取后清空,结束时
释放监听和连接。导航、上传仍走 Cindy 原有校验路径;代输入后的页面读取限制仍生效。
- 通用执行器不自动重放操作。Instagram reel 移除独立 daemon 和整次发布重试。
-- Spotify、小宇宙的新令牌只写宿主加密凭据库。已有 OpenCLI 配置仅在显式执行时读取;
- 不在导入模块时读取用户凭据,不删除旧配置,也不新增明文令牌文件。
-- Spotify OAuth 回调绑定 loopback 并校验 state。文章 stdout 输出改为 MCP 返回值;
+- Claude.ai 站点不进入默认目录,Claude 订阅沿用内置 Claude Code CLI 登录与使用。
+- Spotify 暂不进入默认目录:客户端密钥的明文文件配置尚未接入宿主加密凭据库;
+ 保留完整来源,不增加新的凭据配置流程。小宇宙的新令牌只写宿主加密凭据库,
+ 既有配置只在显式执行时读取,不删除旧配置或新增明文令牌文件。
+- 文章 stdout 输出改为 MCP 返回值;
Readability 脚本随构建打包,避免安装包运行时查找源码文件。
- 主进程使用静态入口加载所选命令及其执行依赖,不在运行期动态导入模块;导入不执行命令。
- 适配器直接读取文件和分片上传也须通过宿主文件代理,复用原有上传目录、敏感文件和
realpath 校验;无会话目录或宿主文件代理时拒绝读取。ChatGPT 后端请求只发送自身域的 Cookie。
-- 诊断截图及错误提示使用系统临时目录,兼容 Windows;不依赖固定的 `/tmp` 目录。
+- 图片、音频和下载成果的默认路径与目录参数元数据均使用任务内相对路径;
+ 诊断截图及跟踪文件按调用隔离,结束后清理,兼容 Windows。
- 与配方按使用维护共用暂停状态:适配器参数预检失败不会暂停配方,执行失败才暂停;
暂停记录可跨任务读取。修订仍须用带 guard/expect 的声明式步骤试跑成功后保存,
不把适配器返回成功等同于通过页面与结果校验,也不自动重放写操作。
diff --git a/packages/opencli-vendor/UPSTREAM.json b/packages/opencli-vendor/UPSTREAM.json
index 35330f5cd1..53e65d3181 100644
--- a/packages/opencli-vendor/UPSTREAM.json
+++ b/packages/opencli-vendor/UPSTREAM.json
@@ -201,6 +201,21 @@
},
"src/utils.ts": {
"upstreamSha256": "5b6005142f9066690075eb7230cd3e7912bbeae791d49e40079a857569d3fa03"
+ },
+ "clis/qwen/image.js": {
+ "upstreamSha256": "1087351fc07ec3d85db10c46c07a5fb3c2e6a591bc84d1e5777d257b942ef1c2"
+ },
+ "clis/minimax/music.js": {
+ "upstreamSha256": "7e0ed13d0741ba08755a1b4added08f5ccd996b1265f8cc8712cc4947b216a35"
+ },
+ "clis/suno/download.js": {
+ "upstreamSha256": "5e875e965c36946531e416549017cf350b21728d76debc22760b4ea7f33f752f"
+ },
+ "clis/suno/generate.js": {
+ "upstreamSha256": "3455bc68907fd7f3d3c0b5f844799f1d1dbd6c263e30c759b3b01f23c4acb054"
+ },
+ "cli-manifest.json": {
+ "upstreamSha256": "79791f1435dd3fb4c00c9996e2dfea71a644b3a2caeae7ec22f2c1a4f5520758"
}
},
"files": {
@@ -369,7 +384,7 @@
"clis/chatgpt/deep-research-result.js": "43993ccc844f62d93ff7cc2dce1d2adcc847896df07b1c4599b1045678410a51",
"clis/chatgpt/detail.js": "8c43571fdc1f3ccd4d2242f5c7eb8e0a7a6069e9230b49c12ca7bf7a2c8ae3b2",
"clis/chatgpt/history.js": "66d608d3c77d95983f668211c6366c081d9d008aede136062af950aa0fd89785",
- "clis/chatgpt/image.js": "dae306ac2317b5839bc8cdfd50e53066a2d0f14b67623dc567eef3c4a96314e2",
+ "clis/chatgpt/image.js": "423873d548615fabd55b84c5d417be69601f5300b82d9d571503c2407d050290",
"clis/chatgpt/model.js": "2c7e4535f07d3fb6091f359dadb64064168772565b188c3ed58dccee4e0b82ac",
"clis/chatgpt/new.js": "68d2435dc54035ee566e6140e8f9104c368342237474dff5dacd70380e07311d",
"clis/chatgpt/project-file-add.js": "90bd5b4ff547f7ba1db66d8d5b356d1694eb1a02995f5675f33d61a6f0908fdc",
@@ -574,7 +589,7 @@
"clis/gemini/deep-research.js": "ec09fee860d4316ed0b29c03a34fb6cde504795548dfabda271d6624e9169502",
"clis/gemini/detail.js": "db4dba3f6134828baeaf396f15e4f249618967d7e7047e0ed2471b25cbc2cf11",
"clis/gemini/history.js": "c1b1f7d7c83a34e6d23ba547f5a599473e7196619662bc351ee3265c61d8bff9",
- "clis/gemini/image.js": "b39ff55275acb876caca39bfc17356fed22893ce89b701c743ecb72b41a6e208",
+ "clis/gemini/image.js": "0e52a2d87b598966fefad39d2253809317088f97bbf7e98c77e39359612442ff",
"clis/gemini/models.js": "575635dfff9b3055f2aba140c53a669ec04d081fbbd0aaca58e4651facaf0de4",
"clis/gemini/new.js": "fb98471158fe0babae0310818b2878042142745061402a2eff103ed02a24e59d",
"clis/gemini/read.js": "0b22dcb9b0f36537bf0fbab10a04b60fd460962fc04e94449e87b2464d7c881c",
@@ -703,7 +718,7 @@
"clis/instagram/collection-create.js": "6200ac062b163c16112dbf9f4d80ed95f9c032f376feaada3e3b9b15202ca2db",
"clis/instagram/collection-delete.js": "bf9de03f7f896ca545a13bc8d7add12230c3fb2b10d373f383c66b178a8b007a",
"clis/instagram/comment.js": "9f72b16f8ac33095fcf8b64cdfec43216550932c3cfdefc7fc778b8063f55573",
- "clis/instagram/download.js": "13fcb626e5ddaae89b13d6bfa35caff21e354b2e4fbc9b861f56d639304aa685",
+ "clis/instagram/download.js": "37fdb3175a4768e1317e7ee7b3840666f1cc569368ef5cb90eace5c48ca0e5c0",
"clis/instagram/explore.js": "0b5f5bd7a042e692a22f1f90f6a4e3c999afba4f9f9c48436c8797aee747c8b8",
"clis/instagram/follow.js": "d552c22579e21d730eaf159dea92c94653d5815c58e262c813b046bdb009989a",
"clis/instagram/followers.js": "776e0dd994a814796ac38f6f14e8a34adc00474c6d8f6c66c40b17f97454d379",
@@ -877,7 +892,7 @@
"clis/midjourney/status.js": "1382504f9b9cbe73864bc05f4d3f398ea38ae3fa18a4379428b7cdfee8ecfc2b",
"clis/midjourney/utils.js": "77df1811a3c54b84e0ac25b00b34de56c5ba53c8c863a1b3d3b459b259096a38",
"clis/midjourney/whoami.js": "78424e609c5cc0022ec7c2590cc902371f4431207d2f0b1079a9cdf9fa1beea9",
- "clis/minimax/music.js": "7e0ed13d0741ba08755a1b4added08f5ccd996b1265f8cc8712cc4947b216a35",
+ "clis/minimax/music.js": "a192c07d35827813ca229d4fae2e4136153aaa8e987d2335db33605daaa65837",
"clis/minimax/utils.js": "c175b6e059568df44be268a4acd92a666ade3ed45f770896be4cf59fd799071d",
"clis/mubu/doc.js": "8c0e2cbe4ad8246744ed2ab903d54ad0a4fa4f3a4778ab498c5c14f8c01216c2",
"clis/mubu/docs.js": "1b2b186631e9bfc973140ffbf29d525ee46b66e25488c5b1b13ab908d0c1bfa4",
@@ -1043,7 +1058,7 @@
"clis/qwen/auth.js": "3a4642958031f1f2f61eb0d0f55fdd434b323f26c50020f07b8fed506ad3c0b4",
"clis/qwen/detail.js": "7eb6b9b4872b44de2ba1d6b294c8acf8de8b2e05b28ffc953cefe86504efac75",
"clis/qwen/history.js": "0a8f8110794bf9d881bd3fdc61d21cb73fa156c5716edd308f9d68d1196aaadc",
- "clis/qwen/image.js": "1087351fc07ec3d85db10c46c07a5fb3c2e6a591bc84d1e5777d257b942ef1c2",
+ "clis/qwen/image.js": "274e9e0cdca7d67546f7d1e69a3276133b442eaf6cf8b837e9143e2fbbdd4272",
"clis/qwen/new.js": "a5627649838da4121ce42a22287c81283bc316c7e0ea92cf5f8952db3dd5540e",
"clis/qwen/read.js": "eed8e892c3e35bef9008ece254a8702984978b7eccb6f519874d9e72a72457ab",
"clis/qwen/send.js": "f6e6de80d9059fd33f8e250db1d56fc50d0d511abf76372451bb527d2c82bf9d",
@@ -1178,8 +1193,8 @@
"clis/substack/search.js": "bcd0f8c7a5ef6731f8cec64f4daa28e8de1739ae0b73ab5762df9bf7f8a39911",
"clis/substack/utils.js": "3724631bd99ae11cc7afb285078e1e9787ebe86382cff07327655857b8cc3f0a",
"clis/suno/auth.js": "591b55a7441dc972063bca3da8561a094a076ca994fd25cb8d7ebff918a2910a",
- "clis/suno/download.js": "5e875e965c36946531e416549017cf350b21728d76debc22760b4ea7f33f752f",
- "clis/suno/generate.js": "3455bc68907fd7f3d3c0b5f844799f1d1dbd6c263e30c759b3b01f23c4acb054",
+ "clis/suno/download.js": "c95bc82920127f237ead2a6ca6427208f8a7e7d72a4ccbaab04d03523e6a44e0",
+ "clis/suno/generate.js": "4dd38a391fce74c6df9190832d51988ef5d63e17845d171c4fca98ca77b5767c",
"clis/suno/list.js": "f4b6f015a9c87547eda1b84adf6d6960c868b8b60c0e8b75f06a1c3367f6212f",
"clis/suno/status.js": "57559e6773be4f37b65c2ad9bf1590e4b87cbae19db26b59c5601053a3bd5bd7",
"clis/suno/utils.js": "a955020a49f4eb2bcdc60ecef89380d68e494541dbf49fa5364ddaa055d3dfb5",
@@ -1633,6 +1648,6 @@
"src/verify.ts": "9ad21f961c94b750dca8db63a6ffc78689dda5186f1d443ab8f912eef30b2fc9",
"src/version.ts": "7bb1ede5cfc1f796e434cacd08cb9f903022f8c9375b17237aa16ad7d825aa2b",
"LICENSE": "0210b8b66cf00358242cb921ba2be3a46dfe0190159b1b952388a3880ce1ff54",
- "cli-manifest.json": "79791f1435dd3fb4c00c9996e2dfea71a644b3a2caeae7ec22f2c1a4f5520758"
+ "cli-manifest.json": "a1824f6c01d76c231682ee1de6626d588d6b274706546743eec6bd20e73f5b87"
}
}
diff --git a/packages/opencli-vendor/cindy/modules.js b/packages/opencli-vendor/cindy/modules.js
index d38bc6d7ca..39b47fce52 100644
--- a/packages/opencli-vendor/cindy/modules.js
+++ b/packages/opencli-vendor/cindy/modules.js
@@ -156,14 +156,6 @@ import "../clis/chess/analyze.js";
import "../clis/chess/game.js";
import "../clis/chess/games.js";
import "../clis/chess/stats.js";
-import "../clis/claude/ask.js";
-import "../clis/claude/auth.js";
-import "../clis/claude/detail.js";
-import "../clis/claude/history.js";
-import "../clis/claude/new.js";
-import "../clis/claude/read.js";
-import "../clis/claude/send.js";
-import "../clis/claude/status.js";
import "../clis/cnki/search.js";
import "../clis/coingecko/categories.js";
import "../clis/coingecko/coin.js";
@@ -764,7 +756,6 @@ import "../clis/sinafinance/rolling-news.js";
import "../clis/sinafinance/stock-rank.js";
import "../clis/sinafinance/stock.js";
import "../clis/smzdm/search.js";
-import "../clis/spotify/spotify.js";
import "../clis/stackoverflow/bounties.js";
import "../clis/stackoverflow/hot.js";
import "../clis/stackoverflow/read.js";
@@ -1224,14 +1215,6 @@ export const modules = {
"chess/game.js": true,
"chess/games.js": true,
"chess/stats.js": true,
- "claude/ask.js": true,
- "claude/auth.js": true,
- "claude/detail.js": true,
- "claude/history.js": true,
- "claude/new.js": true,
- "claude/read.js": true,
- "claude/send.js": true,
- "claude/status.js": true,
"cnki/search.js": true,
"coingecko/categories.js": true,
"coingecko/coin.js": true,
@@ -1832,7 +1815,6 @@ export const modules = {
"sinafinance/stock-rank.js": true,
"sinafinance/stock.js": true,
"smzdm/search.js": true,
- "spotify/spotify.js": true,
"stackoverflow/bounties.js": true,
"stackoverflow/hot.js": true,
"stackoverflow/read.js": true,
diff --git a/packages/opencli-vendor/cindy/patches.json b/packages/opencli-vendor/cindy/patches.json
index 782e5eef24..2f83a88bb5 100644
--- a/packages/opencli-vendor/cindy/patches.json
+++ b/packages/opencli-vendor/cindy/patches.json
@@ -2445,5 +2445,101 @@
"before": "import * as fs from 'node:fs';",
"after": "import { recipeOutputPath } from '@jackwener/opencli/cindy/host';\nimport * as fs from 'node:fs';",
"count": 1
+ },
+ {
+ "file": "clis/gemini/image.js",
+ "before": "~/tmp/gemini-images",
+ "after": "./gemini-images",
+ "count": 1
+ },
+ {
+ "file": "clis/qwen/image.js",
+ "before": "~/Pictures/qianwen",
+ "after": "./qianwen-images",
+ "count": 2
+ },
+ {
+ "file": "clis/qwen/image.js",
+ "before": "import * as os from 'node:os';",
+ "after": "import { resolveRecipePath } from '@jackwener/opencli/cindy/host';\nimport * as os from 'node:os';",
+ "count": 1
+ },
+ {
+ "file": "clis/qwen/image.js",
+ "before": "const outputDir = String(kwargs.op || './qianwen-images').replace(/^~\\//, `${os.homedir()}/`);",
+ "after": "const outputDir = resolveRecipePath(String(kwargs.op || './qianwen-images').replace(/^~\\//, `${os.homedir()}/`));",
+ "count": 1
+ },
+ {
+ "file": "clis/instagram/download.js",
+ "before": "~/Downloads/Instagram",
+ "after": "./instagram-downloads",
+ "count": 1
+ },
+ {
+ "file": "clis/chatgpt/image.js",
+ "before": "default: ~/Pictures/chatgpt",
+ "after": "default: ./chatgpt-images",
+ "count": 1
+ },
+ {
+ "file": "clis/minimax/music.js",
+ "before": "default: ~/Music/minimax",
+ "after": "default: ./minimax-audio",
+ "count": 1
+ },
+ {
+ "file": "clis/suno/download.js",
+ "before": "default: ~/Music/suno",
+ "after": "default: ./suno-audio",
+ "count": 1
+ },
+ {
+ "file": "clis/suno/generate.js",
+ "before": "default: ~/Music/suno",
+ "after": "default: ./suno-audio",
+ "count": 1
+ },
+ {
+ "file": "cli-manifest.json",
+ "before": "~/tmp/gemini-images",
+ "after": "./gemini-images",
+ "count": 1
+ },
+ {
+ "file": "cli-manifest.json",
+ "before": "~/Pictures/qianwen",
+ "after": "./qianwen-images",
+ "count": 1
+ },
+ {
+ "file": "cli-manifest.json",
+ "before": "~/Downloads/Instagram",
+ "after": "./instagram-downloads",
+ "count": 1
+ },
+ {
+ "file": "cli-manifest.json",
+ "before": "~/Pictures/Midjourney",
+ "after": "./midjourney-downloads",
+ "count": 2
+ },
+ {
+ "file": "cli-manifest.json",
+ "before": "default: ~/Pictures/chatgpt",
+ "after": "default: ./chatgpt-images",
+ "count": 1
+ },
+ {
+ "file": "cli-manifest.json",
+ "before": "default: ~/Music/minimax",
+ "after": "default: ./minimax-audio",
+ "count": 1
+ },
+ {
+ "file": "cli-manifest.json",
+ "before": "default: ~/Music/suno",
+ "after": "default: ./suno-audio",
+ "count": 2
}
]
diff --git a/packages/opencli-vendor/cindy/selection.json b/packages/opencli-vendor/cindy/selection.json
index b4813d3793..1d06710ddf 100644
--- a/packages/opencli-vendor/cindy/selection.json
+++ b/packages/opencli-vendor/cindy/selection.json
@@ -1,6 +1,8 @@
{
"excludedSites": {
"zlibrary": "Not in Cindy's default catalog: copyright enforcement history and unverified mirror ownership (reviewed 2026-10-23).",
- "slock": "Deferred: app.slock.ai redirects to app.raft.build; the adapter still assumes the old origin and token storage. Revalidate before inclusion."
+ "slock": "Deferred: app.slock.ai redirects to app.raft.build; the adapter still assumes the old origin and token storage. Revalidate before inclusion.",
+ "claude": "Excluded: Claude subscription login and use belong to the unmodified built-in Claude Code CLI, not a Claude.ai browser adapter (credentials-and-local-storage.md).",
+ "spotify": "Deferred: client credentials still depend on a plaintext spotify.env file. Do not bundle until credential configuration uses the host encrypted store."
}
}
diff --git a/packages/opencli-vendor/cli-manifest.json b/packages/opencli-vendor/cli-manifest.json
index b66b50b6f4..0791cde8c5 100644
--- a/packages/opencli-vendor/cli-manifest.json
+++ b/packages/opencli-vendor/cli-manifest.json
@@ -5690,7 +5690,7 @@
"name": "op",
"type": "str",
"required": false,
- "help": "Output directory (default: ~/Pictures/chatgpt)"
+ "help": "Output directory (default: ./chatgpt-images)"
},
{
"name": "sd",
@@ -12372,7 +12372,7 @@
{
"name": "op",
"type": "str",
- "default": "~/tmp/gemini-images",
+ "default": "./gemini-images",
"required": false,
"help": "Output directory shorthand"
},
@@ -17186,7 +17186,7 @@
{
"name": "path",
"type": "str",
- "default": "~/Downloads/Instagram",
+ "default": "./instagram-downloads",
"required": false,
"help": "Download directory"
}
@@ -23619,7 +23619,7 @@
{
"name": "output",
"type": "str",
- "default": "~/Pictures/Midjourney",
+ "default": "./midjourney-downloads",
"required": false,
"help": "Output directory"
},
@@ -23751,7 +23751,7 @@
{
"name": "output",
"type": "str",
- "default": "~/Pictures/Midjourney",
+ "default": "./midjourney-downloads",
"required": false,
"help": "Output directory"
},
@@ -24142,7 +24142,7 @@
"name": "op",
"type": "str",
"required": false,
- "help": "Directory for --output-format hex (default: ~/Music/minimax)"
+ "help": "Directory for --output-format hex (default: ./minimax-audio)"
},
{
"name": "timeout",
@@ -29720,7 +29720,7 @@
{
"name": "op",
"type": "str",
- "default": "~/Pictures/qianwen",
+ "default": "./qianwen-images",
"required": false,
"help": "Output directory"
},
@@ -34284,7 +34284,7 @@
"name": "op",
"type": "str",
"required": false,
- "help": "Output directory (default: ~/Music/suno)"
+ "help": "Output directory (default: ./suno-audio)"
},
{
"name": "confirm-paid",
@@ -34383,7 +34383,7 @@
"name": "op",
"type": "str",
"required": false,
- "help": "Output directory (default: ~/Music/suno)"
+ "help": "Output directory (default: ./suno-audio)"
},
{
"name": "timeout",
diff --git a/packages/opencli-vendor/clis/chatgpt/image.js b/packages/opencli-vendor/clis/chatgpt/image.js
index d715818fe2..926336ce55 100644
--- a/packages/opencli-vendor/clis/chatgpt/image.js
+++ b/packages/opencli-vendor/clis/chatgpt/image.js
@@ -74,7 +74,7 @@ export const imageCommand = cli({
{ name: 'prompt', positional: true, required: true, help: 'Image prompt to send to ChatGPT' },
{ name: 'image', help: 'Local image path to attach before prompting; comma-separated paths are supported' },
{ name: 'project', valueRequired: true, help: 'Start image generation inside a ChatGPT project ID or /g/g-p-<id> URL' },
- { name: 'op', help: 'Output directory (default: ~/Pictures/chatgpt)' },
+ { name: 'op', help: 'Output directory (default: ./chatgpt-images)' },
{ name: 'sd', type: 'boolean', default: false, help: 'Skip download shorthand; only show ChatGPT link' },
{ name: 'timeout', type: 'int', required: false, default: 240, help: 'Max seconds for the overall command (default: 240)' },
],
diff --git a/packages/opencli-vendor/clis/gemini/image.js b/packages/opencli-vendor/clis/gemini/image.js
index bb238e3013..877ec3e8ee 100644
--- a/packages/opencli-vendor/clis/gemini/image.js
+++ b/packages/opencli-vendor/clis/gemini/image.js
@@ -70,7 +70,7 @@ export const imageCommand = cli({
{ name: 'prompt', positional: true, required: true, help: 'Image prompt to send to Gemini' },
{ name: 'rt', default: '1:1', help: 'Ratio shorthand for aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3)' },
{ name: 'st', default: '', help: 'Style shorthand, e.g. anime, icon, watercolor' },
- { name: 'op', default: '~/tmp/gemini-images', help: 'Output directory shorthand' },
+ { name: 'op', default: './gemini-images', help: 'Output directory shorthand' },
{ name: 'sd', type: 'boolean', default: false, help: 'Skip download shorthand; only show Gemini page link' },
{ name: 'timeout', type: 'int', required: false, default: 240, help: 'Max seconds for the overall command (default: 240)' },
],
diff --git a/packages/opencli-vendor/clis/instagram/download.js b/packages/opencli-vendor/clis/instagram/download.js
index 69f62d96d5..90f63d2b9f 100644
--- a/packages/opencli-vendor/clis/instagram/download.js
+++ b/packages/opencli-vendor/clis/instagram/download.js
@@ -347,7 +347,7 @@ cli({
navigateBefore: false,
args: [
{ name: 'url', positional: true, required: true, help: 'Instagram post / reel / tv URL' },
- { name: 'path', default: '~/Downloads/Instagram', help: 'Download directory' },
+ { name: 'path', default: './instagram-downloads', help: 'Download directory' },
],
func: async (page, kwargs) => {
const browserPage = ensurePage(page);
diff --git a/packages/opencli-vendor/clis/minimax/music.js b/packages/opencli-vendor/clis/minimax/music.js
index 89e8b53384..0b0cf1fd9f 100644
--- a/packages/opencli-vendor/clis/minimax/music.js
+++ b/packages/opencli-vendor/clis/minimax/music.js
@@ -79,7 +79,7 @@ cli({
{ name: 'instrumental', type: 'boolean', default: false, help: 'Generate instrumental music; requires prompt and forbids lyrics' },
{ name: 'lyrics-optimizer', type: 'boolean', default: false, help: 'Generate lyrics from prompt when --lyrics is omitted' },
{ name: 'aigc-watermark', type: 'boolean', default: false, help: 'CN-only audio watermark' },
- { name: 'op', help: 'Directory for --output-format hex (default: ~/Music/minimax)' },
+ { name: 'op', help: 'Directory for --output-format hex (default: ./minimax-audio)' },
{ name: 'timeout', type: 'int', default: 600, help: 'HTTP generation timeout in seconds (1-1800)' },
{ name: 'execute', type: 'boolean', default: false, help: 'Submit the billable generation request' },
],
diff --git a/packages/opencli-vendor/clis/qwen/image.js b/packages/opencli-vendor/clis/qwen/image.js
index 6ec3d75e04..a44d2b868a 100644
--- a/packages/opencli-vendor/clis/qwen/image.js
+++ b/packages/opencli-vendor/clis/qwen/image.js
@@ -1,3 +1,4 @@
+import { resolveRecipePath } from '@jackwener/opencli/cindy/host';
import * as os from 'node:os';
import * as path from 'node:path';
import { cli, Strategy } from '@jackwener/opencli/registry';
@@ -104,7 +105,7 @@ cli({
defaultFormat: 'plain',
args: [
{ name: 'prompt', required: true, positional: true, help: 'Image prompt to send' },
- { name: 'op', default: '~/Pictures/qianwen', help: 'Output directory' },
+ { name: 'op', default: './qianwen-images', help: 'Output directory' },
{ name: 'new', type: 'boolean', default: true, help: 'Start a new chat before generating (default: true)' },
{ name: 'sd', type: 'boolean', default: false, help: 'Skip download; only show the Qianwen link' },
{ name: 'timeout', type: 'int', default: 180, help: 'Max seconds to wait for the image response' },
@@ -113,7 +114,7 @@ cli({
func: async (page, kwargs) => {
const prompt = String(kwargs.prompt || '').trim();
if (!prompt) throw new ArgumentError('prompt is required');
- const outputDir = String(kwargs.op || '~/Pictures/qianwen').replace(/^~\//, `${os.homedir()}/`);
+ const outputDir = resolveRecipePath(String(kwargs.op || './qianwen-images').replace(/^~\//, `${os.homedir()}/`));
const startFresh = normalizeBooleanFlag(kwargs.new, true);
const skipDownload = normalizeBooleanFlag(kwargs.sd, false);
const timeout = Number(kwargs.timeout ?? 180);
diff --git a/packages/opencli-vendor/clis/suno/download.js b/packages/opencli-vendor/clis/suno/download.js
index d5f01f1be8..5cf7eb0f90 100644
--- a/packages/opencli-vendor/clis/suno/download.js
+++ b/packages/opencli-vendor/clis/suno/download.js
@@ -57,7 +57,7 @@ export const downloadCommand = cli({
args: [
{ name: 'clip', positional: true, required: true, help: 'Clip UUID or https://suno.com/song/<id> URL' },
{ name: 'formats', help: 'Comma-separated formats: mp3, m4a, wav, video, cover, metadata. Default: mp3,metadata' },
- { name: 'op', help: 'Output directory (default: ~/Music/suno)' },
+ { name: 'op', help: 'Output directory (default: ./suno-audio)' },
{ name: 'confirm-paid', type: 'boolean', default: false, help: 'Required to allow paid downloads (wav). Without it, paid formats are skipped with a warning.' },
],
columns: ['status', 'clip', 'title', 'files', 'link'],
diff --git a/packages/opencli-vendor/clis/suno/generate.js b/packages/opencli-vendor/clis/suno/generate.js
index 6fa77c2eac..49c1364dcc 100644
--- a/packages/opencli-vendor/clis/suno/generate.js
+++ b/packages/opencli-vendor/clis/suno/generate.js
@@ -66,7 +66,7 @@ export const generateCommand = cli({
{ name: 'weirdness', help: 'Creative weirdness slider (0..1). Default: 0.5' },
{ name: 'style-weight', help: 'Style adherence slider (0..1). Default: 0.5' },
{ name: 'formats', help: 'Comma-separated download formats: mp3, m4a, wav, video, cover, metadata. Default: mp3,metadata' },
- { name: 'op', help: 'Output directory (default: ~/Music/suno)' },
+ { name: 'op', help: 'Output directory (default: ./suno-audio)' },
{ name: 'timeout', type: 'int', default: 300, help: 'Max seconds to wait for clips to finish (default: 300)' },
{ name: 'sd', type: 'boolean', default: false, help: 'Skip download; only print clip ids and Suno URLs' },
{ name: 'confirm-paid', type: 'boolean', default: false, help: 'Required to allow paid downloads (wav). Without it, paid formats are skipped with a warning.' },