@tangle-network/agent-app 0.58.19 → 0.58.21

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.
@@ -650,6 +650,13 @@ export interface StreamSandboxPromptOptions {
650
650
  };
651
651
  /** Per-turn secret values used by runtime attachments; never stored in the profile or sandbox environment. */
652
652
  runtimeSecrets?: Record<string, string>;
653
+ /** Mark a backend prepared for a secret-isolated native session. The caller creates
654
+ * that session and prepares its exact backend before dispatch. */
655
+ secretProfileIsolation?: true;
656
+ /** SDK-issued digest of the prepared public backend request. */
657
+ expectedPublicProfileRequestDigest?: `sha256:${string}`;
658
+ /** SDK-issued receipt for the prepared secret native profile revision. */
659
+ expectedSecretProfileReceipt?: `hmac-sha256:${string}`;
653
660
  signal?: AbortSignal;
654
661
  timeoutMs?: number;
655
662
  requireVisibleAssistantOutput?: boolean;
@@ -725,6 +732,9 @@ export declare function resolveSandboxPromptBackend(shell: SandboxPromptConfig,
725
732
  mcp: Record<string, AgentProfileMcpServer>;
726
733
  } | undefined;
727
734
  runtimeSecrets?: Record<string, string> | undefined;
735
+ metadata?: {
736
+ profileSecretIsolation: true;
737
+ } | undefined;
728
738
  interactions?: {
729
739
  question?: boolean;
730
740
  permission?: boolean;
@@ -100,7 +100,7 @@ import {
100
100
  workspaceSandboxRecoveryMessage,
101
101
  workspaceSandboxRecoveryRecommendedActions,
102
102
  writeProfileFilesToBox
103
- } from "../chunk-CJW24QMJ.js";
103
+ } from "../chunk-SUIHWGQT.js";
104
104
  import "../chunk-MCYJON3F.js";
105
105
  import "../chunk-LWSJK546.js";
106
106
  import "../chunk-ZYK3A2FR.js";
@@ -2,7 +2,7 @@
2
2
  * The shared 3-pane vault: tree | artifact viewer | optional agent dock. This is
3
3
  * shell mechanism — selection, the dirty-guard + pending-nav state machine,
4
4
  * rich/source editor modes, create/delete/refresh, skeletons, and an error
5
- * boundary — plus the vault's own tree (`VaultTree`) in a contained surface. It
5
+ * boundary — plus the vault's tree (sandbox-ui's `VaultTree`) in a contained surface. It
6
6
  * renders no artifact viewer of its own: that arrives through the
7
7
  * `renderArtifact` / `renderDock` seams, and `renderTree` can replace the tree.
8
8
  *
