@tangle-network/agent-app 0.60.236 → 0.60.237

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 (40) hide show
  1. package/dist/{DesignCanvas-SNE3H3TH.js → DesignCanvas-OW3W2QXW.js} +2 -2
  2. package/dist/{DesignCanvasEditor-G5O75CUT.js → DesignCanvasEditor-TCHZF25W.js} +3 -3
  3. package/dist/VaultPane-RXL3WLA2.js +7 -0
  4. package/dist/{chunk-I57SNMX4.js → chunk-EWOJATDS.js} +3 -3
  5. package/dist/{chunk-P2NJIDLE.js → chunk-JH3CKHF4.js} +380 -366
  6. package/dist/chunk-JH3CKHF4.js.map +1 -0
  7. package/dist/{chunk-IDQU36M5.js → chunk-RL3Z747H.js} +708 -659
  8. package/dist/chunk-RL3Z747H.js.map +1 -0
  9. package/dist/{chunk-3KXYYAY4.js → chunk-VBWYH7UZ.js} +243 -232
  10. package/dist/chunk-VBWYH7UZ.js.map +1 -0
  11. package/dist/design-canvas-react/components/Toolbar.d.ts +1 -2
  12. package/dist/design-canvas-react/components/toolbar-fields.d.ts +65 -0
  13. package/dist/design-canvas-react/components/toolbar-page-controls.d.ts +20 -0
  14. package/dist/design-canvas-react/components/toolbar-selection-controls.d.ts +22 -0
  15. package/dist/design-canvas-react/components/use-workspace-keyboard.d.ts +24 -0
  16. package/dist/design-canvas-react/components/use-workspace-viewport.d.ts +16 -0
  17. package/dist/design-canvas-react/components/workspace-gesture-state.d.ts +10 -0
  18. package/dist/design-canvas-react/index.js +3 -3
  19. package/dist/design-canvas-react/lazy.js +1 -1
  20. package/dist/public-consultation/index.d.ts +1 -1
  21. package/dist/vault/SourceEditor.d.ts +8 -0
  22. package/dist/vault/VaultCreateDialog.d.ts +14 -0
  23. package/dist/vault/VaultDocumentToolbar.d.ts +29 -0
  24. package/dist/vault/VaultPaneNavigation.d.ts +10 -0
  25. package/dist/vault/VaultPaneStates.d.ts +59 -0
  26. package/dist/vault/VaultTreePanel.d.ts +19 -0
  27. package/dist/vault/index.js +1 -1
  28. package/dist/vault/lazy.js +1 -1
  29. package/dist/vault/useVaultDockPlacement.d.ts +5 -0
  30. package/dist/vault/useVaultSearch.d.ts +13 -0
  31. package/dist/vault/vault-tree-paths.d.ts +12 -0
  32. package/package.json +1 -1
  33. package/dist/VaultPane-QEG35UAZ.js +0 -7
  34. package/dist/chunk-3KXYYAY4.js.map +0 -1
  35. package/dist/chunk-IDQU36M5.js.map +0 -1
  36. package/dist/chunk-P2NJIDLE.js.map +0 -1
  37. /package/dist/{DesignCanvas-SNE3H3TH.js.map → DesignCanvas-OW3W2QXW.js.map} +0 -0
  38. /package/dist/{DesignCanvasEditor-G5O75CUT.js.map → DesignCanvasEditor-TCHZF25W.js.map} +0 -0
  39. /package/dist/{VaultPane-QEG35UAZ.js.map → VaultPane-RXL3WLA2.js.map} +0 -0
  40. /package/dist/{chunk-I57SNMX4.js.map → chunk-EWOJATDS.js.map} +0 -0
@@ -0,0 +1,10 @@
1
+ /** Shared vocabulary for mutually exclusive canvas gestures. */
2
+ export interface MarqueeState {
3
+ active: boolean;
4
+ startDocX: number;
5
+ startDocY: number;
6
+ endDocX: number;
7
+ endDocY: number;
8
+ }
9
+ export declare const NO_MARQUEE: MarqueeState;
10
+ export type GestureMode = 'idle' | 'pan' | 'marquee' | 'drag';
@@ -11,7 +11,7 @@ import {
11
11
  bakeTextTransform,
12
12
  exportDocumentJson,
13
13
  exportPageDataUrl
14
- } from "../chunk-P2NJIDLE.js";
14
+ } from "../chunk-JH3CKHF4.js";
15
15
  import {
16
16
  BTN,
17
17
  BTN_ACTIVE,
@@ -40,7 +40,7 @@ import {
40
40
  buildRulerTicks,
41
41
  formatRulerLabel,
42
42
  selectTickStep
43
- } from "../chunk-3KXYYAY4.js";
43
+ } from "../chunk-VBWYH7UZ.js";
44
44
  import "../chunk-UTF7H6BK.js";
45
45
  import "../chunk-ZN5J47UX.js";
