@portkey-ai/hoot 0.5.0 → 0.6.0
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/.storybook/main.ts +20 -0
- package/.storybook/preview.ts +21 -0
- package/.storybook/vitest.setup.ts +7 -0
- package/dist/assets/faviconUtils-BuMtwVnm.js +1 -0
- package/dist/assets/index-BhYYiUcR.js +274 -0
- package/dist/assets/index-DCc4AkfG.css +1 -0
- package/dist/index.html +16 -23
- package/index.html +14 -21
- package/mcp-backend-server.js +180 -5
- package/package.json +17 -3
- package/vitest.shims.d.ts +1 -0
- package/.cursor/commands/push.md +0 -11
- package/dist/assets/index-BT3lROoM.js +0 -194
- package/dist/assets/index-qJfsobY2.css +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { StorybookConfig } from '@storybook/react-vite';
|
|
2
|
+
|
|
3
|
+
const config: StorybookConfig = {
|
|
4
|
+
"stories": [
|
|
5
|
+
"../src/**/*.mdx",
|
|
6
|
+
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
|
|
7
|
+
],
|
|
8
|
+
"addons": [
|
|
9
|
+
"@chromatic-com/storybook",
|
|
10
|
+
"@storybook/addon-docs",
|
|
11
|
+
"@storybook/addon-onboarding",
|
|
12
|
+
"@storybook/addon-a11y",
|
|
13
|
+
"@storybook/addon-vitest"
|
|
14
|
+
],
|
|
15
|
+
"framework": {
|
|
16
|
+
"name": "@storybook/react-vite",
|
|
17
|
+
"options": {}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export default config;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Preview } from '@storybook/react-vite'
|
|
2
|
+
|
|
3
|
+
const preview: Preview = {
|
|
4
|
+
parameters: {
|
|
5
|
+
controls: {
|
|
6
|
+
matchers: {
|
|
7
|
+
color: /(background|color)$/i,
|
|
8
|
+
date: /Date$/i,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
a11y: {
|
|
13
|
+
// 'todo' - show a11y violations in the test UI only
|
|
14
|
+
// 'error' - fail CI on a11y violations
|
|
15
|
+
// 'off' - skip a11y checks entirely
|
|
16
|
+
test: 'todo'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default preview;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
|
|
2
|
+
import { setProjectAnnotations } from '@storybook/react-vite';
|
|
3
|
+
import * as projectAnnotations from './preview';
|
|
4
|
+
|
|
5
|
+
// This is an important step to apply the right configuration when testing your stories.
|
|
6
|
+
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
|
|
7
|
+
setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const f=["/favicon.ico","/favicon.png","/favicon.svg","/favicon"];async function u(r){try{const c=new AbortController,n=setTimeout(()=>c.abort(),5e3),i=await fetch(r,{method:"GET",signal:c.signal});if(clearTimeout(n),!i.ok)return null;const e=await i.text(),a=/<link[^>]*rel=["'](?:shortcut )?icon["'][^>]*>/gi,o=e.match(a);if(o&&o.length>0){const s=o[0].match(/href=["']([^"']+)["']/i);if(s&&s[1]){let t=s[1];return t.startsWith("//")?t=`${new URL(r).protocol}${t}`:t.startsWith("/")?t=`${new URL(r).origin}${t}`:t.startsWith("http")||(t=`${new URL(r).origin}/${t}`),t}}return null}catch{return null}}async function h(r,c){const n=[];if(c)try{new URL(c),n.push(c)}catch{}if(!r)return n;try{const i=new URL(r),e=i.origin;for(const t of f)n.push(`${e}${t}`);const a=i.hostname.split(".");let o=null;if(a.length>2){const t=a.slice(-2).join(".");if(o=`${i.protocol}//${t}`,o!==e)for(const l of f)n.push(`${o}${l}`)}const s=await u(e);if(s&&!n.includes(s)&&n.push(s),o&&o!==e){const t=await u(o);t&&!n.includes(t)&&n.push(t)}}catch(i){console.warn("Error building favicon URL list:",i)}return n}export{h as getAllFaviconUrls};
|