@symbiotejs/symbiote 3.10.2 → 3.10.3

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.
Files changed (47) hide show
  1. package/core/PubSub.js +18 -5
  2. package/core/Symbiote.js +9 -5
  3. package/core/dictionary.js +5 -22
  4. package/core/extensions.js +17 -0
  5. package/core/itemizeProcessor-keyed.js +2 -2
  6. package/core/itemizeProcessor.js +3 -3
  7. package/core/itemizeSetup.js +4 -4
  8. package/core/tpl-processors.js +17 -92
  9. package/core/webmcp-bindings.js +59 -0
  10. package/core/webmcp-dictionary.js +17 -0
  11. package/core/webmcp.js +216 -51
  12. package/docs/webmcp.md +80 -0
  13. package/html-app/BaseClass.js +2 -2
  14. package/html-app/README.md +15 -0
  15. package/html-app/actions.js +4 -2
  16. package/html-app/collection-items.js +1 -1
  17. package/html-app/examples/assets/actions.html +10 -10
  18. package/html-app/examples/assets/collections.html +19 -19
  19. package/html-app/examples/assets/components.html +1 -1
  20. package/html-app/examples/assets/conditional.html +2 -2
  21. package/html-app/examples/assets/data.html +5 -5
  22. package/html-app/examples/assets/guide.html +1 -1
  23. package/html-app/examples/assets/not-found.html +1 -1
  24. package/html-app/examples/assets/routing.html +2 -2
  25. package/html-app/examples/assets/state.html +2 -2
  26. package/html-app/examples/assets/storage.html +6 -6
  27. package/html-app/examples/full-app.html +3 -2
  28. package/package.json +13 -1
  29. package/scripts/check-html-app-size.js +2 -0
  30. package/skills/symbiote/SKILL.md +24 -1
  31. package/types/core/PubSub.d.ts.map +1 -1
  32. package/types/core/Symbiote.d.ts.map +1 -1
  33. package/types/core/dictionary.d.ts +3 -11
  34. package/types/core/extensions.d.ts +13 -0
  35. package/types/core/extensions.d.ts.map +1 -0
  36. package/types/core/itemizeSetup.d.ts +1 -1
  37. package/types/core/itemizeSetup.d.ts.map +1 -1
  38. package/types/core/tpl-processors.d.ts +0 -7
  39. package/types/core/tpl-processors.d.ts.map +1 -1
  40. package/types/core/webmcp-bindings.d.ts +18 -0
  41. package/types/core/webmcp-bindings.d.ts.map +1 -0
  42. package/types/core/webmcp-dictionary.d.ts +36 -0
  43. package/types/core/webmcp-dictionary.d.ts.map +1 -0
  44. package/types/core/webmcp.d.ts.map +1 -1
  45. package/types/html-app/actions.d.ts.map +1 -1
  46. package/types/utils/reassignDictionary.d.ts +3 -11
  47. package/types/utils/reassignDictionary.d.ts.map +1 -1
@@ -2,8 +2,8 @@
2
2
  <p class="max-w-3xl text-sm leading-relaxed text-muted"><code>sym-collection</code> projects shared records through filters, search and sorting, then native Itemize renders a reusable item. Item actions publish immutable updates by ID. Counts leave the controller through <code>pub-map</code>; page changes keep the source data.</p>
3
3
  <p class="max-w-3xl text-sm leading-relaxed text-muted">Load tasks from a JSON object containing <code>tasks</code>, edit the list, then save it in this browser. <strong>Reload JSON</strong> replaces the current list without changing your saved copy. <strong>Restore saved tasks</strong> discards unsaved edits and restores your last browser save.</p>
4
4
  <div class="panel grid gap-3">
5
- <label>JSON source<input bind="value: ENDPOINTS/source; onchange: [pub-to]ENDPOINTS/source"></label>
6
- <button type="button" class="justify-self-start" action-overwrite bind="onclick: [load]APP; disabled: APP/+busy">Reload JSON</button>
5
+ <label>JSON source<input toolname="set_tasks_source" tooldescription="Change the JSON source URL used to load task data." bind="value: ENDPOINTS/source; onchange: [pub-to]ENDPOINTS/source"></label>
6
+ <button type="button" class="justify-self-start" toolname="replace_tasks_from_json" tooldescription="Reload the configured JSON source and replace the current task list, including unsaved edits." action-overwrite bind="onclick: [load]APP; disabled: APP/+busy">Reload JSON</button>
7
7
  </div>
8
8
  <sym-conditional when="APP/+loading"><p class="text-sm text-accent">Loading tasks...</p></sym-conditional>
9
9
  <sym-conditional when="APP/+loadError"><p class="text-sm text-rose-500" bind="textContent: APP/+loadErrorMessage"></p></sym-conditional>
@@ -13,24 +13,24 @@
13
13
  </div>
14
14
  <div class="panel grid gap-4">
15
15
  <div class="flex flex-wrap items-center gap-3">
16
- <input type="search" class="max-w-xs" placeholder="Search title or notes" bind="value: APP/query; oninput: [pub-to-200]APP/query">
17
- <button type="button" action-data="APP/allFilter" bind="onclick: [set]APP/filter">All</button>
18
- <button type="button" action-data="APP/activeFilter" bind="onclick: [set]APP/filter">Active</button>
19
- <button type="button" action-data="APP/completedFilter" bind="onclick: [set]APP/filter">Completed</button>
16
+ <input type="search" class="max-w-xs" placeholder="Search title or notes" toolname="search_tasks" tooldescription="Filter tasks by title or notes after a 200 ms debounce." bind="value: APP/query; oninput: [pub-to-200]APP/query">
17
+ <button type="button" toolname="show_all_tasks" tooldescription="Show tasks regardless of completion status." action-data="APP/allFilter" bind="onclick: [set]APP/filter">All</button>
18
+ <button type="button" toolname="show_active_tasks" tooldescription="Show only incomplete tasks." action-data="APP/activeFilter" bind="onclick: [set]APP/filter">Active</button>
19
+ <button type="button" toolname="show_completed_tasks" tooldescription="Show only completed tasks." action-data="APP/completedFilter" bind="onclick: [set]APP/filter">Completed</button>
20
20
  <sym-context bind="$: APP/sort" pub-to="APP/sort">
