Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat(cli): add --min-cli flag to bump script for breaking changes
Gener757848cb98a1
diff --git a/AGENTS.md b/AGENTS.mdindex 1ab411990..9957252e7 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -19,8 +19,10 @@ All workspace packages share one version. Use `pnpm bump` to release:```bashpnpm bump 0.0.11 # explicit version (v prefix optional)pnpm bump patch # auto-increment patch/minor/major+pnpm bump patch --min-cli # also update MIN_CLI_VERSION in src/web/wrangler.toml```This updates every `src/*/package.json`, commits `release: vX.Y.Z`, but does NOT push.+Add `--min-cli` when the release contains breaking changes that require users to update their CLI.After reviewing the commit, `git push origin main` to trigger CI:- **@alook/cli** → auto-published to npm via `publish-cli.yml` (watches `src/cli/package.json`)- **CF Workers** → each module redeploys when its own `package.json` changesdiff --git a/scripts/bump-version.mjs b/scripts/bump-version.mjsindex 8018c3722..9a6ba6613 100644--- a/scripts/bump-version.mjs+++ b/scripts/bump-version.mjs@@ -22,12 +22,17 @@ function bumpSemver(current, type) {return `${major}.${minor}.${patch + 1}`;}-const arg = process.argv[2];+const args = process.argv.slice(2);+const updateMinCli = args.includes("--min-cli");+const filtered = args.filter((a) => a !== "--min-cli");+const arg = filtered[0];+if (!arg) {- console.error("Usage: pnpm bump <version|patch|minor|major>");+ console.error("Usage: pnpm bump <version|patch|minor|major> [--min-cli]");console.error(" pnpm bump 0.0.11");console.error(" pnpm bump v0.0.11");console.error(" pnpm bump patch");+ console.error(" pnpm bump patch --min-cli # also update MIN_CLI_VERSION in wrangler.toml");process.exit(1);}@@ -58,6 +63,17 @@ for (const dir of WORKSPACE_DIRS) {console.log(` ${pkg.name}: ${old} → ${version}`);}+if (updateMinCli) {+ const tomlPath = join(ROOT, "src/web/wrangler.toml");+ let toml = readFileSync(tomlPath, "utf8");+ const oldMatch = toml.match(/MIN_CLI_VERSION\s*=\s*"([^"]+)"/);+ const oldMinCli = oldMatch ? oldMatch[1] : "unknown";+ toml = toml.replace(/MIN_CLI_VERSION\s*=\s*"[^"]+"/, `MIN_CLI_VERSION = "${version}"`);+ writeFileSync(tomlPath, toml);+ files.push(tomlPath);+ console.log(` MIN_CLI_VERSION: ${oldMinCli} → ${version} (wrangler.toml)`);+}+const gitFiles = files.map((f) => f.replace(ROOT + "/", ""));execSync(`git add ${gitFiles.join(" ")}`, { cwd: ROOT, stdio: "inherit" });execSync(`git commit -m "release: v${version}"`, { cwd: ROOT, stdio: "inherit" });diff --git a/src/cli/daemon/execenv/context.ts b/src/cli/daemon/execenv/context.tsindex a6ed7a66d..e90900281 100644--- a/src/cli/daemon/execenv/context.ts+++ b/src/cli/daemon/execenv/context.ts@@ -99,7 +99,7 @@ Your alook agent id is '${task.agentId}'. remember this, most of alook cli willconst lines: string[] = [];if (alookAddr) lines.push(`- '${alookAddr}' (default, Alook platform address)`);for (const a of customAddrs) lines.push(`- '${a}' (custom IMAP/SMTP mailbox)`);- content += `Your email addresses:\n${lines.join("\n")}\n+ content += `\nYour email addresses:\n${lines.join("\n")}\n### Emails---