@companion-ai/feynman 0.2.11 → 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 +1 -1
- package/package.json +1 -1
- package/scripts/patch-embedded-pi.mjs +6 -8
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
|
|
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
|
@@ -363,15 +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
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
source = source.replace(
|
|
370
|
-
|
|
371
|
-
source = source.replaceAll("Authentication failed", "Login failed");
|
|
372
|
-
source = source.replace("You can close this window.", "You can close this tab.");
|
|
373
|
-
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;
|
|
374
371
|
}
|
|
372
|
+
if (changed) writeFileSync(oauthPagePath, source, "utf8");
|
|
375
373
|
}
|
|
376
374
|
|
|
377
375
|
const alphaHubAuthPath = findPackageRoot("@companion-ai/alpha-hub")
|