@tangle-network/agent-app 0.45.51 → 0.45.53

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.
@@ -170,12 +170,20 @@ interface PopoverSurfaceProps {
170
170
  declare function PopoverSurface({ open, triggerRef, panelRef, className, role, id, matchTriggerWidth, children, }: PopoverSurfaceProps): react.ReactPortal | null;
171
171
  /**
172
172
  * The one overlay elevation for floating surfaces — picker menus, popovers,
173
- * drawers, modals. Reads the theme's `--shadow-overlay` token through the
174
- * preset's `shadow-overlay` utility (dark doubles the alpha at the token), so
175
- * every overlay lifts with the same shadow and re-themes from one source. The
176
- * floating composer uses the quieter `shadow-raised` rung instead.
173
+ * drawers, modals. Reads the theme's `--shadow-overlay` token, so every overlay
174
+ * lifts with the same shadow and re-themes from one source. The floating
175
+ * composer uses the quieter `shadow-raised` rung instead.
176
+ *
177
+ * Written as an arbitrary value rather than the preset's `shadow-overlay`
178
+ * utility, because that utility only exists where the preset is part of the
179
+ * Tailwind build. A host that gets its tokens through a precompiled bundle —
180
+ * `@tangle-network/sandbox-ui` ships brand's tokens inlined, with no `@theme`
181
+ * block surviving the compile — receives `--shadow-overlay` as a plain custom
182
+ * property, from which no `shadow-overlay` utility can be generated, and these
183
+ * surfaces render flat. The arbitrary form emits from the class alone and works
184
+ * either way.
177
185
  */
178
- declare const OVERLAY_SHADOW = "shadow-overlay";
186
+ declare const OVERLAY_SHADOW = "shadow-[var(--shadow-overlay)]";
179
187
  /**
180
188
  * Guard an async action against double-submit. `run` ignores re-entrant calls
181
189
  * while a promise is in flight and flips `pending` so the caller can disable
@@ -8,7 +8,7 @@ import '../plans/index.js';
8
8
  import '../parts-BqIHMdyu.js';
9
9
  import '../types-CCeYywdS.js';
10
10
  import '../wire-DOZ-O6hD.js';
11
- import '../agent-session-controls-C54M2RsX.js';
11
+ import '../agent-session-controls-CmlXwp_H.js';
12
12
  import '../harness/index.js';
13
13
  import '../catalog/index.js';
14
14
  import '../agent-activity-C8ZG0F0M.js';
@@ -2,13 +2,13 @@ import {
2
2
  ChatComposer,
3
3
  ChatEmptyState,
4
4
  ChatMessages
5
- } from "../chunk-CXPWUCXC.js";
5
+ } from "../chunk-MQO5ML66.js";
6
6
  import "../chunk-FBVLEGEG.js";
7
7
  import "../chunk-ENLRJYVW.js";
8
8
  import "../chunk-GEYACSFW.js";
9
9
  import {
10
10
  ModelPicker
11
- } from "../chunk-CJHIAZKK.js";
11
+ } from "../chunk-PVP57G3S.js";
12
12
  import "../chunk-MLG6XKPV.js";
13
13
  import "../chunk-BATKJP3P.js";
14
14
  import {
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { AgentComposer } from '@tangle-network/sandbox-ui/chat';
4
- import { A as AgentSessionControlsProps, U as UseFileMentionsResult } from '../agent-session-controls-C54M2RsX.js';
4
+ import { A as AgentSessionControlsProps, U as UseFileMentionsResult } from '../agent-session-controls-CmlXwp_H.js';
5
5
  import { b as ChatAttachmentInput, F as FileMention } from '../wire-DOZ-O6hD.js';
6
6
  import '../harness/index.js';
7
7
  import '@tangle-network/agent-interface';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AgentSessionControls,
3
3
  useComposerAttachments
4
- } from "../chunk-CJHIAZKK.js";
4
+ } from "../chunk-PVP57G3S.js";
5
5
  import "../chunk-MLG6XKPV.js";
6
6
  import {
7
7
  ATTACHMENT_ACCEPT
@@ -109,7 +109,7 @@ import {
109
109
  flattenHistory,
110
110
  readSandboxBinaryBytes,
111
111
  statSandboxFileSize
112
- } from "../chunk-RRH23CGS.js";
112
+ } from "../chunk-MA2RIIIH.js";
113
113
  import "../chunk-TH7L265V.js";
114
114
  import "../chunk-LWSJK546.js";
115
115
  import "../chunk-P5PIAQVS.js";
@@ -2153,10 +2153,15 @@ function secretStoreFromClient(shell) {
2153
2153
  create: async (name, value) => {
2154
2154
  await client.secrets.create(name, value);
2155
2155
  },
2156
+ // The API has no replace route, so a replacement is a delete followed by a
2157
+ // create. That pair is NOT atomic: if the create fails, the secret is left
2158
+ // deleted rather than at its previous value. `storeSecret` reports that
2159
+ // state instead of reporting a generic write failure, because a caller
2160
+ // retrying a lost secret needs to know it is now absent.
2156
2161
  update: async (name, value) => {
2157
- await client.secrets.update(name, value);
2162
+ await client.secrets.delete(name);
2163
+ await client.secrets.create(name, value);
2158
2164
  },
2159
- get: (name) => client.secrets.get(name),
2160
2165
  delete: async (name) => {
2161
2166
  await client.secrets.delete(name);
2162
2167
  }
@@ -2171,17 +2176,15 @@ async function storeSecret(store, name, value) {
2171
2176
  await store.update(name, value);
2172
2177
  return ok(void 0);
2173
2178
  } catch (err) {
2174
- return fail(new Error(`Failed to store sandbox secret ${name}`, { cause: err }));
2179
+ return fail(
2180
+ new Error(
2181
+ `Failed to store sandbox secret ${name}. A replacement deletes before it creates, so ${name} may now be absent rather than holding its previous value.`,
2182
+ { cause: err }
2183
+ )
2184
+ );
2175
2185
  }
2176
2186
  }
2177
2187
  }
2178
- async function readSecret(store, name) {
2179
- try {
2180
- return ok(await store.get(name));
2181
- } catch (err) {
2182
- return fail(err);
2183
- }
2184
- }
2185
2188
  async function deleteSecret(store, name) {
2186
2189
  try {
2187
2190
  await store.delete(name);
@@ -2366,7 +2369,6 @@ export {
2366
2369
  syncSandboxMemberRole,
2367
2370
  secretStoreFromClient,
2368
2371
  storeSecret,
2369
- readSecret,
2370
2372
  deleteSecret,
2371
2373
  mintSandboxScopedToken,
2372
2374
  driveSandboxTurn,
@@ -2374,4 +2376,4 @@ export {
2374
2376
  isTerminalPromptEvent,
2375
2377
  detectInteractiveQuestion
2376
2378
  };
2377
- //# sourceMappingURL=chunk-RRH23CGS.js.map
2379
+ //# sourceMappingURL=chunk-MA2RIIIH.js.map