21
- <label class="field-row whitespace-nowrap">Task order<select class="w-auto" bind="value: direction; onchange: [pub-to]direction">
21
+ <label class="field-row whitespace-nowrap">Task order<select class="w-auto" toolname="set_task_order" tooldescription="Sort task titles in ascending or descending order." bind="value: direction; onchange: [pub-to]direction">
22
22
  <option value="asc">Title, ascending</option><option value="desc">Title, descending</option>
23
23
  </select></label>
24
24
  </sym-context>
25
25
  </div>
26
26
  <sym-context bind="$: APP/draft" pub-to="APP/draft">
27
- <form class="field-row" action-data="APP/draft" action-reset="APP/draft" bind="onsubmit: [append]APP/tasks; inert: APP/+loading">
28
- <input name="title" placeholder="New task" required pattern=".*\S.*" bind="value: title; oninput: [pub-to-200]title">
27
+ <form class="field-row" toolname="add_task" tooldescription="Add the draft task to the task list, then reset the draft." action-data="APP/draft" action-reset="APP/draft" bind="onsubmit: [append]APP/tasks; inert: APP/+loading">
28
+ <input name="title" placeholder="New task" required pattern=".*\S.*" toolname="edit_new_task_title" tooldescription="Edit the title of the new task draft; submit Add task to create it." bind="value: title; oninput: [pub-to-200]title">
29
29
  <button class="primary">Add task</button>
30
30
  </form>
31
31
  </sym-context>
32
32
  </div>
33
- <form class="grid gap-5" bind="onsubmit: [persist]APP">
33
+ <form class="grid gap-5" toolname="save_tasks" tooldescription="Save the current tasks, preferences, and sorting in this browser." bind="onsubmit: [persist]APP">
34
34
  <sym-collection data="APP/tasks" filter="APP/filter" search="APP/query" search-fields="title,note" sort="APP/sort"
35
35
  pub-map="APP/shown: count; APP/total: totalCount">
36
36
  <div class="grid gap-3" itemize="items" item-tag="task-card"></div>
@@ -38,9 +38,9 @@
38
38
  </sym-collection>
39
39
  <div class="field-row flex-wrap">
40
40
  <button type="submit" class="primary" bind="disabled: APP/+busy">Save tasks</button>
41
- <button type="button" bind="onclick: [restore]APP; disabled: APP/+busy">Restore saved tasks</button>
42
- <button type="button" action-match="APP/allFilter" action-data="APP/completePatch" bind="onclick: [patch-matching]APP/tasks">Complete all</button>
43
- <button type="button" action-match="APP/completedFilter" bind="onclick: [remove-matching]APP/tasks">Clear completed</button>
41
+ <button type="button" toolname="restore_saved_tasks" tooldescription="Discard unsaved browser data and restore the last saved tasks, preferences, and sorting." bind="onclick: [restore]APP; disabled: APP/+busy">Restore saved tasks</button>
42
+ <button type="button" toolname="complete_all_tasks" tooldescription="Mark every task as complete, including tasks outside the current filter." action-match="APP/allFilter" action-data="APP/completePatch" bind="onclick: [patch-matching]APP/tasks">Complete all</button>
43
+ <button type="button" toolname="clear_completed_tasks" tooldescription="Remove all completed tasks from the task list." action-match="APP/completedFilter" bind="onclick: [remove-matching]APP/tasks">Clear completed</button>
44
44
  </div>
45
45
  <p class="text-sm text-muted" bind="hidden: APP/+storageFound">No browser save yet. Use Save tasks to create one.</p>
46
46
  <p class="text-sm text-amber-500" bind="hidden: !APP/+storageDirty">Changes are not saved in this browser.</p>
@@ -59,14 +59,14 @@
59
59
  <template id="task-card">
60
60
  <script type="application/json">{"expanded": false}</script>
61
61
  <div class="field-row">
62
- <input type="checkbox" bind="checked: done; onchange: [item-pub]done">
63
- <input name="title" required pattern=".*\S.*" class="border-transparent bg-transparent font-medium" bind="value: title; oninput: [item-pub]title">
64
- <button type="button" bind="onclick: [item-toggle]pinned">
62
+ <input type="checkbox" toolname="set_task_done" tooldescription="Mark this task as complete or incomplete." bind="checked: done; onchange: [item-pub]done">
63
+ <input name="title" required pattern=".*\S.*" class="border-transparent bg-transparent font-medium" toolname="edit_task_title" tooldescription="Edit this task's title." bind="value: title; oninput: [item-pub]title">
64
+ <button type="button" toolname="toggle_task_pinned" tooldescription="Pin or unpin this task." bind="onclick: [item-toggle]pinned">
65
65
  <sym-conditional when="^pinned">Unpin</sym-conditional>
66
66
  <sym-conditional when="^pinned" behavior="hide">Pin</sym-conditional>
67
67
  </button>
68
- <button type="button" bind="onclick: [toggle]expanded">Notes</button>
69
- <button type="button" class="text-muted hover:text-rose-500" bind="onclick: [item-remove]">Delete</button>
68
+ <button type="button" toolname="toggle_task_notes" tooldescription="Show or hide this task's notes editor." bind="onclick: [toggle]expanded">Notes</button>
69
+ <button type="button" class="text-muted hover:text-rose-500" toolname="delete_task" tooldescription="Remove this task from the task list." bind="onclick: [item-remove]">Delete</button>
70
70
  </div>
71
- <sym-conditional when="^expanded"><textarea class="mt-3" rows="2" placeholder="Task notes" bind="value: ^note; oninput: [item-pub]note"></textarea></sym-conditional>
71
+ <sym-conditional when="^expanded"><textarea class="mt-3" rows="2" placeholder="Task notes" toolname="edit_task_notes" tooldescription="Edit this task's notes." bind="value: ^note; oninput: [item-pub]note"></textarea></sym-conditional>
72
72
  </template>
@@ -16,7 +16,7 @@
16
16
  <script type="application/json">{"title": "Note", "message": "", "expanded": false}</script>
17
17
  <div class="grid gap-4">
18
18
  <h2 class="font-semibold">{{title}}</h2>
