@particle-academy/agent-integrations 0.40.0 → 0.42.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/bridges/artboard.d.cts +2 -2
- package/dist/bridges/artboard.d.ts +2 -2
- package/dist/bridges/catalog.d.cts +2 -2
- package/dist/bridges/catalog.d.ts +2 -2
- package/dist/bridges/charts.d.cts +2 -2
- package/dist/bridges/charts.d.ts +2 -2
- package/dist/bridges/cms.d.cts +2 -2
- package/dist/bridges/cms.d.ts +2 -2
- package/dist/bridges/code.d.cts +2 -2
- package/dist/bridges/code.d.ts +2 -2
- package/dist/bridges/doc.d.cts +2 -2
- package/dist/bridges/doc.d.ts +2 -2
- package/dist/bridges/features.d.cts +2 -2
- package/dist/bridges/features.d.ts +2 -2
- package/dist/bridges/files.d.cts +38 -3
- package/dist/bridges/files.d.ts +38 -3
- package/dist/bridges/flow.d.cts +2 -2
- package/dist/bridges/flow.d.ts +2 -2
- package/dist/bridges/forms.d.cts +2 -2
- package/dist/bridges/forms.d.ts +2 -2
- package/dist/bridges/git.d.cts +2 -2
- package/dist/bridges/git.d.ts +2 -2
- package/dist/bridges/grid.d.cts +2 -2
- package/dist/bridges/grid.d.ts +2 -2
- package/dist/bridges/map.d.cts +2 -2
- package/dist/bridges/map.d.ts +2 -2
- package/dist/bridges/passkeys.d.cts +2 -2
- package/dist/bridges/passkeys.d.ts +2 -2
- package/dist/bridges/scene.d.cts +2 -2
- package/dist/bridges/scene.d.ts +2 -2
- package/dist/bridges/screens.d.cts +2 -2
- package/dist/bridges/screens.d.ts +2 -2
- package/dist/bridges/sheets.d.cts +2 -2
- package/dist/bridges/sheets.d.ts +2 -2
- package/dist/bridges/slides.d.cts +2 -2
- package/dist/bridges/slides.d.ts +2 -2
- package/dist/bridges/terminal.d.cts +2 -2
- package/dist/bridges/terminal.d.ts +2 -2
- package/dist/bridges/tui.d.cts +1 -1
- package/dist/bridges/tui.d.ts +1 -1
- package/dist/bridges/whiteboard.d.cts +2 -2
- package/dist/bridges/whiteboard.d.ts +2 -2
- package/dist/bridges-artboard.cjs.map +1 -1
- package/dist/bridges-artboard.js +2 -2
- package/dist/bridges-catalog.cjs.map +1 -1
- package/dist/bridges-catalog.js +3 -3
- package/dist/bridges-charts.cjs.map +1 -1
- package/dist/bridges-charts.js +3 -3
- package/dist/bridges-cms.cjs.map +1 -1
- package/dist/bridges-cms.js +4 -4
- package/dist/bridges-code.cjs.map +1 -1
- package/dist/bridges-code.js +3 -3
- package/dist/bridges-doc.cjs.map +1 -1
- package/dist/bridges-doc.js +3 -3
- package/dist/bridges-features.cjs.map +1 -1
- package/dist/bridges-features.js +3 -3
- package/dist/bridges-files.cjs +45 -0
- package/dist/bridges-files.cjs.map +1 -1
- package/dist/bridges-files.js +3 -3
- package/dist/bridges-flow.cjs.map +1 -1
- package/dist/bridges-flow.js +2 -2
- package/dist/bridges-forms.cjs.map +1 -1
- package/dist/bridges-forms.js +3 -3
- package/dist/bridges-git.cjs.map +1 -1
- package/dist/bridges-git.js +3 -3
- package/dist/bridges-grid.cjs.map +1 -1
- package/dist/bridges-grid.js +3 -3
- package/dist/bridges-map.cjs.map +1 -1
- package/dist/bridges-map.js +3 -3
- package/dist/bridges-passkeys.cjs.map +1 -1
- package/dist/bridges-passkeys.js +3 -3
- package/dist/bridges-scene.cjs.map +1 -1
- package/dist/bridges-scene.js +3 -3
- package/dist/bridges-screens.cjs.map +1 -1
- package/dist/bridges-screens.js +3 -3
- package/dist/bridges-sheets.cjs.map +1 -1
- package/dist/bridges-sheets.js +3 -3
- package/dist/bridges-slides.cjs.map +1 -1
- package/dist/bridges-slides.js +3 -3
- package/dist/bridges-terminal.cjs.map +1 -1
- package/dist/bridges-terminal.js +3 -3
- package/dist/bridges-tui.cjs.map +1 -1
- package/dist/bridges-tui.js +2 -2
- package/dist/bridges-whiteboard.cjs.map +1 -1
- package/dist/bridges-whiteboard.js +3 -3
- package/dist/{chunk-2U5JB6ZA.js → chunk-2LSU3NFO.js} +4 -4
- package/dist/{chunk-2U5JB6ZA.js.map → chunk-2LSU3NFO.js.map} +1 -1
- package/dist/{chunk-PR4SXFZH.js → chunk-2Q4EGZHJ.js} +4 -4
- package/dist/{chunk-PR4SXFZH.js.map → chunk-2Q4EGZHJ.js.map} +1 -1
- package/dist/{chunk-G5EZNWXJ.js → chunk-5W6YOXLT.js} +4 -4
- package/dist/{chunk-G5EZNWXJ.js.map → chunk-5W6YOXLT.js.map} +1 -1
- package/dist/{chunk-CA7GIJJC.js → chunk-7LLMILTM.js} +4 -4
- package/dist/{chunk-CA7GIJJC.js.map → chunk-7LLMILTM.js.map} +1 -1
- package/dist/{chunk-MFMBR6LN.js → chunk-E2I3YVKC.js} +3 -3
- package/dist/{chunk-MFMBR6LN.js.map → chunk-E2I3YVKC.js.map} +1 -1
- package/dist/{chunk-USQGA672.js → chunk-EIBV76IB.js} +4 -4
- package/dist/{chunk-USQGA672.js.map → chunk-EIBV76IB.js.map} +1 -1
- package/dist/{chunk-WCKSDFTM.js → chunk-GT63LSPJ.js} +4 -4
- package/dist/{chunk-WCKSDFTM.js.map → chunk-GT63LSPJ.js.map} +1 -1
- package/dist/{chunk-CT3LRNH7.js → chunk-HVDHT7DM.js} +3 -3
- package/dist/{chunk-CT3LRNH7.js.map → chunk-HVDHT7DM.js.map} +1 -1
- package/dist/{chunk-7THGQUX3.js → chunk-LOD77NCD.js} +4 -4
- package/dist/{chunk-7THGQUX3.js.map → chunk-LOD77NCD.js.map} +1 -1
- package/dist/{chunk-BHQJJ2YG.js → chunk-MZ74LLDS.js} +4 -4
- package/dist/{chunk-BHQJJ2YG.js.map → chunk-MZ74LLDS.js.map} +1 -1
- package/dist/{chunk-A25E22WW.js → chunk-N5VOPV64.js} +49 -5
- package/dist/chunk-N5VOPV64.js.map +1 -0
- package/dist/{chunk-ZNGTC4CO.js → chunk-NIFPRC7P.js} +4 -4
- package/dist/{chunk-ZNGTC4CO.js.map → chunk-NIFPRC7P.js.map} +1 -1
- package/dist/{chunk-JJUABMAP.js → chunk-NIXOY473.js} +3 -3
- package/dist/{chunk-JJUABMAP.js.map → chunk-NIXOY473.js.map} +1 -1
- package/dist/{chunk-OAFJ53X3.js → chunk-NKAH67JK.js} +4 -4
- package/dist/{chunk-OAFJ53X3.js.map → chunk-NKAH67JK.js.map} +1 -1
- package/dist/{chunk-RIXYCFDO.js → chunk-PCFRBVKS.js} +4 -4
- package/dist/{chunk-RIXYCFDO.js.map → chunk-PCFRBVKS.js.map} +1 -1
- package/dist/{chunk-4D3II37O.js → chunk-PUMQDV67.js} +4 -4
- package/dist/{chunk-4D3II37O.js.map → chunk-PUMQDV67.js.map} +1 -1
- package/dist/{chunk-DF3PLL2E.js → chunk-QJYRWEXD.js} +28 -5
- package/dist/chunk-QJYRWEXD.js.map +1 -0
- package/dist/{chunk-XY2TDE6E.js → chunk-SXVRIIXW.js} +4 -4
- package/dist/{chunk-XY2TDE6E.js.map → chunk-SXVRIIXW.js.map} +1 -1
- package/dist/{chunk-6YUBWQTS.js → chunk-TEB5U6Y5.js} +4 -4
- package/dist/{chunk-6YUBWQTS.js.map → chunk-TEB5U6Y5.js.map} +1 -1
- package/dist/{chunk-MJ2S25ON.js → chunk-VJD3Y7E5.js} +4 -4
- package/dist/{chunk-MJ2S25ON.js.map → chunk-VJD3Y7E5.js.map} +1 -1
- package/dist/{chunk-BT7HM5I6.js → chunk-WEXMZMJH.js} +3 -3
- package/dist/{chunk-BT7HM5I6.js.map → chunk-WEXMZMJH.js.map} +1 -1
- package/dist/{chunk-UZHNKUER.js → chunk-Z4L2GOAK.js} +4 -4
- package/dist/{chunk-UZHNKUER.js.map → chunk-Z4L2GOAK.js.map} +1 -1
- package/dist/components-shared-whiteboard.cjs +26 -3
- package/dist/components-shared-whiteboard.cjs.map +1 -1
- package/dist/components-shared-whiteboard.js +3 -3
- package/dist/index.cjs +132 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -8
- package/dist/index.d.ts +88 -8
- package/dist/index.js +87 -26
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.cts +3 -3
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp.cjs +26 -3
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{server-DDD3IZ56.d.cts → server-BJNF7pQe.d.cts} +1 -1
- package/dist/{server-CDX643Kz.d.ts → server-Dt97UxuD.d.ts} +1 -1
- package/dist/sharing/index.d.cts +2 -2
- package/dist/sharing/index.d.ts +2 -2
- package/dist/sheets-adapter.d.cts +2 -2
- package/dist/sheets-adapter.d.ts +2 -2
- package/dist/{tool-host-EuYHYSSH.d.cts → tool-host-BpEBqf5u.d.cts} +17 -0
- package/dist/{tool-host-CWTOJEm2.d.ts → tool-host-xY5F-eqG.d.ts} +17 -0
- package/dist/{types-NFGP769G.d.cts → types-C4NaIW6B.d.cts} +1 -1
- package/dist/{types-BKD6uf86.d.ts → types-DSwsNTBG.d.ts} +1 -1
- package/dist/undo/index.d.cts +1 -1
- package/dist/undo/index.d.ts +1 -1
- package/dist/undo.cjs.map +1 -1
- package/dist/undo.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-A25E22WW.js.map +0 -1
- package/dist/chunk-DF3PLL2E.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/bridges/charts.d.ts
CHANGED
package/dist/bridges/cms.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import { DocAdapter } from './doc.cjs';
|
|
4
4
|
import { StyledNode, StagePolicy, TreeOp, StyleProps, LayoutMode, DocReducer, DocTree } from '@particle-academy/fancy-doc-commons';
|
|
5
5
|
import '../types-C58ZXs4K.cjs';
|
package/dist/bridges/cms.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
2
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
3
3
|
import { DocAdapter } from './doc.js';
|
|
4
4
|
import { StyledNode, StagePolicy, TreeOp, StyleProps, LayoutMode, DocReducer, DocTree } from '@particle-academy/fancy-doc-commons';
|
|
5
5
|
import '../types-C58ZXs4K.js';
|
package/dist/bridges/code.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/bridges/code.d.ts
CHANGED
package/dist/bridges/doc.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
2
|
import { J as JsonObject } from '../types-C58ZXs4K.cjs';
|
|
3
|
-
import { B as Bridge } from '../types-
|
|
3
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
4
4
|
import { DocNode, DocTree, TreeOp, DocReducer, StagePolicy } from '@particle-academy/fancy-doc-commons';
|
|
5
5
|
|
|
6
6
|
/** Host-provided access to the document tree. */
|
package/dist/bridges/doc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
2
2
|
import { J as JsonObject } from '../types-C58ZXs4K.js';
|
|
3
|
-
import { B as Bridge } from '../types-
|
|
3
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
4
4
|
import { DocNode, DocTree, TreeOp, DocReducer, StagePolicy } from '@particle-academy/fancy-doc-commons';
|
|
5
5
|
|
|
6
6
|
/** Host-provided access to the document tree. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/bridges/files.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
type FileKind = "file" | "dir";
|
|
@@ -36,6 +36,19 @@ type FilesBridgeAdapter = {
|
|
|
36
36
|
listChildren: (path: string) => Promise<FileEntry[]> | FileEntry[];
|
|
37
37
|
/** Optional (snapshot mode): fetch/refresh a snapshot subtree so an agent can pull remote state on demand. */
|
|
38
38
|
requestSnapshot?: (path: string, depth?: number) => Promise<FileSnapshotNode[]> | FileSnapshotNode[];
|
|
39
|
+
/**
|
|
40
|
+
* Create a folder. **Supplying this is the opt-in** — `files_create_folder`
|
|
41
|
+
* is registered only when it is present, so an agent cannot be handed a write
|
|
42
|
+
* a host never wired, and the advertised tool list tells the truth about what
|
|
43
|
+
* is possible.
|
|
44
|
+
*
|
|
45
|
+
* Pairs with `FileBrowser`'s `onCreateFolder` (react-fancy 5.18+): the same
|
|
46
|
+
* operation the human has, given to the agent.
|
|
47
|
+
*/
|
|
48
|
+
createFolder?: (input: {
|
|
49
|
+
parentPath: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}) => Promise<void> | void;
|
|
39
52
|
};
|
|
40
53
|
type FilesBridgeOptions = {
|
|
41
54
|
adapter: FilesBridgeAdapter;
|
|
@@ -57,6 +70,20 @@ type FilesBridgeOptions = {
|
|
|
57
70
|
* SOLELY responsible for sandboxing what `listChildren`/`requestSnapshot` expose.
|
|
58
71
|
*/
|
|
59
72
|
root?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Stage writes for human confirmation. Default **true**, matching the
|
|
75
|
+
* catalog bridge's destructive ops.
|
|
76
|
+
*
|
|
77
|
+
* This bridge writes to a filesystem on the strength of a model's output, so
|
|
78
|
+
* the safe mode is the default and turning it off is the deliberate act.
|
|
79
|
+
*/
|
|
80
|
+
pendingMode?: boolean;
|
|
81
|
+
/** Host confirm hook for staged writes. Resolves true to proceed. */
|
|
82
|
+
confirm?: (req: {
|
|
83
|
+
action: string;
|
|
84
|
+
path: string;
|
|
85
|
+
label: string;
|
|
86
|
+
}) => Promise<boolean> | boolean;
|
|
60
87
|
};
|
|
61
88
|
/**
|
|
62
89
|
* Fail-closed, filesystem-free path containment. Throws when `path` contains a
|
|
@@ -64,6 +91,14 @@ type FilesBridgeOptions = {
|
|
|
64
91
|
* `..` pass (resolved within root by the host). String-level only — see the
|
|
65
92
|
* `root` docs: hosts over a real fs must ALSO realpath to defeat symlinks.
|
|
66
93
|
*/
|
|
94
|
+
/**
|
|
95
|
+
* Why a folder NAME cannot be used, or `null`.
|
|
96
|
+
*
|
|
97
|
+
* `assertPathWithinRoot` inspects the parent path; the name is appended to it
|
|
98
|
+
* afterwards, so `{ parentPath: "/root", name: "../.." }` clears that check and
|
|
99
|
+
* still escapes. A name containing a separator is not a name.
|
|
100
|
+
*/
|
|
101
|
+
declare function invalidFolderName(name: string): string | null;
|
|
67
102
|
declare function assertPathWithinRoot(root: string, path: string): void;
|
|
68
103
|
/**
|
|
69
104
|
* registerFilesBridge — an MCP tool set over a react-fancy `<FileBrowser>`'s
|
|
@@ -80,4 +115,4 @@ declare function assertPathWithinRoot(root: string, path: string): void;
|
|
|
80
115
|
*/
|
|
81
116
|
declare function registerFilesBridge(host: ToolHost, options: FilesBridgeOptions): Bridge;
|
|
82
117
|
|
|
83
|
-
export { type FilesBridgeAdapter, type FilesBridgeOptions, assertPathWithinRoot, registerFilesBridge };
|
|
118
|
+
export { type FilesBridgeAdapter, type FilesBridgeOptions, assertPathWithinRoot, invalidFolderName, registerFilesBridge };
|
package/dist/bridges/files.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
2
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
3
3
|
import '../types-C58ZXs4K.js';
|
|
4
4
|
|
|
5
5
|
type FileKind = "file" | "dir";
|
|
@@ -36,6 +36,19 @@ type FilesBridgeAdapter = {
|
|
|
36
36
|
listChildren: (path: string) => Promise<FileEntry[]> | FileEntry[];
|
|
37
37
|
/** Optional (snapshot mode): fetch/refresh a snapshot subtree so an agent can pull remote state on demand. */
|
|
38
38
|
requestSnapshot?: (path: string, depth?: number) => Promise<FileSnapshotNode[]> | FileSnapshotNode[];
|
|
39
|
+
/**
|
|
40
|
+
* Create a folder. **Supplying this is the opt-in** — `files_create_folder`
|
|
41
|
+
* is registered only when it is present, so an agent cannot be handed a write
|
|
42
|
+
* a host never wired, and the advertised tool list tells the truth about what
|
|
43
|
+
* is possible.
|
|
44
|
+
*
|
|
45
|
+
* Pairs with `FileBrowser`'s `onCreateFolder` (react-fancy 5.18+): the same
|
|
46
|
+
* operation the human has, given to the agent.
|
|
47
|
+
*/
|
|
48
|
+
createFolder?: (input: {
|
|
49
|
+
parentPath: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}) => Promise<void> | void;
|
|
39
52
|
};
|
|
40
53
|
type FilesBridgeOptions = {
|
|
41
54
|
adapter: FilesBridgeAdapter;
|
|
@@ -57,6 +70,20 @@ type FilesBridgeOptions = {
|
|
|
57
70
|
* SOLELY responsible for sandboxing what `listChildren`/`requestSnapshot` expose.
|
|
58
71
|
*/
|
|
59
72
|
root?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Stage writes for human confirmation. Default **true**, matching the
|
|
75
|
+
* catalog bridge's destructive ops.
|
|
76
|
+
*
|
|
77
|
+
* This bridge writes to a filesystem on the strength of a model's output, so
|
|
78
|
+
* the safe mode is the default and turning it off is the deliberate act.
|
|
79
|
+
*/
|
|
80
|
+
pendingMode?: boolean;
|
|
81
|
+
/** Host confirm hook for staged writes. Resolves true to proceed. */
|
|
82
|
+
confirm?: (req: {
|
|
83
|
+
action: string;
|
|
84
|
+
path: string;
|
|
85
|
+
label: string;
|
|
86
|
+
}) => Promise<boolean> | boolean;
|
|
60
87
|
};
|
|
61
88
|
/**
|
|
62
89
|
* Fail-closed, filesystem-free path containment. Throws when `path` contains a
|
|
@@ -64,6 +91,14 @@ type FilesBridgeOptions = {
|
|
|
64
91
|
* `..` pass (resolved within root by the host). String-level only — see the
|
|
65
92
|
* `root` docs: hosts over a real fs must ALSO realpath to defeat symlinks.
|
|
66
93
|
*/
|
|
94
|
+
/**
|
|
95
|
+
* Why a folder NAME cannot be used, or `null`.
|
|
96
|
+
*
|
|
97
|
+
* `assertPathWithinRoot` inspects the parent path; the name is appended to it
|
|
98
|
+
* afterwards, so `{ parentPath: "/root", name: "../.." }` clears that check and
|
|
99
|
+
* still escapes. A name containing a separator is not a name.
|
|
100
|
+
*/
|
|
101
|
+
declare function invalidFolderName(name: string): string | null;
|
|
67
102
|
declare function assertPathWithinRoot(root: string, path: string): void;
|
|
68
103
|
/**
|
|
69
104
|
* registerFilesBridge — an MCP tool set over a react-fancy `<FileBrowser>`'s
|
|
@@ -80,4 +115,4 @@ declare function assertPathWithinRoot(root: string, path: string): void;
|
|
|
80
115
|
*/
|
|
81
116
|
declare function registerFilesBridge(host: ToolHost, options: FilesBridgeOptions): Bridge;
|
|
82
117
|
|
|
83
|
-
export { type FilesBridgeAdapter, type FilesBridgeOptions, assertPathWithinRoot, registerFilesBridge };
|
|
118
|
+
export { type FilesBridgeAdapter, type FilesBridgeOptions, assertPathWithinRoot, invalidFolderName, registerFilesBridge };
|
package/dist/bridges/flow.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
type FlowNode = {
|
package/dist/bridges/flow.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
2
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
3
3
|
import '../types-C58ZXs4K.js';
|
|
4
4
|
|
|
5
5
|
type FlowNode = {
|
package/dist/bridges/forms.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/bridges/forms.d.ts
CHANGED
package/dist/bridges/git.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
type GitProposal = {
|
package/dist/bridges/git.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
2
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
3
3
|
import '../types-C58ZXs4K.js';
|
|
4
4
|
|
|
5
5
|
type GitProposal = {
|
package/dist/bridges/grid.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/bridges/grid.d.ts
CHANGED
package/dist/bridges/map.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
type LatLng = {
|
package/dist/bridges/map.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
2
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
3
3
|
import '../types-C58ZXs4K.js';
|
|
4
4
|
|
|
5
5
|
type LatLng = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/bridges/scene.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/bridges/scene.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import { WorkbookData } from '@particle-academy/fancy-sheets';
|
|
4
4
|
import '../types-C58ZXs4K.cjs';
|
|
5
5
|
|
package/dist/bridges/sheets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
2
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
3
3
|
import { WorkbookData } from '@particle-academy/fancy-sheets';
|
|
4
4
|
import '../types-C58ZXs4K.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Deck, DeckOp } from '@particle-academy/fancy-slides';
|
|
2
|
-
import { T as ToolHost } from '../tool-host-
|
|
3
|
-
import { B as Bridge } from '../types-
|
|
2
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
3
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
4
4
|
import '../types-C58ZXs4K.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/bridges/slides.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Deck, DeckOp } from '@particle-academy/fancy-slides';
|
|
2
|
-
import { T as ToolHost } from '../tool-host-
|
|
3
|
-
import { B as Bridge } from '../types-
|
|
2
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
3
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
4
4
|
import '../types-C58ZXs4K.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolHost } from '../tool-host-
|
|
2
|
-
import { B as Bridge } from '../types-
|
|
1
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
2
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
3
3
|
import '../types-C58ZXs4K.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/bridges/tui.d.cts
CHANGED
package/dist/bridges/tui.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StickyNoteItem, ShapeItem, ConnectorItem, Stroke, Viewport, RemoteCursor } from '@particle-academy/fancy-whiteboard';
|
|
2
|
-
import { T as ToolHost } from '../tool-host-
|
|
3
|
-
import { B as Bridge } from '../types-
|
|
2
|
+
import { T as ToolHost } from '../tool-host-BpEBqf5u.cjs';
|
|
3
|
+
import { B as Bridge } from '../types-C4NaIW6B.cjs';
|
|
4
4
|
import '../types-C58ZXs4K.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StickyNoteItem, ShapeItem, ConnectorItem, Stroke, Viewport, RemoteCursor } from '@particle-academy/fancy-whiteboard';
|
|
2
|
-
import { T as ToolHost } from '../tool-host-
|
|
3
|
-
import { B as Bridge } from '../types-
|
|
2
|
+
import { T as ToolHost } from '../tool-host-xY5F-eqG.js';
|
|
3
|
+
import { B as Bridge } from '../types-DSwsNTBG.js';
|
|
4
4
|
import '../types-C58ZXs4K.js';
|
|
5
5
|
|
|
6
6
|
/**
|