Upload 229 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- assets/AbTestHypothesisGenerator-BO6IKWtE.js +1 -0
- assets/AdCopyGenerator-DU-VEUsu.js +1 -0
- assets/AiBrainstormingAssistant-4RwMcBMu.js +1 -0
- assets/AiCodeExplainer-CMtoBJot.js +11 -0
- assets/AiCodeMigrator-BHYBfHTj.js +7 -0
- assets/AiCodingChallenge-CgMj9YFg.js +1 -0
- assets/AiCommandCenter-CgdIDhf4.js +2 -0
- assets/AiCommitGenerator-DgbWfbhA.js +13 -0
- assets/AiDataAnonymization-Dg4Tlw27.js +12 -0
- assets/AiDataPrivacyImpact-Brehzig3.js +1 -0
- assets/AiDataTransformation-4GK31HLr.js +11 -0
- assets/AiDataVisualizationGeneration-CP_cWwTJ.js +5 -0
- assets/AiDrivenAdaptiveUiLayouts-C6z8OcIl.js +1 -0
- assets/AiDrivenApiClientGeneration-HJdOg6tg.js +1 -0
- assets/AiDrivenBackupStrategy-DCGEzS6E.js +1 -0
- assets/AiDrivenBiasDetection-rxP_gn69.js +1 -0
- assets/AiDrivenCodeComplexity-DH8xI9Gv.js +18 -0
- assets/AiDrivenCollaborativeDocumentEditing-DAVYYXW_.js +1 -0
- assets/AiDrivenConflictResolutionForMerges-DUcVCqOs.js +1 -0
- assets/AiDrivenCostOptimizationForCloud-CUl4e9xT.js +1 -0
- assets/AiDrivenCreativeRemixTool-CxNcSiWX.js +1 -0
- assets/AiDrivenDataMigration-Dw8KzojX.js +1 -0
- assets/AiDrivenFeedbackLoopForModelImprovement-CKx93F-z.js +1 -0
- assets/AiDrivenFileAccessAuditing-DCBPFNYD.js +7 -0
- assets/AiDrivenFileAccessPermissions-D9DZMsSp.js +1 -0
- assets/AiDrivenFileEncryptionRecommendations-CbdrsDkw.js +7 -0
- assets/AiDrivenFileIntegrityChecks-BSjTkLy4.js +1 -0
- assets/AiDrivenFileSystemAnomalyDetection-Li38_kIw.js +1 -0
- assets/AiDrivenFileSystemHealthCheck-D_Mjdw6l.js +1 -0
- assets/AiDrivenFileSystemPerformanceBenchmarking-BM1iDORI.js +1 -0
- assets/AiDrivenGenerate3dModel-DVWt15-f.js +1 -0
- assets/AiDrivenLearningPathSuggestions-fflpelaT.js +1 -0
- assets/AiDrivenMeetingAgendaGeneration-kgDLpOfE.js +1 -0
- assets/AiDrivenPerformanceBottleneckId-rRTf5llv.js +17 -0
- assets/AiDrivenPrivacyAdvisorForFileSharing-Q6ODwaqz.js +1 -0
- assets/AiDrivenProjectBudgetEstimation-Dj0UitzZ.js +1 -0
- assets/AiDrivenProjectRisk-CMtsvus_.js +1 -0
- assets/AiDrivenPromptEngineeringAssistant-DXvEvmzg.js +1 -0
- assets/AiDrivenResourceOptimization-DVbDFxrS.js +1 -0
- assets/AiDrivenTeamCommunicationOptimization-BlUOH55k.js +1 -0
- assets/AiDrivenTimeManagementSuggestions-1gS1wNLa.js +7 -0
- assets/AiDrivenTutorialOnboarding-YoB0Osh5.js +1 -0
- assets/AiDrivenZenModeCustomization-DnsRh6YO.js +1 -0
- assets/AiEmailDraftGenerator-B0YzdJlx.js +1 -0
- assets/AiEthicsStatementDrafter-CgBet2EE.js +1 -0
- assets/AiFeatureBuilder-CBA45PG1.js +7 -0
- assets/AiImageGenerator-CGyLU5mn.js +1 -0
- assets/AiIncidentPostmortemGenerator-DK5gW7de.js +1 -0
- assets/AiModelPerformanceMonitoring-fQcqghjF.js +1 -0
- assets/AiModelVersioningAndRollback-CliVFWUG.js +1 -0
assets/AbTestHypothesisGenerator-BO6IKWtE.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as s,c9 as f,j as e,B as p,L as x,M as b}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const y=()=>{const[r,m]=s.useState("The color of the main call-to-action button on the homepage."),[n,l]=s.useState(""),[a,c]=s.useState(!1),[i,o]=s.useState(""),u=s.useCallback(async()=>{if(!r.trim()){o("Please describe the feature to test.");return}c(!0),o(""),l("");try{const t=f(r);let d="";for await(const h of t)d+=h,l(d)}catch(t){o(t instanceof Error?t.message:"An unknown error occurred.")}finally{c(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(p,{}),e.jsx("span",{className:"ml-3",children:"A/B Test Hypothesis Generator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Input a feature to get AI-generated A/B test ideas."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"feature-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Feature or Element to Test"}),e.jsx("textarea",{id:"feature-input",value:r,onChange:t=>m(t.target.value),className:"w-full p-3 bg-surface border border-border rounded-md resize-y",rows:3}),e.jsx("button",{onClick:u,disabled:a,className:"btn-primary mt-2",children:a?e.jsx(x,{}):"Generate Hypotheses"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(x,{})}),i&&e.jsx("p",{className:"text-red-500",children:i}),n&&e.jsx(b,{content:n})]})]})]})};export{y as AbTestHypothesisGenerator};
|
assets/AdCopyGenerator-DU-VEUsu.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as s,co as f,j as e,cd as h,L as x,M as j}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const g=()=>{const[t,p]=s.useState("A high-performance laptop for software developers."),[n,c]=s.useState(""),[a,l]=s.useState(!1),[d,o]=s.useState(""),m=s.useCallback(async()=>{if(!t.trim()){o("Please describe the product.");return}l(!0),o(""),c("");try{const r=f(t);let i="";for await(const u of r)i+=u,c(i)}catch(r){o(r instanceof Error?r.message:"An unknown error occurred.")}finally{l(!1)}},[t]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(h,{}),e.jsx("span",{className:"ml-3",children:"Ad Copy Generator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Generate ad copy variations for Google, Facebook, etc."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"product-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Product Description"}),e.jsx("textarea",{id:"product-input",value:t,onChange:r=>p(r.target.value),className:"w-full p-3 bg-surface border border-border rounded-md resize-y",rows:3}),e.jsx("button",{onClick:m,disabled:a,className:"btn-primary mt-2",children:a?e.jsx(x,{}):"Generate Ad Copy"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(x,{})}),d&&e.jsx("p",{className:"text-red-500",children:d}),n&&e.jsx(j,{content:n})]})]})]})};export{g as AdCopyGenerator};
|
assets/AiBrainstormingAssistant-4RwMcBMu.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r,bj as f,j as e,S as u,L as d}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const j=()=>{const[a,x]=r.useState("new features for a file manager"),[l,i]=r.useState([]),[t,o]=r.useState(!1),[c,n]=r.useState(""),m=r.useCallback(async()=>{if(!a.trim()){n("Please enter a topic to brainstorm.");return}o(!0),n(""),i([]);try{const s=await f(a);i(s)}catch(s){n(s instanceof Error?s.message:"An unknown error occurred.")}finally{o(!1)}},[a]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(u,{}),e.jsx("span",{className:"ml-3",children:"AI Brainstorming Assistant"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Provide a topic and get a list of creative ideas."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("input",{type:"text",value:a,onChange:s=>x(s.target.value),placeholder:"e.g., app ideas for pet owners",className:"flex-grow p-3 bg-surface border border-border rounded-md"}),e.jsx("button",{onClick:m,disabled:t,className:"btn-primary px-6 py-3",children:t?e.jsx(d,{}):"Generate Ideas"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[t&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(d,{})}),c&&e.jsx("p",{className:"text-red-500",children:c}),l.length>0&&e.jsx("ul",{className:"list-disc list-inside space-y-2",children:l.map((s,p)=>e.jsx("li",{children:s},p))})]})]})]})};export{j as AiBrainstormingAssistant};
|
assets/AiCodeExplainer-CMtoBJot.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r,e as w,j as e,f as C,L as j,M as S}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const k=`const bubbleSort = (arr) => {
|
| 2 |
+
for (let i = 0; i < arr.length; i++) {
|
| 3 |
+
for (let j = 0; j < arr.length - i - 1; j++) {
|
| 4 |
+
if (arr[j] > arr[j + 1]) {
|
| 5 |
+
[arr[j], arr[j + 1]] = [arr[j + 1], arr[j]];
|
| 6 |
+
}
|
| 7 |
+
}
|
| 8 |
+
}
|
| 9 |
+
return arr;
|
| 10 |
+
};`,L=n=>n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\b(const|let|var|function|return|if|for|=>|import|from|export|default)\b/g,'<span class="text-accent">$1</span>').replace(/(\`|'|")(.*?)(\`|'|")/g,'<span class="text-green-400">$1$2$3</span>').replace(/(\/\/.*)/g,'<span class="text-text-secondary/70 italic">$1</span>').replace(/(\{|\}|\(|\)|\[|\])/g,'<span class="text-text-secondary">$1</span>'),E=({initialCode:n})=>{const[l,p]=r.useState(n||k),[t,u]=r.useState(null),[c,f]=r.useState(!1),[d,x]=r.useState(""),[h,g]=r.useState("summary"),o=r.useRef(null),i=r.useRef(null),m=r.useCallback(async s=>{if(!s.trim()){x("Please enter some code to explain.");return}f(!0),x(""),u(null),g("summary");try{const a=await w(s);u(a)}catch(a){const v=a instanceof Error?a.message:"An unknown error occurred.";x(`Failed to get explanation: ${v}`)}finally{f(!1)}},[]);r.useEffect(()=>{n&&(p(n),m(n))},[n,m]);const y=()=>{i.current&&o.current&&(i.current.scrollTop=o.current.scrollTop,i.current.scrollLeft=o.current.scrollLeft)},b=r.useMemo(()=>L(l),[l]),N=()=>{if(!t)return null;switch(h){case"summary":return e.jsx(S,{content:t.summary});case"lineByLine":return e.jsx("div",{className:"space-y-3",children:t.lineByLine.map((s,a)=>e.jsxs("div",{className:"p-3 bg-background/50 rounded-md border border-border",children:[e.jsxs("p",{className:"font-mono text-xs text-primary mb-1",children:["Lines: ",s.lines]}),e.jsx("p",{className:"text-sm",children:s.explanation})]},a))});case"complexity":return e.jsxs("div",{children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Time Complexity:"})," ",e.jsx("span",{className:"font-mono text-warning",children:t.complexity.time})]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Space Complexity:"})," ",e.jsx("span",{className:"font-mono text-warning",children:t.complexity.space})]})]});case"suggestions":return e.jsx("ul",{className:"list-disc list-inside space-y-2",children:t.suggestions.map((s,a)=>e.jsx("li",{children:s},a))})}};return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6 flex-shrink-0",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(C,{}),e.jsx("span",{className:"ml-3",children:"AI Code Explainer"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Get a detailed, structured analysis of any code snippet."})]}),e.jsxs("div",{className:"flex-grow grid grid-cols-1 md:grid-cols-2 gap-6 min-h-0",children:[e.jsxs("div",{className:"flex flex-col min-h-0",children:[e.jsx("label",{htmlFor:"code-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Your Code"}),e.jsxs("div",{className:"relative flex-grow bg-surface border border-border rounded-md focus-within:ring-2 focus-within:ring-primary overflow-hidden",children:[e.jsx("textarea",{ref:o,id:"code-input",value:l,onChange:s=>p(s.target.value),onScroll:y,placeholder:"Paste your code here...",spellCheck:"false",className:"absolute inset-0 w-full h-full p-4 bg-transparent resize-none font-mono text-sm text-transparent caret-primary outline-none z-10"}),e.jsx("pre",{ref:i,"aria-hidden":"true",className:"absolute inset-0 w-full h-full p-4 font-mono text-sm text-text-primary pointer-events-none z-0 whitespace-pre-wrap overflow-auto no-scrollbar",dangerouslySetInnerHTML:{__html:b+`
|
| 11 |
+
`}})]}),e.jsx("div",{className:"mt-4 flex-shrink-0",children:e.jsx("button",{onClick:()=>m(l),disabled:c,className:"btn-primary w-full flex items-center justify-center px-6 py-3",children:c?e.jsx(j,{}):"Analyze Code"})})]}),e.jsxs("div",{className:"flex flex-col min-h-0",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"AI Analysis"}),e.jsxs("div",{className:"relative flex-grow flex flex-col bg-surface/50 border border-border rounded-md overflow-hidden",children:[e.jsx("div",{className:"flex-shrink-0 flex border-b border-border",children:["summary","lineByLine","complexity","suggestions"].map(s=>e.jsx("button",{onClick:()=>g(s),disabled:!t,className:`px-4 py-2 text-sm font-medium capitalize transition-colors ${h===s?"bg-background text-primary font-semibold border-b-2 border-primary":"text-text-secondary hover:bg-surface-hover disabled:text-text-secondary/50"}`,children:s.replace(/([A-Z])/g," $1")},s))}),e.jsxs("div",{className:"p-4 flex-grow overflow-y-auto",children:[c&&e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx(j,{})}),d&&e.jsx("p",{className:"text-danger",children:d}),t&&!c&&N(),!c&&!t&&!d&&e.jsx("div",{className:"text-text-secondary h-full flex items-center justify-center",children:"The analysis will appear here."})]})]})]})]})]})};export{E as AiCodeExplainer};
|
assets/AiCodeMigrator-BHYBfHTj.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as s,a3 as L,j as e,a4 as A,L as w,M}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const k=["SASS","CSS","JavaScript","TypeScript","Python","Go","React","Vue","Angular","Tailwind CSS"],E=`// SASS
|
| 2 |
+
$primary-color: #333;
|
| 3 |
+
|
| 4 |
+
body {
|
| 5 |
+
color: $primary-color;
|
| 6 |
+
font-family: sans-serif;
|
| 7 |
+
}`,R=({inputCode:a,fromLang:o,toLang:l})=>{const[g,h]=s.useState(a||E),[x,p]=s.useState(""),[j,S]=s.useState(o||"SASS"),[b,y]=s.useState(l||"CSS"),[n,N]=s.useState(!1),[m,u]=s.useState(""),f=s.useCallback(async(t,i,r)=>{if(!t.trim()){u("Please enter some code to migrate.");return}N(!0),u(""),p("");try{const c=L(t,i,r);let d="";for await(const C of c)d+=C,p(d)}catch(c){const d=c instanceof Error?c.message:"An unknown error occurred.";u(`Failed to migrate code: ${d}`)}finally{N(!1)}},[]);s.useEffect(()=>{a&&o&&l&&(h(a),S(o),y(l),f(a,o,l))},[a,o,l,f]);const v=({value:t,onChange:i})=>e.jsx("select",{value:t,onChange:r=>i(r.target.value),className:"w-full px-3 py-2 rounded-md bg-surface border border-border",children:k.map(r=>e.jsx("option",{value:r,children:r},r))});return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(A,{}),e.jsx("span",{className:"ml-3",children:"AI Code Migrator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Translate code between languages, frameworks, and syntax styles."})]}),e.jsxs("div",{className:"flex-grow flex flex-col min-h-0",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"mb-2",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary",children:"From:"}),e.jsx(v,{value:j,onChange:S})]}),e.jsx("textarea",{value:g,onChange:t=>h(t.target.value),placeholder:"Paste your source code here...",className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none font-mono text-sm"})]}),e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"mb-2",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary",children:"To:"}),e.jsx(v,{value:b,onChange:y})]}),e.jsxs("div",{className:"flex-grow p-1 bg-background border border-border rounded-md overflow-y-auto",children:[n&&e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx(w,{})}),m&&e.jsx("p",{className:"p-4 text-red-500",children:m}),x&&!n&&e.jsx(M,{content:x}),!n&&!x&&!m&&e.jsx("div",{className:"text-text-secondary h-full flex items-center justify-center",children:"Migrated code will appear here."})]})]})]}),e.jsx("button",{onClick:()=>f(g,j,b),disabled:n,className:"btn-primary mt-4 w-full max-w-sm mx-auto flex items-center justify-center px-6 py-3",children:n?e.jsx(w,{}):"Migrate Code"})]})]})};export{R as AiCodeMigrator};
|
assets/AiCodingChallenge-CgMj9YFg.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as t,Y as f,j as e,B as h,L as x,M as u}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const p=()=>{const[a,c]=t.useState(""),[s,o]=t.useState(!1),[l,i]=t.useState(""),d=t.useCallback(async()=>{o(!0),i(""),c("");try{const r=f(null);let n="";for await(const m of r)n+=m,c(n)}catch(r){const n=r instanceof Error?r.message:"An unknown error occurred.";i(`Failed to generate challenge: ${n}`)}finally{o(!1)}},[]);return t.useEffect(()=>{d()},[]),e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6 flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(h,{}),e.jsx("span",{className:"ml-3",children:"AI Coding Challenge Generator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Generate a unique coding problem to test your skills."})]}),e.jsx("button",{onClick:d,disabled:s,className:"btn-primary flex items-center justify-center px-6 py-3",children:s?e.jsx(x,{}):"Generate New Challenge"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-surface/50 border border-border rounded-md overflow-y-auto",children:[s&&e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx(x,{})}),l&&e.jsx("p",{className:"text-danger",children:l}),a&&!s&&e.jsx(u,{content:a}),!s&&!a&&!l&&e.jsx("div",{className:"text-text-secondary h-full flex items-center justify-center",children:'Click "Generate New Challenge" to start.'})]})]})};export{p as AiCodingChallenge};
|
assets/AiCommandCenter-CgdIDhf4.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{u as j,r as l,g as N,R as y,T as r,l as C,j as e,C as T,L as E}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";import{F as R}from"./taxonomyService-3ceLMdQG.js";const S=[{name:"navigateTo",description:"Navigates to a specific feature page.",parameters:{type:r.OBJECT,properties:{featureId:{type:r.STRING,description:"The ID of the feature to navigate to.",enum:y.map(t=>t.id)}},required:["featureId"]}},{name:"runFeatureWithInput",description:"Navigates to a feature and passes initial data to it.",parameters:{type:r.OBJECT,properties:{featureId:{type:r.STRING,description:"The ID of the feature to run.",enum:y.map(t=>t.id)},props:{type:r.OBJECT,description:"An object containing the initial properties for the feature, based on its required inputs.",properties:{initialCode:{type:r.STRING},initialPrompt:{type:r.STRING},beforeCode:{type:r.STRING},afterCode:{type:r.STRING},logInput:{type:r.STRING},diff:{type:r.STRING},codeInput:{type:r.STRING},jsonInput:{type:r.STRING}}}},required:["featureId","props"]}}],w=R.map(t=>`- ${t.name} (${t.id}): ${t.description} Inputs: ${t.inputs}`).join(`
|
| 2 |
+
`),m=({text:t,onClick:n})=>e.jsx("button",{onClick:()=>n(t),className:"px-3 py-1.5 bg-surface/80 border border-border rounded-full text-xs text-text-secondary hover:bg-surface-hover transition-colors",children:t}),G=({voiceCommand:t})=>{const{dispatch:n}=j(),[c,p]=l.useState(""),[d,h]=l.useState(!1),[g,o]=l.useState(""),i=l.useCallback(async s=>{if(s.trim()){h(!0),o("");try{const a=await N(s,S,w);if(a.functionCalls&&a.functionCalls.length>0){const b=a.functionCalls[0],{name:x,args:f}=b;switch(o(`Understood! Executing command: ${x}`),x){case"navigateTo":n({type:"LAUNCH_FEATURE",payload:{featureId:f.featureId}});break;case"runFeatureWithInput":n({type:"LAUNCH_FEATURE",payload:{featureId:f.featureId,props:f.props}});break;default:o(`Unknown command: ${x}`)}p("")}else o(a.text)}catch(a){C(a,{prompt:s}),o(a instanceof Error?a.message:"An unknown error occurred.")}finally{h(!1)}}},[n]);l.useEffect(()=>{t&&(p(t),i(t))},[t,i]);const I=s=>{s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),i(c))},u=s=>{p(s),i(s)};return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6 text-center",children:[e.jsxs("h1",{className:"text-4xl font-extrabold tracking-tight flex items-center justify-center",children:[e.jsx(T,{}),e.jsx("span",{className:"ml-3",children:"AI Command Center"})]}),e.jsx("p",{className:"mt-2 text-lg text-text-secondary",children:"What would you like to do?"})]}),e.jsxs("div",{className:"flex-grow flex flex-col justify-end max-w-3xl w-full mx-auto",children:[g&&e.jsx("div",{className:"mb-4 p-4 bg-surface/50 rounded-lg text-text-primary border border-border",children:e.jsxs("p",{children:[e.jsx("strong",{children:"AI:"})," ",g]})}),e.jsxs("div",{className:"relative",children:[e.jsx("textarea",{value:c,onChange:s=>p(s.target.value),onKeyDown:I,disabled:d,placeholder:'Try "explain this code: const a = 1;" or "open the theme designer"',className:"w-full p-4 pr-28 rounded-lg bg-surface/80 border border-border focus:ring-2 focus:ring-primary focus:outline-none resize-none shadow-sm",rows:2}),e.jsx("button",{onClick:()=>i(c),disabled:d,className:"btn-primary absolute right-3 top-1/2 -translate-y-1/2 px-4 py-2",children:d?e.jsx(E,{}):"Send"})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 mt-4",children:[e.jsx(m,{text:"Open Theme Designer",onClick:u}),e.jsx(m,{text:"Generate a commit for a bug fix",onClick:u}),e.jsx(m,{text:"Create a regex for email validation",onClick:u})]}),e.jsx("p",{className:"text-xs text-text-secondary text-center mt-2",children:"Press Enter to send, Shift+Enter for new line."})]})]})};export{G as AiCommandCenter};
|
assets/AiCommitGenerator-DgbWfbhA.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as s,n as b,j as e,p as j,L as p}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const y=`diff --git a/src/components/Button.tsx b/src/components/Button.tsx
|
| 2 |
+
index 1b2c3d4..5e6f7g8 100644
|
| 3 |
+
--- a/src/components/Button.tsx
|
| 4 |
+
+++ b/src/components/Button.tsx
|
| 5 |
+
@@ -1,7 +1,7 @@
|
| 6 |
+
import React from 'react';
|
| 7 |
+
|
| 8 |
+
interface ButtonProps {
|
| 9 |
+
- text: string;
|
| 10 |
+
+ label: string;
|
| 11 |
+
onClick: () => void;
|
| 12 |
+
}
|
| 13 |
+
`,w=({diff:t})=>{const[m,x]=s.useState(t||y),[r,f]=s.useState(""),[a,u]=s.useState(!1),[c,i]=s.useState(""),d=s.useCallback(async n=>{if(!n.trim()){i("Please paste a diff to generate a message.");return}u(!0),i(""),f("");try{const o=b(n);let l="";for await(const h of o)l+=h,f(l)}catch(o){const l=o instanceof Error?o.message:"An unknown error occurred.";i(`Failed to generate message: ${l}`)}finally{u(!1)}},[]);s.useEffect(()=>{t&&(x(t),d(t))},[t,d]);const g=()=>{navigator.clipboard.writeText(r)};return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(j,{}),e.jsx("span",{className:"ml-3",children:"AI Commit Message Generator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Paste your diff and let Gemini craft the perfect commit message."})]}),e.jsxs("div",{className:"flex-grow grid grid-cols-1 lg:grid-cols-2 gap-6 h-full overflow-hidden",children:[e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx("label",{htmlFor:"diff-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Git Diff"}),e.jsx("textarea",{id:"diff-input",value:m,onChange:n=>x(n.target.value),placeholder:"Paste your git diff here...",className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none font-mono text-sm text-text-secondary focus:ring-2 focus:ring-primary focus:outline-none"}),e.jsx("button",{onClick:()=>d(m),disabled:a,className:"btn-primary mt-4 w-full flex items-center justify-center px-6 py-3",children:a?e.jsx(p,{}):"Generate Commit Message"})]}),e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Generated Message"}),e.jsxs("div",{className:"relative flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&!r&&e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx(p,{})}),c&&e.jsx("p",{className:"text-danger",children:c}),r&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:g,className:"absolute top-2 right-2 px-2 py-1 bg-surface-hover hover:bg-border rounded-md text-xs",children:"Copy"}),e.jsx("pre",{className:"whitespace-pre-wrap font-sans text-text-primary",children:r})]}),!a&&!r&&!c&&e.jsx("div",{className:"text-text-secondary h-full flex items-center justify-center",children:"The commit message will appear here."})]})]})]})]})};export{w as AiCommitGenerator};
|
assets/AiDataAnonymization-Dg4Tlw27.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as t,b7 as u,j as e,aL as p,L as d}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const j=`
|
| 2 |
+
From: John Doe (john.doe@example.com)
|
| 3 |
+
To: Jane Smith
|
| 4 |
+
Date: 2024-07-15
|
| 5 |
+
|
| 6 |
+
Hi Jane,
|
| 7 |
+
|
| 8 |
+
Please process invoice #12345 for our client, Acme Corp. Their contact is Robert Paulson at 555-123-4567.
|
| 9 |
+
|
| 10 |
+
Thanks,
|
| 11 |
+
John
|
| 12 |
+
`,g=()=>{const[a,m]=t.useState(j),[o,l]=t.useState(""),[r,i]=t.useState(!1),[c,n]=t.useState(""),h=t.useCallback(async()=>{if(!a.trim()){n("Please provide text to anonymize.");return}i(!0),n(""),l("");try{const s=u(a);let x="";for await(const f of s)x+=f,l(x)}catch(s){n(s instanceof Error?s.message:"An unknown error occurred.")}finally{i(!1)}},[a]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(p,{}),e.jsx("span",{className:"ml-3",children:"AI Data Anonymization"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Redact Personally Identifiable Information (PII) from text."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"text-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Original Text"}),e.jsx("textarea",{id:"text-input",value:a,onChange:s=>m(s.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none"}),e.jsx("button",{onClick:h,disabled:r,className:"btn-primary mt-4 w-full",children:r?e.jsx(d,{}):"Anonymize Text"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Anonymized Text"}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[r&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(d,{})}),c&&e.jsx("p",{className:"text-red-500",children:c}),o&&e.jsx("pre",{className:"whitespace-pre-wrap",children:o})]})]})]})]})};export{g as AiDataAnonymization};
|
assets/AiDataPrivacyImpact-Brehzig3.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as t,aT as f,j as e,aL as j,L as m,M as g}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const v=()=>{const[a,p]=t.useState("A new feature that collects user location data to provide local weather recommendations."),[o,c]=t.useState(""),[r,i]=t.useState(!1),[l,n]=t.useState(""),x=t.useCallback(async()=>{if(!a.trim()){n("Please describe the data handling process.");return}i(!0),n(""),c("");try{const s=`Generate a Data Privacy Impact Assessment (PIA) in markdown format for the following process. Identify potential privacy risks and suggest mitigations. Process: "${a}"`,h=f(s,"You are a data privacy and compliance expert.");let d="";for await(const u of h)d+=u,c(d)}catch(s){n(s instanceof Error?s.message:"An unknown error occurred.")}finally{i(!1)}},[a]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(j,{}),e.jsx("span",{className:"ml-3",children:"AI Data Privacy Impact Assessment"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Assess the privacy impact of data handling within a project."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"description-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Data Handling Process Description"}),e.jsx("textarea",{id:"description-input",value:a,onChange:s=>p(s.target.value),className:"w-full p-3 bg-surface border border-border rounded-md resize-y",rows:4}),e.jsx("button",{onClick:x,disabled:r,className:"btn-primary mt-2",children:r?e.jsx(m,{}):"Assess Privacy Impact"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[r&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),l&&e.jsx("p",{className:"text-red-500",children:l}),o&&e.jsx(g,{content:o})]})]})]})};export{v as AiDataPrivacyImpact};
|
assets/AiDataTransformation-4GK31HLr.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as a,aT as b,j as e,bu as j,L as m}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const N=`[
|
| 2 |
+
{"id": 1, "firstName": "John", "lastName": "Doe", "age": 30},
|
| 3 |
+
{"id": 2, "firstName": "Jane", "lastName": "Smith", "age": 25}
|
| 4 |
+
]`,w=()=>{const[s,x]=a.useState(N),[r,u]=a.useState('Combine firstName and lastName into a single "fullName" field.'),[f,l]=a.useState(""),[n,i]=a.useState(!1),[c,o]=a.useState(""),p=a.useCallback(async()=>{if(!s.trim()||!r.trim()){o("Please provide both input data and a transformation description.");return}i(!0),o(""),l("");try{const t=`Transform the following data based on the instruction. Only output the transformed data.
|
| 5 |
+
|
| 6 |
+
Instruction: "${r}"
|
| 7 |
+
|
| 8 |
+
Input Data:
|
| 9 |
+
\`\`\`json
|
| 10 |
+
${s}
|
| 11 |
+
\`\`\``,h=b(t,"You are a data transformation engine.");let d="";for await(const g of h)d+=g,l(d.replace(/^```(json)?\n|```$/g,""))}catch(t){o(t instanceof Error?t.message:"An unknown error occurred.")}finally{i(!1)}},[s,r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(j,{}),e.jsx("span",{className:"ml-3",children:"AI Data Transformation"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Generate code for complex data transformations."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"input-data",className:"text-sm font-medium text-text-secondary mb-2",children:"Input Data"}),e.jsx("textarea",{id:"input-data",value:s,onChange:t=>x(t.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none font-mono text-sm"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Output Data"}),e.jsxs("pre",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto whitespace-pre-wrap font-mono text-sm",children:[n?e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}):f,c&&e.jsx("p",{className:"text-red-500",children:c})]})]})]}),e.jsxs("div",{className:"mt-4 flex items-center gap-4",children:[e.jsx("input",{type:"text",value:r,onChange:t=>u(t.target.value),placeholder:"Describe transformation...",className:"flex-grow p-3 bg-surface border border-border rounded-md"}),e.jsx("button",{onClick:p,disabled:n,className:"btn-primary px-6 py-3",children:n?e.jsx(m,{}):"Transform"})]})]})};export{w as AiDataTransformation};
|
assets/AiDataVisualizationGeneration-CP_cWwTJ.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as t,b2 as b,j as e,ac as g,L as x,M as j}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const N=`[
|
| 2 |
+
{"month": "January", "sales": 65},
|
| 3 |
+
{"month": "February", "sales": 59},
|
| 4 |
+
{"month": "March", "sales": 80}
|
| 5 |
+
]`,w=()=>{const[s,u]=t.useState(N),[r,p]=t.useState("a bar chart showing sales per month"),[l,d]=t.useState(""),[n,i]=t.useState(!1),[c,o]=t.useState(""),h=t.useCallback(async()=>{if(!s.trim()||!r.trim()){o("Please provide both data and a description.");return}i(!0),o(""),d("");try{const a=b(s,r);let m="";for await(const f of a)m+=f,d(m)}catch(a){o(a instanceof Error?a.message:"An unknown error occurred.")}finally{i(!1)}},[s,r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(g,{}),e.jsx("span",{className:"ml-3",children:"AI Data Visualization Generator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Provide raw data and let AI generate visualization code."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"data-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Data (JSON)"}),e.jsx("textarea",{id:"data-input",value:s,onChange:a=>u(a.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none font-mono text-sm"}),e.jsx("label",{htmlFor:"prompt-input",className:"text-sm font-medium text-text-secondary my-2",children:"Description"}),e.jsx("input",{id:"prompt-input",type:"text",value:r,onChange:a=>p(a.target.value),className:"w-full p-2 bg-surface border border-border rounded-md"}),e.jsx("button",{onClick:h,disabled:n,className:"btn-primary mt-4 w-full",children:n?e.jsx(x,{}):"Generate Chart Code"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Generated Code"}),e.jsxs("div",{className:"flex-grow p-1 bg-background border border-border rounded-md overflow-y-auto",children:[n&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(x,{})}),c&&e.jsx("p",{className:"p-4 text-red-500",children:c}),l&&e.jsx(j,{content:l})]})]})]})]})};export{w as AiDataVisualizationGeneration};
|
assets/AiDrivenAdaptiveUiLayouts-C6z8OcIl.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,bG as t}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=()=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center p-8 text-center text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4 text-primary","aria-hidden":"true",children:e.jsx(t,{})}),e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"AI-Driven Adaptive UI Layouts"}),e.jsx("p",{className:"text-lg text-text-secondary max-w-lg",children:"This conceptual feature demonstrates how the application's UI could dynamically adjust its layout based on what the AI infers you are trying to do, making the most relevant tools more accessible."}),e.jsxs("div",{className:"mt-6 bg-surface border border-border rounded-lg p-4 text-sm text-left space-y-2 max-w-lg",children:[e.jsx("p",{className:"font-semibold",children:"Example Scenario:"}),e.jsxs("div",{className:"text-text-secondary font-mono bg-background p-3 rounded",children:[e.jsx("p",{children:`"User opens the 'AI Code Migrator' and pastes in CSS code."`}),e.jsxs("p",{className:"mt-2 text-green-400",children:[e.jsx("span",{className:"font-semibold",children:"Adaptive Change:"})," The AI detects the CSS context and automatically opens the 'CSS Grid Visual Editor' and 'Responsive Tester' in adjacent windows, anticipating that the user is working on front-end styling."]})]})]}),e.jsx("p",{className:"text-xs text-text-secondary mt-4",children:"Note: This is a conceptual UI explaining an advanced UX personalization feature."})]});export{n as AiDrivenAdaptiveUiLayouts};
|
assets/AiDrivenApiClientGeneration-HJdOg6tg.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenApiClientGeneration};
|
assets/AiDrivenBackupStrategy-DCGEzS6E.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenBackupStrategy};
|
assets/AiDrivenBiasDetection-rxP_gn69.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as t,bs as u,j as e,aL as p,L as x,M as b}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const j="The system requires the foreman to submit his report by the end of the day. The ideal candidate will be a recent graduate with a lot of energy.",N=()=>{const[r,m]=t.useState(j),[n,o]=t.useState(""),[a,c]=t.useState(!1),[i,l]=t.useState(""),f=t.useCallback(async()=>{if(!r.trim()){l("Please provide text to scan for bias.");return}c(!0),l(""),o("");try{const s=u(r);let d="";for await(const h of s)d+=h,o(d)}catch(s){l(s instanceof Error?s.message:"An unknown error occurred.")}finally{c(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(p,{}),e.jsx("span",{className:"ml-3",children:"AI-Driven Bias Detection"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Scan text for potential ethical biases."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"text-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Text to Analyze"}),e.jsx("textarea",{id:"text-input",value:r,onChange:s=>m(s.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none"}),e.jsx("button",{onClick:f,disabled:a,className:"btn-primary mt-4 w-full",children:a?e.jsx(x,{}):"Scan for Bias"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Bias Report"}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(x,{})}),i&&e.jsx("p",{className:"text-red-500",children:i}),n&&e.jsx(b,{content:n})]})]})]})]})};export{N as AiDrivenBiasDetection};
|
assets/AiDrivenCodeComplexity-DH8xI9Gv.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as s,a_ as p,j as e,ac as u,L as c,M as h}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const f=`
|
| 2 |
+
function processOrder(order) {
|
| 3 |
+
if (order.customer.isVip) {
|
| 4 |
+
if (order.total > 500) {
|
| 5 |
+
return "priority_shipping_high_value";
|
| 6 |
+
} else {
|
| 7 |
+
return "priority_shipping";
|
| 8 |
+
}
|
| 9 |
+
} else {
|
| 10 |
+
if (order.total > 1000) {
|
| 11 |
+
return "standard_shipping_high_value";
|
| 12 |
+
} else if (order.total > 50) {
|
| 13 |
+
return "standard_shipping";
|
| 14 |
+
} else {
|
| 15 |
+
return "economy_shipping"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}`,j=()=>{const[t,x]=s.useState(f),[o,n]=s.useState(""),[a,i]=s.useState(!1),[d,l]=s.useState(""),m=s.useCallback(async()=>{if(!t.trim()){l("Please enter code to analyze.");return}i(!0),l(""),n("");try{const r=await p(t);n(r)}catch(r){l(r instanceof Error?r.message:"An unknown error occurred.")}finally{i(!1)}},[t]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(u,{}),e.jsx("span",{className:"ml-3",children:"AI Code Complexity Analysis"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Analyze code complexity and maintainability."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"code-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Code to Analyze"}),e.jsx("textarea",{id:"code-input",value:t,onChange:r=>x(r.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none font-mono text-sm"}),e.jsx("button",{onClick:m,disabled:a,className:"btn-primary mt-4 w-full",children:a?e.jsx(c,{}):"Analyze Complexity"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Analysis Report"}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(c,{})}),d&&e.jsx("p",{className:"text-red-500",children:d}),o&&e.jsx(h,{content:o})]})]})]})]})};export{j as AiDrivenCodeComplexity};
|
assets/AiDrivenCollaborativeDocumentEditing-DAVYYXW_.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenCollaborativeDocumentEditing};
|
assets/AiDrivenConflictResolutionForMerges-DUcVCqOs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenConflictResolutionForMerges};
|
assets/AiDrivenCostOptimizationForCloud-CUl4e9xT.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as s}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>s.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[s.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),s.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),s.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenCostOptimizationForCloud};
|
assets/AiDrivenCreativeRemixTool-CxNcSiWX.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const x=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{x as AiDrivenCreativeRemixTool};
|
assets/AiDrivenDataMigration-Dw8KzojX.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenDataMigration};
|
assets/AiDrivenFeedbackLoopForModelImprovement-CKx93F-z.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as t}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:e})=>t.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[t.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),t.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(e==null?void 0:e.name)||"Feature"," is Under Construction"]}),t.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(e==null?void 0:e.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenFeedbackLoopForModelImprovement};
|
assets/AiDrivenFileAccessAuditing-DCBPFNYD.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as t,bE as p,j as e,aL as g,L as x,M as b}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const h=`
|
| 2 |
+
[2024-07-15 10:00] user:alice, action:read, file:/reports/q2.pdf
|
| 3 |
+
[2024-07-15 10:05] user:bob, action:write, file:/data/customers.csv
|
| 4 |
+
[2024-07-15 23:30] user:bob, action:read, file:/reports/q2.pdf
|
| 5 |
+
[2024-07-15 23:32] user:bob, action:read, file:/reports/q1.pdf
|
| 6 |
+
[2024-07-15 23:35] user:bob, action:delete, file:/temp/old_data.csv
|
| 7 |
+
`,v=()=>{const[r,m]=t.useState(h),[o,c]=t.useState(""),[a,n]=t.useState(!1),[i,l]=t.useState(""),u=t.useCallback(async()=>{if(!r.trim()){l("Please provide access logs.");return}n(!0),l(""),c("");try{const s=p(r);let d="";for await(const f of s)d+=f,c(d)}catch(s){l(s instanceof Error?s.message:"An unknown error occurred.")}finally{n(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(g,{}),e.jsx("span",{className:"ml-3",children:"AI File Access Auditing"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Analyze file access logs to identify unusual patterns or potential security risks."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"logs-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Access Logs"}),e.jsx("textarea",{id:"logs-input",value:r,onChange:s=>m(s.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none font-mono text-sm"}),e.jsx("button",{onClick:u,disabled:a,className:"btn-primary mt-4 w-full",children:a?e.jsx(x,{}):"Audit Logs"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Audit Report"}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(x,{})}),i&&e.jsx("p",{className:"text-red-500",children:i}),o&&e.jsx(b,{content:o})]})]})]})]})};export{v as AiDrivenFileAccessAuditing};
|
assets/AiDrivenFileAccessPermissions-D9DZMsSp.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as t,by as p,j as e,w as g,L as m,M as h}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const v=()=>{const[r,x]=t.useState("A project folder containing sensitive financial reports and general marketing materials."),[o,i]=t.useState(""),[n,l]=t.useState(!1),[c,a]=t.useState(""),u=t.useCallback(async()=>{if(!r.trim()){a("Please provide a context.");return}l(!0),a(""),i("");try{const s=p(r);let d="";for await(const f of s)d+=f,i(d)}catch(s){a(s instanceof Error?s.message:"An unknown error occurred.")}finally{l(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(g,{}),e.jsx("span",{className:"ml-3",children:"AI File Access Permissions"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Get AI-driven suggestions for optimal access permissions based on content and team roles."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"context-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Context Description"}),e.jsx("textarea",{id:"context-input",value:r,onChange:s=>x(s.target.value),className:"w-full p-3 bg-surface border border-border rounded-md resize-y",rows:3}),e.jsx("button",{onClick:u,disabled:n,className:"btn-primary mt-2",children:n?e.jsx(m,{}):"Suggest Permissions"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[n&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),c&&e.jsx("p",{className:"text-red-500",children:c}),o&&e.jsx(h,{content:o})]})]})]})};export{v as AiDrivenFileAccessPermissions};
|
assets/AiDrivenFileEncryptionRecommendations-CbdrsDkw.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as t,bC as h,j as e,aL as p,L as m,M as b}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const j=`
|
| 2 |
+
- financial_report_q2.xlsx
|
| 3 |
+
- marketing_brochure.pdf
|
| 4 |
+
- user_passwords.txt
|
| 5 |
+
- meeting_notes.md
|
| 6 |
+
- api_keys.env
|
| 7 |
+
`,N=()=>{const[r,x]=t.useState(j),[a,o]=t.useState(""),[n,i]=t.useState(!1),[c,l]=t.useState(""),f=t.useCallback(async()=>{if(!r.trim()){l("Please provide a file list.");return}i(!0),l(""),o("");try{const s=h(r);let d="";for await(const u of s)d+=u,o(d)}catch(s){l(s instanceof Error?s.message:"An unknown error occurred.")}finally{i(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(p,{}),e.jsx("span",{className:"ml-3",children:"AI File Encryption Recommendations"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"AI recommends which sensitive files should be encrypted based on their names."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"file-list-input",className:"text-sm font-medium text-text-secondary mb-2",children:"File List (one per line)"}),e.jsx("textarea",{id:"file-list-input",value:r,onChange:s=>x(s.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none font-mono text-sm"}),e.jsx("button",{onClick:f,disabled:n,className:"btn-primary mt-4 w-full",children:n?e.jsx(m,{}):"Get Recommendations"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"AI Recommendations"}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[n&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),c&&e.jsx("p",{className:"text-red-500",children:c}),a&&e.jsx(b,{content:a})]})]})]})]})};export{N as AiDrivenFileEncryptionRecommendations};
|
assets/AiDrivenFileIntegrityChecks-BSjTkLy4.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as s,aK as h,j as e,aL as p,L as d}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const b=()=>{const[r,x]=s.useState("This is the content of a perfectly normal file."),[l,o]=s.useState(""),[n,c]=s.useState(!1),[i,a]=s.useState(""),m=s.useCallback(async()=>{if(!r.trim()){a("Please provide file content to check.");return}c(!0),a(""),o("");try{const t=await h(r);o(t)}catch(t){a(t instanceof Error?t.message:"An unknown error occurred.")}finally{c(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(p,{}),e.jsx("span",{className:"ml-3",children:"AI-Powered File Integrity Check"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Monitor files for unexpected changes or potential corruption."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col flex-grow",children:[e.jsx("label",{htmlFor:"content-input",className:"text-sm font-medium text-text-secondary mb-2",children:"File Content"}),e.jsx("textarea",{id:"content-input",value:r,onChange:t=>x(t.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none"})]}),e.jsx("button",{onClick:m,disabled:n,className:"btn-primary",children:n?e.jsx(d,{}):"Check Integrity"}),e.jsxs("div",{className:"p-4 bg-background border border-border rounded-md",children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Analysis Report:"}),n&&e.jsx(d,{}),i&&e.jsx("p",{className:"text-red-500",children:i}),l&&e.jsx("p",{children:l})]})]})]})};export{b as AiDrivenFileIntegrityChecks};
|
assets/AiDrivenFileSystemAnomalyDetection-Li38_kIw.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,aL as t}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const a=()=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center p-8 text-center text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4 text-primary","aria-hidden":"true",children:e.jsx(t,{})}),e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"AI File System Anomaly Detection"}),e.jsx("p",{className:"text-lg text-text-secondary max-w-lg",children:"This conceptual feature demonstrates how an AI could monitor file system activity for unusual patterns that might indicate security threats, ransomware, or malfunctioning software."}),e.jsxs("div",{className:"mt-6 bg-surface border border-border rounded-lg p-4 text-sm text-left space-y-2 max-w-lg",children:[e.jsx("p",{className:"font-semibold",children:"Example AI Alerts:"}),e.jsxs("ul",{className:"list-disc list-inside text-text-secondary",children:[e.jsx("li",{className:"text-red-400",children:`"Alert: A high number of files (1,000+) were encrypted in the '/Documents' folder in a short period. This is a potential sign of ransomware."`}),e.jsx("li",{className:"text-yellow-400",children:`"Warning: The application 'log-generator.exe' is writing to its log file 100 times per second, which is unusually high and may indicate a bug."`}),e.jsx("li",{className:"text-blue-400",children:`"Info: A large number of files were deleted from the '/Cache' directory, which appears to be a normal cleanup operation."`})]})]}),e.jsx("p",{className:"text-xs text-text-secondary mt-4",children:"Note: This is a conceptual UI. This would require a background service with deep system integration."})]});export{a as AiDrivenFileSystemAnomalyDetection};
|
assets/AiDrivenFileSystemHealthCheck-D_Mjdw6l.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,aG as s}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const l=()=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center p-8 text-center text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4 text-primary","aria-hidden":"true",children:e.jsx(s,{})}),e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"AI File System Health Check"}),e.jsx("p",{className:"text-lg text-text-secondary max-w-lg",children:"This conceptual feature demonstrates how an AI could perform a health check on your local file system, identifying potential issues beyond what a standard disk utility can do."}),e.jsxs("div",{className:"mt-6 bg-surface border border-border rounded-lg p-4 text-sm text-left space-y-2 max-w-lg",children:[e.jsx("p",{className:"font-semibold",children:"Example AI Analysis Report:"}),e.jsxs("ul",{className:"list-disc list-inside text-text-secondary",children:[e.jsxs("li",{children:[e.jsx("span",{className:"font-semibold text-yellow-500",children:"Warning:"})," High fragmentation detected in `/Users/You/Projects`. Recommend logical defragmentation."]}),e.jsxs("li",{children:[e.jsx("span",{className:"font-semibold text-green-500",children:"Suggestion:"})," The `/Users/You/Downloads` folder contains 5GB of installer files (.dmg, .exe). Consider cleaning up."]}),e.jsxs("li",{children:[e.jsx("span",{className:"font-semibold text-blue-500",children:"Info:"})," 80% of storage is used by video files. Consider moving large, old files to an external drive."]}),e.jsxs("li",{children:[e.jsx("span",{className:"font-semibold text-red-500",children:"Alert:"})," Detected unusual write activity in system logs, potentially indicating a background process issue."]})]})]}),e.jsx("p",{className:"text-xs text-text-secondary mt-4",children:"Note: This is a conceptual UI. Actual file system scanning would require deep OS integration."})]});export{l as AiDrivenFileSystemHealthCheck};
|
assets/AiDrivenFileSystemPerformanceBenchmarking-BM1iDORI.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,f as s}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const r=()=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center p-8 text-center text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4 text-primary","aria-hidden":"true",children:e.jsx(s,{})}),e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"AI File System Benchmarking"}),e.jsx("p",{className:"text-lg text-text-secondary max-w-lg",children:"This conceptual feature demonstrates how an AI could run benchmarks on your file system operations (e.g., read/write speed for large vs. small files) and suggest optimizations."}),e.jsxs("div",{className:"mt-6 bg-surface border border-border rounded-lg p-4 text-sm text-left space-y-2 max-w-lg",children:[e.jsx("p",{className:"font-semibold",children:"Example AI Benchmark Report:"}),e.jsxs("div",{className:"text-text-secondary font-mono bg-background p-3 rounded",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-primary",children:"Sequential Read Speed:"})," 450 MB/s (Good)"]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-primary",children:"Random Read Speed (Small Files):"})," 25 MB/s (Slow)"]}),e.jsxs("p",{className:"mt-2 text-yellow-400",children:[e.jsx("span",{className:"font-semibold",children:"Suggestion:"})," Your performance with many small files (e.g., in `node_modules`) is slow. Consider using a package manager that optimizes for this, like pnpm, or periodically cleaning up caches to improve performance."]})]})]}),e.jsx("p",{className:"text-xs text-text-secondary mt-4",children:"Note: This is a conceptual UI. This would require low-level access to the file system."})]});export{r as AiDrivenFileSystemPerformanceBenchmarking};
|
assets/AiDrivenGenerate3dModel-DVWt15-f.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as t}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:e})=>t.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[t.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),t.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(e==null?void 0:e.name)||"Feature"," is Under Construction"]}),t.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(e==null?void 0:e.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenGenerate3dModel};
|
assets/AiDrivenLearningPathSuggestions-fflpelaT.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenLearningPathSuggestions};
|
assets/AiDrivenMeetingAgendaGeneration-kgDLpOfE.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as t}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:e})=>t.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[t.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),t.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(e==null?void 0:e.name)||"Feature"," is Under Construction"]}),t.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(e==null?void 0:e.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenMeetingAgendaGeneration};
|
assets/AiDrivenPerformanceBottleneckId-rRTf5llv.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r,aU as p,j as e,ac as h,L as m,M as j}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const g=`
|
| 2 |
+
function findPrimes(limit) {
|
| 3 |
+
const primes = [];
|
| 4 |
+
for (let i = 2; i <= limit; i++) {
|
| 5 |
+
let isPrime = true;
|
| 6 |
+
for (let j = 2; j < i; j++) {
|
| 7 |
+
if (i % j === 0) {
|
| 8 |
+
isPrime = false;
|
| 9 |
+
break;
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
+
if (isPrime) {
|
| 13 |
+
primes.push(i);
|
| 14 |
+
}
|
| 15 |
+
}
|
| 16 |
+
return primes;
|
| 17 |
+
}`,N=()=>{const[t,x]=r.useState(g),[o,l]=r.useState(""),[a,i]=r.useState(!1),[c,n]=r.useState(""),f=r.useCallback(async()=>{if(!t.trim()){n("Please enter code to analyze.");return}i(!0),n(""),l("");try{const s=p(t);let d="";for await(const u of s)d+=u,l(d)}catch(s){n(s instanceof Error?s.message:"An unknown error occurred.")}finally{i(!1)}},[t]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(h,{}),e.jsx("span",{className:"ml-3",children:"AI Performance Bottleneck Identifier"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Analyze code for potential performance issues and get optimization suggestions."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"code-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Code to Analyze"}),e.jsx("textarea",{id:"code-input",value:t,onChange:s=>x(s.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none font-mono text-sm"}),e.jsx("button",{onClick:f,disabled:a,className:"btn-primary mt-4 w-full",children:a?e.jsx(m,{}):"Analyze Performance"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Performance Report"}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),c&&e.jsx("p",{className:"text-red-500",children:c}),o&&e.jsx(j,{content:o})]})]})]})]})};export{N as AiDrivenPerformanceBottleneckId};
|
assets/AiDrivenPrivacyAdvisorForFileSharing-Q6ODwaqz.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenPrivacyAdvisorForFileSharing};
|
assets/AiDrivenProjectBudgetEstimation-Dj0UitzZ.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenProjectBudgetEstimation};
|
assets/AiDrivenProjectRisk-CMtsvus_.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r,bh as h,j as e,aL as f,L as m,M as j}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const v=()=>{const[t,x]=r.useState("We are building a new real-time collaborative editing tool using WebSockets and a microservices architecture. The deadline is in 3 months and we have a team of 4 junior developers."),[o,i]=r.useState(""),[a,c]=r.useState(!1),[l,n]=r.useState(""),p=r.useCallback(async()=>{if(!t.trim()){n("Please provide a project description.");return}c(!0),n(""),i("");try{const s=h(t);let d="";for await(const u of s)d+=u,i(d)}catch(s){n(s instanceof Error?s.message:"An unknown error occurred.")}finally{c(!1)}},[t]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(f,{}),e.jsx("span",{className:"ml-3",children:"AI Project Risk Assessment"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Analyze project descriptions to identify potential risks."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"description-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Project Description"}),e.jsx("textarea",{id:"description-input",value:t,onChange:s=>x(s.target.value),className:"w-full p-3 bg-surface border border-border rounded-md resize-y",rows:5}),e.jsx("button",{onClick:p,disabled:a,className:"btn-primary mt-2",children:a?e.jsx(m,{}):"Assess Risks"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),l&&e.jsx("p",{className:"text-red-500",children:l}),o&&e.jsx(j,{content:o})]})]})]})};export{v as AiDrivenProjectRisk};
|
assets/AiDrivenPromptEngineeringAssistant-DXvEvmzg.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as s}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>s.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[s.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),s.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),s.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenPromptEngineeringAssistant};
|
assets/AiDrivenResourceOptimization-DVbDFxrS.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenResourceOptimization};
|
assets/AiDrivenTeamCommunicationOptimization-BlUOH55k.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenTeamCommunicationOptimization};
|
assets/AiDrivenTimeManagementSuggestions-1gS1wNLa.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r as t,bv as h,j as e,bw as f,L as m,M as p}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const b=`
|
| 2 |
+
- Write documentation for the API (High priority, 3 hours)
|
| 3 |
+
- Fix login button bug (High priority, 1 hour)
|
| 4 |
+
- Team meeting (1 hour)
|
| 5 |
+
- Respond to emails (Low priority, 30 mins)
|
| 6 |
+
- Plan Q3 features (Medium priority, 2 hours)
|
| 7 |
+
`,y=()=>{const[r,u]=t.useState(b),[n,l]=t.useState(""),[a,i]=t.useState(!1),[c,o]=t.useState(""),x=t.useCallback(async()=>{if(!r.trim()){o("Please provide a task list.");return}i(!0),o(""),l("");try{const s=h(r);let d="";for await(const g of s)d+=g,l(d)}catch(s){o(s instanceof Error?s.message:"An unknown error occurred.")}finally{i(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(f,{}),e.jsx("span",{className:"ml-3",children:"AI Time Management Suggestions"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Get an AI-suggested schedule for focused work based on your task list."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 flex-grow min-h-0",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{htmlFor:"tasks-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Your Task List"}),e.jsx("textarea",{id:"tasks-input",value:r,onChange:s=>u(s.target.value),className:"flex-grow p-4 bg-surface border border-border rounded-md resize-none"}),e.jsx("button",{onClick:x,disabled:a,className:"btn-primary mt-4 w-full",children:a?e.jsx(m,{}):"Suggest Schedule"})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Suggested Schedule"}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),c&&e.jsx("p",{className:"text-red-500",children:c}),n&&e.jsx(p,{content:n})]})]})]})]})};export{y as AiDrivenTimeManagementSuggestions};
|
assets/AiDrivenTutorialOnboarding-YoB0Osh5.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenTutorialOnboarding};
|
assets/AiDrivenZenModeCustomization-DnsRh6YO.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const n=({feature:t})=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center p-8 text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4","aria-hidden":"true",children:"🚧"}),e.jsxs("h1",{className:"text-3xl font-bold mb-2",children:[(t==null?void 0:t.name)||"Feature"," is Under Construction"]}),e.jsx("p",{className:"text-lg text-text-secondary max-w-md",children:(t==null?void 0:t.description)||"This feature is not yet implemented. Check back for future updates!"})]});export{n as AiDrivenZenModeCustomization};
|
assets/AiEmailDraftGenerator-B0YzdJlx.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as s,b9 as u,j as e,ba as h,L as m}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const g=()=>{const[r,x]=s.useState("A follow-up email to a client after a project kickoff meeting, summarizing the next steps."),[n,o]=s.useState(""),[a,c]=s.useState(!1),[i,l]=s.useState(""),f=s.useCallback(async()=>{if(!r.trim()){l("Please provide context for the email.");return}c(!0),l(""),o("");try{const t=u(r);let d="";for await(const p of t)d+=p,o(d)}catch(t){l(t instanceof Error?t.message:"An unknown error occurred.")}finally{c(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(h,{}),e.jsx("span",{className:"ml-3",children:"AI Email Draft Generator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Draft professional emails based on context."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"context-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Email Context"}),e.jsx("textarea",{id:"context-input",value:r,onChange:t=>x(t.target.value),className:"w-full p-3 bg-surface border border-border rounded-md resize-y",rows:4}),e.jsx("button",{onClick:f,disabled:a,className:"btn-primary mt-2",children:a?e.jsx(m,{}):"Draft Email"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),i&&e.jsx("p",{className:"text-red-500",children:i}),n&&e.jsx("pre",{className:"whitespace-pre-wrap",children:n})]})]})]})};export{g as AiEmailDraftGenerator};
|
assets/AiEthicsStatementDrafter-CgBet2EE.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as s,cD as p,j as e,aL as u,L as m,M as j}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const y=()=>{const[r,x]=s.useState("An AI system that recommends loan applications for approval or denial based on financial history."),[c,o]=s.useState(""),[a,l]=s.useState(!1),[i,n]=s.useState(""),f=s.useCallback(async()=>{if(!r.trim()){n("Please describe the AI project.");return}l(!0),n(""),o("");try{const t=p(r);let d="";for await(const h of t)d+=h,o(d)}catch(t){n(t instanceof Error?t.message:"An unknown error occurred.")}finally{l(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(u,{}),e.jsx("span",{className:"ml-3",children:"AI Ethics Statement Drafter"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Describe an AI project to draft an ethics and transparency statement."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"project-input",className:"text-sm font-medium text-text-secondary mb-2",children:"AI Project Description"}),e.jsx("textarea",{id:"project-input",value:r,onChange:t=>x(t.target.value),className:"w-full p-3 bg-surface border border-border rounded-md resize-y",rows:4}),e.jsx("button",{onClick:f,disabled:a,className:"btn-primary mt-2",children:a?e.jsx(m,{}):"Draft Statement"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[a&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),i&&e.jsx("p",{className:"text-red-500",children:i}),c&&e.jsx(j,{content:c})]})]})]})};export{y as AiEthicsStatementDrafter};
|
assets/AiFeatureBuilder-CBA45PG1.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{r,h as O,k as I,s as P,m as A,n as D,j as e,f as $,o as C,B as G,p as B,L as v,q as L,M as N}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const U=()=>{const[c,S]=r.useState('A simple "Hello World" React component with a button that shows an alert.'),[f,x]=r.useState([]),[u,h]=r.useState(""),[p,b]=r.useState(""),[n,i]=r.useState(null),[d,g]=r.useState(!1),[j,m]=r.useState(""),[l,o]=r.useState("CODE");r.useEffect(()=>{(async()=>{const s=await L();x(s),s.length>0&&i(s[0])})()},[]);const k=r.useCallback(async()=>{if(!c.trim()){m("Please enter a feature description.");return}g(!0),m(""),await O(),x([]),h(""),b(""),i(null),o("CODE");try{const t=await I(c);for(const s of t)await P(s);if(x(t),t.length>0){const s=t.find(a=>a.filePath.endsWith(".tsx")||a.filePath.endsWith(".jsx"));if(i(s||t[0]),s){const a=A(s.content);let w="";for await(const M of a)w+=M,h(w)}const T=t.map(a=>`File: ${a.filePath}
|
| 2 |
+
|
| 3 |
+
${a.content}`).join(`
|
| 4 |
+
---
|
| 5 |
+
`),E=D(T);let y="";for await(const a of E)y+=a,b(y)}}catch(t){const s=t instanceof Error?t.message:"An unknown error occurred.";m(`Failed to generate feature: ${s}`)}finally{g(!1)}},[c]),F=()=>{switch(l){case"TESTS":return e.jsx(N,{content:u});case"COMMIT":return e.jsx("pre",{className:"w-full h-full p-4 whitespace-pre-wrap font-sans text-sm text-text-primary",children:p});case"CODE":default:return n?e.jsx(N,{content:`\`\`\`tsx
|
| 6 |
+
${n.content}
|
| 7 |
+
\`\`\``}):e.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary",children:"Select a file to view its content."})}};return e.jsxs("div",{className:"h-full flex flex-col text-text-primary bg-surface",children:[e.jsx("header",{className:"p-4 border-b border-border flex-shrink-0",children:e.jsxs("h1",{className:"text-xl font-bold flex items-center",children:[e.jsx($,{}),e.jsx("span",{className:"ml-3",children:"AI Feature Builder"})]})}),e.jsxs("div",{className:"flex-grow flex min-h-0",children:[e.jsxs("aside",{className:"w-64 bg-surface border-r border-border p-4 flex flex-col",children:[e.jsx("h2",{className:"text-sm font-semibold text-text-secondary mb-2",children:"Generated Files"}),e.jsx("div",{className:"overflow-y-auto space-y-1",children:f.map(t=>e.jsxs("div",{onClick:()=>{i(t),o("CODE")},className:`flex items-center space-x-2 p-2 rounded-md cursor-pointer text-sm ${(n==null?void 0:n.filePath)===t.filePath&&l==="CODE"?"bg-primary/10 text-primary":"hover:bg-gray-100"}`,children:[e.jsx(C,{}),e.jsx("span",{children:t.filePath.split("/").pop()})]},t.filePath))})]}),e.jsxs("main",{className:"flex-1 flex flex-col min-w-0",children:[e.jsxs("div",{className:"flex-grow flex flex-col bg-background",children:[e.jsxs("div",{className:"border-b border-border flex items-center bg-surface",children:[e.jsxs("button",{onClick:()=>o("CODE"),className:`flex items-center gap-2 px-4 py-2 text-sm ${l==="CODE"?"bg-background border-b-2 border-primary text-text-primary":"text-text-secondary hover:bg-gray-50"}`,children:[e.jsx(C,{})," Code"]}),u&&e.jsxs("button",{onClick:()=>o("TESTS"),className:`flex items-center gap-2 px-4 py-2 text-sm ${l==="TESTS"?"bg-background border-b-2 border-primary text-text-primary":"text-text-secondary hover:bg-gray-50"}`,children:[e.jsx(G,{})," Tests"]}),p&&e.jsxs("button",{onClick:()=>o("COMMIT"),className:`flex items-center gap-2 px-4 py-2 text-sm ${l==="COMMIT"?"bg-background border-b-2 border-primary text-text-primary":"text-text-secondary hover:bg-gray-50"}`,children:[e.jsx(B,{})," Commit"]})]}),e.jsx("div",{className:"flex-grow p-2 overflow-auto",children:d&&!f.length?e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(v,{})}):F()})]}),e.jsxs("div",{className:"flex-shrink-0 p-4 border-t border-border bg-surface",children:[e.jsx("textarea",{value:c,onChange:t=>S(t.target.value),placeholder:"e.g., A user profile card with an avatar, name, and bio.",className:"w-full p-2 bg-background border border-border rounded-md resize-none text-sm h-20"}),e.jsx("button",{onClick:k,disabled:d,className:"btn-primary mt-2 w-full flex items-center justify-center gap-2 px-4 py-2",children:d?e.jsxs(e.Fragment,{children:[e.jsx(v,{})," Generating..."]}):"Generate Feature"}),j&&e.jsx("p",{className:"text-red-600 text-xs mt-2 text-center",children:j})]})]})]})]})};export{U as AiFeatureBuilder};
|
assets/AiImageGenerator-CGyLU5mn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as s,a8 as k,a9 as A,j as e,aa as C,ab as G,L as b,S,A as P}from"./index-2vVQkLPI.js";import{b as U,f as F}from"./fileUtils-Dvg4vqd5.js";import"https://esm.sh/octokit@4.0.2";const j=["A majestic lion wearing a crown, painted in the style of Van Gogh.","A futuristic cityscape on another planet with two moons in the sky.","A cozy, magical library inside a giant tree.","A surreal image of a ship sailing on a sea of clouds.","An astronaut riding a space-themed bicycle on the moon."],E=()=>{const[r,m]=s.useState("A photorealistic image of a futuristic city at sunset, with flying cars."),[n,x]=s.useState(null),[i,u]=s.useState(null),[o,g]=s.useState(!1),[d,c]=s.useState(""),p=s.useRef(null),y=s.useCallback(async()=>{if(!r.trim()){c("Please enter a prompt to generate an image.");return}g(!0),c(""),u(null);try{let a;n?a=await k(r,n.base64,n.mimeType):a=await A(r),u(a)}catch(a){const t=a instanceof Error?a.message:"An unknown error occurred.";c(`Failed to generate image: ${t}`)}finally{g(!1)}},[r,n]),w=()=>{const a=j[Math.floor(Math.random()*j.length)];m(a)},h=async a=>{try{const[t,l]=await Promise.all([U(a),F(a)]);x({dataUrl:t,base64:l,mimeType:a.type})}catch{c("Could not process the image.")}},N=s.useCallback(async a=>{const t=a.clipboardData.items;for(const l of t)if(l.type.indexOf("image")!==-1){const f=l.getAsFile();if(f){await h(f);return}}},[]),I=async a=>{var l;const t=(l=a.target.files)==null?void 0:l[0];t&&await h(t)},v=()=>{if(!i)return;const a=document.createElement("a");a.href=i,a.download=`${r.slice(0,30).replace(/\s/g,"_")}.png`,document.body.appendChild(a),a.click(),document.body.removeChild(a)};return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(C,{}),e.jsx("span",{className:"ml-3",children:"AI Image Generator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Generate images from text, or provide an image for inspiration."})]}),e.jsxs("div",{className:"flex-grow grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"prompt-input",className:"text-sm font-medium text-text-secondary",children:"Your Prompt"}),e.jsx("textarea",{id:"prompt-input",value:r,onChange:a=>m(a.target.value),placeholder:"e.g., A cute cat wearing a wizard hat",className:"w-full p-3 mt-1 rounded-md bg-surface border border-border focus:ring-2 focus:ring-primary focus:outline-none resize-y",rows:3})]}),e.jsxs("div",{className:"flex flex-col flex-grow min-h-[200px]",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-1",children:"Inspiration Image (Optional)"}),e.jsx("div",{onPaste:N,className:"relative flex-grow flex flex-col items-center justify-center bg-surface p-4 rounded-lg border-2 border-dashed border-border focus:outline-none focus:border-primary",tabIndex:0,children:n?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:n.dataUrl,alt:"Uploaded content",className:"max-w-full max-h-full object-contain rounded-md shadow-lg"}),e.jsx("button",{onClick:()=>x(null),className:"absolute top-2 right-2 p-1 bg-black/30 text-white rounded-full hover:bg-black/50",children:e.jsx(G,{})})]}):e.jsxs("div",{className:"text-center text-text-secondary",children:[e.jsx("h2",{className:"text-lg font-bold text-text-primary",children:"Paste an image here"}),e.jsx("p",{className:"text-sm",children:"(Cmd/Ctrl + V)"}),e.jsx("p",{className:"text-xs my-1",children:"or"}),e.jsx("button",{onClick:()=>{var a;return(a=p.current)==null?void 0:a.click()},className:"text-sm font-semibold text-primary hover:underline",children:"Upload File"}),e.jsx("input",{type:"file",ref:p,onChange:I,accept:"image/*",className:"hidden"})]})})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:y,disabled:o,className:"btn-primary w-full flex items-center justify-center px-6 py-3",children:o?e.jsx(b,{}):"Generate Image"}),e.jsx("button",{onClick:w,disabled:o,className:"px-4 py-3 bg-surface border border-border rounded-md hover:bg-gray-100 transition-colors",title:"Surprise Me!",children:e.jsx(S,{})})]})]}),e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx("label",{className:"text-sm font-medium text-text-secondary mb-2",children:"Generated Image"}),e.jsxs("div",{className:"flex-grow flex items-center justify-center bg-background border-2 border-dashed border-border rounded-lg p-4 relative overflow-auto",children:[o&&e.jsx(b,{}),d&&e.jsx("p",{className:"text-red-500 text-center",children:d}),i&&!o&&e.jsxs(e.Fragment,{children:[e.jsx("img",{src:i,alt:r||"Generated by AI",className:"max-w-full max-h-full object-contain rounded-md shadow-lg"}),e.jsx("button",{onClick:v,className:"absolute top-4 right-4 p-2 bg-black/30 text-white rounded-full hover:bg-black/50 backdrop-blur-sm",title:"Download Image",children:e.jsx(P,{})})]}),!o&&!i&&!d&&e.jsx("div",{className:"text-center text-text-secondary",children:e.jsx("p",{children:"Your generated image will appear here."})})]})]})]})]})};export{E as AiImageGenerator};
|
assets/AiIncidentPostmortemGenerator-DK5gW7de.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{r as s,bI as h,j as e,o as p,L as m,M as b}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const N=()=>{const[r,x]=s.useState("The user authentication service was down for 15 minutes due to a database connection pool exhaustion."),[o,c]=s.useState(""),[n,i]=s.useState(!1),[l,a]=s.useState(""),u=s.useCallback(async()=>{if(!r.trim()){a("Please describe the incident.");return}i(!0),a(""),c("");try{const t=h(r);let d="";for await(const f of t)d+=f,c(d)}catch(t){a(t instanceof Error?t.message:"An unknown error occurred.")}finally{i(!1)}},[r]);return e.jsxs("div",{className:"h-full flex flex-col p-4 sm:p-6 lg:p-8 text-text-primary",children:[e.jsxs("header",{className:"mb-6",children:[e.jsxs("h1",{className:"text-3xl font-bold flex items-center",children:[e.jsx(p,{}),e.jsx("span",{className:"ml-3",children:"AI Incident Post-mortem Generator"})]}),e.jsx("p",{className:"text-text-secondary mt-1",children:"Generate a blame-free post-mortem from incident details."})]}),e.jsxs("div",{className:"flex flex-col gap-4 flex-grow min-h-0",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"incident-input",className:"text-sm font-medium text-text-secondary mb-2",children:"Incident Description"}),e.jsx("textarea",{id:"incident-input",value:r,onChange:t=>x(t.target.value),className:"w-full p-3 bg-surface border border-border rounded-md resize-y",rows:4}),e.jsx("button",{onClick:u,disabled:n,className:"btn-primary mt-2",children:n?e.jsx(m,{}):"Generate Post-mortem"})]}),e.jsxs("div",{className:"flex-grow p-4 bg-background border border-border rounded-md overflow-y-auto",children:[n&&e.jsx("div",{className:"flex justify-center items-center h-full",children:e.jsx(m,{})}),l&&e.jsx("p",{className:"text-red-500",children:l}),o&&e.jsx(b,{content:o})]})]})]})};export{N as AiIncidentPostmortemGenerator};
|
assets/AiModelPerformanceMonitoring-fQcqghjF.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,ac as a}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const r=()=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center p-8 text-center text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4 text-primary","aria-hidden":"true",children:e.jsx(a,{})}),e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"AI Model Performance Monitoring"}),e.jsx("p",{className:"text-lg text-text-secondary max-w-lg",children:"This conceptual feature demonstrates how the application's AI could monitor the performance and accuracy of its own underlying models over time, using feedback and usage data."}),e.jsxs("div",{className:"mt-6 bg-surface border border-border rounded-lg p-4 text-sm text-left space-y-2 max-w-lg",children:[e.jsx("p",{className:"font-semibold",children:"Example Performance Dashboard:"}),e.jsxs("div",{className:"text-text-secondary font-mono bg-background p-3 rounded",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-primary",children:"Model:"})," Code Generation (`gemini-2.5-flash`)"]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-primary",children:"Accuracy (User Feedback):"})," 92% Positive"]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-primary",children:"Average Latency:"})," 1.5 seconds"]}),e.jsxs("p",{className:"mt-2 text-green-400",children:[e.jsx("span",{className:"font-semibold",children:"Trend:"})," Accuracy has improved by 2% over the last 30 days based on fine-tuning data."]})]})]}),e.jsx("p",{className:"text-xs text-text-secondary mt-4",children:"Note: This is a conceptual UI for an advanced MLOps (Machine Learning Operations) feature."})]});export{r as AiModelPerformanceMonitoring};
|
assets/AiModelVersioningAndRollback-CliVFWUG.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,p as s}from"./index-2vVQkLPI.js";import"https://esm.sh/octokit@4.0.2";const l=()=>e.jsxs("div",{className:"h-full flex flex-col items-center justify-center p-8 text-center text-text-primary",children:[e.jsx("div",{className:"text-6xl mb-4 text-primary","aria-hidden":"true",children:e.jsx(s,{})}),e.jsx("h1",{className:"text-3xl font-bold mb-2",children:"AI Model Versioning & Rollback"}),e.jsx("p",{className:"text-lg text-text-secondary max-w-lg",children:"This conceptual feature shows how the Toolkit could manage different versions of its local or fine-tuned AI models, allowing for rollbacks if an updated model shows performance degradation or unexpected behavior."}),e.jsxs("div",{className:"mt-6 bg-surface border border-border rounded-lg p-4 text-sm text-left space-y-2 max-w-lg",children:[e.jsx("p",{className:"font-semibold",children:"Model Version History:"}),e.jsxs("ul",{className:"list-disc list-inside text-text-secondary font-mono",children:[e.jsxs("li",{children:[e.jsx("span",{className:"text-green-400",children:"v1.2 (Active):"})," Improved code generation accuracy by 5%."]}),e.jsxs("li",{children:[e.jsx("span",{className:"text-gray-400",children:"v1.1:"})," Initial release with summarization features."]}),e.jsxs("li",{children:[e.jsx("span",{className:"text-red-400",children:"v1.0 (Rolled Back):"})," Introduced higher latency in code explanation."]})]}),e.jsx("div",{className:"text-center mt-4",children:e.jsx("button",{className:"btn-primary",disabled:!0,children:"Rollback to v1.1"})})]}),e.jsx("p",{className:"text-xs text-text-secondary mt-4",children:"Note: This is a conceptual UI for an advanced MLOps feature."})]});export{l as AiModelVersioningAndRollback};
|