@@ -217,8 +217,10 @@ export interface VaultPaneProps {
217
217
  /** Product controls for the open file, rendered in its path row before the
218
218
  * download and delete actions (for example an Edit toggle). */
219
219
  fileActions?: (file: VaultFile) => ReactNode;
220
- /** Rendered in the document pane while no file is selected. Defaults to an
221
- * empty pane, which suits hosts that float other UI over that area. */
220
+ /** Rendered in the document pane while no file is selected. Defaults to a
221
+ * "Select a file" state that offers the files this reader opened last
222
+ * (remembered under `treeStateKey`); pass `null` for an empty pane, as a
223
+ * host that floats other UI over that area would. */
222
224
  emptyState?: ReactNode;
223
225
  /** Rendered in the tree pane when the vault holds no files or folders. The
224
226
  * tree pane then spans the whole vault, since there is no document to show
@@ -3,7 +3,7 @@
3
3
  * artifact viewer | optional agent dock) every Tangle agent product otherwise
4
4
  * hand-rolls: selection, the dirty-guard state machine, rich/source editor
5
5
  * modes, create/delete, skeletons, an error boundary, and the vault's file tree
6
- * (`VaultTree`). The product supplies the data (`VaultDataPort`) and the artifact
6
+ * (`VaultTree`, owned by `@tangle-network/sandbox-ui/vault-tree` and re-exported here). The product supplies the data (`VaultDataPort`) and the artifact
7
7
  * renderer; the pane imports no artifact viewer and no dialog library.
8
8
  *
9
9
  * Never re-exported from the package root barrel — `react` is an optional peer
@@ -12,5 +12,5 @@
12
12
  */
13
13
  export * from './contracts';
14
14
  export { VaultPane } from './VaultPane';
15
- export { VaultTree, VAULT_TREE_CHILD_PAGE, type VaultTreeProps } from './VaultTree';
15
+ export { VaultTree, VAULT_TREE_CHILD_PAGE, type VaultTreeProps } from '@tangle-network/sandbox-ui/vault-tree';
16
16
  export { ConfirmDialog, type ConfirmDialogProps } from './ConfirmDialog';
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  ConfirmDialog,
3
- VAULT_TREE_CHILD_PAGE,
4
- VaultPane,
5
- VaultTree
6
- } from "../chunk-UGPV7VEW.js";
3
+ VaultPane
4
+ } from "../chunk-FMX3IOJM.js";
5
+
6
+ // src/vault/index.ts
7
+ import { VaultTree, VAULT_TREE_CHILD_PAGE } from "@tangle-network/sandbox-ui/vault-tree";
7
8
  export {
8
9
  ConfirmDialog,
9
10
  VAULT_TREE_CHILD_PAGE,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../../src/vault/index.ts"],"sourcesContent":["/**\n * `@tangle-network/agent-app/vault` — the shared 3-pane VaultPane (tree |\n * artifact viewer | optional agent dock) every Tangle agent product otherwise\n * hand-rolls: selection, the dirty-guard state machine, rich/source editor\n * modes, create/delete, skeletons, an error boundary, and the vault's file tree\n * (`VaultTree`, owned by `@tangle-network/sandbox-ui/vault-tree` and re-exported here). The product supplies the data (`VaultDataPort`) and the artifact\n * renderer; the pane imports no artifact viewer and no dialog library.\n *\n * Never re-exported from the package root barrel — `react` is an optional peer\n * and DOM access begins only inside component render. A `React.lazy` code-split\n * entry lives at `./vault/lazy`.\n */\nexport * from './contracts'\nexport { VaultPane } from './VaultPane'\nexport { VaultTree, VAULT_TREE_CHILD_PAGE, type VaultTreeProps } from '@tangle-network/sandbox-ui/vault-tree'\nexport { ConfirmDialog, type ConfirmDialogProps } from './ConfirmDialog'\n"],"mappings":";;;;;;AAcA,SAAS,WAAW,6BAAkD;","names":[]}
@@ -1,7 +1,7 @@
1
1
  // src/vault/lazy.tsx
2
2
  import { lazy } from "react";
3
3
  var VaultPaneLazy = lazy(
4
- () => import("../VaultPane-RIJM452Y.js").then((m) => ({ default: m.VaultPane }))
4
+ () => import("../VaultPane-OH4W5MXW.js").then((m) => ({ default: m.VaultPane }))
5
5
  );
6
6
  export {
7
7
  VaultPaneLazy
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The files a reader opened most recently in this browser, per vault scope
3
+ * (`treeStateKey`). Storage can be blocked or full; every access degrades to
4
+ * an empty list rather than failing the pane.
5
+ */
6
+ export declare function readRecentFiles(key: string | undefined): string[];
7
+ /** Moves `path` to the front and returns the new list. */
8
+ export declare function recordRecentFile(key: string | undefined, path: string): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.58.19",
3
+ "version": "0.58.21",
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": [
@@ -620,7 +620,7 @@
620
620
  "@tangle-network/brand": "1.19.0",
621
621
  "@tangle-network/hub-sdk": "0.27.0",
622
622
  "@tangle-network/sandbox": "0.60.22",
623
- "@tangle-network/sandbox-ui": "0.129.1",
623
+ "@tangle-network/sandbox-ui": "0.130.0",
624
624
  "@tangle-network/ui": "11.28.2",
625
625
  "@testing-library/dom": "^10.4.1",
626
626
  "@testing-library/react": "^16.3.3",
@@ -691,7 +691,7 @@
691
691
  "@tangle-network/brand": ">=1.6.0",
692
692
  "@tangle-network/hub-sdk": ">=0.19.3 <0.21.0 || >=0.21.0 <0.22.0 || >=0.22.1 <0.25.0 || >=0.27.0 <0.28.0",
693
693
  "@tangle-network/sandbox": ">=0.45.0 <0.48.0 || ^0.49.0 || ^0.50.0 || ^0.51.0 || ^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || >=0.58.1 <0.60.0 || >=0.60.3 <0.61.0",
694
- "@tangle-network/sandbox-ui": ">=0.117.0 <0.118.0 || >=0.119.0 <0.130.0",
694
+ "@tangle-network/sandbox-ui": ">=0.130.0 <0.131.0",
695
695
  "@tangle-network/ui": ">=11.25.0 <12.0.0",
696
696
  "@tiptap/core": ">=3.28.0 <4.0.0",
697
697
  "@tiptap/extension-mention": ">=3.28.0 <4.0.0",
@@ -1,7 +0,0 @@
1
- import {
2
- VaultPane
3
- } from "./chunk-UGPV7VEW.js";
4
- export {
5
- VaultPane
6
- };
7
- //# sourceMappingURL=VaultPane-RIJM452Y.js.map