@json-layout/core 2.7.0 → 2.8.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.
Files changed (79) hide show
  1. package/package.json +1 -1
  2. package/src/state/index.js +6 -1
  3. package/src/state/state-node.js +67 -7
  4. package/types/compile/index.d.ts +0 -16
  5. package/types/compile/index.d.ts.map +0 -1
  6. package/types/compile/options.d.ts +0 -6
  7. package/types/compile/options.d.ts.map +0 -1
  8. package/types/compile/serialize.d.ts +0 -6
  9. package/types/compile/serialize.d.ts.map +0 -1
  10. package/types/compile/skeleton-node.d.ts +0 -21
  11. package/types/compile/skeleton-node.d.ts.map +0 -1
  12. package/types/compile/skeleton-tree.d.ts +0 -19
  13. package/types/compile/skeleton-tree.d.ts.map +0 -1
  14. package/types/compile/types.d.ts +0 -61
  15. package/types/compile/types.d.ts.map +0 -1
  16. package/types/compile/utils/resolve-refs.d.ts +0 -17
  17. package/types/compile/utils/resolve-refs.d.ts.map +0 -1
  18. package/types/compile/utils/x-i18n.d.ts +0 -2
  19. package/types/compile/utils/x-i18n.d.ts.map +0 -1
  20. package/types/i18n/de.d.ts +0 -24
  21. package/types/i18n/de.d.ts.map +0 -1
  22. package/types/i18n/en.d.ts +0 -24
  23. package/types/i18n/en.d.ts.map +0 -1
  24. package/types/i18n/fr.d.ts +0 -24
  25. package/types/i18n/fr.d.ts.map +0 -1
  26. package/types/i18n/index.d.ts +0 -8
  27. package/types/i18n/index.d.ts.map +0 -1
  28. package/types/i18n/nl.d.ts +0 -24
  29. package/types/i18n/nl.d.ts.map +0 -1
  30. package/types/i18n/types.d.ts +0 -23
  31. package/types/i18n/types.d.ts.map +0 -1
  32. package/types/index.d.ts +0 -5
  33. package/types/index.d.ts.map +0 -1
  34. package/types/state/index.d.ts +0 -303
  35. package/types/state/index.d.ts.map +0 -1
  36. package/types/state/options.d.ts +0 -11
  37. package/types/state/options.d.ts.map +0 -1
  38. package/types/state/state-node.d.ts +0 -40
  39. package/types/state/state-node.d.ts.map +0 -1
  40. package/types/state/state-tree.d.ts +0 -13
  41. package/types/state/state-tree.d.ts.map +0 -1
  42. package/types/state/types.d.ts +0 -198
  43. package/types/state/types.d.ts.map +0 -1
  44. package/types/state/utils/display.d.ts +0 -51
  45. package/types/state/utils/display.d.ts.map +0 -1
  46. package/types/state/utils/immutable.d.ts +0 -21
  47. package/types/state/utils/immutable.d.ts.map +0 -1
  48. package/types/state/utils/modified.d.ts +0 -17
  49. package/types/state/utils/modified.d.ts.map +0 -1
  50. package/types/state/utils/regexps.d.ts +0 -6
  51. package/types/state/utils/regexps.d.ts.map +0 -1
  52. package/types/state/utils/urls.d.ts +0 -2
  53. package/types/state/utils/urls.d.ts.map +0 -1
  54. package/types/utils/build.d.ts +0 -5
  55. package/types/utils/build.d.ts.map +0 -1
  56. package/types/utils/clone.d.ts +0 -2
  57. package/types/utils/clone.d.ts.map +0 -1
  58. package/types/utils/doc-options.d.ts +0 -14
  59. package/types/utils/doc-options.d.ts.map +0 -1
  60. package/types/webmcp/index.d.ts +0 -90
  61. package/types/webmcp/index.d.ts.map +0 -1
  62. package/types/webmcp/project.d.ts +0 -111
  63. package/types/webmcp/project.d.ts.map +0 -1
  64. package/types/webmcp/resolve.d.ts +0 -11
  65. package/types/webmcp/resolve.d.ts.map +0 -1
  66. package/types/webmcp/tools/describe-state.d.ts +0 -79
  67. package/types/webmcp/tools/describe-state.d.ts.map +0 -1
  68. package/types/webmcp/tools/edit-array.d.ts +0 -88
  69. package/types/webmcp/tools/edit-array.d.ts.map +0 -1
  70. package/types/webmcp/tools/fill-form-skill.d.ts +0 -24
  71. package/types/webmcp/tools/fill-form-skill.d.ts.map +0 -1
  72. package/types/webmcp/tools/get-data.d.ts +0 -31
  73. package/types/webmcp/tools/get-data.d.ts.map +0 -1
  74. package/types/webmcp/tools/get-field-suggestions.d.ts +0 -66
  75. package/types/webmcp/tools/get-field-suggestions.d.ts.map +0 -1
  76. package/types/webmcp/tools/set-data.d.ts +0 -60
  77. package/types/webmcp/tools/set-data.d.ts.map +0 -1
  78. package/types/webmcp/tools/set-field-value.d.ts +0 -91
  79. package/types/webmcp/tools/set-field-value.d.ts.map +0 -1
