PageSourceSearch

https://aident.ai/_next/static/chunks/f2e01bc92f0c8138.js

js aident.ai collected 2026-10-04 08:54:11 UTC 17,880 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0fdaf-124b-7421-ae0b-11acf089c0b2")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,868302,237008,e=>{"use strict";var t=e.i(840253);let r={skill:"Skill",skills:"Skills",app:"App",apps:"Apps",action:"Action",actions:"Actions"},i={[t.LoadoutLocale.ENGLISH]:r,[t.LoadoutLocale.SIMPLIFIED_CHINESE]:{skill:"技能",skills:"技能",app:"应用",apps:"应用",action:"操作",actions:"操作"},[t.LoadoutLocale.SPANISH]:r,[t.LoadoutLocale.FRENCH]:r,[t.LoadoutLocale.JAPANESE]:r,[t.LoadoutLocale.HINDI]:r},n=r.skill,o=r.skills,s=r.app,l=r.apps,a=r.action,u=r.actions;e.s(["LOADOUT_ACTIONS_LABEL",0,u,"LOADOUT_ACTION_LABEL",0,a,"LOADOUT_APPS_LABEL",0,l,"LOADOUT_APP_LABEL",0,s,"LOADOUT_PRODUCT_TERMINOLOGY",0,i,"LOADOUT_SKILLS_LABEL",0,o,"LOADOUT_SKILL_LABEL",0,n],237008),e.s([],868302)},299224,979021,e=>{"use strict";var t,r,i,n,o,s,l=e.i(120936);let a=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,u=l.default.string().regex(a);function c(e){return null!==f(e)}function d(e,t){let r=f(e),i=f(t);if(!r||!i)throw Error(`Invalid semantic version comparison: ${e}, ${t}`);for(let e of["major","minor","patch"])if(r[e]!==i[e])return r[e]<i[e]?-1:1;if(0===r.prerelease.length||0===i.prerelease.length)return r.prerelease.length===i.prerelease.length?0:0===r.prerelease.length?1:-1;for(let e=0;e<Math.max(r.prerelease.length,i.prerelease.length);e++){let t=r.prerelease[e],n=i.prerelease[e];if(void 0===t||void 0===n)return void 0===t?-1:1;if(t!==n){if("bigint"==typeof t&&"bigint"==typeof n)return t<n?-1:1;if("bigint"==typeof t)return -1;if("bigint"==typeof n)return 1;return t<n?-1:1}}return 0}function f(e){let t=a.exec(e);return t?{major:BigInt(t[1]),minor:BigInt(t[2]),patch:BigInt(t[3]),prerelease:t[4]?.split(".").map(e=>/^\d+$/.test(e)?BigInt(e):e)??[]}:null}e.s(["AidentSemverSchema",0,u,"compareAidentSemver",()=>d,"isAidentSemver",()=>c],299224);let p="aident-skill";function m(e){return"2"===e||"1"===e}let h=["SKILL.md","references/api.md","references/loadout.md","references/mcp.md","references/troubleshooting.md"];var g=((t={}).Available="available",t.Recommended="recommended",t),v=((r={}).Global="global",r),y=((i={}).FilesV1="aident-skill-files-v1",i);let A=l.default.string().regex(/^[a-f0-9]{64}$/),L=l.default.string().url().refine(e=>e.startsWith("https://"),"Expected an HTTPS URL"),I=l.default.string().min(64).max(2048),x=l.default.string().regex(/^[a-zA-Z0-9._-]{1,100}$/),S=l.default.object({format:l.default.nativeEnum(y),url:l.default.string().url(),sha256:A,byteLength:l.default.number().int().positive()}),b=l.default.object({policyId:l.default.string().regex(/^[a-zA-Z0-9._-]{1,200}$/),promptIntervalSeconds:l.default.number().int().positive(),cli:l.default.object({recommendedVersion:u,minimumVersion:u,recommendation:l.default.nativeEnum(g)}),skill:l.default.object({recommendedVersion:u,requiredScope:l.default.nativeEnum(v),recommendation:l.default.nativeEnum(g),artifact:S})}).strict();var O=((n={}).MacosPkgV1="macos-pkg-v1",n.WindowsNsisV1="windows-nsis-v1",n.LinuxTarZstV1="linux-tar-zst-v1",n),k=((o={}).Staging="staging",o.Rc="rc",o.Stable="stable",o);let E=l.default.object({format:l.default.literal("aident-onboarding-ui-v1"),version:u,protocolVersion:l.default.literal(1),minimumCliVersion:u,maximumCliVersion:u.optional(),url:L,byteLength:l.default.number().int().positive(),sha256:A,signature:I,signingKeyId:x}).strict().superRefine((e,t)=>{e.maximumCliVersion&&d(e.minimumCliVersion,e.maximumCliVersion)>0&&t.addIssue({code:l.default.ZodIssueCode.custom,path:["maximumCliVersion"],message:"Maximum CLI version cannot be lower than the minimum CLI version"})}),R=l.default.object({recommendedVersion:u,minimumVersion:u,recommendation:l.default.nativeEnum(g),rolloutPercent:l.default.number().int().min(0).max(100),rolloutSalt:l.default.string().min(16).max(200),manifest:l.default.object({url:L,byteLength:l.default.number().int().positive(),sha256:A,signature:I,signingKeyId:x}).strict()}).strict();l.default.object({schemaVersion:l.default.literal(1),desktop:R,onboardingUi:E}
1).strict();var w=((s={}).MacosArm64="macos-arm64",s.MacosX64="macos-x64",s.WindowsX64="windows-x64",s.LinuxX64="linux-x64",s);let C=["linux-x64","macos-arm64","macos-x64","windows-x64"];function _(e){return C.includes(e)}let P=l.default.object({format:l.default.nativeEnum(O),url:L,directInstallerUrl:L,byteLength:l.default.number().int().positive(),sha256:A,signature:I,signingKeyId:x,sbomUrl:L,provenanceUrl:L,osSigningIdentity:l.default.string().min(1).max(300).optional()}).strict();l.default.object({schemaVersion:l.default.literal(1),channel:l.default.nativeEnum(k),desktopVersion:u,cliVersion:u,sourceCommit:l.default.string().regex(/^[a-f0-9]{40}$/),publishedAt:l.default.string().datetime(),artifacts:l.default.object({"macos-arm64":P.optional(),"macos-x64":P.optional(),"windows-x64":P.optional(),"linux-x64":P.optional()}).strict()}).strict();let T=b.extend({schemaVersion:l.default.literal(1)}),U=b.extend({schemaVersion:l.default.literal(2),desktop:R.optional(),onboardingUi:E.optional()});l.default.discriminatedUnion("schemaVersion",[T,U]).superRefine((e,t)=>{c(e.cli.minimumVersion)&&c(e.cli.recommendedVersion)&&d(e.cli.minimumVersion,e.cli.recommendedVersion)>0&&t.addIssue({code:l.default.ZodIssueCode.custom,path:["cli","minimumVersion"],message:"Minimum CLI version cannot exceed the recommended version"}),2===e.schemaVersion&&e.desktop&&d(e.desktop.minimumVersion,e.desktop.recommendedVersion)>0&&t.addIssue({code:l.default.ZodIssueCode.custom,path:["desktop","minimumVersion"],message:"Minimum desktop version cannot exceed the recommended version"})});let D=l.default.object({schemaVersion:l.default.literal(1),name:l.default.literal(p),version:u,files:l.default.array(l.default.object({path:l.default.string().min(1),content:l.default.string()})).min(1)}).superRefine((e,t)=>{let r=e.files.map(e=>e.path);r.length===h.length&&new Set(r).size===r.length&&h.every(e=>r.includes(e))||t.addIssue({code:l.default.ZodIssueCode.custom,path:["files"],message:"Aident skill package must contain exactly the supported package paths"})});function V(e){return JSON.stringify(D.parse(e))}e.s(["AIDENT_UPDATE_LEGACY_PROTOCOL_VERSION",0,"1","AIDENT_UPDATE_PROMPT_INTERVAL_SECONDS",0,86400,"AidentDesktopChannel",()=>k,"AidentDesktopPlatformArch",()=>w,"AidentDesktopUpdateSchema",0,R,"AidentOnboardingUiArtifactSchema",0,E,"LOADOUT_SKILL_PACKAGE_NAME",0,p,"LOADOUT_SKILL_REQUIRED_FILES",0,h,"LOADOUT_SKILL_VERSION",0,"0.4.19","LoadoutSkillArtifactFormat",()=>y,"LoadoutSkillPackageSchema",0,D,"LoadoutSkillRequiredScope",()=>v,"LoadoutUpdateRecommendation",()=>g,"isAidentDesktopReleaseTarget",()=>_,"isSupportedAidentUpdateProtocol",()=>
1m,"serializeLoadoutSkillPackage",()=>V],979021)},418913,298472,e=>{"use strict";var t=e.i(401613),r=e.i(840253);function i(e){let t=encodeURIComponent(e);return{claude:`claude://code/new?q=${t}`,codex:`codex://threads/new?prompt=${t}`,cursor:`cursor://anysphere.cursor-deeplink/prompt?text=${t}`,workbuddy:`workbuddy://task?action=start&prompt=${t}`}}function n(e,i){let n=i?`${t.LOADOUT_PUBLIC_SETUP_URL}?via=${encodeURIComponent(i)}`:t.LOADOUT_PUBLIC_SETUP_URL;return(0,r.parseLoadoutLocale)(e)===r.LoadoutLocale.SIMPLIFIED_CHINESE?`按此操作:${n}`:i?`Follow ${n}`:t.LOADOUT_SKILL_SETUP_PROMPT}function o(e,t,o){let s=o??n(e,t),l=i(s);if((0,r.parseLoadoutLocale)(e)===r.LoadoutLocale.SIMPLIFIED_CHINESE)return l;let a=void 0===o?s.replaceAll(" ","+"):encodeURIComponent(s);return{...l,claude:`claude://code/new?q=${a}`,codex:`codex://threads/new?prompt=${void 0===o?`hi+${a}+for+me`:encodeURIComponent(`hi ${s} for me`)}`}}e.s(["getLoadoutCodingAgentPromptUrls",()=>i],298472),e.s(["LOADOUT_LOCALE_COOKIE",0,"loadout_locale","getLoadoutCodingAgentSetupUrls",()=>o,"getLoadoutSetupPrompt",()=>n],418913)},290571,e=>{"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function r(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function i(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{a(i.next(e))}catch(e){o(e)}}function l(e){try{a(i.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,l)}a((i=i.apply(e,t||[])).next())})}function n(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>t,"__awaiter",()=>i,"__rest",()=>r,"__spreadArray",()=>n])},842727,75830,586318,e=>{"use strict";var t=e.i(271645),r=e.i(981140),i=e.i(30030),n=e.i(820783),o=e.i(991918),s=e.i(843476);function l(e){let r=e+"CollectionProvider",[l,a]=(0,i.createContextScope)(r),[u,c]=l(r,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:i}=e,n=t.default.useRef(null),o=t.default.useRef(new Map).current;return(0,s.jsx)(u,{scope:r,itemMap:o,collectionRef:n,children:i})};d.displayName=r;let f=e+"CollectionSlot",p=(0,o.createSlot)(f),m=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,o=c(f,r),l=(0,n.useComposedRefs)(t,o.collectionRef);return(0,s.jsx)(p,{ref:l,children:i})});m.displayName=f;let h=e+"CollectionItemSlot",g="data-radix-collection-item",v=(0,o.createSlot)(h),y=t.default.forwardRef((e,r)=>{let{scope:i,children:o,...l}=e,a=t.default.useRef(null),u=(0,n.useComposedRefs)(r,a),d=c(h,i);return t.default.useEffect(()=>(d.itemMap.set(a,{ref:a,...l}),()=>void d.itemMap.delete(a))),(0,s.jsx)(v,{...{[g]:""},ref:u,children:o})});return y.displayName=h,[{Provider:d,Slot:m,ItemSlot:y},function(r){let i=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(i.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[i.collectionRef,i.itemMap])},a]}var a=new WeakMap;function u(e,t){var r,i;let n,o,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,i=t,n=r.length,(s=(o=c(i))>=0?o:n+o)<0||s>=n?-1:s);return -1===l?void 0:e[l]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let i,n=this.has(t),o=this.#e.length,s=c(e),l=s>=0?s:o+s,a=l<0||l>=o?-1:l;if(a===this.size||n&&a===this.size-1||-1===a)return this.set(t,r),this;let u=this.size+ +!n;s<0&&l++;let d=[...this.#e],f=!1;for(let e=l;e<u;e++)if(l===e){let o=d[e];d[e]===t&&(o=d[e+1]),n&&this.delete(t),i=this.get(o),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],n=i;i=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,i){let n=new e(this);return n.insert(t,r,i),n}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let i=this.#e.indexOf(e);return -1===i?this:this.insert(i+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=u(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=u(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return u(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return i;r++}}findIndex(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return r;r++}return -1}filter(t,r){let i=[],n=0;for(let e of this)Reflect.apply(t,r,[e,n,this])&&i.push(e),n++;return new e(i)}map(t,r){let i=[],n=0;for(let e of this)i.push([e[0],Reflect.apply(t,r,[e,n,this])]),n++;return new e(i)}reduce(...e){let[t,r]=e,i=0,n=r??this.at(0);for(let r of this)n=0===i&&1===e.length?r:Reflect.apply(t,this,[n,r,i,this]),i++;return n}reduceRight(...e){let[t,r]=e,i=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let n=this.at(r);i=r===this.size-1&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),i=this.get(r);t.set(r,i)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let i=new e,n=this.size-1;if(void 0===t)return i;t<0&&(t+=this.size),void 0!==r&&r>0&&(n=r-1);for(let e=t;e<=n;e++){let t=this.keyAt(e),r=this.get(t);i.set(t,r)}return i}every(e,t){let r=0;for(let i of this){if(!Reflect.apply(e,t,[i,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>l],75830);var d=e.i(382811),f=e.i(248425),p=e.i(30207),m=e.i(369340),h=t.createContext(void 0);function g(e){let r=t.useContext(h);return e||r||"ltr"}e.s(["useDirection",()=>g],586318);var v="rovingFocusGroup.onEntryFocus",y={bubbles:!1,cancelable:!0},A="RovingFocusGroup",[L,I,x]=l(A),[S,b]=(0,i.createContextScope)(A,[x]),[O,k]=S(A),E=t.forwardRef((e,t)=>
1(0,s.jsx)(L.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(L.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(R,{...e,ref:t})})}));E.displayName=A;var R=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:o,orientation:l,loop:a=!1,dir:u,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:L,preventScrollOnEntryFocus:x=!1,...S}=e,b=t.useRef(null),k=(0,n.useComposedRefs)(i,b),E=g(u),[R,w]=(0,m.useControllableState)({prop:c,defaultProp:d??null,onChange:h,caller:A}),[C,_]=t.useState(!1),T=(0,p.useCallbackRef)(L),U=I(o),D=t.useRef(!1),[V,j]=t.useState(0);return t.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(v,T),()=>e.removeEventListener(v,T)},[T]),(0,s.jsx)(O,{scope:o,orientation:l,dir:E,loop:a,currentTabStopId:R,onItemFocus:t.useCallback(e=>w(e),[w]),onItemShiftTab:t.useCallback(()=>_(!0),[]),onFocusableItemAdd:t.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>j(e=>e-1),[]),children:(0,s.jsx)(f.Primitive.div,{tabIndex:C||0===V?-1:0,"data-orientation":l,...S,ref:k,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(v,y);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=U().filter(e=>e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),x)}}D.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>_(!1))})})}),w="RovingFocusGroupItem",C=t.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:l=!1,tabStopId:a,children:u,...c}=e,p=(0,d.useId)(),m=a||p,h=k(w,n),g=h.currentTabStopId===m,v=I(n),{onFocusableItemAdd:y,onFocusableItemRemove:A,currentTabStopId:x}=h;return t.useEffect(()=>{if(o)return y(),()=>A()},[o,y,A]),(0,s.jsx)(L.ItemSlot,{scope:n,id:m,focusable:o,active:l,children:(0,s.jsx)(f.Primitive.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...c,ref:i,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{o?h.onItemFocus(m):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var i;let n=(i=e.key,"rtl"!==r?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return _[n]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){var r,i;"prev"===t&&n.reverse();let o=n.indexOf(e.currentTarget);n=h.loop?(r=n,i=o+1,r.map((e,t)=>r[(i+t)%r.length])):n.slice(o+1)}setTimeout(()=>P(n))}}),children:"function"==typeof u?u({isCurrentTabStop:g,hasTabStop:null!=x}):u})})});C.displayName=w;var _={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P(e,t=!1){let r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>E,"createRovingFocusGroupScope",()=>b],842727)}]);
2
3//# chunkId=01a0fdaf-124b-7421-ae0b-11acf089c0b2

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.