lotus-wisdom-mcp 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +2 -2
- package/dist/index.js +2 -2
- package/dist/journey.html +21 -21
- package/package.json +4 -2
package/dist/bundle.js
CHANGED
|
@@ -12815,7 +12815,7 @@ function createServer() {
|
|
|
12815
12815
|
const server = new Server(
|
|
12816
12816
|
{
|
|
12817
12817
|
name: "lotus-wisdom-server",
|
|
12818
|
-
version: "0.
|
|
12818
|
+
version: "0.6.0"
|
|
12819
12819
|
},
|
|
12820
12820
|
{
|
|
12821
12821
|
capabilities: {
|
|
@@ -12872,7 +12872,7 @@ async function main() {
|
|
|
12872
12872
|
const server = createServer();
|
|
12873
12873
|
const transport = new StdioServerTransport();
|
|
12874
12874
|
await server.connect(transport);
|
|
12875
|
-
console.error("Lotus Wisdom MCP Server v0.
|
|
12875
|
+
console.error("Lotus Wisdom MCP Server v0.6.0 running");
|
|
12876
12876
|
}
|
|
12877
12877
|
var isDirectRun = process.argv[1] && (process.argv[1].endsWith("bundle.js") || process.argv[1].endsWith("index.js") || process.argv[1].endsWith("index.ts"));
|
|
12878
12878
|
if (isDirectRun) {
|
package/dist/index.js
CHANGED
|
@@ -422,7 +422,7 @@ const JOURNEY_SUMMARY_TOOL = {
|
|
|
422
422
|
export default function createServer() {
|
|
423
423
|
const server = new Server({
|
|
424
424
|
name: "lotus-wisdom-server",
|
|
425
|
-
version: "0.
|
|
425
|
+
version: "0.6.0",
|
|
426
426
|
}, {
|
|
427
427
|
capabilities: {
|
|
428
428
|
tools: {},
|
|
@@ -481,7 +481,7 @@ async function main() {
|
|
|
481
481
|
const server = createServer();
|
|
482
482
|
const transport = new StdioServerTransport();
|
|
483
483
|
await server.connect(transport);
|
|
484
|
-
console.error("Lotus Wisdom MCP Server v0.
|
|
484
|
+
console.error("Lotus Wisdom MCP Server v0.6.0 running");
|
|
485
485
|
}
|
|
486
486
|
// Only run stdio when executed directly (not when imported by Smithery CLI)
|
|
487
487
|
const isDirectRun = process.argv[1] && (process.argv[1].endsWith('bundle.js') ||
|
package/dist/journey.html
CHANGED
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
|
|
9
9
|
|
|
10
10
|
:root {
|
|
11
|
-
--bg: #
|
|
12
|
-
--bg-c: #
|
|
13
|
-
--hz: #
|
|
14
|
-
--conn: #
|
|
15
|
-
--dim: #
|
|
16
|
-
--mid: #
|
|
17
|
-
--hi: #
|
|
18
|
-
--bright: #
|
|
19
|
-
--entry: #
|
|
20
|
-
--process: #
|
|
21
|
-
--skillful: #
|
|
22
|
-
--nondual: #
|
|
23
|
-
--meta: #
|
|
24
|
-
--med: #
|
|
11
|
+
--bg: #faf8f5;
|
|
12
|
+
--bg-c: #f6f3ee;
|
|
13
|
+
--hz: #e2ddd4;
|
|
14
|
+
--conn: #c8c2b6;
|
|
15
|
+
--dim: #958e82;
|
|
16
|
+
--mid: #6b655c;
|
|
17
|
+
--hi: #4a453e;
|
|
18
|
+
--bright: #2c2824;
|
|
19
|
+
--entry: #7a7a8c;
|
|
20
|
+
--process: #a88430;
|
|
21
|
+
--skillful: #b58a1c;
|
|
22
|
+
--nondual: #2e7d42;
|
|
23
|
+
--meta: #4068c8;
|
|
24
|
+
--med: #2a8f7a;
|
|
25
25
|
--mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
|
|
26
26
|
--sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
html, body {
|
|
30
30
|
width: 100%;
|
|
31
|
-
background:
|
|
31
|
+
background: var(--bg);
|
|
32
32
|
color: var(--mid);
|
|
33
33
|
font-family: var(--sans);
|
|
34
34
|
-webkit-font-smoothing: antialiased;
|
|
@@ -48,7 +48,7 @@ html, body {
|
|
|
48
48
|
transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
|
|
49
49
|
pointer-events: none; z-index: 1;
|
|
50
50
|
}
|
|
51
|
-
#void span { font-size: 20px; opacity: .
|
|
51
|
+
#void span { font-size: 20px; opacity: .08; animation: drift 80s linear infinite }
|
|
52
52
|
@keyframes drift { to { transform: rotate(360deg) } }
|
|
53
53
|
|
|
54
54
|
#tw {
|
|
@@ -66,7 +66,7 @@ html, body {
|
|
|
66
66
|
}
|
|
67
67
|
#ct.on { opacity: 1 }
|
|
68
68
|
#ct::-webkit-scrollbar { width: 2px }
|
|
69
|
-
#ct::-webkit-scrollbar-thumb { background: #
|
|
69
|
+
#ct::-webkit-scrollbar-thumb { background: #ccc5b8; border-radius: 2px }
|
|
70
70
|
#ct::-webkit-scrollbar-track { background: transparent }
|
|
71
71
|
|
|
72
72
|
#ci {
|
|
@@ -81,8 +81,8 @@ html, body {
|
|
|
81
81
|
margin-bottom: 6px; flex-wrap: wrap;
|
|
82
82
|
}
|
|
83
83
|
#ch { font-family: var(--mono); font-size: 10px; letter-spacing: .05em }
|
|
84
|
-
#cd { font-size: 7px; text-transform: uppercase; letter-spacing: .22em; opacity: .
|
|
85
|
-
#cn { font-size: 9px; opacity: .
|
|
84
|
+
#cd { font-size: 7px; text-transform: uppercase; letter-spacing: .22em; opacity: .7 }
|
|
85
|
+
#cn { font-size: 9px; opacity: .5; font-variant-numeric: tabular-nums; margin-left: auto }
|
|
86
86
|
|
|
87
87
|
#cx {
|
|
88
88
|
font-size: 13.5px; line-height: 1.72;
|
|
@@ -133,7 +133,7 @@ html, body {
|
|
|
133
133
|
from { stroke-dashoffset: var(--len) }
|
|
134
134
|
to { stroke-dashoffset: 0 }
|
|
135
135
|
}
|
|
136
|
-
@keyframes ambient { 0%,100% { opacity: .
|
|
136
|
+
@keyframes ambient { 0%,100% { opacity: .06 } 50% { opacity: .12 } }
|
|
137
137
|
</style>
|
|
138
138
|
<script type="module" crossorigin>(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),Object.freeze({status:`aborted`});function e(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var t=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},n=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},r={};function i(e){return e&&Object.assign(r,e),r}function a(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function o(e,t){return typeof t==`bigint`?t.toString():t}function s(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function c(e){return e==null}function l(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function u(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var d=Symbol(`evaluating`);function f(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==d)return r===void 0&&(r=d,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function p(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function m(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function ee(e){return JSON.stringify(e)}function te(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ne=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function re(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ie=s(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function ae(e){if(re(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(re(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function oe(e){return ae(e)?{...e}:Array.isArray(e)?[...e]:e}var se=new Set([`string`,`number`,`symbol`]);function ce(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function h(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function g(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function le(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var ue={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function de(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return h(e,m(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return p(this,`shape`,e),e},checks:[]}))}function fe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return h(e,m(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return p(this,`shape`,r),r},checks:[]}))}function pe(e,t){if(!ae(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return h(e,m(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return p(this,`shape`,n),n}}))}function me(e,t){if(!ae(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return h(e,m(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return p(this,`shape`,n),n}}))}function he(e,t){return h(e,m(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return p(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function ge(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return h(t,m(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return p(this,`shape`,i),i},checks:[]}))}function _e(e,t,n){return h(t,m(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return p(this,`shape`,i),i}}))}function ve(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ye(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function be(e){return typeof e==`string`?e:e?.message}function _(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=be(e.inst?._zod.def?.error?.(e))??be(t?.error?.(e))??be(n.customError?.(e))??be(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function xe(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Se(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Ce=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,o,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},we=e(`$ZodError`,Ce),Te=e(`$ZodError`,Ce,{Parent:Error});function Ee(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function De(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var Oe=e=>(n,r,a,o)=>{let s=a?Object.assign(a,{async:!1}):{async:!1},c=n._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new t;if(c.issues.length){let t=new(o?.Err??e)(c.issues.map(e=>_(e,s,i())));throw ne(t,o?.callee),t}return c.value},ke=e=>async(t,n,r,a)=>{let o=r?Object.assign(r,{async:!0}):{async:!0},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(a?.Err??e)(s.issues.map(e=>_(e,o,i())));throw ne(t,a?.callee),t}return s.value},Ae=e=>(n,r,a)=>{let o=a?{...a,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new t;return s.issues.length?{success:!1,error:new(e??we)(s.issues.map(e=>_(e,o,i())))}:{success:!0,data:s.value}},je=Ae(Te),Me=e=>async(t,n,r)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>_(e,a,i())))}:{success:!0,data:o.value}},Ne=Me(Te),Pe=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Oe(e)(t,n,i)},Fe=e=>(t,n,r)=>Oe(e)(t,n,r),Ie=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return ke(e)(t,n,i)},Le=e=>async(t,n,r)=>ke(e)(t,n,r),Re=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ae(e)(t,n,i)},ze=e=>(t,n,r)=>Ae(e)(t,n,r),Be=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Me(e)(t,n,i)},Ve=e=>async(t,n,r)=>Me(e)(t,n,r),He=/^[cC][^\s-]{8,}$/,Ue=/^[0-9a-z]+$/,We=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ge=/^[0-9a-vA-V]{20}$/,Ke=/^[A-Za-z0-9]{27}$/,qe=/^[a-zA-Z0-9_-]{21}$/,Je=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ye=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Xe=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ze=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Qe=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function $e(){return new RegExp(Qe,`u`)}var et=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,nt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,rt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,it=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,at=/^[A-Za-z0-9_-]*$/,ot=/^\+[1-9]\d{6,14}$/,st=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,ct=RegExp(`^${st}$`);function lt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ut(e){return RegExp(`^${lt(e)}$`)}function dt(e){let t=lt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${st}T(?:${r})$`)}var ft=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},pt=/^-?\d+$/,mt=/^-?\d+(?:\.\d+)?$/,ht=/^(?:true|false)$/i,gt=/^null$/i,_t=/^undefined$/i,vt=/^[^A-Z]*$/,yt=/^[^a-z]*$/,v=e(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),bt={number:`number`,bigint:`bigint`,object:`date`},xt=e(`$ZodCheckLessThan`,(e,t)=>{v.init(e,t);let n=bt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),St=e(`$ZodCheckGreaterThan`,(e,t)=>{v.init(e,t);let n=bt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ct=e(`$ZodCheckMultipleOf`,(e,t)=>{v.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):u(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),wt=e(`$ZodCheckNumberFormat`,(e,t)=>{v.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ue[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=pt)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Tt=e(`$ZodCheckMaxLength`,(e,t)=>{var n;v.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!c(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=xe(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Et=e(`$ZodCheckMinLength`,(e,t)=>{var n;v.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!c(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=xe(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dt=e(`$ZodCheckLengthEquals`,(e,t)=>{var n;v.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!c(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=xe(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ot=e(`$ZodCheckStringFormat`,(e,t)=>{var n,r;v.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),kt=e(`$ZodCheckRegex`,(e,t)=>{Ot.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),At=e(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=vt,Ot.init(e,t)}),jt=e(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=yt,Ot.init(e,t)}),Mt=e(`$ZodCheckIncludes`,(e,t)=>{v.init(e,t);let n=ce(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Nt=e(`$ZodCheckStartsWith`,(e,t)=>{v.init(e,t);let n=RegExp(`^${ce(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Pt=e(`$ZodCheckEndsWith`,(e,t)=>{v.init(e,t);let n=RegExp(`.*${ce(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Ft=e(`$ZodCheckOverwrite`,(e,t)=>{v.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),It=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
139
139
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
@@ -219,7 +219,7 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
219
219
|
- omitted: host decides border`)}),j({method:I(`ui/request-display-mode`),params:j({mode:tl.describe(`The display mode being requested.`)})});var _l=j({mode:tl.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),vl=N([I(`model`),I(`app`)]).describe(`Tool visibility scope - who can access the tool.`);j({resourceUri:T().optional(),visibility:A(vl).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
220
220
|
- "model": Tool visible to and callable by the agent
|
|
221
221
|
- "app": Tool callable by the app from this server only`)}),j({mimeTypes:A(T()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),j({method:I(`ui/download-file`),params:j({contents:A(N([Zs,Qs])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),j({method:I(`ui/message`),params:j({role:I(`user`).describe(`Message role, currently only "user" is supported.`),content:A($s).describe(`Message content blocks (text, image, etc.).`)})}),j({method:I(`ui/notifications/sandbox-resource-ready`),params:j({html:T().describe(`HTML content to load into the inner iframe.`),sandbox:T().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:ol.optional().describe(`CSP configuration from resource metadata.`),permissions:sl.optional().describe(`Sandbox permissions from resource metadata.`)})});var yl=j({method:I(`ui/notifications/tool-result`),params:cc.describe(`Standard MCP tool execution result.`)}),bl=j({toolInfo:j({id:Oo.optional().describe(`JSON-RPC id of the tools/call request.`),tool:ac.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:el.optional().describe(`Current color theme preference.`),styles:fl.optional().describe(`Style configuration for theming the app.`),displayMode:tl.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:A(tl).optional().describe(`Display modes the host supports.`),containerDimensions:N([j({height:D().describe(`Fixed container height in pixels.`)}),j({maxHeight:N([D(),Na()]).optional().describe(`Maximum container height in pixels.`)})]).and(N([j({width:D().describe(`Fixed container width in pixels.`)}),j({maxWidth:N([D(),Na()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
222
|
-
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:T().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:T().optional().describe(`User's timezone in IANA format.`),userAgent:T().optional().describe(`Host application identifier.`),platform:N([I(`web`),I(`desktop`),I(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:j({touch:O().optional().describe(`Whether the device supports touch input.`),hover:O().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:j({top:D().describe(`Top safe area inset in pixels.`),right:D().describe(`Right safe area inset in pixels.`),bottom:D().describe(`Bottom safe area inset in pixels.`),left:D().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),xl=j({method:I(`ui/notifications/host-context-changed`),params:bl.describe(`Partial context update containing only changed fields.`)});j({method:I(`ui/update-model-context`),params:j({content:A($s).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:P(T(),k().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),j({method:I(`ui/initialize`),params:j({appInfo:Uo.describe(`App identification (name and version).`),appCapabilities:gl.describe(`Features and capabilities this app provides.`),protocolVersion:T().describe(`Protocol version this app supports.`)})});var Sl=j({protocolVersion:T().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:Uo.describe(`Host application identification and version.`),hostCapabilities:hl.describe(`Features and capabilities provided by the host.`),hostContext:bl.describe(`Rich context about the host environment.`)}).passthrough(),Cl=class extends Zc{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,this.setRequestHandler($o,e=>(console.log(`Received ping:`,e.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(e){this.setNotificationHandler(cl,t=>e(t.params))}set ontoolinputpartial(e){this.setNotificationHandler(ll,t=>e(t.params))}set ontoolresult(e){this.setNotificationHandler(yl,t=>e(t.params))}set ontoolcancelled(e){this.setNotificationHandler(ul,t=>e(t.params))}set onhostcontextchanged(e){this.setNotificationHandler(xl,t=>{this._hostContext={...this._hostContext,...t.params},e(t.params)})}set onteardown(e){this.setRequestHandler(pl,(t,n)=>e(t.params,n))}set oncalltool(e){this.setRequestHandler(uc,(t,n)=>e(t.params,n))}set onlisttools(e){this.setRequestHandler(oc,(t,n)=>e(t.params,n))}assertCapabilityForMethod(e){}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},cc,t)}async readServerResource(e,t){return await this.request({method:`resources/read`,params:e},Ns,t)}async listServerResources(e,t){return await this.request({method:`resources/list`,params:e},Ds,t)}sendMessage(e,t){return this.request({method:`ui/message`,params:e},al,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this.request({method:`ui/update-model-context`,params:e},Ro,t)}openLink(e,t){return this.request({method:`ui/open-link`,params:e},rl,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this.request({method:`ui/download-file`,params:e},il,t)}requestDisplayMode(e,t){return this.request({method:`ui/request-display-mode`,params:e},_l,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.width,a=r.style.height;r.style.width=`fit-content`,r.style.height=`max-content`;let o=r.getBoundingClientRect();r.style.width=i,r.style.height=a;let s=window.innerWidth-r.clientWidth,c=Math.ceil(o.width+s),l=Math.ceil(o.height);(c!==t||l!==n)&&(t=c,n=l,this.sendSizeChanged({width:c,height:l}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new $c(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Qc}},Sl,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}},wl=`http://www.w3.org/2000/svg`,K=26,Tl=4.5,El=30,Dl=400,Ol=8,kl=22,Al={entry:`#6b6b7b`,process_flow:`#c4a35a`,skillful_means:`#d4a843`,non_dual_recognition:`#4a9a5c`,meta_cognitive:`#5b8def`,meditation:`#7ecfc0`},jl={entry:`Entry`,process_flow:`Process`,skillful_means:`Skillful Means`,non_dual_recognition:`Non-Dual`,meta_cognitive:`Meta-Cognitive`,meditation:`Meditation`},Ml={begin:`entry`,open:`process_flow`,engage:`process_flow`,express:`process_flow`,upaya:`skillful_means`,expedient:`skillful_means`,direct:`skillful_means`,gradual:`skillful_means`,sudden:`skillful_means`,recognize:`non_dual_recognition`,transform:`non_dual_recognition`,integrate:`non_dual_recognition`,transcend:`non_dual_recognition`,embody:`non_dual_recognition`,examine:`meta_cognitive`,reflect:`meta_cognitive`,verify:`meta_cognitive`,refine:`meta_cognitive`,complete:`meta_cognitive`,meditate:`meditation`},q=[],Nl=!1,J=null,Pl=-1,Y=-1,Fl=null,Il=null,Ll=``,X=0,Z=null;function Rl(e){return Al[e]??`#6b6b7b`}function zl(e){return jl[e]??e}function Bl(e){return Ml[e]??`entry`}function Q(e){let t=document.getElementById(e);if(!t)throw Error(`Element #${e} not found`);return t}function $(e,t){let n=document.createElementNS(wl,e);if(t)for(let e in t){let r=t[e];r!=null&&n.setAttribute(e,String(r))}return n}function Vl(){let e=q.length-X;if(!e)return[];let t=X>0?El+kl:El,n=Dl-El;if(e===1)return[(t+n)/2];let r=(n-t)/(e-1);return Array.from({length:e},(e,n)=>t+n*r)}function Hl(e){let t=Vl(),n=q.slice(X);Q(`gc`).innerHTML=``,X>0&&t.length>0&&Q(`gc`).appendChild($(`path`,{d:`M${El} ${K} L${t[0]} ${K}`,fill:`none`,stroke:`var(--conn)`,"stroke-width":.4,"stroke-dasharray":`3 3`,opacity:.15}));for(let r=0;r<n.length-1;r++){let i=t[r],a=t[r+1],o=(i+a)/2,s=K-2-Math.random()*1.2,c=Nl?Rl(n[r].dom):`var(--conn)`,l=Nl?1.4:.6,u=Nl?.45:.18,d={d:`M${i} ${K} Q${o} ${s} ${a} ${K}`,fill:`none`,stroke:c,"stroke-width":l,opacity:u};if(r===e-1&&!Nl){let e=Math.hypot(a-i,K-s)*1.08;d[`stroke-dasharray`]=e,d[`stroke-dashoffset`]=e,d.style=`--len:${e};animation:draw .55s ease-out forwards`}Q(`gc`).appendChild($(`path`,d))}return t}function Ul(e){let t=Q(`gn`).children;for(let n=0;n<e.length&&n<t.length;n++)t[n].setAttribute(`transform`,`translate(${e[n]},${K})`);J&&e.length&&J.setAttribute(`cx`,String(e[e.length-1]))}function Wl(e,t=!0){let{tag:n,dom:r}=e,i=Rl(r),a=n===`meditate`,o=Q(`gn`).querySelector(`.now, .hol`);if(o){o.className.baseVal=`sn past`;let e=o.querySelector(`circle:last-of-type`);e&&(e.style.animation=`none`,e.setAttribute(`opacity`,`.35`))}if(q.push({tag:n,dom:r,sn:e.sn,st:e.st,med:a,text:e.text||``}),q.length-X>Ol){let e=Q(`gn`).firstChild;e&&e.remove(),X++,Y>=0&&Y<X&&(Y=-1,ql()),Jl()}let s=Hl(t?q.length-X-1:-1);Ul(s);let c=s[s.length-1]??Dl/2;J&&J.remove(),J=$(`circle`,{cx:c,cy:K,r:20,fill:i,opacity:t?.04:0}),Q(`gg`).appendChild(J);let l=t?a?`sn hol`:`sn now`:`sn end`,u=$(`g`,{transform:`translate(${c},${K})`,class:l});u.dataset.i=String(q.length-1);let d=a?$(`circle`,{cx:0,cy:0,r:Tl,fill:`none`,stroke:i,"stroke-width":1.2}):$(`circle`,{cx:0,cy:0,r:Tl,fill:i});if(t||d.setAttribute(`opacity`,`.88`),u.appendChild($(`circle`,{cx:0,cy:0,r:Tl*3,fill:`transparent`})),u.appendChild(d),u.addEventListener(`mouseenter`,()=>Gl(+(u.dataset.i??`0`))),u.addEventListener(`mouseleave`,()=>Gl(Y>=0?Y:q.length-1)),u.addEventListener(`click`,e=>{e.stopPropagation(),Kl(+(u.dataset.i??`0`))}),Q(`gn`).appendChild(u),t){let e=$(`g`,{transform:`translate(${c},${K})`});e.appendChild($(`circle`,{cx:0,cy:0,r:Tl,fill:`none`,stroke:i,"stroke-width":.6,class:`rp`})),Q(`ge`).appendChild(e),setTimeout(()=>e.remove(),1e3)}Q(`void`).style.opacity=`0`,Q(`tr`).setAttribute(`aria-label`,`Journey: `+q.map(e=>e.tag).join(` → `)),Y=-1,ql(),Gl(q.length-1),Q(`ct`).classList.add(`on`),e.status===`WISDOM_READY`&&(Nl=!0,setTimeout(Yl,600))}function Gl(e){if(e<0||e>=q.length)return;Il&&=(clearTimeout(Il),null);let t=q[e],n=Rl(t.dom);if(e===Pl){Q(`ch`).style.color=n,Q(`cd`).style.color=n,Q(`ci`).style.borderLeftColor=n+`28`;return}let r=Q(`ci`);r.style.opacity=`0`,Il=setTimeout(()=>{Q(`ch`).textContent=t.tag,Q(`ch`).style.color=n,Q(`cd`).textContent=zl(t.dom),Q(`cd`).style.color=n,Q(`cn`).textContent=`step ${t.sn}`,r.style.borderLeftColor=n+`28`;let i=Q(`cx`);i.textContent=t.text,i.className=t.med?`med-text`:``,r.style.opacity=`1`,Q(`ct`).scrollTop=0,Pl=e},160)}function Kl(e){Y===e?(Y=-1,Gl(q.length-1)):(Y=e,Gl(e)),ql()}function ql(){if(Fl&&=(Fl.remove(),null),Y<0||Y>=q.length)return;let e=q[Y],t=Rl(e.dom);Fl=$(`circle`,{cx:0,cy:0,r:Tl+3.5,fill:`none`,stroke:t,"stroke-width":.5,opacity:.4,style:`pointer-events:none`});let n=Y-X,r=n>=0?Q(`gn`).children[n]:void 0;r&&r.appendChild(Fl)}function Jl(){if(X===0){Z&&=(Z.remove(),null);return}Z||(Z=$(`g`),Q(`tr`).insertBefore(Z,Q(`gc`))),Z.innerHTML=``;for(let e of[{x:10,r:1.5,o:.1},{x:17,r:1.5,o:.18},{x:24,r:2,o:.28}])Z.appendChild($(`circle`,{cx:e.x,cy:K,r:e.r,fill:`var(--dim)`,opacity:e.o}));let e=document.createElementNS(wl,`text`);e.setAttribute(`x`,`17`),e.setAttribute(`y`,String(K+12)),e.setAttribute(`text-anchor`,`middle`),e.setAttribute(`font-size`,`7`),e.setAttribute(`fill`,`var(--dim)`),e.setAttribute(`opacity`,`0.35`),e.textContent=`+${X}`,Z.appendChild(e)}function Yl(){Y=-1,Fl&&=(Fl.remove(),null);let e=Q(`gn`).children;for(let t=0;t<e.length;t++){e[t].className.baseVal=`sn end`;let n=e[t].querySelector(`circle:last-of-type`);n&&(n.style.animation=`none`,n.setAttribute(`opacity`,`.88`))}J&&=(J.remove(),null),Hl(-1);let t=[],n=``;for(let e of q)e.dom!==n&&(t.push(zl(e.dom).toLowerCase()),n=e.dom);Q(`jt`).textContent=t.join(` → `),Q(`jt`).classList.add(`on`);let r=$(`defs`),i=$(`linearGradient`,{id:`ag`}),a=[],o=``;for(let e of q)e.dom!==o&&(a.push(e),o=e.dom);a.forEach((e,t)=>{i.appendChild($(`stop`,{offset:`${t/Math.max(a.length-1,1)*100}%`,"stop-color":Rl(e.dom)}))}),r.appendChild(i),Q(`tr`).insertBefore(r,Q(`tr`).firstChild);let s=X>0?El+kl:El,c=$(`rect`,{x:s,y:8,width:Dl-El-s,height:36,fill:`url(#ag)`,rx:18,opacity:0});c.style.animation=`ambient 7s ease-in-out 1s infinite`,Q(`ge`).appendChild(c)}function Xl(e,t){if(!e||q.length>0)return;let n=e.split(` → `);for(let e=0;e<n.length-1;e++){let r=n[e].trim();Wl({tag:r,dom:Bl(r),sn:e+1,st:t,status:`processing`,text:``},!1)}}function Zl(e){if(e.structuredContent&&typeof e.structuredContent==`object`){let t=e.structuredContent;if(t.status)return t}let t=e.content;if(Array.isArray(t)){for(let e of t)if(e&&typeof e==`object`&&e.type===`text`)try{return JSON.parse(e.text)}catch{}}return null}function Ql(e){if(!e||!e.status)return;let t=Ll||e.contemplation||``;Ll=``;let n=e.totalSteps||e.stepNumber||8;if(e.status===`FRAMEWORK_RECEIVED`)Wl({tag:`begin`,dom:`entry`,sn:1,st:n,status:e.status,text:t});else if(e.status===`MEDITATION_COMPLETE`)Xl(e.journey,n),Wl({tag:`meditate`,dom:`meditation`,sn:e.stepNumber,st:n,status:e.status,text:t});else if(e.status===`WISDOM_READY`){Xl(e.finalJourney,n);let r=e.finalStep||`complete`;Wl({tag:r,dom:Bl(r),sn:n,st:n,status:e.status,text:t})}else e.status===`processing`&&(Xl(e.journey,n),Wl({tag:e.currentStep,dom:e.wisdomDomain,sn:e.stepNumber,st:n,status:e.status,text:t}))}document.addEventListener(`click`,()=>{Y>=0&&(Y=-1,ql(),Gl(q.length-1))});var $l=new Cl({name:`Lotus Wisdom Journey`,version:`1.0.0`});if($l.ontoolinput=e=>{let t=e.arguments;t?.content&&(Ll=t.content)},$l.ontoolresult=e=>{let t=Zl(e);t&&Ql(t)},$l.onerror=e=>console.error(`Lotus Wisdom ext-apps error:`,e),window!==window.parent)$l.connect().then(()=>{console.info(`Lotus Wisdom: ext-apps connected`)}).catch(e=>{console.error(`Lotus Wisdom: ext-apps connection failed:`,e)});else{let e=[{status:`FRAMEWORK_RECEIVED`,totalSteps:8,contemplation:`Beginning contemplative journey to design the visual form of lotus wisdom.`,_d:1e3},{status:`processing`,currentStep:`open`,wisdomDomain:`process_flow`,stepNumber:2,totalSteps:8,contemplation:`The core tension: lotus wisdom is a contemplative process that unfolds in time — a journey through domains.`,_d:1800},{status:`processing`,currentStep:`recognize`,wisdomDomain:`non_dual_recognition`,stepNumber:3,totalSteps:8,contemplation:`I recognize the visual should NOT be busy. The UI should breathe.`,_d:2200},{status:`processing`,currentStep:`examine`,wisdomDomain:`meta_cognitive`,stepNumber:4,totalSteps:8,contemplation:`The ext-apps iframe receives tool results via postMessage.`,_d:1600},{status:`MEDITATION_COMPLETE`,stepNumber:5,totalSteps:8,journey:`begin → open → recognize → examine → meditate`,contemplation:`Pausing to let the visual form emerge.`,_d:3200},{status:`processing`,currentStep:`integrate`,wisdomDomain:`non_dual_recognition`,stepNumber:6,totalSteps:8,journey:`begin → open → recognize → examine → meditate → integrate`,contemplation:`The visual form should mirror the journey’s own structure.`,_d:2400},{status:`processing`,currentStep:`refine`,wisdomDomain:`meta_cognitive`,stepNumber:7,totalSteps:8,journey:`begin → open → recognize → examine → meditate → integrate → refine`,contemplation:`Three visual layers: trace, content, completion.`,_d:1800},{status:`WISDOM_READY`,totalSteps:8,finalStep:`express`,finalJourney:`begin → open → recognize → examine → meditate → integrate → refine → express`,contemplation:`The visual design emerges as a living journey trace.`,_d:2e3}],t=1200;for(let n of e){let e=t;setTimeout(()=>Ql(n),e),t+=n._d}}</script>
|
|
222
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:T().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:T().optional().describe(`User's timezone in IANA format.`),userAgent:T().optional().describe(`Host application identifier.`),platform:N([I(`web`),I(`desktop`),I(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:j({touch:O().optional().describe(`Whether the device supports touch input.`),hover:O().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:j({top:D().describe(`Top safe area inset in pixels.`),right:D().describe(`Right safe area inset in pixels.`),bottom:D().describe(`Bottom safe area inset in pixels.`),left:D().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),xl=j({method:I(`ui/notifications/host-context-changed`),params:bl.describe(`Partial context update containing only changed fields.`)});j({method:I(`ui/update-model-context`),params:j({content:A($s).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:P(T(),k().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),j({method:I(`ui/initialize`),params:j({appInfo:Uo.describe(`App identification (name and version).`),appCapabilities:gl.describe(`Features and capabilities this app provides.`),protocolVersion:T().describe(`Protocol version this app supports.`)})});var Sl=j({protocolVersion:T().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:Uo.describe(`Host application identification and version.`),hostCapabilities:hl.describe(`Features and capabilities provided by the host.`),hostContext:bl.describe(`Rich context about the host environment.`)}).passthrough(),Cl=class extends Zc{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,this.setRequestHandler($o,e=>(console.log(`Received ping:`,e.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(e){this.setNotificationHandler(cl,t=>e(t.params))}set ontoolinputpartial(e){this.setNotificationHandler(ll,t=>e(t.params))}set ontoolresult(e){this.setNotificationHandler(yl,t=>e(t.params))}set ontoolcancelled(e){this.setNotificationHandler(ul,t=>e(t.params))}set onhostcontextchanged(e){this.setNotificationHandler(xl,t=>{this._hostContext={...this._hostContext,...t.params},e(t.params)})}set onteardown(e){this.setRequestHandler(pl,(t,n)=>e(t.params,n))}set oncalltool(e){this.setRequestHandler(uc,(t,n)=>e(t.params,n))}set onlisttools(e){this.setRequestHandler(oc,(t,n)=>e(t.params,n))}assertCapabilityForMethod(e){}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},cc,t)}async readServerResource(e,t){return await this.request({method:`resources/read`,params:e},Ns,t)}async listServerResources(e,t){return await this.request({method:`resources/list`,params:e},Ds,t)}sendMessage(e,t){return this.request({method:`ui/message`,params:e},al,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this.request({method:`ui/update-model-context`,params:e},Ro,t)}openLink(e,t){return this.request({method:`ui/open-link`,params:e},rl,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this.request({method:`ui/download-file`,params:e},il,t)}requestDisplayMode(e,t){return this.request({method:`ui/request-display-mode`,params:e},_l,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.width,a=r.style.height;r.style.width=`fit-content`,r.style.height=`max-content`;let o=r.getBoundingClientRect();r.style.width=i,r.style.height=a;let s=window.innerWidth-r.clientWidth,c=Math.ceil(o.width+s),l=Math.ceil(o.height);(c!==t||l!==n)&&(t=c,n=l,this.sendSizeChanged({width:c,height:l}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new $c(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Qc}},Sl,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}},wl=`http://www.w3.org/2000/svg`,K=26,Tl=4.5,El=30,Dl=400,Ol=8,kl=22,Al={entry:`#7a7a8c`,process_flow:`#a88430`,skillful_means:`#b58a1c`,non_dual_recognition:`#2e7d42`,meta_cognitive:`#4068c8`,meditation:`#2a8f7a`},jl={entry:`Entry`,process_flow:`Process`,skillful_means:`Skillful Means`,non_dual_recognition:`Non-Dual`,meta_cognitive:`Meta-Cognitive`,meditation:`Meditation`},Ml={begin:`entry`,open:`process_flow`,engage:`process_flow`,express:`process_flow`,upaya:`skillful_means`,expedient:`skillful_means`,direct:`skillful_means`,gradual:`skillful_means`,sudden:`skillful_means`,recognize:`non_dual_recognition`,transform:`non_dual_recognition`,integrate:`non_dual_recognition`,transcend:`non_dual_recognition`,embody:`non_dual_recognition`,examine:`meta_cognitive`,reflect:`meta_cognitive`,verify:`meta_cognitive`,refine:`meta_cognitive`,complete:`meta_cognitive`,meditate:`meditation`},q=[],Nl=!1,J=null,Pl=-1,Y=-1,Fl=null,Il=null,Ll=null,Rl=``,X=0,Z=null;function zl(e){return Al[e]??`#6b6b7b`}function Bl(e){return jl[e]??e}function Vl(e){return Ml[e]??`entry`}function Q(e){let t=document.getElementById(e);if(!t)throw Error(`Element #${e} not found`);return t}function $(e,t){let n=document.createElementNS(wl,e);if(t)for(let e in t){let r=t[e];r!=null&&n.setAttribute(e,String(r))}return n}function Hl(){let e=q.length-X;if(!e)return[];let t=X>0?El+kl:El,n=Dl-El;if(e===1)return[(t+n)/2];let r=(n-t)/(e-1);return Array.from({length:e},(e,n)=>t+n*r)}function Ul(e){let t=Hl(),n=q.slice(X);Q(`gc`).innerHTML=``,X>0&&t.length>0&&Q(`gc`).appendChild($(`path`,{d:`M${El} ${K} L${t[0]} ${K}`,fill:`none`,stroke:`var(--conn)`,"stroke-width":.4,"stroke-dasharray":`3 3`,opacity:.15}));for(let r=0;r<n.length-1;r++){let i=t[r],a=t[r+1],o=(i+a)/2,s=K-2-Math.random()*1.2,c=zl(n[r].dom),l=Nl?1.4:.8,u=Nl?.45:.3,d={d:`M${i} ${K} Q${o} ${s} ${a} ${K}`,fill:`none`,stroke:c,"stroke-width":l,opacity:u};if(r===e-1&&!Nl){let e=Math.hypot(a-i,K-s)*1.08;d[`stroke-dasharray`]=e,d[`stroke-dashoffset`]=e,d.style=`--len:${e};animation:draw .55s ease-out forwards`}Q(`gc`).appendChild($(`path`,d))}return t}function Wl(e){let t=Q(`gn`).children;for(let n=0;n<e.length&&n<t.length;n++)t[n].setAttribute(`transform`,`translate(${e[n]},${K})`);J&&e.length&&J.setAttribute(`cx`,String(e[e.length-1]))}function Gl(e,t=!0){let{tag:n,dom:r}=e,i=zl(r),a=n===`meditate`,o=Q(`gn`).querySelector(`.now, .hol`);if(o){o.className.baseVal=`sn past`;let e=o.querySelector(`circle:last-of-type`);e&&(e.style.animation=`none`,e.setAttribute(`opacity`,`.35`))}if(q.push({tag:n,dom:r,sn:e.sn,st:e.st,med:a,text:e.text||``}),q.length-X>Ol){let e=Q(`gn`).firstChild;e&&e.remove(),X++,Y>=0&&Y<X&&(Y=-1,Jl()),Yl()}let s=Ul(t?q.length-X-1:-1);Wl(s);let c=s[s.length-1]??Dl/2;J&&J.remove(),J=$(`circle`,{cx:c,cy:K,r:20,fill:i,opacity:t?.04:0}),Q(`gg`).appendChild(J);let l=t?a?`sn hol`:`sn now`:`sn end`,u=$(`g`,{transform:`translate(${c},${K})`,class:l});u.dataset.i=String(q.length-1);let d=a?$(`circle`,{cx:0,cy:0,r:Tl,fill:`none`,stroke:i,"stroke-width":1.2}):$(`circle`,{cx:0,cy:0,r:Tl,fill:i});if(t||d.setAttribute(`opacity`,`.88`),u.appendChild($(`circle`,{cx:0,cy:0,r:Tl*3,fill:`transparent`})),u.appendChild(d),u.addEventListener(`mouseenter`,()=>Kl(+(u.dataset.i??`0`))),u.addEventListener(`mouseleave`,()=>Kl(Y>=0?Y:q.length-1)),u.addEventListener(`click`,e=>{e.stopPropagation(),ql(+(u.dataset.i??`0`))}),Q(`gn`).appendChild(u),t){let e=$(`g`,{transform:`translate(${c},${K})`});e.appendChild($(`circle`,{cx:0,cy:0,r:Tl,fill:`none`,stroke:i,"stroke-width":.6,class:`rp`})),Q(`ge`).appendChild(e),setTimeout(()=>e.remove(),1e3)}Q(`void`).style.opacity=`0`,Q(`tr`).setAttribute(`aria-label`,`Journey: `+q.map(e=>e.tag).join(` → `)),Y=-1,Jl(),Kl(q.length-1),Q(`ct`).classList.add(`on`),e.status===`WISDOM_READY`&&(Nl=!0,setTimeout(Xl,600))}function Kl(e){if(e<0||e>=q.length)return;Il&&=(clearTimeout(Il),null);let t=q[e],n=zl(t.dom);if(e===Pl){Q(`ch`).style.color=n,Q(`cd`).style.color=n,Q(`ci`).style.borderLeftColor=n+`28`;return}let r=Q(`ci`);r.style.opacity=`0`,Il=setTimeout(()=>{Q(`ch`).textContent=t.tag,Q(`ch`).style.color=n,Q(`cd`).textContent=Bl(t.dom),Q(`cd`).style.color=n,Q(`cn`).textContent=`step ${t.sn}`,r.style.borderLeftColor=n+`28`;let i=Q(`cx`);if(i.className=t.med?`med-text`:``,Ll&&=(clearTimeout(Ll),null),e===q.length-1&&e!==Pl&&t.text.length>0&&!t.med){i.textContent=``;let e=0,n=[...t.text],r=Math.max(8,Math.min(25,1200/n.length)),a=()=>{let t=Math.ceil(n.length/60);e=Math.min(e+t,n.length),i.textContent=n.slice(0,e).join(``),e<n.length&&(Ll=setTimeout(a,r))};a()}else i.textContent=t.text;r.style.opacity=`1`,Q(`ct`).scrollTop=0,Pl=e},160)}function ql(e){Y===e?(Y=-1,Kl(q.length-1)):(Y=e,Kl(e)),Jl()}function Jl(){if(Fl&&=(Fl.remove(),null),Y<0||Y>=q.length)return;let e=q[Y],t=zl(e.dom);Fl=$(`circle`,{cx:0,cy:0,r:Tl+3.5,fill:`none`,stroke:t,"stroke-width":.5,opacity:.4,style:`pointer-events:none`});let n=Y-X,r=n>=0?Q(`gn`).children[n]:void 0;r&&r.appendChild(Fl)}function Yl(){if(X===0){Z&&=(Z.remove(),null);return}Z||(Z=$(`g`),Q(`tr`).insertBefore(Z,Q(`gc`))),Z.innerHTML=``;for(let e of[{x:10,r:1.5,o:.1},{x:17,r:1.5,o:.18},{x:24,r:2,o:.28}])Z.appendChild($(`circle`,{cx:e.x,cy:K,r:e.r,fill:`var(--dim)`,opacity:e.o}));let e=document.createElementNS(wl,`text`);e.setAttribute(`x`,`17`),e.setAttribute(`y`,String(K+12)),e.setAttribute(`text-anchor`,`middle`),e.setAttribute(`font-size`,`7`),e.setAttribute(`fill`,`var(--dim)`),e.setAttribute(`opacity`,`0.35`),e.textContent=`+${X}`,Z.appendChild(e)}function Xl(){Y=-1,Fl&&=(Fl.remove(),null);let e=Q(`gn`).children;for(let t=0;t<e.length;t++){e[t].className.baseVal=`sn end`;let n=e[t].querySelector(`circle:last-of-type`);n&&(n.style.animation=`none`,n.setAttribute(`opacity`,`.88`))}J&&=(J.remove(),null),Ul(-1);let t=[],n=``;for(let e of q)e.dom!==n&&(t.push(Bl(e.dom).toLowerCase()),n=e.dom);Q(`jt`).textContent=t.join(` → `),Q(`jt`).classList.add(`on`);let r=$(`defs`),i=$(`linearGradient`,{id:`ag`}),a=[],o=``;for(let e of q)e.dom!==o&&(a.push(e),o=e.dom);a.forEach((e,t)=>{i.appendChild($(`stop`,{offset:`${t/Math.max(a.length-1,1)*100}%`,"stop-color":zl(e.dom)}))}),r.appendChild(i),Q(`tr`).insertBefore(r,Q(`tr`).firstChild);let s=X>0?El+kl:El,c=$(`rect`,{x:s,y:8,width:Dl-El-s,height:36,fill:`url(#ag)`,rx:18,opacity:0});c.style.animation=`ambient 7s ease-in-out 1s infinite`,Q(`ge`).appendChild(c)}function Zl(e,t){if(!e||q.length>0)return;let n=e.split(` → `);for(let e=0;e<n.length-1;e++){let r=n[e].trim();Gl({tag:r,dom:Vl(r),sn:e+1,st:t,status:`processing`,text:``},!1)}}function Ql(e){if(e.structuredContent&&typeof e.structuredContent==`object`){let t=e.structuredContent;if(t.status)return t}let t=e.content;if(Array.isArray(t)){for(let e of t)if(e&&typeof e==`object`&&e.type===`text`)try{return JSON.parse(e.text)}catch{}}return null}function $l(e){if(!e||!e.status)return;let t=Rl||e.contemplation||``;Rl=``;let n=e.totalSteps||e.stepNumber||8;if(e.status===`FRAMEWORK_RECEIVED`)Gl({tag:`begin`,dom:`entry`,sn:1,st:n,status:e.status,text:t});else if(e.status===`MEDITATION_COMPLETE`)Zl(e.journey,n),Gl({tag:`meditate`,dom:`meditation`,sn:e.stepNumber,st:n,status:e.status,text:t});else if(e.status===`WISDOM_READY`){Zl(e.finalJourney,n);let r=e.finalStep||`complete`;Gl({tag:r,dom:Vl(r),sn:n,st:n,status:e.status,text:t})}else e.status===`processing`&&(Zl(e.journey,n),Gl({tag:e.currentStep,dom:e.wisdomDomain,sn:e.stepNumber,st:n,status:e.status,text:t}))}document.addEventListener(`click`,()=>{Y>=0&&(Y=-1,Jl(),Kl(q.length-1))});var eu=new Cl({name:`Lotus Wisdom Journey`,version:`1.0.0`});if(eu.ontoolinput=e=>{let t=e.arguments;t?.content&&(Rl=t.content)},eu.ontoolresult=e=>{let t=Ql(e);t&&$l(t)},eu.onerror=e=>console.error(`Lotus Wisdom ext-apps error:`,e),window!==window.parent)eu.connect().then(()=>{console.info(`Lotus Wisdom: ext-apps connected`)}).catch(e=>{console.error(`Lotus Wisdom: ext-apps connection failed:`,e)});else{let e=[{status:`FRAMEWORK_RECEIVED`,totalSteps:8,contemplation:`Beginning contemplative journey to design the visual form of lotus wisdom.`,_d:1e3},{status:`processing`,currentStep:`open`,wisdomDomain:`process_flow`,stepNumber:2,totalSteps:8,contemplation:`The core tension: lotus wisdom is a contemplative process that unfolds in time — a journey through domains.`,_d:1800},{status:`processing`,currentStep:`recognize`,wisdomDomain:`non_dual_recognition`,stepNumber:3,totalSteps:8,contemplation:`I recognize the visual should NOT be busy. The UI should breathe.`,_d:2200},{status:`processing`,currentStep:`examine`,wisdomDomain:`meta_cognitive`,stepNumber:4,totalSteps:8,contemplation:`The ext-apps iframe receives tool results via postMessage.`,_d:1600},{status:`MEDITATION_COMPLETE`,stepNumber:5,totalSteps:8,journey:`begin → open → recognize → examine → meditate`,contemplation:`Pausing to let the visual form emerge.`,_d:3200},{status:`processing`,currentStep:`integrate`,wisdomDomain:`non_dual_recognition`,stepNumber:6,totalSteps:8,journey:`begin → open → recognize → examine → meditate → integrate`,contemplation:`The visual form should mirror the journey’s own structure.`,_d:2400},{status:`processing`,currentStep:`refine`,wisdomDomain:`meta_cognitive`,stepNumber:7,totalSteps:8,journey:`begin → open → recognize → examine → meditate → integrate → refine`,contemplation:`Three visual layers: trace, content, completion.`,_d:1800},{status:`WISDOM_READY`,totalSteps:8,finalStep:`express`,finalJourney:`begin → open → recognize → examine → meditate → integrate → refine → express`,contemplation:`The visual design emerges as a living journey trace.`,_d:2e3}],t=1200;for(let n of e){let e=t;setTimeout(()=>$l(n),e),t+=n._d}}</script>
|
|
223
223
|
</head>
|
|
224
224
|
<body>
|
|
225
225
|
<div id="root">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lotus-wisdom-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Contemplative reasoning MCP server — Lotus Sutra wisdom framework with interactive ext-apps journey visualization.",
|
|
5
5
|
"main": "dist/bundle.js",
|
|
6
6
|
"module": "index.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"model-context-protocol",
|
|
31
31
|
"lotus-sutra",
|
|
32
32
|
"wisdom",
|
|
33
|
+
"contemplative-reasoning",
|
|
34
|
+
"ext-apps",
|
|
33
35
|
"claude",
|
|
34
36
|
"ai-tools"
|
|
35
37
|
],
|