chore: prep 2026.1.14 npm release
This commit is contained in:
18
CHANGELOG.md
18
CHANGELOG.md
@@ -1,6 +1,6 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 2026.1.14 (unreleased)
|
## 2026.1.14
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
- Docs: clarify per-agent auth stores, sandboxed skill binaries, and elevated semantics.
|
- Docs: clarify per-agent auth stores, sandboxed skill binaries, and elevated semantics.
|
||||||
@@ -23,6 +23,11 @@
|
|||||||
- CLI/Docs: add per-command CLI doc pages and link them from `clawdbot <command> --help`.
|
- CLI/Docs: add per-command CLI doc pages and link them from `clawdbot <command> --help`.
|
||||||
- Browser: copy the installed Chrome extension path to clipboard after `clawdbot browser extension install/path`.
|
- Browser: copy the installed Chrome extension path to clipboard after `clawdbot browser extension install/path`.
|
||||||
- WhatsApp: add `channels.whatsapp.sendReadReceipts` to disable auto read receipts. (#882) — thanks @chrisrodz.
|
- WhatsApp: add `channels.whatsapp.sendReadReceipts` to disable auto read receipts. (#882) — thanks @chrisrodz.
|
||||||
|
- Usage: add MiniMax coding plan usage tracking.
|
||||||
|
- Auth: label Claude Code CLI auth options. (#915) — thanks @SeanZoR.
|
||||||
|
- Docs: standardize Claude Code CLI naming across docs and prompts. (follow-up to #915)
|
||||||
|
- Telegram: add message delete action in the message tool. (#903) — thanks @sleontenko.
|
||||||
|
- Config: add `channels.<provider>.configWrites` gating for channel-initiated config writes; migrate Slack channel IDs.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Gateway: forward termination signals to respawned CLI child processes to avoid orphaned systemd runs. (#933) — thanks @roshanasingh4.
|
- Gateway: forward termination signals to respawned CLI child processes to avoid orphaned systemd runs. (#933) — thanks @roshanasingh4.
|
||||||
@@ -50,17 +55,6 @@
|
|||||||
- Telegram: let control commands bypass per-chat sequentialization; always allow abort triggers.
|
- Telegram: let control commands bypass per-chat sequentialization; always allow abort triggers.
|
||||||
- Auto-reply: treat trailing `NO_REPLY` tokens as silent replies.
|
- Auto-reply: treat trailing `NO_REPLY` tokens as silent replies.
|
||||||
- Config: prevent partial config writes from clobbering unrelated settings (base hash guard + merge patch for connection saves).
|
- Config: prevent partial config writes from clobbering unrelated settings (base hash guard + merge patch for connection saves).
|
||||||
|
|
||||||
## 2026.1.14
|
|
||||||
|
|
||||||
### Changes
|
|
||||||
- Usage: add MiniMax coding plan usage tracking.
|
|
||||||
- Auth: label Claude Code CLI auth options. (#915) — thanks @SeanZoR.
|
|
||||||
- Docs: standardize Claude Code CLI naming across docs and prompts. (follow-up to #915)
|
|
||||||
- Telegram: add message delete action in the message tool. (#903) — thanks @sleontenko.
|
|
||||||
- Config: add `channels.<provider>.configWrites` gating for channel-initiated config writes; migrate Slack channel IDs.
|
|
||||||
|
|
||||||
### Fixes
|
|
||||||
- Sessions: return deep clones (`structuredClone`) so cached session entries can't be mutated. (#934) — thanks @ronak-guliani.
|
- Sessions: return deep clones (`structuredClone`) so cached session entries can't be mutated. (#934) — thanks @ronak-guliani.
|
||||||
- Heartbeat: keep `updatedAt` monotonic when restoring heartbeat sessions. (#934) — thanks @ronak-guliani.
|
- Heartbeat: keep `updatedAt` monotonic when restoring heartbeat sessions. (#934) — thanks @ronak-guliani.
|
||||||
- Agent: clear run context after CLI runs (`clearAgentRunContext`) to avoid runaway contexts. (#934) — thanks @ronak-guliani.
|
- Agent: clear run context after CLI runs (`clearAgentRunContext`) to avoid runaway contexts. (#934) — thanks @ronak-guliani.
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ type PackageJson = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function runPackDry(): PackResult[] {
|
function runPackDry(): PackResult[] {
|
||||||
const raw = execSync("npm pack --dry-run --json", {
|
const raw = execSync("npm pack --dry-run --json --ignore-scripts", {
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
stdio: ["ignore", "pipe", "pipe"],
|
stdio: ["ignore", "pipe", "pipe"],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -54,7 +54,10 @@ describe("browser extension install", () => {
|
|||||||
|
|
||||||
const program = new Command();
|
const program = new Command();
|
||||||
const browser = program.command("browser").option("--json", false);
|
const browser = program.command("browser").option("--json", false);
|
||||||
registerBrowserExtensionCommands(browser, (cmd) => cmd.parent?.opts?.() as { json?: boolean });
|
registerBrowserExtensionCommands(
|
||||||
|
browser,
|
||||||
|
(cmd) => cmd.parent?.opts?.() as { json?: boolean },
|
||||||
|
);
|
||||||
|
|
||||||
await program.parseAsync(["browser", "extension", "path"], { from: "user" });
|
await program.parseAsync(["browser", "extension", "path"], { from: "user" });
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ export function registerWakeCommand(program: Command) {
|
|||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/wake", "docs.clawd.bot/cli/wake")}\n`,
|
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/wake", "docs.clawd.bot/cli/wake")}\n`,
|
||||||
).action(async (opts: GatewayRpcOpts & { text?: string; mode?: string }) => {
|
)
|
||||||
|
.action(async (opts: GatewayRpcOpts & { text?: string; mode?: string }) => {
|
||||||
try {
|
try {
|
||||||
const result = await callGatewayFromCli(
|
const result = await callGatewayFromCli(
|
||||||
"wake",
|
"wake",
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ export function registerHooksCli(program: Command) {
|
|||||||
.description("Webhook helpers and hook-based integrations")
|
.description("Webhook helpers and hook-based integrations")
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/hooks", "docs.clawd.bot/cli/hooks")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/hooks", "docs.clawd.bot/cli/hooks")}\n`,
|
||||||
);
|
);
|
||||||
|
|
||||||
const gmail = hooks.command("gmail").description("Gmail Pub/Sub hooks (via gogcli)");
|
const gmail = hooks.command("gmail").description("Gmail Pub/Sub hooks (via gogcli)");
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ export function registerMemoryCli(program: Command) {
|
|||||||
.description("Memory search tools")
|
.description("Memory search tools")
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/memory", "docs.clawd.bot/cli/memory")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/memory", "docs.clawd.bot/cli/memory")}\n`,
|
||||||
);
|
);
|
||||||
|
|
||||||
memory
|
memory
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export function registerNodesCli(program: Command) {
|
|||||||
.description("Manage gateway-owned node pairing")
|
.description("Manage gateway-owned node pairing")
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/nodes", "docs.clawd.bot/cli/nodes")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/nodes", "docs.clawd.bot/cli/nodes")}\n`,
|
||||||
);
|
);
|
||||||
|
|
||||||
registerNodesStatusCommands(nodes);
|
registerNodesStatusCommands(nodes);
|
||||||
|
|||||||
@@ -68,7 +68,8 @@ ${theme.muted("Docs:")} ${formatDocsLink("/cli/agent", "docs.clawd.bot/cli/agent
|
|||||||
.description("Manage isolated agents (workspaces + auth + routing)")
|
.description("Manage isolated agents (workspaces + auth + routing)")
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/agents", "docs.clawd.bot/cli/agents")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/agents", "docs.clawd.bot/cli/agents")}\n`,
|
||||||
);
|
);
|
||||||
|
|
||||||
agents
|
agents
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ export function registerMaintenanceCommands(program: Command) {
|
|||||||
.description("Health checks + quick fixes for the gateway and channels")
|
.description("Health checks + quick fixes for the gateway and channels")
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/doctor", "docs.clawd.bot/cli/doctor")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/doctor", "docs.clawd.bot/cli/doctor")}\n`,
|
||||||
)
|
)
|
||||||
.option("--no-workspace-suggestions", "Disable workspace memory system suggestions", false)
|
.option("--no-workspace-suggestions", "Disable workspace memory system suggestions", false)
|
||||||
.option("--yes", "Accept defaults without prompting", false)
|
.option("--yes", "Accept defaults without prompting", false)
|
||||||
@@ -64,7 +65,8 @@ export function registerMaintenanceCommands(program: Command) {
|
|||||||
.description("Reset local config/state (keeps the CLI installed)")
|
.description("Reset local config/state (keeps the CLI installed)")
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/reset", "docs.clawd.bot/cli/reset")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/reset", "docs.clawd.bot/cli/reset")}\n`,
|
||||||
)
|
)
|
||||||
.option("--scope <scope>", "config|config+creds+sessions|full (default: interactive prompt)")
|
.option("--scope <scope>", "config|config+creds+sessions|full (default: interactive prompt)")
|
||||||
.option("--yes", "Skip confirmation prompts", false)
|
.option("--yes", "Skip confirmation prompts", false)
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ export function registerSetupCommand(program: Command) {
|
|||||||
.description("Initialize ~/.clawdbot/clawdbot.json and the agent workspace")
|
.description("Initialize ~/.clawdbot/clawdbot.json and the agent workspace")
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/setup", "docs.clawd.bot/cli/setup")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/setup", "docs.clawd.bot/cli/setup")}\n`,
|
||||||
)
|
)
|
||||||
.option(
|
.option(
|
||||||
"--workspace <dir>",
|
"--workspace <dir>",
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ Examples:
|
|||||||
)
|
)
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/status", "docs.clawd.bot/cli/status")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/status", "docs.clawd.bot/cli/status")}\n`,
|
||||||
)
|
)
|
||||||
.action(async (opts) => {
|
.action(async (opts) => {
|
||||||
const verbose = Boolean(opts.verbose || opts.debug);
|
const verbose = Boolean(opts.verbose || opts.debug);
|
||||||
@@ -71,7 +72,8 @@ Examples:
|
|||||||
.option("--debug", "Alias for --verbose", false)
|
.option("--debug", "Alias for --verbose", false)
|
||||||
.addHelpText(
|
.addHelpText(
|
||||||
"after",
|
"after",
|
||||||
() => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/health", "docs.clawd.bot/cli/health")}\n`,
|
() =>
|
||||||
|
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/health", "docs.clawd.bot/cli/health")}\n`,
|
||||||
)
|
)
|
||||||
.action(async (opts) => {
|
.action(async (opts) => {
|
||||||
const verbose = Boolean(opts.verbose || opts.debug);
|
const verbose = Boolean(opts.verbose || opts.debug);
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ import {
|
|||||||
type SessionEntry,
|
type SessionEntry,
|
||||||
saveSessionStore,
|
saveSessionStore,
|
||||||
} from "../config/sessions.js";
|
} from "../config/sessions.js";
|
||||||
import { clearAgentRunContext, emitAgentEvent, registerAgentRunContext } from "../infra/agent-events.js";
|
import {
|
||||||
|
clearAgentRunContext,
|
||||||
|
emitAgentEvent,
|
||||||
|
registerAgentRunContext,
|
||||||
|
} from "../infra/agent-events.js";
|
||||||
import { defaultRuntime, type RuntimeEnv } from "../runtime.js";
|
import { defaultRuntime, type RuntimeEnv } from "../runtime.js";
|
||||||
import { applyVerboseOverride } from "../sessions/level-overrides.js";
|
import { applyVerboseOverride } from "../sessions/level-overrides.js";
|
||||||
import { resolveSendPolicy } from "../sessions/send-policy.js";
|
import { resolveSendPolicy } from "../sessions/send-policy.js";
|
||||||
@@ -175,7 +179,8 @@ export async function agentCommand(
|
|||||||
|
|
||||||
// Persist explicit /command overrides to the session store when we have a key.
|
// Persist explicit /command overrides to the session store when we have a key.
|
||||||
if (sessionStore && sessionKey) {
|
if (sessionStore && sessionKey) {
|
||||||
const entry = sessionStore[sessionKey] ?? sessionEntry ?? { sessionId, updatedAt: Date.now() };
|
const entry = sessionStore[sessionKey] ??
|
||||||
|
sessionEntry ?? { sessionId, updatedAt: Date.now() };
|
||||||
const next: SessionEntry = { ...entry, sessionId, updatedAt: Date.now() };
|
const next: SessionEntry = { ...entry, sessionId, updatedAt: Date.now() };
|
||||||
if (thinkOverride) {
|
if (thinkOverride) {
|
||||||
if (thinkOverride === "off") delete next.thinkingLevel;
|
if (thinkOverride === "off") delete next.thinkingLevel;
|
||||||
@@ -213,7 +218,9 @@ export async function agentCommand(
|
|||||||
let provider = defaultProvider;
|
let provider = defaultProvider;
|
||||||
let model = defaultModel;
|
let model = defaultModel;
|
||||||
const hasAllowlist = agentCfg?.models && Object.keys(agentCfg.models).length > 0;
|
const hasAllowlist = agentCfg?.models && Object.keys(agentCfg.models).length > 0;
|
||||||
const hasStoredOverride = Boolean(sessionEntry?.modelOverride || sessionEntry?.providerOverride);
|
const hasStoredOverride = Boolean(
|
||||||
|
sessionEntry?.modelOverride || sessionEntry?.providerOverride,
|
||||||
|
);
|
||||||
const needsModelCatalog = hasAllowlist || hasStoredOverride;
|
const needsModelCatalog = hasAllowlist || hasStoredOverride;
|
||||||
let allowedModelKeys = new Set<string>();
|
let allowedModelKeys = new Set<string>();
|
||||||
let allowedModelCatalog: Awaited<ReturnType<typeof loadModelCatalog>> = [];
|
let allowedModelCatalog: Awaited<ReturnType<typeof loadModelCatalog>> = [];
|
||||||
|
|||||||
@@ -163,7 +163,6 @@ async function handleMissingSandboxImage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (built) return;
|
if (built) return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function maybeRepairSandboxImages(
|
export async function maybeRepairSandboxImages(
|
||||||
|
|||||||
@@ -4,9 +4,7 @@ export const GATEWAY_SYSTEMD_SERVICE_NAME = "clawdbot-gateway";
|
|||||||
export const GATEWAY_WINDOWS_TASK_NAME = "Clawdbot Gateway";
|
export const GATEWAY_WINDOWS_TASK_NAME = "Clawdbot Gateway";
|
||||||
export const GATEWAY_SERVICE_MARKER = "clawdbot";
|
export const GATEWAY_SERVICE_MARKER = "clawdbot";
|
||||||
export const GATEWAY_SERVICE_KIND = "gateway";
|
export const GATEWAY_SERVICE_KIND = "gateway";
|
||||||
export const LEGACY_GATEWAY_LAUNCH_AGENT_LABELS = [
|
export const LEGACY_GATEWAY_LAUNCH_AGENT_LABELS = ["com.steipete.clawdbot.gateway"];
|
||||||
"com.steipete.clawdbot.gateway",
|
|
||||||
];
|
|
||||||
export const LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES: string[] = [];
|
export const LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES: string[] = [];
|
||||||
export const LEGACY_GATEWAY_WINDOWS_TASK_NAMES: string[] = [];
|
export const LEGACY_GATEWAY_WINDOWS_TASK_NAMES: string[] = [];
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ function resolveTaskScriptPath(env: Record<string, string | undefined>): string
|
|||||||
return path.join(home, `.clawdbot${suffix}`, "gateway.cmd");
|
return path.join(home, `.clawdbot${suffix}`, "gateway.cmd");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function quoteCmdArg(value: string): string {
|
function quoteCmdArg(value: string): string {
|
||||||
if (!/[ \t"]/g.test(value)) return value;
|
if (!/[ \t"]/g.test(value)) return value;
|
||||||
return `"${value.replace(/"/g, '\\"')}"`;
|
return `"${value.replace(/"/g, '\\"')}"`;
|
||||||
|
|||||||
@@ -25,14 +25,10 @@ function ensureExperimentalWarningSuppressed(): boolean {
|
|||||||
process.env.CLAWDBOT_NODE_OPTIONS_READY = "1";
|
process.env.CLAWDBOT_NODE_OPTIONS_READY = "1";
|
||||||
process.env.NODE_OPTIONS = `${nodeOptions} ${EXPERIMENTAL_WARNING_FLAG}`.trim();
|
process.env.NODE_OPTIONS = `${nodeOptions} ${EXPERIMENTAL_WARNING_FLAG}`.trim();
|
||||||
|
|
||||||
const child = spawn(
|
const child = spawn(process.execPath, [...process.execArgv, ...process.argv.slice(1)], {
|
||||||
process.execPath,
|
|
||||||
[...process.execArgv, ...process.argv.slice(1)],
|
|
||||||
{
|
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
env: process.env,
|
env: process.env,
|
||||||
},
|
});
|
||||||
);
|
|
||||||
|
|
||||||
attachChildProcessBridge(child);
|
attachChildProcessBridge(child);
|
||||||
|
|
||||||
|
|||||||
@@ -76,9 +76,7 @@ describe("attachChildProcessBridge", () => {
|
|||||||
children.length = 0;
|
children.length = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
it(
|
it("forwards SIGTERM to the wrapped child", async () => {
|
||||||
"forwards SIGTERM to the wrapped child",
|
|
||||||
async () => {
|
|
||||||
const childPath = path.resolve(process.cwd(), "test/fixtures/child-process-bridge/child.js");
|
const childPath = path.resolve(process.cwd(), "test/fixtures/child-process-bridge/child.js");
|
||||||
|
|
||||||
const child = spawn(process.execPath, [childPath], {
|
const child = spawn(process.execPath, [childPath], {
|
||||||
@@ -109,7 +107,5 @@ describe("attachChildProcessBridge", () => {
|
|||||||
|
|
||||||
await new Promise((r) => setTimeout(r, 250));
|
await new Promise((r) => setTimeout(r, 250));
|
||||||
expect(await canConnect(port)).toBe(false);
|
expect(await canConnect(port)).toBe(false);
|
||||||
},
|
}, 20_000);
|
||||||
20_000,
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -69,7 +69,10 @@ export function getTelegramSequentialKey(ctx: {
|
|||||||
const chatId = msg?.chat?.id ?? ctx.chat?.id;
|
const chatId = msg?.chat?.id ?? ctx.chat?.id;
|
||||||
const rawText = msg?.text ?? msg?.caption;
|
const rawText = msg?.text ?? msg?.caption;
|
||||||
const botUsername = (ctx as { me?: { username?: string } }).me?.username;
|
const botUsername = (ctx as { me?: { username?: string } }).me?.username;
|
||||||
if (rawText && isControlCommandMessage(rawText, undefined, botUsername ? { botUsername } : undefined)) {
|
if (
|
||||||
|
rawText &&
|
||||||
|
isControlCommandMessage(rawText, undefined, botUsername ? { botUsername } : undefined)
|
||||||
|
) {
|
||||||
if (typeof chatId === "number") return `telegram:${chatId}:control`;
|
if (typeof chatId === "number") return `telegram:${chatId}:control`;
|
||||||
return "telegram:control";
|
return "telegram:control";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user