46
46
  import {
@@ -92,7 +92,7 @@ import {
92
92
  import {
93
93
  DesignCanvasChromeLazy,
94
94
  DesignCanvasLazy
95
- } from "../chunk-I57SNMX4.js";
95
+ } from "../chunk-EWOJATDS.js";
96
96
  import "../chunk-FENBDSIW.js";
97
97
  import "../chunk-RN4WPTBH.js";
98
98
  import "../chunk-7HZCFG2A.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvasChromeLazy,
3
3
  DesignCanvasLazy
4
- } from "../chunk-I57SNMX4.js";
4
+ } from "../chunk-EWOJATDS.js";
5
5
  export {
6
6
  DesignCanvasChromeLazy,
7
7
  DesignCanvasLazy
@@ -121,9 +121,9 @@ export declare function createPublicConsultation(options: PublicConsultationOpti
121
121
  executionBudget?: ChatTurnExecutionLimits;
122
122
  maxOutputTokens?: number;
123
123
  }) => Promise<{
124
+ start?: undefined;
124
125
  status: 'unsupported';
125
126
  reason: string;
126
- start?: undefined;
127
127
  } | {
128
128
  reason?: undefined;
129
129
  status: 'prepared';
@@ -0,0 +1,8 @@
1
+ export declare function SourceEditor({ path, content, saving, dirty, onChange, onSave, }: {
2
+ path: string;
3
+ content: string;
4
+ saving: boolean;
5
+ dirty: boolean;
6
+ onChange: (content: string) => void;
7
+ onSave: () => void;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import type { VaultOperationFailure } from './contracts';
2
+ interface VaultCreateDialogProps {
3
+ open: boolean;
4
+ path: string;
5
+ label: string;
6
+ folder: string | null;
7
+ busy: boolean;
8
+ error: VaultOperationFailure | null;
9
+ onPathChange: (path: string) => void;
10
+ onConfirm: () => void;
11
+ onCancel: () => void;
12
+ }
13
+ export declare function VaultCreateDialog({ open: createOpen, path: newPath, label, folder: activeFolder, busy: creating, error: createError, onPathChange, onConfirm, onCancel }: VaultCreateDialogProps): import("react").JSX.Element;
14
+ export {};
@@ -0,0 +1,29 @@
1
+ /** Actions for the selected file, with capability-bound mode/history/dock controls. */
2
+ import type { ReactNode } from 'react';
3
+ import type { VaultEditorMode, VaultFile, VaultPaneProps } from './contracts';
4
+ interface VaultDocumentToolbarProps {
5
+ file: VaultFile;
6
+ className?: string;
7
+ editing?: {
8
+ value: VaultEditorMode;
9
+ onRich: () => void;
10
+ onSource: () => void;
11
+ };
12
+ history?: {
13
+ open: boolean;
14
+ dirty: boolean;
15
+ onToggle: () => void;
16
+ };
17
+ dock?: {
18
+ label: string;
19
+ open: boolean;
20
+ blocked: boolean;
21
+ title: string;
22
+ onToggle: () => void;
23
+ };
24
+ onDownloadFile?: VaultPaneProps['onDownloadFile'];
25
+ onDelete?: () => void;
26
+ children?: ReactNode;
27
+ }
28
+ export declare function VaultDocumentToolbar({ file: selectedFile, className: pathBarClassName, editing, history, dock, onDownloadFile, onDelete, children }: VaultDocumentToolbarProps): import("react").JSX.Element;
29
+ export {};
@@ -0,0 +1,10 @@
1
+ /** Responsive navigation between the file list and the selected document. */
2
+ interface VaultPaneNavigationProps {
3
+ label: string;
4
+ selectedPath: string | null;
5
+ showFiles: boolean;
6
+ onShowFiles: () => void;
7
+ onShowDocument: () => void;
8
+ }
9
+ export declare function VaultPaneNavigation({ label, selectedPath, showFiles, onShowFiles, onShowDocument }: VaultPaneNavigationProps): import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,59 @@
1
+ import { Component, type ErrorInfo, type ReactNode } from 'react';
2
+ import type { VaultOperationFailure } from './contracts';
3
+ export declare function operationMessage(error: unknown, fallback: string): string;
4
+ export declare function treeFailureMessage(failure: VaultOperationFailure, label: string): string;
5
+ export declare class EditorErrorBoundary extends Component<{
6
+ children: ReactNode;
7
+ label: string;
8
+ onReset?: () => void;
9
+ }, {
10
+ error: unknown;
11
+ }> {
12
+ state: {
13
+ error: unknown;
14
+ };
15
+ static getDerivedStateFromError(error: unknown): {
16
+ error: unknown;
17
+ };
18
+ componentDidCatch(error: unknown, info: ErrorInfo): void;
19
+ render(): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
20
+ }
21
+ export declare function TreeSkeleton(): import("react").JSX.Element;
22
+ export declare function EditorSkeleton(): import("react").JSX.Element;
23
+ export declare function ReadErrorState({ message, onRetry }: {
24
+ message: string;
25
+ onRetry: () => void;
26
+ }): import("react").JSX.Element;
27
+ export declare function TreeErrorState({ label, message, onRetry }: {
28
+ label: string;
29
+ message: string;
30
+ onRetry: () => void;
31
+ }): import("react").JSX.Element;
32
+ /**
33
+ * The tree pane when the vault holds nothing at all. It sits under the header
34
+ * whose controls add files, so it names the state and offers the same action
35
+ * instead of leaving a blank column under a search box with nothing to search.
36
+ */
37
+ export declare function TreeEmptyState({ canCreate, onCreate }: {
38
+ canCreate: boolean;
39
+ onCreate: () => void;
40
+ }): import("react").JSX.Element;
41
+ export declare function TreeNoMatchState({ query, onClear }: {
42
+ query: string;
43
+ onClear: () => void;
44
+ }): import("react").JSX.Element;
45
+ export declare function OperationErrorAlert({ message, retryLabel, onRetry, onDismiss, }: {
46
+ message: string;
47
+ retryLabel: string;
48
+ onRetry: () => void;
49
+ onDismiss: () => void;
50
+ }): import("react").JSX.Element;
51
+ /**
52
+ * The document pane with nothing open: says what to do, and offers the files
53
+ * this reader opened last in this vault so returning work is one click away.
54
+ */
55
+ export declare function DocumentEmptyState({ label, recent, onOpen }: {
56
+ label: string;
57
+ recent: string[];
58
+ onOpen: (path: string) => void;
59
+ }): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ /** File-tree chrome and search input; the controller supplies guarded tree content. */
2
+ import type { ReactNode, RefObject } from 'react';
3
+ interface VaultTreePanelProps {
4
+ label: string;
5
+ treeHeadingId: string;
6
+ headerActions?: ReactNode;
7
+ onRefresh: () => void;
8
+ onCreate?: () => void;
9
+ activeFolder: string | null;
10
+ onClearFolder: () => void;
11
+ query: string;
12
+ onQueryChange: (query: string) => void;
13
+ canSearchContent: boolean;
14
+ empty: boolean;
15
+ searchRef: RefObject<HTMLInputElement | null>;
16
+ children: ReactNode;
17
+ }
18
+ export declare function VaultTreePanel({ label, treeHeadingId, headerActions, onRefresh, onCreate, activeFolder, onClearFolder, query, onQueryChange, canSearchContent, empty, searchRef, children }: VaultTreePanelProps): import("react").JSX.Element;
19
+ export {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ConfirmDialog,
3
3
  VaultPane
4
- } from "../chunk-IDQU36M5.js";
4
+ } from "../chunk-RL3Z747H.js";
5
5
 
6
6
  // src/vault/index.ts
7
7
  import { VaultTree, VAULT_TREE_CHILD_PAGE } from "@tangle-network/sandbox-ui/vault-tree";
@@ -1,7 +1,7 @@
1
1
  // src/vault/lazy.tsx
2
2
  import { lazy } from "react";
3
3
  var VaultPaneLazy = lazy(
4
- () => import("../VaultPane-QEG35UAZ.js").then((m) => ({ default: m.VaultPane }))
4
+ () => import("../VaultPane-RXL3WLA2.js").then((m) => ({ default: m.VaultPane }))
5
5
  );
6
6
  export {
7
7
  VaultPaneLazy
@@ -0,0 +1,5 @@
1
+ import type { VaultPaneProps } from './contracts';
2
+ export declare function useVaultDockPlacement(renderDock: VaultPaneProps['renderDock']): {
3
+ rootRef: import("react").RefObject<HTMLDivElement | null>;
4
+ dockInline: boolean;
5
+ };
@@ -0,0 +1,13 @@
1
+ import type { VaultDataPort, VaultTreeNode } from './contracts';
2
+ import type { ContentSearchState } from './VaultContentResults';
3
+ export declare function useVaultSearch({ port, treeRoot }: {
4
+ port: Pick<VaultDataPort, 'searchContent'>;
5
+ treeRoot: VaultTreeNode;
6
+ }): {
7
+ query: string;
8
+ onQueryChange: import("react").Dispatch<import("react").SetStateAction<string>>;
9
+ visibleRoot: VaultTreeNode;
10
+ canSearchContent: boolean;
11
+ contentResults: ContentSearchState;
12
+ retry: () => void;
13
+ };
@@ -0,0 +1,12 @@
1
+ import type { VaultTreeNode } from './contracts';
2
+ interface TreePaths {
3
+ files: Set<string>;
4
+ directories: Set<string>;
5
+ }
6
+ export declare function collectTreePaths(nodes: VaultTreeNode[], into: TreePaths): TreePaths;
7
+ export declare function resolveTreePath(rawPath: string, paths: TreePaths): {
8
+ path: string;
9
+ type: 'file' | 'directory';
10
+ } | null;
11
+ export declare function findDirectory(nodes: VaultTreeNode[], path: string): VaultTreeNode | null;
12
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.60.236",
3
+ "version": "0.60.237",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [
@@ -1,7 +0,0 @@
1
- import {
2
- VaultPane
3
- } from "./chunk-IDQU36M5.js";
4
- export {
5
- VaultPane
6
- };
7
- //# sourceMappingURL=VaultPane-QEG35UAZ.js.map