19
- <button type="button" bind="onclick: [toggle]expanded">Toggle details</button>
19
+ <button type="button" toolname="toggle_component_details" tooldescription="Show or hide the details for this component instance." bind="onclick: [toggle]expanded">Toggle details</button>
20
20
  <sym-conditional when="^expanded"><p class="text-sm text-muted">{{^message}}</p></sym-conditional>
21
21
  </div>
22
22
  </template>
@@ -3,8 +3,8 @@
3
3
  <sym-context ctx="CONDITIONS">
4
4
  <script type="application/json">{"open": true, "status": "review"}</script>
5
5
  <div class="panel field-row mb-5 flex-wrap">
6
- <button type="button" class="primary" bind="onclick: [toggle]open">Toggle open</button>
7
- <label class="field-row whitespace-nowrap">Status<select class="w-auto" bind="value: status; onchange: [pub-to]status"><option>review</option><option>published</option></select></label>
6
+ <button type="button" class="primary" toolname="toggle_conditional_content" tooldescription="Toggle the open flag used by the show, hide, dom-add, and dom-remove examples." bind="onclick: [toggle]open">Toggle open</button>
7
+ <label class="field-row whitespace-nowrap">Status<select class="w-auto" toolname="set_content_status" tooldescription="Set the conditional content status to review or published." bind="value: status; onchange: [pub-to]status"><option>review</option><option>published</option></select></label>
8
8
  <sym-conditional when="CONDITIONS/status" is="published"><span class="text-sm text-accent">Published status matched.</span></sym-conditional>
9
9
  </div>
10
10
  <div class="grid gap-5 lg:grid-cols-2">
@@ -3,14 +3,14 @@
3
3
  <div class="grid gap-5 lg:grid-cols-2">
4
4
  <div class="panel grid content-start gap-4">
5
5
  <h2 class="font-semibold">Request configuration</h2>
6
- <label>JSON source<input bind="value: ENDPOINTS/source; onchange: [pub-to]ENDPOINTS/source"></label>
7
- <label>Write endpoint<input bind="value: ENDPOINTS/destination; onchange: [pub-to]ENDPOINTS/destination"></label>
8
- <label>Request method<select bind="value: ENDPOINTS/method; onchange: [pub-to]ENDPOINTS/method">
6
+ <label>JSON source<input toolname="set_tasks_source" tooldescription="Change the JSON source URL used to load task data." bind="value: ENDPOINTS/source; onchange: [pub-to]ENDPOINTS/source"></label>
7
+ <label>Write endpoint<input toolname="set_tasks_destination" tooldescription="Set the HTTP endpoint used by Send tasks." bind="value: ENDPOINTS/destination; onchange: [pub-to]ENDPOINTS/destination"></label>
8
+ <label>Request method<select toolname="set_tasks_request_method" tooldescription="Choose PUT, POST, or PATCH for sending tasks to the configured endpoint." bind="value: ENDPOINTS/method; onchange: [pub-to]ENDPOINTS/method">
9
9
  <option>PUT</option><option>POST</option><option>PATCH</option>
10
10
  </select></label>
11
11
  <div class="field-row">
12
- <button type="button" bind="onclick: [load]APP; disabled: APP/+busy">Reload</button>
13
- <button type="button" class="primary" bind="onclick: [sync]APP; disabled: APP/+busy">Send tasks</button>
12
+ <button type="button" toolname="reload_tasks" tooldescription="Load task data from the configured JSON source while preserving protected local edits." bind="onclick: [load]APP; disabled: APP/+busy">Reload</button>
13
+ <button type="button" class="primary" toolname="send_tasks" tooldescription="Send the task list to the configured HTTP endpoint using the selected request method." bind="onclick: [sync]APP; disabled: APP/+busy">Send tasks</button>
14
14
  </div>
15
15
  <p class="text-sm text-muted">Sending requires a server that accepts the selected method. The checkout's development server provides an optional in-memory API at <code>/api/tasks</code>. Static hosting needs only the JSON source and browser storage.</p>
16
16
  </div>
@@ -1,4 +1,4 @@
1
1
  <section class="grid gap-4 text-sm leading-relaxed">
2
2
  <p>This fragment loads relative to its importing section. Its checkbox publishes to <code>PREFERENCES/showCounts</code>, which the Collections section also reads.</p>
3
- <label class="field-row"><input type="checkbox" bind="checked: PREFERENCES/showCounts; onchange: [pub-to]PREFERENCES/showCounts">Show task counts</label>
3
+ <label class="field-row"><input type="checkbox" toolname="set_imported_task_counts" tooldescription="Show or hide task counts through this imported preferences control." bind="checked: PREFERENCES/showCounts; onchange: [pub-to]PREFERENCES/showCounts">Show task counts</label>
4
4
  </section>
@@ -1,4 +1,4 @@
1
1
  <section class="panel grid gap-4">
2
2
  <p>There is no feature at this address.</p>
3
- <button type="button" value="state" bind="onclick: [navigate]ROUTER">Return to features</button>
3
+ <button type="button" value="state" toolname="return_to_features" tooldescription="Return to the state and bindings section of the feature guide." bind="onclick: [navigate]ROUTER">Return to features</button>
4
4
  </section>
@@ -6,10 +6,10 @@
6
6
  <h2 class="font-semibold">URL-driven tabs</h2>
7
7
  <sym-context bind="$: ROUTER/+params">
8
8
  <nav class="flex overflow-x-auto border-b border-line">
9
- <button class="tab-link" type="button" value="routing" action-data="ROUTE_DEMO/parameters" bind="onclick: [navigate]ROUTER">Example
9
+ <button class="tab-link" type="button" value="routing" toolname="open_routing_example" tooldescription="Open the routing example tab with the button's URL parameters." action-data="ROUTE_DEMO/parameters" bind="onclick: [navigate]ROUTER">Example
10
10
  <sym-conditional when="^tab" is="example"><span class="absolute inset-x-0 bottom-0 border-b-2 border-accent"></span></sym-conditional>
11
11
  </button>
12
- <a class="tab-link" href="../full-app.html?routing&amp;source=link&amp;tab=details" bind="onclick: [navigate]ROUTER">Details
12
+ <a class="tab-link" href="../full-app.html?routing&amp;source=link&amp;tab=details" toolname="open_routing_details" tooldescription="Open the routing details tab through its query-string link." bind="onclick: [navigate]ROUTER">Details
13
13
  <sym-conditional when="^tab" is="details"><span class="absolute inset-x-0 bottom-0 border-b-2 border-accent"></span></sym-conditional>