@@ -1,21 +0,0 @@
1
- /**
2
- * @template ItemType
3
- * @param {ItemType[]} previousArray
4
- * @param {ItemType[]} newArray
5
- * @returns {ItemType[]}
6
- */
7
- export function shallowProduceArray<ItemType>(previousArray?: ItemType[], newArray?: ItemType[]): ItemType[];
8
- /**
9
- * @param {Record<string, any>} previousObj
10
- * @param {Record<string, any>} newObj
11
- * @returns {Record<string, any>}
12
- */
13
- export function shallowProduceObject(previousObj?: Record<string, any>, newObj?: Record<string, any>): Record<string, any>;
14
- /**
15
- * @template ItemType
16
- * @param {any[] | null | undefined} a1
17
- * @param {any[] | null | undefined} a2
18
- * @returns {boolean}
19
- */
20
- export function shallowEqualArray<ItemType>(a1?: any[] | null | undefined, a2?: any[] | null | undefined): boolean;
21
- //# sourceMappingURL=immutable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"immutable.d.ts","sourceRoot":"","sources":["../../../src/state/utils/immutable.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oCALa,QAAQ,kBACV,QAAQ,EAAE,aACV,QAAQ,EAAE,GACR,QAAQ,EAAE,CAMtB;AAED;;;;GAIG;AACH,mDAJW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WACnB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACjB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAW/B;AAED;;;;;GAKG;AACH,kCALa,QAAQ,OACV,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,OACxB,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,GACtB,OAAO,CAOnB"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Resolve a JSON pointer data path against a data object.
3
- * @param {unknown} data
4
- * @param {string} dataPath - JSON pointer (e.g. '', '/a/b', '/arr/0')
5
- * @returns {unknown}
6
- */
7
- export function resolveDataPath(data: unknown, dataPath: string): unknown;
8
- /**
9
- * Compare a saved value against a current value.
10
- * The caller is responsible for checking if the feature is active (context.savedData !== undefined)
11
- * before calling this function.
12
- * @param {unknown} savedValue
13
- * @param {unknown} currentValue
14
- * @returns {boolean}
15
- */
16
- export function isNodeModified(savedValue: unknown, currentValue: unknown): boolean;
17
- //# sourceMappingURL=modified.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modified.d.ts","sourceRoot":"","sources":["../../../src/state/utils/modified.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,sCAJW,OAAO,YACP,MAAM,GACJ,OAAO,CAYnB;AAED;;;;;;;GAOG;AACH,2CAJW,OAAO,gBACP,OAAO,GACL,OAAO,CAKnB"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @param {string} str
3
- * @returns {RegExp}
4
- */
5
- export function getRegexp(str: string): RegExp;
6
- //# sourceMappingURL=regexps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regexps.d.ts","sourceRoot":"","sources":["../../../src/state/utils/regexps.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,+BAHW,MAAM,GACJ,MAAM,CAKlB"}
@@ -1,2 +0,0 @@
1
- export function pathURL(url: string, baseURL: string): URL;
2
- //# sourceMappingURL=urls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"urls.d.ts","sourceRoot":"","sources":["../../../src/state/utils/urls.js"],"names":[],"mappings":"AAEO,6BAA4B,MAAM,WAAoB,MAAM,OAIlE"}
@@ -1,5 +0,0 @@
1
- /** @type {string[]} */
2
- export const commonjsDeps: string[];
3
- /** @type {string[][]} */
4
- export const commonjsDepsPaths: string[][];
5
- //# sourceMappingURL=build.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/utils/build.js"],"names":[],"mappings":"AAEA,uBAAuB;AACvB,2BADW,MAAM,EAAE,CAUlB;AAED,yBAAyB;AACzB,gCADW,MAAM,EAAE,EAAE,CAUpB"}
@@ -1,2 +0,0 @@
1
- export { clone } from "@json-layout/vocabulary";
2
- //# sourceMappingURL=clone.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../src/utils/clone.js"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- /**
2
- * @typedef {{key: string, description: string, default?: any, values?: Record<string, any>}[]} DocOptions
3
- */
4
- /** @type {DocOptions} */
5
- export const compileOptions: DocOptions;
6
- /** @type {DocOptions} */
7
- export const runtimeOptions: DocOptions;
8
- export type DocOptions = {
9
- key: string;
10
- description: string;
11
- default?: any;
12
- values?: Record<string, any>;
13
- }[];
14
- //# sourceMappingURL=doc-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"doc-options.d.ts","sourceRoot":"","sources":["../../src/utils/doc-options.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH,yBAAyB;AACzB,6BADW,UAAU,CAiGpB;AAED,yBAAyB;AACzB,6BADW,UAAU,CA6HpB;yBAnOY;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,EAAE"}
@@ -1,90 +0,0 @@
1
- /**
2
- * WebMCP class that provides MCP tool descriptors for a StatefulLayout instance
3
- */
4
- export class WebMCP {
5
- /**
6
- * @param {import('../state/index.js').StatefulLayout} statefulLayout
7
- * @param {WebMCPOptions} [options]
8
- */
9
- constructor(statefulLayout: import("../state/index.js").StatefulLayout, options?: WebMCPOptions);
10
- /**
11
- * @readonly
12
- * @type {import('../state/index.js').StatefulLayout}
13
- */
14
- readonly _statefulLayout: import("../state/index.js").StatefulLayout;
15
- /**
16
- * @readonly
17
- * @type {string}
18
- */
19
- readonly _prefixName: string;
20
- /**
21
- * @readonly
22
- * @type {string}
23
- */
24
- readonly _dataTitle: string;
25
- /**
26
- * @readonly
27
- * @type {"small"|"medium"|"large"}
28
- */
29
- readonly _complexity: "small" | "medium" | "large";
30
- /**
31
- * @readonly
32
- * @type {object | null}
33
- */
34
- readonly _schema: object | null;
35
- /**
36
- * @readonly
37
- * @type {boolean}
38
- */
39
- readonly _includeFillFormSkill: boolean;
40
- /**
41
- * @readonly
42
- * @type {boolean}
43
- */
44
- readonly _includeSubAgent: boolean;
45
- /**
46
- * @type {string[]}
47
- */
48
- _registeredTools: string[];
49
- /**
50
- * @param {string} name
51
- * @returns {string}
52
- */
53
- _toolName(name: string): string;
54
- /**
55
- * @returns {ToolDescriptor[]}
56
- */
57
- getTools(): ToolDescriptor[];
58
- /**
59
- * @returns {Promise<void>}
60
- */
61
- registerTools(): Promise<void>;
62
- /**
63
- * @returns {Promise<void>}
64
- */
65
- unregisterTools(): Promise<void>;
66
- }
67
- export type WebMCPOptions = {
68
- /**
69
- * - Prefix for all tool names
70
- */
71
- prefixName?: string | undefined;
72
- /**
73
- * - Title used in descriptions (default: 'form')
74
- */
75
- dataTitle?: string | undefined;
76
- /**
77
- * - The original JSON schema
78
- */
79
- schema?: object | undefined;
80
- /**
81
- * - Include the fillFormSkill tool (default: false)
82
- */
83
- includeFillFormSkill?: boolean | undefined;
84
- /**
85
- * - Include a subagent_ tool wrapping all form tools (default: false)
86
- */
87
- includeSubAgent?: boolean | undefined;
88
- };
89
- export type ToolDescriptor = import("@mcp-b/webmcp-types").ToolDescriptor;
90
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webmcp/index.js"],"names":[],"mappings":"AA4DA;;GAEG;AACH;IAgDE;;;OAGG;IACH,4BAHW,OAAO,mBAAmB,EAAE,cAAc,YAC1C,aAAa,EAUvB;IA3DD;;;OAGG;IACH,0BAFU,OAAO,mBAAmB,EAAE,cAAc,CAErC;IAEf;;;OAGG;IACH,sBAFU,MAAM,CAEL;IAEX;;;OAGG;IACH,qBAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,sBAFU,OAAO,GAAC,QAAQ,GAAC,OAAO,CAEvB;IAEX;;;OAGG;IACH,kBAFU,MAAM,GAAG,IAAI,CAET;IAEd;;;OAGG;IACH,gCAFU,OAAO,CAEY;IAE7B;;;OAGG;IACH,2BAFU,OAAO,CAEO;IAExB;;OAEG;IACH,kBAFU,MAAM,EAAE,CAEG;IAgBrB;;;OAGG;IACH,gBAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;OAEG;IACH,YAFa,cAAc,EAAE,CA0O5B;IAED;;OAEG;IACH,iBAFa,OAAO,CAAC,IAAI,CAAC,CAczB;IAED;;OAEG;IACH,mBAFa,OAAO,CAAC,IAAI,CAAC,CAYzB;CACF;;;;;;;;;;;;;;;;;;;;;;;6BAjYa,OAAO,qBAAqB,EAAE,cAAc"}
@@ -1,111 +0,0 @@
1
- /**
2
- * @typedef {{
3
- * path: string,
4
- * type: string,
5
- * data: unknown,
6
- * title?: string,
7
- * label?: string,
8
- * help?: string,
9
- * error?: string,
10
- * required?: boolean,
11
- * readOnly?: boolean,
12
- * modified?: boolean,
13
- * constraints?: Record<string, unknown>,
14
- * variants?: Array<{index: number, title: string}>,
15
- * selectedVariant?: number,
16
- * children?: Array<ProjectedNode>,
17
- * getSuggestions?: boolean
18
- * }} ProjectedNode
19
- */
20
- /**
21
- * @param {import('../state/types.js').StateNode} node
22
- * @param {import('../state/index.js').StatefulLayout} statefulLayout
23
- * @returns {ProjectedNode}
24
- */
25
- export function projectNode(node: import("../state/types.js").StateNode, statefulLayout: import("../state/index.js").StatefulLayout): ProjectedNode;
26
- /**
27
- * Project a single field result for slim mutation responses
28
- * @param {import('../state/types.js').StateNode} node
29
- * @param {import('../state/index.js').StatefulLayout} statefulLayout
30
- * @returns {{ path: string, type: string, data: unknown, error?: string }}
31
- */
32
- export function projectFieldResult(node: import("../state/types.js").StateNode, statefulLayout: import("../state/index.js").StatefulLayout): {
33
- path: string;
34
- type: string;
35
- data: unknown;
36
- error?: string;
37
- };
38
- /**
39
- * @param {import('../state/types.js').StateTree} stateTree
40
- * @param {import('../state/index.js').StatefulLayout} statefulLayout
41
- * @returns {{ root: ProjectedNode, valid: boolean }}
42
- */
43
- export function projectStateTree(stateTree: import("../state/types.js").StateTree, statefulLayout: import("../state/index.js").StatefulLayout): {
44
- root: ProjectedNode;
45
- valid: boolean;
46
- };
47
- /**
48
- * Format a projected node as a markdown line for LLM-readable output.
49
- * @param {import('../state/types.js').StateNode} node
50
- * @param {import('../state/index.js').StatefulLayout} statefulLayout
51
- * @param {number} [depth]
52
- * @returns {string}
53
- */
54
- export function projectNodeToMarkdown(node: import("../state/types.js").StateNode, statefulLayout: import("../state/index.js").StatefulLayout, depth?: number): string;
55
- /**
56
- * Format a state tree as markdown for LLM-readable output.
57
- * @param {import('../state/types.js').StateTree} stateTree
58
- * @param {import('../state/index.js').StatefulLayout} statefulLayout
59
- * @returns {string}
60
- */
61
- export function projectStateTreeToMarkdown(stateTree: import("../state/types.js").StateTree, statefulLayout: import("../state/index.js").StatefulLayout): string;
62
- /**
63
- * Format a mutation result as concise text for LLM-readable output.
64
- * @param {boolean} valid
65
- * @param {Array<{path: string, message: string}>} errors
66
- * @param {string} [prefix] - optional prefix line (e.g. field info)
67
- * @returns {string}
68
- */
69
- export function formatMutationResult(valid: boolean, errors: Array<{
70
- path: string;
71
- message: string;
72
- }>, prefix?: string): string;
73
- /**
74
- * Format field suggestions as markdown for LLM-readable output.
75
- * @param {Array<{value: unknown, title: string, key?: string}>} items
76
- * @returns {string}
77
- */
78
- export function formatSuggestions(items: Array<{
79
- value: unknown;
80
- title: string;
81
- key?: string;
82
- }>): string;
83
- /**
84
- * @param {import('../state/types.js').StateNode} node
85
- * @returns {Array<{path: string, message: string}>}
86
- */
87
- export function collectErrors(node: import("../state/types.js").StateNode): Array<{
88
- path: string;
89
- message: string;
90
- }>;
91
- export type ProjectedNode = {
92
- path: string;
93
- type: string;
94
- data: unknown;
95
- title?: string;
96
- label?: string;
97
- help?: string;
98
- error?: string;
99
- required?: boolean;
100
- readOnly?: boolean;
101
- modified?: boolean;
102
- constraints?: Record<string, unknown>;
103
- variants?: Array<{
104
- index: number;
105
- title: string;
106
- }>;
107
- selectedVariant?: number;
108
- children?: Array<ProjectedNode>;
109
- getSuggestions?: boolean;
110
- };
111
- //# sourceMappingURL=project.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/webmcp/project.js"],"names":[],"mappings":"AA+CA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;GAIG;AACH,kCAJW,OAAO,mBAAmB,EAAE,SAAS,kBACrC,OAAO,mBAAmB,EAAE,cAAc,GACxC,aAAa,CAiDzB;AAED;;;;;GAKG;AACH,yCAJW,OAAO,mBAAmB,EAAE,SAAS,kBACrC,OAAO,mBAAmB,EAAE,cAAc,GACxC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAWzE;AAED;;;;GAIG;AACH,4CAJW,OAAO,mBAAmB,EAAE,SAAS,kBACrC,OAAO,mBAAmB,EAAE,cAAc,GACxC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAOnD;AAED;;;;;;GAMG;AACH,4CALW,OAAO,mBAAmB,EAAE,SAAS,kBACrC,OAAO,mBAAmB,EAAE,cAAc,UAC1C,MAAM,GACJ,MAAM,CAoElB;AAED;;;;;GAKG;AACH,sDAJW,OAAO,mBAAmB,EAAE,SAAS,kBACrC,OAAO,mBAAmB,EAAE,cAAc,GACxC,MAAM,CAsBlB;AAED;;;;;;GAMG;AACH,4CALW,OAAO,UACP,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,CAAC,WACtC,MAAM,GACJ,MAAM,CAmBlB;AAED;;;;GAIG;AACH,yCAHW,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,GAClD,MAAM,CAclB;AAED;;;GAGG;AACH,oCAHW,OAAO,mBAAmB,EAAE,SAAS,GACnC,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,CAAC,CAOlD;4BAnQY;IACR,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
@@ -1,11 +0,0 @@
1
- /**
2
- * @file Node resolution for webmcp tools
3
- */
4
- /**
5
- * Navigate from a root StateNode to a descendant node by path.
6
- * @param {import('../state/types.js').StateNode} root
7
- * @param {string} path
8
- * @returns {import('../state/types.js').StateNode|undefined}
9
- */
10
- export function resolveNode(root: import("../state/types.js").StateNode, path: string): import("../state/types.js").StateNode | undefined;
11
- //# sourceMappingURL=resolve.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/webmcp/resolve.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,kCAJW,OAAO,mBAAmB,EAAE,SAAS,QACrC,MAAM,GACJ,OAAO,mBAAmB,EAAE,SAAS,GAAC,SAAS,CAgB3D"}
@@ -1,79 +0,0 @@
1
- /**
2
- * @param {string} dataTitle
3
- * @param {"small"|"medium"|"large"} [complexity]
4
- * @returns {string}
5
- */
6
- export function getDescription(dataTitle: string, complexity?: "small" | "medium" | "large"): string;
7
- /**
8
- * @param {import('../../state/index.js').StatefulLayout} statefulLayout
9
- * @param {{ path?: string }} args
10
- * @returns {{state: ReturnType<typeof projectStateTree>|ReturnType<typeof projectNode>, valid: boolean, errors: Array<{path: string, message: string}>}}
11
- */
12
- export function execute(statefulLayout: import("../../state/index.js").StatefulLayout, args: {
13
- path?: string;
14
- }): {
15
- state: ReturnType<typeof projectStateTree> | ReturnType<typeof projectNode>;
16
- valid: boolean;
17
- errors: Array<{
18
- path: string;
19
- message: string;
20
- }>;
21
- };
22
- /**
23
- * @param {import('../../state/index.js').StatefulLayout} statefulLayout
24
- * @param {{ path?: string }} args
25
- * @returns {string}
26
- */
27
- export function toMarkdown(statefulLayout: import("../../state/index.js").StatefulLayout, args: {
28
- path?: string;
29
- }): string;
30
- export namespace inputSchema {
31
- let type: string;
32
- namespace properties {
33
- namespace path {
34
- let type_1: string;
35
- export { type_1 as type };
36
- export let description: string;
37
- }
38
- }
39
- }
40
- export namespace outputSchema {
41
- let type_2: string;
42
- export { type_2 as type };
43
- export namespace properties_1 {
44
- namespace state {
45
- let type_3: string;
46
- export { type_3 as type };
47
- let description_1: string;
48
- export { description_1 as description };
49
- }
50
- namespace valid {
51
- let type_4: string;
52
- export { type_4 as type };
53
- }
54
- namespace errors {
55
- let type_5: string;
56
- export { type_5 as type };
57
- export namespace items {
58
- let type_6: string;
59
- export { type_6 as type };
60
- export namespace properties_2 {
61
- export namespace path_1 {
62
- let type_7: string;
63
- export { type_7 as type };
64
- }
65
- export { path_1 as path };
66
- export namespace message {
67
- let type_8: string;
68
- export { type_8 as type };
69
- }
70
- }
71
- export { properties_2 as properties };
72
- }
73
- }
74
- }
75
- export { properties_1 as properties };
76
- }
77
- import { projectStateTree } from '../project.js';
78
- import { projectNode } from '../project.js';
79
- //# sourceMappingURL=describe-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describe-state.d.ts","sourceRoot":"","sources":["../../../src/webmcp/tools/describe-state.js"],"names":[],"mappings":"AAwCA;;;;GAIG;AACH,0CAJW,MAAM,eACN,OAAO,GAAC,QAAQ,GAAC,OAAO,GACtB,MAAM,CAQlB;AAED;;;;GAIG;AACH,wCAJW,OAAO,sBAAsB,EAAE,cAAc,QAC7C;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACf;IAAC,KAAK,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC,CAAA;CAAC,CAsBvJ;AAED;;;;GAIG;AACH,2CAJW,OAAO,sBAAsB,EAAE,cAAc,QAC7C;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACf,MAAM,CAelB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA9FqI,eAAe;4BAAf,eAAe"}
@@ -1,88 +0,0 @@
1
- /**
2
- * @param {string} dataTitle
3
- * @returns {string}
4
- */
5
- export function getDescription(dataTitle: string): string;
6
- /**
7
- * @param {import('../../state/index.js').StatefulLayout} statefulLayout
8
- * @param {{ path: string, action: 'add'|'remove', index?: number, value?: unknown }} args
9
- * @returns {{ valid: boolean, itemCount: number, errors: Array<{path: string, message: string}> }}
10
- */
11
- export function execute(statefulLayout: import("../../state/index.js").StatefulLayout, args: {
12
- path: string;
13
- action: "add" | "remove";
14
- index?: number;
15
- value?: unknown;
16
- }): {
17
- valid: boolean;
18
- itemCount: number;
19
- errors: Array<{
20
- path: string;
21
- message: string;
22
- }>;
23
- };
24
- export namespace inputSchema {
25
- let type: string;
26
- namespace properties {
27
- namespace path {
28
- let type_1: string;
29
- export { type_1 as type };
30
- export let description: string;
31
- }
32
- namespace action {
33
- let type_2: string;
34
- export { type_2 as type };
35
- let _enum: string[];
36
- export { _enum as enum };
37
- let description_1: string;
38
- export { description_1 as description };
39
- }
40
- namespace index {
41
- let type_3: string;
42
- export { type_3 as type };
43
- let description_2: string;
44
- export { description_2 as description };
45
- }
46
- namespace value {
47
- let description_3: string;
48
- export { description_3 as description };
49
- }
50
- }
51
- let required: string[];
52
- }
53
- export namespace outputSchema {
54
- let type_4: string;
55
- export { type_4 as type };
56
- export namespace properties_1 {
57
- namespace valid {
58
- let type_5: string;
59
- export { type_5 as type };
60
- }
61
- namespace itemCount {
62
- let type_6: string;
63
- export { type_6 as type };
64
- }
65
- namespace errors {
66
- let type_7: string;
67
- export { type_7 as type };
68
- export namespace items {
69
- let type_8: string;
70
- export { type_8 as type };
71
- export namespace properties_2 {
72
- export namespace path_1 {
73
- let type_9: string;
74
- export { type_9 as type };
75
- }
76
- export { path_1 as path };
77
- export namespace message {
78
- let type_10: string;
79
- export { type_10 as type };
80
- }
81
- }
82
- export { properties_2 as properties };
83
- }
84
- }
85
- }
86
- export { properties_1 as properties };
87
- }
88
- //# sourceMappingURL=edit-array.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edit-array.d.ts","sourceRoot":"","sources":["../../../src/webmcp/tools/edit-array.js"],"names":[],"mappings":"AAgDA;;;GAGG;AACH,0CAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;GAIG;AACH,wCAJW,OAAO,sBAAsB,EAAE,cAAc,QAC7C;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,KAAK,GAAC,QAAQ,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GACvE;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC,CAAA;CAAE,CAqCjG"}
@@ -1,24 +0,0 @@
1
- /**
2
- * @param {string} dataTitle
3
- * @returns {string}
4
- */
5
- export function getDescription(dataTitle: string): string;
6
- /**
7
- * Generate skill content with dataTitle injected
8
- * @param {string} dataTitle
9
- * @param {string} prefixName
10
- * @param {boolean} hasSchema
11
- * @param {import('../../state/index.js').StatefulLayout} statefulLayout
12
- * @returns {string}
13
- */
14
- export function generateSkill(dataTitle: string, prefixName: string, hasSchema: boolean, statefulLayout: import("../../state/index.js").StatefulLayout): string;
15
- export namespace outputSchema {
16
- let type: string;
17
- namespace properties {
18
- namespace content {
19
- let type_1: string;
20
- export { type_1 as type };
21
- }
22
- }
23
- }
24
- //# sourceMappingURL=fill-form-skill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fill-form-skill.d.ts","sourceRoot":"","sources":["../../../src/webmcp/tools/fill-form-skill.js"],"names":[],"mappings":"AAWA;;;GAGG;AACH,0CAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;;;;GAOG;AACH,yCANW,MAAM,cACN,MAAM,aACN,OAAO,kBACP,OAAO,sBAAsB,EAAE,cAAc,GAC3C,MAAM,CAyClB"}
@@ -1,31 +0,0 @@
1
- /**
2
- * @param {string} dataTitle
3
- * @returns {string}
4
- */
5
- export function getDescription(dataTitle: string): string;
6
- /**
7
- * @param {import('../../state/index.js').StatefulLayout} statefulLayout
8
- * @param {{}} _args
9
- * @returns {{ data: unknown, valid: boolean }}
10
- */
11
- export function execute(statefulLayout: import("../../state/index.js").StatefulLayout, _args: {}): {
12
- data: unknown;
13
- valid: boolean;
14
- };
15
- export namespace inputSchema {
16
- let type: string;
17
- let properties: {};
18
- }
19
- export namespace outputSchema {
20
- let type_1: string;
21
- export { type_1 as type };
22
- export namespace properties_1 {
23
- let data: {};
24
- namespace valid {
25
- let type_2: string;
26
- export { type_2 as type };
27
- }
28
- }
29
- export { properties_1 as properties };
30
- }
31
- //# sourceMappingURL=get-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-data.d.ts","sourceRoot":"","sources":["../../../src/webmcp/tools/get-data.js"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,0CAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;GAIG;AACH,wCAJW,OAAO,sBAAsB,EAAE,cAAc,SAC7C,EAAE,GACA;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAO7C"}
@@ -1,66 +0,0 @@
1
- /**
2
- * @param {string} dataTitle
3
- * @returns {string}
4
- */
5
- export function getDescription(dataTitle: string): string;
6
- /**
7
- * @param {import('../../state/index.js').StatefulLayout} statefulLayout
8
- * @param {{ path: string, query?: string }} args
9
- * @returns {Promise<{items: Array<{value: unknown, title: string, key?: string}>}>}
10
- */
11
- export function execute(statefulLayout: import("../../state/index.js").StatefulLayout, args: {
12
- path: string;
13
- query?: string;
14
- }): Promise<{
15
- items: Array<{
16
- value: unknown;
17
- title: string;
18
- key?: string;
19
- }>;
20
- }>;
21
- export namespace inputSchema {
22
- let type: string;
23
- namespace properties {
24
- namespace path {
25
- let type_1: string;
26
- export { type_1 as type };
27
- export let description: string;
28
- }
29
- namespace query {
30
- let type_2: string;
31
- export { type_2 as type };
32
- let description_1: string;
33
- export { description_1 as description };
34
- }
35
- }
36
- let required: string[];
37
- }
38
- export namespace outputSchema {
39
- let type_3: string;
40
- export { type_3 as type };
41
- export namespace properties_1 {
42
- namespace items {
43
- let type_4: string;
44
- export { type_4 as type };
45
- export namespace items_1 {
46
- let type_5: string;
47
- export { type_5 as type };
48
- export namespace properties_2 {
49
- let value: {};
50
- namespace title {
51
- let type_6: string;
52
- export { type_6 as type };
53
- }
54
- namespace key {
55
- let type_7: string;
56
- export { type_7 as type };
57
- }
58
- }
59
- export { properties_2 as properties };
60
- }
61
- export { items_1 as items };
62
- }
63
- }
64
- export { properties_1 as properties };
65
- }
66
- //# sourceMappingURL=get-field-suggestions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-field-suggestions.d.ts","sourceRoot":"","sources":["../../../src/webmcp/tools/get-field-suggestions.js"],"names":[],"mappings":"AAsCA;;;GAGG;AACH,0CAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;GAIG;AACH,wCAJW,OAAO,sBAAsB,EAAE,cAAc,QAC7C;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9B,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC,CAAA;CAAC,CAAC,CAkClF"}