chore(publish): replace source tree with static export at repo root

Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.

Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
This commit is contained in:
Bkk1234 committed 2026-11-22 22:24:36 +07:00
1 parent 05487728a7
commit e6c4ebff48
394 files changed
+3977 -37891

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/session-replay--ys9kbH4.js","assets/api-path-DiLUeLL2.js","assets/preload-helper-CZgWQFsJ.js","assets/optional-peer-BHoJSOIB.js","assets/session-replay-endpoint-CkXvYk-L.js","assets/browser-Brwa_wdh.js"])))=>i.map(i=>d[i]);
import{r as e,t}from"./react-B8IZ02wI.js";import{T as n,_ as r,a as i,c as a,d as o,g as s,l as c,n as l,o as u,t as d,u as f,v as p}from"./api-path-DiLUeLL2.js";import{t as m}from"./preload-helper-CZgWQFsJ.js";import{n as h}from"./optional-peer-BHoJSOIB.js";import{a as g,c as ee,d as te,i as ne,l as re,n as ie,o as ae,r as oe,s as se,t as ce,u as le}from"./session-replay-endpoint-CkXvYk-L.js";var ue;function de(){return ue}var fe=`@agent-native/core/agent-loop`,_,pe,me=!1;async function he(){let e=de()?.tracerProvider;if(_!==void 0&&pe===e)return _;pe=e;try{let t=await h(`@opentelemetry/api`,()=>m(()=>import(`./esm-CWqsxKDN.js`),[])),n=e?e.getTracer(fe):t?.trace?.getTracer?.(fe);_=n?{tracer:n,...t?.context?.active&&t?.context?.with?{context:t.context}:{},...t?.trace?.setSpan?{trace:t.trace}:{}}:null}catch(e){me||(me=!0,console.warn(`[agent-native] OpenTelemetry tracing disabled after an optional peer load failure.`,e)),_=null}return _}function ge(e){let t={};for(let[n,r]of Object.entries(e))r!=null&&(t[n]=r);return t}var _e=new Map([[`action.response`,`action.client`],[`action_completed`,`action.server`],[`action_failed`,`action.server`],[`$ai_generation`,`llm.generation`],[`$ai_trace`,`llm.trace`],[`agent_run_terminal`,`agent.run.terminal`],[`$a2a_invocation`,`a2a.invocation`],[`$a2a_read_invoke`,`a2a.read`]]);function ve(e){let t=e.duration_ms;return typeof t==`number`&&Number.isFinite(t)&&t>=0?t:null}function ye(e){return typeof e==`string`||typeof e==`number`&&Number.isFinite(e)||typeof e==`boolean`?e:void 0}function be(e){let t={},n=(n,r)=>{let i=e[r];typeof i==`number`&&Number.isFinite(i)&&i>=0&&(t[n]=i)},r=(n,r)=>{let i=e[r];typeof i==`boolean`&&(t[n]=i)};r(`agent.success`,`success`),r(`agent.sampled`,`sampled`),n(`agent.sample_rate`,`sample_rate`);for(let e of[`duration_ms`,`ttfb_ms`,`body_ms`,`server_duration_ms`,`network_overhead_ms`,`framework_ready_wait_ms`,`db_operation_wall_ms`,`db_operation_count`,`cold_start`])n(`agent.${e}`,e);let i=e.status_code;return typeof i==`number`&&Number.isInteger(i)&&i>=100&&i<=599&&(t[`http.status_code`]=i,t[`http.status_class`]=`${Math.floor(i/100)}xx`),t}function xe(e,t,n){let r=n===`client`?{}:{"agent.event_name":e};if(n&&(r[`agent.telemetry_source`]=n),n===`client`)return{...r,...be(t)};let i=(e,n,i=t[n])=>{let a=ye(i);a!==void 0&&(r[e]=a)};return i(`agent.source`,`source`),e!==`$a2a_read_invoke`&&i(`agent.action`,`action_name`,t.action),i(`agent.action_source`,`action_source`),i(`agent.caller`,`caller`),i(`agent.outcome`,`outcome`),i(`agent.success`,`success`),i(`agent.sample_rate`,`sample_rate`),i(`agent.sampled`,`sampled`),i(`http.method`,`method`),i(`http.route`,`route_template`),i(`http.status_code`,`status_code`),i(`http.status_class`,`status_class`),i(`agent.duration_ms`,`duration_ms`),i(`agent.ttfb_ms`,`ttfb_ms`),i(`agent.body_ms`,`body_ms`),i(`agent.server_duration_ms`,`server_duration_ms`),i(`agent.network_overhead_ms`,`network_overhead_ms`),i(`agent.framework_ready_wait_ms`,`framework_ready_wait_ms`),i(`agent.db_operation_wall_ms`,`db_operation_wall_ms`),i(`agent.db_operation_count`,`db_operation_count`),i(`agent.cold_start`,`cold_start`),r}function Se(e){if(e.success===!1)return`error`;let t=e.status_code;if(typeof t==`number`&&t>=400||e.$ai_is_error===!0)return`error`;let n=e.status;if(typeof n==`string`&&/^(?:aborted|error|errored|failed|truncated)$/i.test(n))return`error`;let r=e.outcome;return typeof r==`string`&&/(?:cancel|error|fail|network|timeout)/i.test(r)?`error`:`success`}async function Ce(e,t={},n){let r=e.trim(),i=ve(t),a=_e.get(r);if(!(!a||i===null))try{let e=Date.now();Te(await we(a,xe(r,t,n),null,e-i),{status:Se(t),endTime:e})}catch{}}async function we(e,t={},n=null,r){let i=await he();if(!i)return null;try{let a;if(n&&i.context&&i.trace)try{a=i.trace.setSpan(i.context.active(),n)}catch{}return i.tracer.startSpan(e,{attributes:ge(t),...r===void 0?{}:{startTime:r}},a)}catch{return null}}function Te(e,t={}){if(e)try{t.attributes&&e.setAttributes(ge(t.attributes)),t.status===`error`?(e.setStatus({code:2,message:t.errorMessage??void 0}),t.errorMessage&&e.recordException({message:t.errorMessage})):t.status!==`unset`&&e.setStatus({code:1})}catch{}finally{try{e.end(t.endTime)}catch{}}}var v={appEntered:`app_entered`,coreActionStarted:`core_action_started`,coreActionCompleted:`core_action_completed`,outputViewed:`output_viewed`,outputShared:`output_shared`,returnUsage:`return_usage`,crossAppUsed:`cross_app_used`,coreActionFailed:`core_action_failed`,ctaClicked:`cta_clicked`},Ee=`event_alias_id`,De={"auth.login_clicked":`auth_login_clicked`,"auth.signup_clicked":`auth_signup_clicked`,"auth.signup_completed":`auth_signup_completed`,"auth.signup_viewed":`auth_signup_viewed`,"build your app":`build_your_app`,"builder branch waitlist joined":`builder_branch_waitlist_joined`,"builder connect clicked":`builder_connect_clicked`,"builder connect failed":`builder_connect_failed`,"builder connect popup blocked":`builder_connect_popup_blocked`,"builLine truncated
`)){if(r.length>pt)continue;let e=ht.test(r)?r.replace(ht,`$1`):r;if(mt.test(e))continue;let i=bt(e,t);if(i&&n.push(i),n.length>=ft)break}return n.reverse(),n}function St(e){let t=e.lang??`javascript`,n=xt(e.stack,t);return{$exception_list:[{type:p(e.type||`Error`,200),value:p(e.value||e.type||`Error`,r),mechanism:{handled:e.handled??!0,synthetic:e.synthetic??!1,...e.mechanismType?{type:p(e.mechanismType,100)}:{}},...n.length?{stacktrace:{type:`raw`,frames:n}}:{}}],$exception_level:e.level??`error`,...e.fingerprint?{$exception_fingerprint:p(e.fingerprint,200)}:{}}}function Ct(e){if(e)return e;if(typeof window>`u`)return`web`;let t=window;return He(t.agentNativeDesktop?.analytics?.clientPlatform)??He(t.__AGENT_NATIVE_HOST_PLATFORM__)??He(t.__AGENT_NATIVE_CONFIG__?.clientPlatform)??`web`}var wt=`thread`;function Tt(e,t){return`${e.replace(/\/+$/,``)}/?${wt}=${encodeURIComponent(t)}`}function Et(e){let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`string`)continue;let e=r.trim();e&&(t[n]=e)}return t}var Dt=`agent-chat-active-run`;function Ot(e,t){return`${e}${t}`}function kt(){return{current:null,runs:{}}}function At(e){let t=e;return!!(t&&typeof t==`object`&&typeof t.threadId==`string`&&typeof t.runId==`string`)}function jt(){try{let e=sessionStorage.getItem(Dt);if(!e)return kt();let t=JSON.parse(e);if(At(t)){let e=Ot(t.threadId,t.runId);return{current:e,runs:{[e]:t}}}let n=t;return!n||typeof n!=`object`||!n.runs?kt():{current:typeof n.current==`string`?n.current:null,runs:n.runs}}catch{return kt()}}function Mt(){let e=jt();return e.current?e.runs[e.current]??null:null}function Nt(){try{let e=new URLSearchParams(window.location.search);return e.get(`thread`)?.trim()||e.get(`threadId`)?.trim()||void 0}catch{return}}function Pt(e={}){if(typeof window>`u`)return Et(e);let t=Et(e),n=Mt(),r=t.threadId??Nt()??n?.threadId;return Et({appId:window.location.host,release:`agent-native-client@${s()||`development`}`,occurredAt:new Date().toISOString(),...t,threadId:r,runId:t.runId??(n?.threadId===r?n?.runId:void 0),threadUrl:t.threadUrl??(r?Tt(new URL(l(`/`),window.location.origin).toString(),r):void 0)})}t();var Ft=250,It=500;function Lt(e){if(typeof window>`u`||typeof setTimeout!=`function`)return()=>{};let t=!1,n=[],r=()=>{if(!t){t=!0;for(let e of n.splice(0))e();e()}},i=setTimeout(r,Ft);n.push(()=>clearTimeout(i));let a=()=>{if(typeof requestIdleCallback==`function`){let e=requestIdleCallback(r,{timeout:It});n.push(()=>cancelIdleCallback(e))}else{let e=setTimeout(r,0);n.push(()=>clearTimeout(e))}};if(typeof requestAnimationFrame==`function`){let e=()=>{let e=requestAnimationFrame(()=>{t||a()});n.push(()=>cancelAnimationFrame(e))},r=requestAnimationFrame(()=>{t||e()});n.push(()=>cancelAnimationFrame(r))}else a();return()=>{t=!0;for(let e of n.splice(0))e()}}var Rt=500,zt=1e4,Bt=128,Vt=3e4,Ht=15e3,C=`/_agent-native/auth/session`,Ut=`/_agent-native/agent-engine/status`,w=new Map,T=new Map,E=new Map,Wt=new WeakSet,Gt=new WeakSet,D=new Map,Kt=new WeakMap,qt=1,Jt=!1,Yt=0,Xt=0;function Zt(e){return typeof e==`object`&&!!e&&!e.error}function O(e){try{let t=typeof window>`u`?`http://agent-native.invalid`:window.location.href;return new URL(e,t).toString()}catch{return e}}function Qt(e){let t=Kt.get(e);return t===void 0&&(t=qt++,Kt.set(e,t)),t}function $t(e){let t=[];if(Array.isArray(e))for(let[n,r]of e)t.push([n.toLowerCase(),r.trim()]);else if(typeof e.forEach==`function`)e.forEach((e,n)=>{t.push([n.toLowerCase(),e.trim()])});else for(let[n,r]of Object.entries(e))t.push([n.toLowerCase(),r.trim()]);let n=new Map;for(let[e,r]of t){let t=n.get(e)??[];t.push(r),n.set(e,t)}return[...n].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>[e,t])}function en(e){if(e===void 0)return``;try{return JSON.stringify($t(e))}catch{return`identity:${Qt(e)}`}}function tn(e,t){let n=t?.fetch??globalThis.fetch,r=typeof n==`function`?Qt(n):null;return JSON.stringify([e,r,t?.credentials??`same-origin`,en(t?.headers)])}function nn(e){for(let[t,n]of w)n.expiresAt<=e&&w.delete(t);if(w.size<=Bt)return;let t=[...w.entries()].sort((e,t)=>e[1].expiresAt-t[1].expiresAt);for(let[e]of t){if(w.size<=Bt)break;w.delete(e)}}function rn(){Yt+=1;let e=O(d(C)),t=O(d(Ut));for(let[n,r]of w)r.url!==e&&r.url!==t&&w.delete(n)}function an(){Jt||typeof window>`u`||typeof document>`u`||(Jt=!0,typeof window.addEventListener==`function`&&(window.addEventListener(`focus`,rn),window.addEventListener(`agent-engine:configured-changed`,ln),window.addEventListener(`agent-native:tool-done`,e=>{let t=e.detail;t?.tool===`manage-agent-engine`&&t.completedSideEffect===!0&&t.isError!==!0&&window.dispatchEvent(new Event(`agent-engine:configured-changed`))})),typeof document.addEventListener==`function`&&document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`visible`&&rn()}))}async function on(e,t){if(re())return{state:`unavailable`};an();let n=t?.url??d(e),r=O(n),i=tn(r,t);nn(Date.now());let a=w.get(i);if(!t?.fresh&&a&&a.expiresAt>Date.now())return a.result;w Line truncated