14
14
  </a>
15
15
  </nav>
@@ -9,8 +9,8 @@
9
9
  pub-map="PROFILE/namePreview: name; PROFILE/rolePreview: role">
10
10
  <div class="panel grid gap-4">
11
11
  <h2 class="font-semibold">Edit the child context</h2>
12
- <label>Name<input bind="value: name; oninput: [pub-to]name"></label>
13
- <label>Role<select bind="value: role; onchange: [pub-to]role">
12
+ <label>Name<input toolname="edit_profile_name" tooldescription="Edit the person's name and publish it to the parent profile and preview." bind="value: name; oninput: [pub-to]name"></label>
13
+ <label>Role<select toolname="set_profile_role" tooldescription="Select the person's role and publish it to the parent profile and preview." bind="value: role; onchange: [pub-to]role">
14
14
  <option>Designer</option><option>Developer</option><option>Reviewer</option>
15
15
  </select></label>
16
16
  </div>
@@ -2,11 +2,11 @@
2
2
  <p class="max-w-3xl text-sm leading-relaxed text-muted"><code>storage-key</code> and <code>storage-keys</code> opt into browser storage. <code>[persist]</code> saves selected fields; <code>[restore]</code> explicitly accepts them. These operations are separate from backend synchronization. Cross-tab changes flag a conflict without replacing your draft.</p>
3
3
  <div class="panel grid max-w-xl gap-4">
4
4
  <h2 class="font-semibold">Save tasks and preferences on this device</h2>
5
- <label>List title<input bind="value: PREFERENCES/title; oninput: [pub-to]PREFERENCES/title"></label>
6
- <label class="field-row"><input type="checkbox" bind="checked: PREFERENCES/showCounts; onchange: [pub-to]PREFERENCES/showCounts">Show task counts</label>
5
+ <label>List title<input toolname="edit_task_list_title" tooldescription="Edit the task board title in shared preferences." bind="value: PREFERENCES/title; oninput: [pub-to]PREFERENCES/title"></label>
6
+ <label class="field-row"><input type="checkbox" toolname="set_task_counts" tooldescription="Show or hide task counts on the collection view." bind="checked: PREFERENCES/showCounts; onchange: [pub-to]PREFERENCES/showCounts">Show task counts</label>
7
7
  <div class="field-row flex-wrap">
8
- <button type="button" class="primary" bind="onclick: [persist]APP">Save in this browser</button>
9
- <button type="button" bind="onclick: [restore]APP">Restore browser data</button>
8
+ <button type="button" class="primary" toolname="save_browser_data" tooldescription="Save the current tasks, preferences, and sorting in this browser." bind="onclick: [persist]APP">Save in this browser</button>
9
+ <button type="button" toolname="restore_browser_data" tooldescription="Replace unsaved tasks, preferences, and sorting with the last browser save." bind="onclick: [restore]APP">Restore browser data</button>
10
10
  </div>
11
11
  <p class="text-sm text-amber-500" bind="hidden: !APP/+storageDirty">Browser changes are not saved.</p>
12
12
  <p class="text-sm text-muted">Saved fields: tasks, settings and sorting.</p>
@@ -20,8 +20,8 @@
20
20
  <div class="panel grid gap-3 border-amber-400">
21
21
  <p>Another tab changed the saved data. Choose which version to keep.</p>
22
22
  <div class="field-row flex-wrap">
23
- <button type="button" bind="onclick: [restore]APP">Use saved data</button>
24
- <button type="button" action-overwrite bind="onclick: [persist]APP">Keep this draft</button>
23
+ <button type="button" toolname="accept_saved_browser_data" tooldescription="Resolve the storage conflict by discarding this draft and restoring the saved browser data." bind="onclick: [restore]APP">Use saved data</button>
24
+ <button type="button" toolname="overwrite_saved_browser_data" tooldescription="Resolve the storage conflict by overwriting the browser save with this draft." action-overwrite bind="onclick: [persist]APP">Keep this draft</button>
25
25
  </div>
26
26
  </div>
27
27
  </sym-conditional>
@@ -110,7 +110,8 @@
110
110
  <p class="text-lg font-semibold tracking-tight">HTML-app<span class="text-accent">.</span></p>
111
111
  <nav class="grid gap-1" itemize="ROUTER/routes">
112
112
  <template>
113
- <a class="nav-link" bind="@href: href; @hidden: !!error; onclick: [navigate]ROUTER">{{title}}
113
+ <a class="nav-link" tooldescription="Open this feature section."
114
+ bind="@toolname: _KEY_; @href: href; @hidden: !!error; onclick: [navigate]ROUTER">{{title}}
114
115
  <sym-conditional when="ROUTER/route" bind="@is: _KEY_">
115
116
  <span class="size-1.5 rounded-full bg-accent"></span>
116
117
  </sym-conditional>
@@ -118,7 +119,7 @@
118
119
  </template>
119
120
  </nav>
120
121
  <div class="mt-auto border-t border-line pt-5">
121
- <label class="field-row"><input type="checkbox" bind="checked: dark; onchange: [pub-to]dark">Dark mode</label>
122
+ <label class="field-row"><input type="checkbox" toolname="set_dark_mode" tooldescription="Enable or disable dark mode for the feature guide." bind="checked: dark; onchange: [pub-to]dark">Dark mode</label>
122
123
  </div>
123
124
  </aside>
124
125
  <main class="min-w-0 md:overflow-y-auto">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@symbiotejs/symbiote",
4
- "version": "3.10.2",
4
+ "version": "3.10.3",
5
5
  "description": "Symbiote.js - zero-dependency close-to-platform frontend library to build super-powered web components",
6
6
  "author": "team@rnd-pro.com",
7
7
  "license": "MIT",
@@ -84,6 +84,10 @@
84
84
  "types": "./types/core/dictionary.d.ts",
85
85
  "default": "./core/dictionary.js"
86
86
  },
87
+ "./core/extensions.js": {
88
+ "types": "./types/core/extensions.d.ts",
89
+ "default": "./core/extensions.js"
90
+ },
87
91
  "./core/full.js": {
88
92
  "types": "./types/core/full.d.ts",
89
93
  "default": "./core/full.js"
@@ -132,6 +136,14 @@
132
136
  "types": "./types/core/warn.d.ts",
133
137
  "default": "./core/warn.js"
134
138
  },
