@owloops/browserbird 1.7.0 → 1.7.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +24 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -192,8 +192,8 @@ function unknownSubcommand(subcommand, command, validCommands) {
192
192
  /** @fileoverview ASCII banner displayed on daemon startup and in help text. */
193
193
  const pkg = createRequire(import.meta.url)("../package.json");
194
194
  const buildInfo = [];
195
- buildInfo.push(`commit: ${"ca88ac1b9f08761de2aaafc530e9a590794a626c".substring(0, 7)}`);
196
- buildInfo.push(`built: 2026-03-19T23:49:23+04:00`);
195
+ buildInfo.push(`commit: ${"15ead4a5a3d42d49a5b1c8a7bb3b4bc34d32c539".substring(0, 7)}`);
196
+ buildInfo.push(`built: 2026-03-20T00:08:17+04:00`);
197
197
  const buildString = buildInfo.length > 0 ? ` (${buildInfo.join(", ")})` : "";
198
198
  const VERSION = `browserbird ${pkg.version}${buildString}`;
199
199
  const BIRD = [
@@ -3107,13 +3107,34 @@ function buildCommand(options) {
3107
3107
  const oauthToken = process.env["CLAUDE_CODE_OAUTH_TOKEN"];
3108
3108
  const apiKey = process.env["ANTHROPIC_API_KEY"];
3109
3109
  const env = oauthToken ? { CLAUDE_CODE_OAUTH_TOKEN: oauthToken } : apiKey ? { ANTHROPIC_API_KEY: apiKey } : {};
3110
- env["CLAUDE_CONFIG_DIR"] = resolve(".browserbird", "claude");
3110
+ const configDir = resolve(".browserbird", "claude");
3111
+ ensureClaudeSettings(configDir);
3112
+ env["CLAUDE_CONFIG_DIR"] = configDir;
3111
3113
  return {
3112
3114
  binary: "claude",
3113
3115
  args,
3114
3116
  env
3115
3117
  };
3116
3118
  }
3119
+ const CLAUDE_SETTINGS = {
3120
+ enabledPlugins: {
3121
+ "lua-lsp@claude-plugins-official": true,
3122
+ "gopls-lsp@claude-plugins-official": true,
3123
+ "frontend-design@claude-plugins-official": true
3124
+ },
3125
+ alwaysThinkingEnabled: false,
3126
+ effortLevel: "high",
3127
+ fastMode: false
3128
+ };
3129
+ let settingsEnsured = false;
3130
+ function ensureClaudeSettings(configDir) {
3131
+ if (settingsEnsured) return;
3132
+ settingsEnsured = true;
3133
+ const settingsPath = resolve(configDir, "settings.json");
3134
+ if (existsSync(settingsPath)) return;
3135
+ mkdirSync(configDir, { recursive: true });
3136
+ writeFileSync(settingsPath, JSON.stringify(CLAUDE_SETTINGS, null, 2) + "\n");
3137
+ }
3117
3138
  /** Parses a single line of stream-json output into zero or more StreamEvents. */
3118
3139
  function parseStreamLine(line) {
3119
3140
  const trimmed = line.trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owloops/browserbird",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "AI agent orchestrator with a real browser, a cron scheduler, and a web dashboard",
5
5
  "type": "module",
6
6
  "bin": {