chore: fix lint/format and update changelog
Co-authored-by: ItzR3NO <ItzR3NO@users.noreply.github.com>
This commit is contained in:
@@ -21,7 +21,8 @@ Docs: https://docs.clawd.bot
|
|||||||
- **BREAKING:** `clawdbot plugins install <path>` now copies into `~/.clawdbot/extensions` (use `--link` to keep path-based loading).
|
- **BREAKING:** `clawdbot plugins install <path>` now copies into `~/.clawdbot/extensions` (use `--link` to keep path-based loading).
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
- Plugins: ship bundled plugins disabled by default, allow overrides by installed versions, and add bundled Antigravity + Gemini CLI OAuth + Copilot Proxy provider plugins. (#1066) — thanks @ItzR3NO.
|
- Plugins: ship bundled plugins disabled by default and allow overrides by installed versions. (#1066) — thanks @ItzR3NO.
|
||||||
|
- Plugins: add bundled Antigravity + Gemini CLI OAuth + Copilot Proxy provider plugins. (#1066) — thanks @ItzR3NO.
|
||||||
- Tools: improve `web_fetch` extraction using Readability (with fallback).
|
- Tools: improve `web_fetch` extraction using Readability (with fallback).
|
||||||
- Tools: add Firecrawl fallback for `web_fetch` when configured.
|
- Tools: add Firecrawl fallback for `web_fetch` when configured.
|
||||||
- Tools: send Chrome-like headers by default for `web_fetch` to improve extraction on bot-sensitive sites.
|
- Tools: send Chrome-like headers by default for `web_fetch` to improve extraction on bot-sensitive sites.
|
||||||
|
|||||||
@@ -331,11 +331,7 @@ export async function applyNonInteractiveAuthChoice(params: {
|
|||||||
return applyOpencodeZenConfig(nextConfig);
|
return applyOpencodeZenConfig(nextConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (authChoice === "oauth" || authChoice === "chutes" || authChoice === "openai-codex") {
|
||||||
authChoice === "oauth" ||
|
|
||||||
authChoice === "chutes" ||
|
|
||||||
authChoice === "openai-codex"
|
|
||||||
) {
|
|
||||||
runtime.error("OAuth requires interactive mode.");
|
runtime.error("OAuth requires interactive mode.");
|
||||||
runtime.exit(1);
|
runtime.exit(1);
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -86,11 +86,7 @@ export function formatTargetDisplay(params: {
|
|||||||
const display = params.display?.trim();
|
const display = params.display?.trim();
|
||||||
const kind =
|
const kind =
|
||||||
params.kind ??
|
params.kind ??
|
||||||
(lowered.startsWith("user:")
|
(lowered.startsWith("user:") ? "user" : lowered.startsWith("channel:") ? "group" : undefined);
|
||||||
? "user"
|
|
||||||
: lowered.startsWith("channel:")
|
|
||||||
? "group"
|
|
||||||
: undefined);
|
|
||||||
|
|
||||||
if (display) {
|
if (display) {
|
||||||
if (display.startsWith("#") || display.startsWith("@")) return display;
|
if (display.startsWith("#") || display.startsWith("@")) return display;
|
||||||
|
|||||||
@@ -98,14 +98,6 @@ function buildDeepgramCompatQuery(options?: {
|
|||||||
return Object.keys(query).length > 0 ? query : undefined;
|
return Object.keys(query).length > 0 ? query : undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
function mergeProviderQuery(
|
|
||||||
base: ProviderQuery | undefined,
|
|
||||||
incoming: ProviderQuery | undefined,
|
|
||||||
): ProviderQuery | undefined {
|
|
||||||
if (!base && !incoming) return undefined;
|
|
||||||
return { ...(base ?? {}), ...(incoming ?? {}) };
|
|
||||||
}
|
|
||||||
|
|
||||||
function normalizeDeepgramQueryKeys(query: ProviderQuery): ProviderQuery {
|
function normalizeDeepgramQueryKeys(query: ProviderQuery): ProviderQuery {
|
||||||
const normalized = { ...query };
|
const normalized = { ...query };
|
||||||
if ("detectLanguage" in normalized) {
|
if ("detectLanguage" in normalized) {
|
||||||
@@ -126,8 +118,8 @@ function resolveProviderQuery(params: {
|
|||||||
}): ProviderQuery | undefined {
|
}): ProviderQuery | undefined {
|
||||||
const { providerId, config, entry } = params;
|
const { providerId, config, entry } = params;
|
||||||
const mergedOptions = normalizeProviderQuery({
|
const mergedOptions = normalizeProviderQuery({
|
||||||
...(config?.providerOptions?.[providerId] ?? {}),
|
...config?.providerOptions?.[providerId],
|
||||||
...(entry.providerOptions?.[providerId] ?? {}),
|
...entry.providerOptions?.[providerId],
|
||||||
});
|
});
|
||||||
if (providerId !== "deepgram") {
|
if (providerId !== "deepgram") {
|
||||||
return mergedOptions;
|
return mergedOptions;
|
||||||
|
|||||||
@@ -239,11 +239,7 @@ describe("loadClawdbotPlugins", () => {
|
|||||||
|
|
||||||
it("prefers higher-precedence plugins with the same id", () => {
|
it("prefers higher-precedence plugins with the same id", () => {
|
||||||
const bundledDir = makeTempDir();
|
const bundledDir = makeTempDir();
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(path.join(bundledDir, "shadow.js"), "export default function () {}", "utf-8");
|
||||||
path.join(bundledDir, "shadow.js"),
|
|
||||||
"export default function () {}",
|
|
||||||
"utf-8",
|
|
||||||
);
|
|
||||||
process.env.CLAWDBOT_BUNDLED_PLUGINS_DIR = bundledDir;
|
process.env.CLAWDBOT_BUNDLED_PLUGINS_DIR = bundledDir;
|
||||||
|
|
||||||
const override = writePlugin({
|
const override = writePlugin({
|
||||||
|
|||||||
Reference in New Issue
Block a user