139
+ "./core/webmcp-bindings.js": {
140
+ "types": "./types/core/webmcp-bindings.d.ts",
141
+ "default": "./core/webmcp-bindings.js"
142
+ },
143
+ "./core/webmcp-dictionary.js": {
144
+ "types": "./types/core/webmcp-dictionary.d.ts",
145
+ "default": "./core/webmcp-dictionary.js"
146
+ },
135
147
  "./core/webmcp.js": {
136
148
  "types": "./types/core/webmcp.d.ts",
137
149
  "default": "./core/webmcp.js"
@@ -22,6 +22,8 @@ let core = await build({
22
22
  });
23
23
  assert.ok(Object.keys(core.metafile.inputs).every((path) => !path.startsWith('html-app/')),
24
24
  'The core entry must not import HTML-app.');
25
+ assert.ok(Object.keys(core.metafile.inputs).every((path) => !path.startsWith('core/webmcp')),
26
+ 'The core entry must not import the optional WebMCP implementation or dictionary.');
25
27
  let sharedCore = new Set(Object.keys(core.metafile.inputs).map((path) => resolve(root, path)));
26
28
  /** @type {import('esbuild').Plugin} */
27
29
  let sharedImports = {
@@ -161,7 +161,30 @@ Use `Component.rootStyles = css` for regular Light DOM styles and `Component.sha
161
161
 
162
162
  For SSR, use the `@symbiotejs/symbiote/node` entrypoint and the optional `linkedom` dependency. Initialize `SSR` before dynamically importing component modules, because those modules extend `HTMLElement`. Clean up an explicitly initialized SSR environment after use. `ssrMode` attaches bindings to existing markup; `isoMode` selects hydration when content exists and normal rendering otherwise. Read the SSR reference for concurrency, streaming, and styles.
163
163
 
164
- For HTML-app, use `webmcp-mode="true"` on its external module loader to enable automatic tools for foundation components without activating them globally. For ordinary Symbiote components, import `@symbiotejs/symbiote/webmcp` before rendering participating components. `mcpToolMode` enables automatic event-handler tools; global activation exposes handlers across the application. Explicit `ToolDescriptor` state values register independently, so leave automatic mode disabled when exposing only selected actions. `ToolDescriptor` adds descriptions, input schemas, `execute`, and optional `when`/`deps`. Visibility dependencies must be explicit.
164
+ ### WebMCP
165
+
166
+ For HTML-app, use the literal `webmcp-mode="true"` on its external module loader to load the optional extension and enable automatic tools for foundation components. For ordinary Symbiote components, import `@symbiotejs/symbiote/webmcp` before rendering participating components and enable `mcpToolMode` per component or globally. The core entry does not load WebMCP's dictionary or binding processors.
167
+
168
+ Automatic discovery covers `onclick`, `onsubmit`, `onchange`, and `oninput`. Incidental events such as mouseup, hover, focus, scroll, and individual keystrokes remain ordinary UI bindings. Give eligible operations meaningful `toolname` and `tooldescription` attributes; generated handlers without a description, label, or authored tool name are skipped. Descriptions include the control, event, existing element ID, and component/item context. Use the feature guide's route-key binding pattern for names on generated navigation items. Call `syncWebMCPTools()` after changing metadata attributes or labels.
169
+
170
+ An HTML-app input can expose data insertion through its existing publication handler:
171
+
172
+ ```html
173
+ <script type="module" src="/vendor/symbiote/html-app/index.js" webmcp-mode="true"></script>
174
+ <sym-context ctx="APP">
175
+ <script type="application/json">{"note":""}</script>
176
+ <label>Note
177
+ <input toolname="edit_note" tooldescription="Edit the current note."
178
+ bind="value: note; oninput: [pub-to]note">
179
+ </label>
180
+ </sym-context>
181
+ ```
182
+
183
+ Discover the tool's `inputSchema` before invocation. For the input above, `executeWebMCPTool('edit_note', { value: 'New note' })` sets the DOM value and calls the bound handler, which publishes the new state. Checkbox/radio tools use `checked` booleans; multiple selects use `value` arrays. Input tools require their value argument; change tools can also invoke against the current control state. Use explicit tools for unsupported controls and custom input schemas. See [data insertion](https://github.com/symbiotejs/symbiote.js/blob/main/docs/webmcp.md#data-insertion) for control types and validation.
184
+
185
+ Annotated forms with native declarative WebMCP support own their submission tools; avoid duplicate registrations. Browser-owned form tools appear in native discovery, outside Symbiote's registry and direct invocation API. Preserve `toolparamdescription` and `toolautosubmit` semantics. Without native declarative support, an annotated form requiring user review has no automatic submission fallback. Read the [native form contract](https://github.com/symbiotejs/symbiote.js/blob/main/docs/webmcp.md#native-forms) before exposing form tools.
186
+
187
+ Explicit `ToolDescriptor` state values register independently of automatic event filtering and HTML metadata. Leave automatic mode disabled when exposing only selected actions. Descriptors own their names, descriptions, input schemas, and `execute` logic, with optional `when`/`deps`. Visibility dependencies must be explicit.
165
188
 
166
189
  Use `getActiveWebMCPTools()` to discover current registrations and `executeWebMCPTool(name, input)` to invoke the chosen tool within the user's authorized task. Rediscover after UI changes. Handle returned errors and verify the resulting UI or data state. Discovery and visibility are not authorization; the application or transport must enforce access controls and validate input.
167
190
 
@@ -1 +1 @@
1
- {"version":3,"file":"PubSub.d.ts","sourceRoot":"","sources":["../../core/PubSub.js"],"names":[],"mappings":"AAiBA,oBADwC,CAAC,SAA1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE;IA2DrC,oDAFW,GAAC,kBAIX;IAgVD,mBALuC,CAAC,SAA1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE,UAC3B,CAAC,QACD,SAAS,MAAM,GACb,MAAM,CAAC,CAAC,CAAC,CAuBrB;IAGD,sBADY,SAAS,MAAM,QAK1B;IAOD,mBAJW,SAAS,MAAM,iCAMzB;IAvYD,oBADY,CAAC,EAWZ;IARG,WAA6B;IAO/B,aADW,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAChB;IAiJxC,WADY,MAAM,CAAC,OAqClB;IAzBK,sBAAuB;IA4B7B,uBAEC;IAOD,uBAHW,OAAO,2BAejB;IAMD,UAHW,MAAM,CAAC,OACP,OAAO,QAuBjB;IAGD,aADc,CAAC,CAed;IAGD,iBADY,CAAC,QAKZ;IAGD,aADY,MAAM,CAAC,QAgBlB;IAGD,aADY,MAAM,CAAC,kBAqBlB;IAQD,UALW,MAAM,CAAC,YACP,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI;;wBAAhB,OAAO,KAAK,IAAI;MAyBhC;IAKD,aAFW,SAAS,MAAM,EAIzB;IAED,WANW,SAAS,MAAM,CAQzB;;CA8CF;;qBAEU,GAAG,CAAC,SAAS,MAAM,cAAS;qBAG5B,GAAG,CAAC,SAAS,MAAM,EAAE,KAAK,UAAU,CAAC"}
1
+ {"version":3,"file":"PubSub.d.ts","sourceRoot":"","sources":["../../core/PubSub.js"],"names":[],"mappings":"AAkBA,oBADwC,CAAC,SAA1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE;IA2DrC,oDAFW,GAAC,kBAIX;IAsVD,mBALuC,CAAC,SAA1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE,UAC3B,CAAC,QACD,SAAS,MAAM,GACb,MAAM,CAAC,CAAC,CAAC,CAyBrB;IAGD,sBADY,SAAS,MAAM,QAS1B;IAOD,mBAJW,SAAS,MAAM,iCAMzB;IAnZD,oBADY,CAAC,EAWZ;IARG,WAA6B;IAO/B,aADW,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAChB;IAiJxC,WADY,MAAM,CAAC,OAqClB;IAzBK,sBAAuB;IA4B7B,uBAEC;IAOD,uBAHW,OAAO,2BAiBjB;IAMD,UAHW,MAAM,CAAC,OACP,OAAO,QAyBjB;IAGD,aADc,CAAC,CAed;IAGD,iBADY,CAAC,QAKZ;IAGD,aADY,MAAM,CAAC,QAkBlB;IAGD,aADY,MAAM,CAAC,kBAqBlB;IAQD,UALW,MAAM,CAAC,YACP,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI;;wBAAhB,OAAO,KAAK,IAAI;MAyBhC;IAKD,aAFW,SAAS,MAAM,EAIzB;IAED,WANW,SAAS,MAAM,CAQzB;;CAoDF;;qBAEU,GAAG,CAAC,SAAS,MAAM,cAAS;qBAG5B,GAAG,CAAC,SAAS,MAAM,EAAE,KAAK,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Symbiote.d.ts","sourceRoot":"","sources":["../../core/Symbiote.js"],"names":[],"mappings":";;AAsBA,sBADc,CAAC;IAGb,qBADW,oBAAoB,CACX;IAwBpB,cADW,mBAAmB,CACjB;IAGb,4BAA2B;IAG3B,6BADW,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAC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AG,CAAC,CAAC,EAAE,EAAE,gBAAgB,gBAAW,EAAE,KAAK,eAAU,KAAK,IAAI,CAAC,CACvC;IAEnC;;MAA8B;IAC9B,kBAAwB;IAExB,qBAAwB;IAExB,sBAAyB;IAEzB,wBAA0B;IAE1B,0BAA6B;IAI7B,iBAAoB;IAEpB,6BAAgC;IAEhC,mBAAsB;IAEtB,4BAA8B;IAE9B,kBAAqB;IAErB,qBAAwB;IAG1B,wBAKC;IAED,8BAKC;IAGD,yBAEC;IAGD,sBASC;IAGD,4BAKC;IAGD,6BAEC;IAkBD,IALuB,CAAC,SAAX,MAAO,CAAE,QACX,CAAC,WACD,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI;;MAwD/B;IAGD,2BAIC;IAGD,uBAIC;IAQD,IALuB,CAAC,SAAX,MAAO,CAAE,qBAEX,CAAC,CAAC,CAAC,CAAC,2BAOd;IAMD,UAHW,OAAO,CAAC,CAAC,CAAC,2BAOpB;IAMD,YAHW,OAAO,CAAC,CAAC,CAAC,mCAcpB;IAoCD,gBAFW,OAAO,CAAC,CAAC,CAAC,EAIpB;IAnCD,SADc,CAAC,CA6Bd;IASD,8BAgBC;IAdG,4CASE;IAoFF,0BAAwC;IA0B1C,uBAAyB;IAG3B,0BAqBC;IA4BD,wBAAoB;IAUpB,yBAAuB;IACvB,6BAkBC;IAMD,gBAcC;IA+CD,oEAeC;IAMD,yDAoBC;IAYD,0BAME;IAMF,0CAFW,GAAG,QAgBb;IAED,yBAGC;IAOD,8EAmBC;;CA+BF;;mBA5zBkB,aAAa;qBAEX,iBAAiB;2BACX,iBAAiB"}
@@ -18,16 +18,8 @@ export namespace DICT {
18
18
  let TEXT_NODE_SKIP_ATTR: string;
19
19
  let TEXT_NODE_OPEN_TOKEN: string;
20
20
  let TEXT_NODE_CLOSE_TOKEN: string;
21
- let MCP_EVENTS_KEY: string;
22
- let MCP_TOOL_DESCRIPTOR_MARKER: string;
23
- let MCP_OWNER_ID_KEY: string;
24
- let MCP_SYNC_OWNER_KEY: string;
25
- let MCP_UNREGISTER_OWNER_KEY: string;
26
- let MCP_PUBSUB_REGISTERED_KEY: string;
27
- let MCP_PUBSUB_DELETED_KEY: string;
28
- let MCP_PUBSUB_CHANGED_KEY: string;
29
- let MCP_ITEM_INDEX_KEY: string;
30
- let MCP_ITEM_KEY_KEY: string;
31
- let MCP_EVENT_TARGET_OWNERS_KEY: string;
21
+ let GENERATED_HANDLER_KEY: string;
22
+ let ITEM_INDEX_KEY: string;
23
+ let ITEM_KEY_KEY: string;
32
24
  }
33
25
  //# sourceMappingURL=dictionary.d.ts.map
@@ -0,0 +1,13 @@
1
+ export const extensions: Map<string, Extension>;
2
+ export type Extension = {
3
+ beforeRender?: (owner: any) => void;
4
+ syncOwner?: (owner: any) => void;
5
+ disconnectOwner?: (owner: any) => void;
6
+ binding?: (owner: any, prop: string, key: string, el: Element) => void;
7
+ bindingValue?: (value: any, owner: any, prop: string) => any;
8
+ preserveBindings?: (owner: any) => boolean;
9
+ contextRegistered?: (ctx: any, uid: string | Symbol) => void;
10
+ contextDeleted?: (ctx: any, uid: string | Symbol) => void;
11
+ contextChanged?: (ctx: any, prop: any) => void;
12
+ };
13
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../core/extensions.js"],"names":[],"mappings":"AAgBA,yBADW,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CACG;;mBAZtB,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI;gBACpB,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI;sBACpB,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI;cACpB,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,KAAK,IAAI;mBAC5D,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,GAAG;uBAC7C,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO;wBACvB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI;qBACxC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI;qBACxC,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI"}
@@ -1,4 +1,4 @@
1
- export function setItemWebMCPMetadata(itemEl: any, item: any, idx: number, key?: unknown): void;
1
+ export function setItemMetadata(itemEl: any, item: any, idx: number, key?: unknown): void;
2
2
  export function setupItemize<T extends import("./Symbiote.js").Symbiote<any>>(fr: DocumentFragment, fnCtx: T, handler: (desc: ItemizeDescriptor) => void): void;
3
3
  export type ItemizeDescriptor = {
4
4
  el: Element;
@@ -1 +1 @@
1
- {"version":3,"file":"itemizeSetup.d.ts","sourceRoot":"","sources":["../../core/itemizeSetup.js"],"names":[],"mappings":"AAYA,8CALW,GAAG,QACH,GAAG,OACH,MAAM,QACN,OAAO,QAUjB;AAqBD,6BALgD,CAAC,SAApC,qCAAkC,MACpC,gBAAgB,SAChB,CAAC,WACD,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,QAyE3C;;QAxFa,OAAO;eACP,GAAC;mBACD,MAAM;eACN,OAAO;YACP,OAAO"}
1
+ {"version":3,"file":"itemizeSetup.d.ts","sourceRoot":"","sources":["../../core/itemizeSetup.js"],"names":[],"mappings":"AAYA,wCALW,GAAG,QACH,GAAG,OACH,MAAM,QACN,OAAO,QAUjB;AAqBD,6BALgD,CAAC,SAApC,qCAAkC,MACpC,gBAAgB,SAChB,CAAC,WACD,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,QAyE3C;;QAxFa,OAAO;eACP,GAAC;mBACD,MAAM;eACN,OAAO;YACP,OAAO"}
@@ -1,12 +1,5 @@
1
1
  export { initPropFallback };
2
2
  declare const _default: (<T extends import("./Symbiote.js").Symbiote<any>>(fr: DocumentFragment, fnCtx: T) => void)[];
3
3
  export default _default;
4
- export type MCPEventBinding = {
5
- prop: string;
6
- key: string;
7
- el: Element;
8
- sourceKey?: string;
9
- sourceOwner?: import("./Symbiote.js").Symbiote<any>;
10
- };
11
4
  import { initPropFallback } from './initPropFallback.js';
12
5
  //# sourceMappingURL=tpl-processors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tpl-processors.d.ts","sourceRoot":"","sources":["../../core/tpl-processors.js"],"names":[],"mappings":";0BAiOgD,CAAC,SAApC,qCAAkC,MACpC,gBAAgB,SAChB,CAAC;;;UArNE,MAAM;SACN,MAAM;QACN,OAAO;gBACP,MAAM;;;iCAba,uBAAuB"}
1
+ {"version":3,"file":"tpl-processors.d.ts","sourceRoot":"","sources":["../../core/tpl-processors.js"],"names":[],"mappings":";0BAsJgD,CAAC,SAApC,qCAAkC,MACpC,gBAAgB,SAChB,CAAC;;iCApJqB,uBAAuB"}
@@ -0,0 +1,18 @@
1
+ export function isToolDescriptor(value: any): boolean;
2
+ export namespace webMCPBindings {
3
+ export function beforeRender(owner: any): void;
4
+ export { collectMcpEventHandler as binding };
5
+ export function bindingValue(value: any, owner: any, prop: any): any;
6
+ export { mcpToolMode as preserveBindings };
7
+ }
8
+ export type MCPEventBinding = {
9
+ prop: string;
10
+ key: string;
11
+ el: Element;
12
+ sourceKey?: string;
13
+ sourceOwner?: import("./Symbiote.js").Symbiote<any>;
14
+ };
15
+ declare function collectMcpEventHandler(owner: any, prop: any, key: any, el: any): void;
16
+ declare function mcpToolMode(owner: any): boolean;
17
+ export {};
18
+ //# sourceMappingURL=webmcp-bindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webmcp-bindings.d.ts","sourceRoot":"","sources":["../../core/webmcp-bindings.js"],"names":[],"mappings":"AAaA,sDAEC;;IAiCC,+CAEC;;IAED,qEAIC;;;;UAlDW,MAAM;SACN,MAAM;QACN,OAAO;gBACP,MAAM;;;AAqBpB,wFAeC;AA5BD,kDAEC"}
@@ -0,0 +1,36 @@
1
+ export namespace WEBMCP_DICT {
2
+ let TOOL_NAME_ATTR: string;
3
+ let TOOL_DESCRIPTION_ATTR: string;
4
+ let TOOL_AUTOSUBMIT_ATTR: string;
5
+ namespace TOOL_EVENTS {
6
+ namespace onclick {
7
+ let event: string;
8
+ let description: string;
9
+ }
10
+ namespace onsubmit {
11
+ let event_1: string;
12
+ export { event_1 as event };
13
+ let description_1: string;
14
+ export { description_1 as description };
15
+ }
16
+ namespace onchange {
17
+ let event_2: string;
18
+ export { event_2 as event };
19
+ let description_2: string;
20
+ export { description_2 as description };
21
+ }
22
+ namespace oninput {
23
+ let event_3: string;
24
+ export { event_3 as event };
25
+ let description_3: string;
26
+ export { description_3 as description };
27
+ }
28
+ }
29
+ let EVENTS_KEY: string;
30
+ let TOOL_DESCRIPTOR_MARKER: string;
31
+ let OWNER_ID_KEY: string;
32
+ let SYNC_OWNER_KEY: string;
33
+ let UNREGISTER_OWNER_KEY: string;
34
+ let EVENT_TARGET_OWNERS_KEY: string;
35
+ }
36
+ //# sourceMappingURL=webmcp-dictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webmcp-dictionary.d.ts","sourceRoot":"","sources":["../../core/webmcp-dictionary.js"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"webmcp.d.ts","sourceRoot":"","sources":["../../core/webmcp.js"],"names":[],"mappings":"AAgqBA,0CALW,GAAG,OACH,MAAM,cACN,cAAc,GACZ,CAAC,mBAAmB,GAAG;IAAC,UAAU,EAAE,eAAe,GAAG,IAAI,CAAA;CAAC,CAAC,GAAG,OAAO,CAAC,mBAAmB,GAAG;IAAC,UAAU,EAAE,eAAe,GAAG,IAAI,CAAA;CAAC,CAAC,CAqC9I;AA2CD,uCADY,GAAG,QA6Bd;AAGD,6CADY,GAAG,QAyBd;AAGD,wCADc,mBAAmB,EAAE,CAIlC;A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,mBAAkB;IAClB,gBAAY;IACZ,iBAAa;IAGX,0CAAkB;IAEpB,gBAQC;IACD,mBAQC;IACD,mBAKC;IAID,cAFW,OAAO,GAAG,gBAAgB,QA4EpC;IAED,gBADY,OAAO,QASlB;IAED,cADY,OAAO,QAWlB;IACD,gBAOC;IAED,WAAY,OADA,WACK,UAOf;IAEF,gBADY,eAAe,WAgB1B;IACD;;;MAaC;IAKD,kBAHW,OAAO,UACP,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2IrB;CACF;;uBArWa,OAAO;kBACP,OAAO;aACP,MAAM;cACN,OAAO;cACP,OAAO;eACP,OAAO;aACP,OAAO;gBACP,OAAO,GAAG,IAAI;qBACd,MAAM,IAAI;;;aAGV,OAAO;cACP,MAAM;YACN,MAAM;SACN,MAAM;YACN,UAAU,CAAC,OAAO,WAAW,CAAC;eAC9B,OAAO;aACP,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS;WAC3B,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS;aACzC,CAAC,MAAM,IAAI,CAAC,EAAE;mBACd;QAAE,MAAM,IAAI,IAAI,CAAA;KAAE,EAAE;;4BA1BiD,kBAAkB"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../html-app/actions.js"],"names":[],"mappings":"AAmCA,sCAHW,OAAO,GAAG,gBAAgB,SAC1B,OAAO,gBAAgB,EAAE,SAAS,QAO5C;AACD;IAOE,mBADY,OAAO,gBAAgB,EAAE,SAAS,EAG7C;IAPD,UADW,OAAO,EAAE,CACN;IACd,mBAAkB;IAClB,gBAAY;IACZ,iBAAa;IAGX,0CAAkB;IAEpB,gBAQC;IACD,mBAQC;IACD,mBAKC;IAID,cAFW,OAAO,GAAG,gBAAgB,QA8EpC;IAED,gBADY,OAAO,QASlB;IAED,cADY,OAAO,QAWlB;IACD,gBAOC;IAED,WAAY,OADA,WACK,UAOf;IAEF,gBADY,eAAe,WAgB1B;IACD;;;MAaC;IAKD,kBAHW,OAAO,UACP,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2IrB;CACF;;uBAvWa,OAAO;kBACP,OAAO;aACP,MAAM;cACN,OAAO;cACP,OAAO;eACP,OAAO;aACP,OAAO;gBACP,OAAO,GAAG,IAAI;qBACd,MAAM,IAAI;;;aAGV,OAAO;cACP,MAAM;YACN,MAAM;SACN,MAAM;YACN,UAAU,CAAC,OAAO,WAAW,CAAC;eAC9B,OAAO;aACP,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS;WAC3B,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS;aACzC,CAAC,MAAM,IAAI,CAAC,EAAE;mBACd;QAAE,MAAM,IAAI,IAAI,CAAA;KAAE,EAAE;;4BA1BiD,kBAAkB"}
@@ -18,16 +18,8 @@ export function reassignDictionary(dict: Partial<any>): {
18
18
  TEXT_NODE_SKIP_ATTR: string;
19
19
  TEXT_NODE_OPEN_TOKEN: string;
20
20
  TEXT_NODE_CLOSE_TOKEN: string;
21
- MCP_EVENTS_KEY: string;
22
- MCP_TOOL_DESCRIPTOR_MARKER: string;
23
- MCP_OWNER_ID_KEY: string;
24
- MCP_SYNC_OWNER_KEY: string;
25
- MCP_UNREGISTER_OWNER_KEY: string;
26
- MCP_PUBSUB_REGISTERED_KEY: string;
27
- MCP_PUBSUB_DELETED_KEY: string;
28
- MCP_PUBSUB_CHANGED_KEY: string;
29
- MCP_ITEM_INDEX_KEY: string;
30
- MCP_ITEM_KEY_KEY: string;
31
- MCP_EVENT_TARGET_OWNERS_KEY: string;
21
+ GENERATED_HANDLER_KEY: string;
22
+ ITEM_INDEX_KEY: string;
23
+ ITEM_KEY_KEY: string;
32
24
  };
33
25
  //# sourceMappingURL=reassignDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reassignDictionary.d.ts","sourceRoot":"","sources":["../../utils/reassignDictionary.js"],"names":[],"mappings":"AAKA,yCAFW,OAAO,CAAC,GAAoC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvD"}
1
+ {"version":3,"file":"reassignDictionary.d.ts","sourceRoot":"","sources":["../../utils/reassignDictionary.js"],"names":[],"mappings":"AAKA,yCAFW,OAAO,CAAC,GAAoC,CAAC;;;;;;;;;;;;;;;;;;;;;;;EAQvD"}