@companion-ai/feynman 0.2.10 → 0.2.12

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.
package/logo.mjs CHANGED
@@ -12,4 +12,4 @@ export const FEYNMAN_ASCII_LOGO = [
12
12
 
13
13
  export const FEYNMAN_ASCII_LOGO_TEXT = FEYNMAN_ASCII_LOGO.join("\n");
14
14
 
15
- export const FEYNMAN_LOGO_HTML = `<style>@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');.logo{width:auto!important;height:auto!important}</style><span style="font-family:'VT323',monospace;font-size:64px;letter-spacing:-0.05em;color:#10b981">feynman</span>`;
15
+ export const FEYNMAN_LOGO_HTML = `<style>@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');.logo{width:auto!important;height:auto!important;margin-bottom:16px!important}</style><span style="font-family:'VT323',monospace;font-size:48px;color:#10b981">feynman</span>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-ai/feynman",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Research-first CLI agent built on Pi and alphaXiv",
5
5
  "type": "module",
6
6
  "engines": {
@@ -363,12 +363,13 @@ const oauthPagePath = piAiRoot ? resolve(piAiRoot, "dist", "utils", "oauth", "oa
363
363
 
364
364
  if (oauthPagePath && existsSync(oauthPagePath)) {
365
365
  let source = readFileSync(oauthPagePath, "utf8");
366
- const piLogo = 'const LOGO_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800" aria-hidden="true"><path fill="#fff" fill-rule="evenodd" d="M165.29 165.29 H517.36 V400 H400 V517.36 H282.65 V634.72 H165.29 Z M282.65 282.65 V400 H400 V282.65 Z"/><path fill="#fff" d="M517.36 400 H634.72 V634.72 H517.36 Z"/></svg>`;';
367
- if (source.includes(piLogo)) {
368
- const feynmanLogo = `const LOGO_SVG = \`${FEYNMAN_LOGO_HTML}\`;`;
369
- source = source.replace(piLogo, feynmanLogo);
370
- writeFileSync(oauthPagePath, source, "utf8");
366
+ let changed = false;
367
+ const target = `const LOGO_SVG = \`${FEYNMAN_LOGO_HTML}\`;`;
368
+ if (!source.includes(target)) {
369
+ source = source.replace(/const LOGO_SVG = `[^`]*`;/, target);
370
+ changed = true;
371
371
  }
372
+ if (changed) writeFileSync(oauthPagePath, source, "utf8");
372
373
  }
373
374
 
374
375
  const alphaHubAuthPath = findPackageRoot("@companion-ai/alpha-hub")