@buoy-gg/ask-buoy 7.0.36 → 7.0.39

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 (46) hide show
  1. package/README.md +58 -27
  2. package/lib/commonjs/components/ApprovalCard.js +56 -3
  3. package/lib/commonjs/components/ApprovalCard.js.map +1 -1
  4. package/lib/commonjs/components/AskBuoySettings.js +63 -1
  5. package/lib/commonjs/components/AskBuoySettings.js.map +1 -1
  6. package/lib/commonjs/components/MessageList.js +42 -2
  7. package/lib/commonjs/components/MessageList.js.map +1 -1
  8. package/lib/commonjs/components/QueuedMessages.js +1 -1
  9. package/lib/commonjs/components/QueuedMessages.js.map +1 -1
  10. package/lib/commonjs/preset.js +4 -3
  11. package/lib/commonjs/preset.js.map +1 -1
  12. package/lib/commonjs/store/askBuoyStore.js +46 -4
  13. package/lib/commonjs/store/askBuoyStore.js.map +1 -1
  14. package/lib/commonjs/store/useAskBuoy.js +36 -7
  15. package/lib/commonjs/store/useAskBuoy.js.map +1 -1
  16. package/lib/commonjs/sync/askBuoySyncAdapter.js +13 -0
  17. package/lib/commonjs/sync/askBuoySyncAdapter.js.map +1 -1
  18. package/lib/module/components/ApprovalCard.js +57 -4
  19. package/lib/module/components/ApprovalCard.js.map +1 -1
  20. package/lib/module/components/AskBuoySettings.js +64 -2
  21. package/lib/module/components/AskBuoySettings.js.map +1 -1
  22. package/lib/module/components/MessageList.js +42 -2
  23. package/lib/module/components/MessageList.js.map +1 -1
  24. package/lib/module/components/QueuedMessages.js +1 -1
  25. package/lib/module/components/QueuedMessages.js.map +1 -1
  26. package/lib/module/preset.js +4 -3
  27. package/lib/module/preset.js.map +1 -1
  28. package/lib/module/store/askBuoyStore.js +46 -4
  29. package/lib/module/store/askBuoyStore.js.map +1 -1
  30. package/lib/module/store/useAskBuoy.js +36 -6
  31. package/lib/module/store/useAskBuoy.js.map +1 -1
  32. package/lib/module/sync/askBuoySyncAdapter.js +13 -0
  33. package/lib/module/sync/askBuoySyncAdapter.js.map +1 -1
  34. package/lib/typescript/components/ApprovalCard.d.ts +9 -1
  35. package/lib/typescript/components/ApprovalCard.d.ts.map +1 -1
  36. package/lib/typescript/components/AskBuoySettings.d.ts.map +1 -1
  37. package/lib/typescript/components/MessageList.d.ts.map +1 -1
  38. package/lib/typescript/preset.d.ts +4 -2
  39. package/lib/typescript/preset.d.ts.map +1 -1
  40. package/lib/typescript/store/askBuoyStore.d.ts +32 -4
  41. package/lib/typescript/store/askBuoyStore.d.ts.map +1 -1
  42. package/lib/typescript/store/useAskBuoy.d.ts +3 -2
  43. package/lib/typescript/store/useAskBuoy.d.ts.map +1 -1
  44. package/lib/typescript/sync/askBuoySyncAdapter.d.ts +3 -0
  45. package/lib/typescript/sync/askBuoySyncAdapter.d.ts.map +1 -1
  46. package/package.json +9 -9
package/README.md CHANGED
@@ -1,17 +1,37 @@
1
1
  # @buoy-gg/ask-buoy
2
2
 
3
- **Ask Buoy** — an AI chat sheet inside your React Native app that drives every Buoy devtool, for the people on your team who don't read code.
3
+ Ask Buoy adds an AI chat to your React Native app. It can inspect and act through installed Buoy tools, subject to your policy and each tool’s integration.
4
4
 
5
- Your QA tester types *"make the double burger out of stock at store 100 and put it in my cart"* and it happens. No ticket, no dev, no knowing what a cart-item object looks like. Behind the chat, an agent calls the same **192 tool actions across 24 tools** that Buoy Desktop and the MCP server drive — network overrides, storage writes, react-query cache pokes, impersonation, navigation — and reports back in plain English.
5
+ For example, a tester can ask it to simulate a failed checkout request when Network overrides are configured. It reports the actions it took and exposes available undo operations. Some changes cannot be undone.
6
6
 
7
- **The model is yours.** Buoy never holds an API key and never proxies a request. You point Ask Buoy at your own endpoint and hand it headers from your app's own session.
7
+ You configure the model endpoint and authentication. Requests go from the app to that endpoint. Use an authenticated gateway that validates the caller and keeps provider secrets on the server.
8
8
 
9
9
  ## Setup
10
10
 
11
11
  ```bash
12
- npm install @buoy-gg/ask-buoy
12
+ npm install @buoy-gg/core @buoy-gg/ask-buoy
13
13
  ```
14
14
 
15
+ ## Account and configuration
16
+
17
+ Ask Buoy requires Pro access. Use a development build with `@buoy-gg/core` and configure your Buoy account key. From your app’s directory, sign in:
18
+
19
+ ```bash
20
+ npx --package=@buoy-gg/core buoy login
21
+ ```
22
+
23
+ For Expo, initialize Buoy before rendering the menu:
24
+
25
+ ```tsx
26
+ import { Buoy } from "@buoy-gg/core";
27
+
28
+ Buoy.init({ licenseKey: process.env.EXPO_PUBLIC_BUOY_KEY });
29
+ ```
30
+
31
+ The login command writes the Expo key to `.env.local`. For React Native CLI, pass the key from your app’s environment configuration; React Native does not load `.env.local` automatically. Mount `FloatingDevTools` inside the same providers as your screens and restart the development server after installation. The [Quick Start](https://buoy.gg/buoy/latest/docs/quick-start) shows the complete root component setup.
32
+
33
+ This configuration fragment uses your existing `auth.getToken()` implementation. Your gateway must validate that token. Replace the endpoint and model with values your gateway supports.
34
+
15
35
  ```tsx
16
36
  import { FloatingDevTools } from "@buoy-gg/core";
17
37
 
@@ -19,11 +39,9 @@ import { FloatingDevTools } from "@buoy-gg/core";
19
39
  askBuoy={{
20
40
  endpoint: "https://ai.acme.com/v1/messages",
21
41
  protocol: "anthropic", // or "openai" — Azure, Gemini-compat, most gateways
22
- model: "claude-opus-5",
23
- maxTokens: 8192, // raise it on a thinking model; reasoning bills against this
42
+ model: "YOUR_MODEL_ID",
24
43
 
25
44
  // Called before every request, so short-lived tokens work.
26
- // This is the whole auth story: your credential, your gateway.
27
45
  headers: async () => ({
28
46
  Authorization: `Bearer ${await auth.getToken()}`,
29
47
  }),
@@ -31,44 +49,57 @@ import { FloatingDevTools } from "@buoy-gg/core";
31
49
  />
32
50
  ```
33
51
 
34
- The tool appears in the dial as **ASK BUOY**. This package is the chat; the *hands* are the other Buoy tools you have installed — each tool package you add (network, storage, impersonate, …) becomes something the agent can do.
52
+ Open Ask Buoy and ask it to read a known captured request. Confirm that it reports the actual request before trying a write. Available actions depend on installed tools and policy. Start with `policy: { readOnly: true }` in the `askBuoy` configuration if you want to validate reads first.
35
53
 
36
- **Already running Buoy?** Upgrade every `@buoy-gg/*` package to the same version in one command — `@buoy-gg/license` is an exact peer, and `npm install` exits 0 on the invalid tree it otherwise leaves behind.
54
+ Keep package versions compatible with their declared peer dependencies, especially `@buoy-gg/license`. Check package-manager peer warnings when upgrading.
37
55
 
38
56
  ### Teach it your data
39
57
 
40
- The one input that most determines whether it gets your app right. Buoy discovers routes, query keys, store names and storage keys by watching the app run, and reads the item shape of every non-empty list it can see — what it can't know is what any of that *means*, or the shape of a collection that is currently empty.
58
+ Buoy discovers routes, query keys, store names and storage keys by watching the app run, and reads the item shape of every non-empty list it can see — what it can't know is what any of that *means*, or the shape of a collection that is currently empty.
59
+
60
+ Add `context` inside the `askBuoy` configuration. For example:
41
61
 
42
62
  ```tsx
43
- context: {
63
+ const context = {
44
64
  notes: ["Prices are integer cents everywhere. `/api/*` ids are prefixed — ord_, usr_, itm_."],
45
65
  types: { CartLine: "{ lineId: string; itemId: string; qty: number; unitPrice: number }" },
46
- }
66
+ };
47
67
  ```
48
68
 
49
69
  The docs carry a prompt you can paste into a coding agent to draft both from your repo.
50
70
 
51
- ## What keeps it trustworthy
71
+ Tasks that aren't guessable from the app — *"reproduce the pricing glitch"*, *"put this account in the expired state"* — go in `context.procedures`: an `id`, a one-line `summary` (the only part in every prompt), and a `body` with the steps, loaded when a request matches. A tester types **"run the expired-subscription check"** and the agent opens the playbook first instead of asking what that means. A procedure guides; it grants nothing.
72
+
73
+ ## Permissions and verification
74
+
75
+ The changes bar lists undoable and permanent changes. Supported storage and query-cache writes capture the prior value for undo. Changes without a captured prior value are marked permanent.
76
+
77
+ Destructive actions require approval by default. Configure `policy` to require more approvals, allow or deny actions, limit steps, or enable read-only access. An approval note is passed to the model. **Allow for this chat** waives approval for that action during the conversation; it does not override read-only mode, deny rules, or release restrictions. Review or revoke these waivers in Settings.
78
+
79
+ Supported writes have outcome checks. The activity row reports **Verified**, **Done · not yet visible**, or **Done · check failed**. Inspect the affected screen or state when a result is unverified. Actions requiring development hooks are refused in release builds.
80
+
81
+ Credential redaction uses field names and value patterns. SecureStore values require `policy.secureReads`. Review the data your tools expose; redaction cannot establish that arbitrary app data is safe to send to a model.
82
+
83
+ ## Sessions and debugging
84
+
85
+ - Saved sessions can restore the transcript, agent memory, and pending approvals. Set `persistTranscript: false` to disable transcript persistence. Saved transcripts omit tool results.
86
+ - Large, redacted results remain in memory for the conversation. The agent can retrieve fields or sections omitted from the model’s initial result. This evidence store is not persisted across restarts.
87
+ - Eligible rate-limit and overload responses are retried when no output was generated. Oversized requests can trim history and retry. The sheet reports retry activity.
88
+ - Answers can include tables, choices, diffs, images, receipts, and approval cards. Messages sent during a turn queue for later processing.
89
+ - **Settings → Chat → Show agent thinking** exposes available reasoning and step payloads, results, timing, and token counts. Inspect the result as well as the step status when diagnosing a failed action.
90
+ - A ticket summary can collect steps, expected and observed behavior, build information, and available evidence without running new actions.
91
+
92
+ ## Desktop and custom integrations
52
93
 
53
- - **A visible changes bar** the moment it modifies anything — "Changed this app · 2 undoable · 1 permanent" — with real undo: storage writes and query-cache edits are pre-read so Undo restores the exact prior value, and anything with no captured prior value is labelled permanent rather than folded into a count Undo can't deliver.
54
- - **Destructive actions wait for a tap** by default; everything else auto-runs behind the bar. Tunable with `policy` — `requireApproval`, `requireApprovalFor`, `allow`, `deny`, `maxSteps`, down to `readOnly: true` for a look-but-don't-touch support seat. **Settings → Permissions** exposes **Read only** and **Skip approval prompts** on the device, without a rebuild.
55
- - **Release-build honesty**: the 24 actions that can't work outside a dev build are refused before dispatch with an explanation, never silently "succeed".
56
- - **Credential redaction** by field name and value shape before anything reaches your model; the agent's own traffic is invisible to it; SecureStore *values* need `policy.secureReads`; the saved transcript keeps what was said but never a tool result (`persistTranscript: false` turns saving off entirely).
57
- - **Show your work**: **Settings → Chat → Show agent thinking** adds a collapsed strip to every answer — `2 steps · 1 thought · 3.2s · 6210 tokens` — that opens into the model's reasoning and each step's exact payload and result. A step whose status is `ok` and whose result is `{"ok": false}` looks like a working step until you can see it.
94
+ Desktop can mirror the conversation and expose supported remote undo. There is no remote composer. Mirroring requires external sync and account admission; your app still controls authorization.
58
95
 
59
- ## Beyond the chat
96
+ Custom tools need a sync adapter and a `ToolDescriptor` passed through `tools`. They use the same parameter validation and policy checks as built-in actions.
60
97
 
61
- - **It survives a reload, a restart or a crash** — transcript, agent memory and unanswered approvals all come back, so "undo that" still means something.
62
- - **Rich answers, not walls of text** — tables, choices, diffs, image grids, receipts and approval cards, from a closed block catalog the model authors against.
63
- - **Keep typing while it works** — messages you send mid-turn park above the composer and send one at a time.
64
- - **Summarize for a ticket** — one card with steps, expected, observed, build and the evidence it actually saw. Nothing is run or changed to produce it.
65
- - **Watch it from Buoy Desktop** — the desk gets a read-only mirror of the conversation, what the agent changed and what it spent, plus remote undo. There is no remote composer on purpose: the broker has no auth.
66
- - **Your own tools too** — a custom tool with a sync adapter is dispatchable as `custom:<id>`; hand Ask Buoy a `ToolDescriptor` for it via `tools` and the agent can drive it with the same validation, policy gates and release-truth refusals as a built-in.
67
- - **`onEvent`** streams every engine event — tool starts and results, blocks, approvals, errors, per-request token usage — so you can log agent activity to your own systems and meter cost per seat.
98
+ Use `onEvent` to observe tool calls, outcome checks, approvals, retries, errors, and token usage. Each `done` event includes a `stopReason`.
68
99
 
69
100
  ## Docs
70
101
 
71
- Full guide — gateway templates, model guidance, the exact list of what's sent to the model, policy reference: **[buoy.gg/docs/tools/ask-buoy](https://buoy.gg/buoy/latest/docs/tools/ask-buoy)**
102
+ For gateway requirements, model configuration, data sent to the model, and policy options, see **[buoy.gg/docs/tools/ask-buoy](https://buoy.gg/buoy/latest/docs/tools/ask-buoy)**
72
103
 
73
104
  The headless engine (catalog, providers, turn loop, effect ledger, blocks) lives in [`@buoy-gg/agent-core`](https://www.npmjs.com/package/@buoy-gg/agent-core).
74
105
 
@@ -36,6 +36,7 @@ function ApprovalCard({
36
36
  pending,
37
37
  onAnswer
38
38
  }) {
39
+ const [note, setNote] = (0, _react.useState)("");
39
40
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
40
41
  style: styles.card,
41
42
  testID: "buoy-ask-buoy-approval",
@@ -60,12 +61,24 @@ function ApprovalCard({
60
61
  children: pending.reason
61
62
  }), pending.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ApprovalDetails, {
62
63
  text: pending.description
63
- }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
64
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
65
+ testID: "buoy-ask-buoy-approval-note",
66
+ value: note,
67
+ onChangeText: setNote,
68
+ placeholder: "Add a note for the agent (optional)",
69
+ placeholderTextColor: _sharedUi.night.color.textTertiary,
70
+ style: styles.note,
71
+ returnKeyType: "done",
72
+ blurOnSubmit: true
73
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
64
74
  style: styles.actions,
65
75
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
66
76
  testID: "buoy-ask-buoy-approve",
67
77
  accessibilityRole: "button",
68
- onPress: () => onAnswer(true),
78
+ onPress: () => onAnswer({
79
+ approved: true,
80
+ reason: note
81
+ }),
69
82
  style: ({
70
83
  pressed
71
84
  }) => [styles.button, styles.approve, pressed && styles.pressed],
@@ -73,10 +86,28 @@ function ApprovalCard({
73
86
  style: styles.approveText,
74
87
  children: "Allow"
75
88
  })
89
+ }), pending.restored ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
90
+ testID: "buoy-ask-buoy-approve-trust",
91
+ accessibilityRole: "button",
92
+ onPress: () => onAnswer({
93
+ approved: true,
94
+ reason: note,
95
+ trust: true
96
+ }),
97
+ style: ({
98
+ pressed
99
+ }) => [styles.button, styles.trust, pressed && styles.pressed],
100
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
101
+ style: styles.trustText,
102
+ children: "Allow for this chat"
103
+ })
76
104
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
77
105
  testID: "buoy-ask-buoy-reject",
78
106
  accessibilityRole: "button",
79
- onPress: () => onAnswer(false),
107
+ onPress: () => onAnswer({
108
+ approved: false,
109
+ reason: note
110
+ }),
80
111
  style: ({
81
112
  pressed
82
113
  }) => [styles.button, styles.reject, pressed && styles.pressed],
@@ -212,8 +243,20 @@ const styles = _reactNative.StyleSheet.create({
212
243
  detailContent: {
213
244
  paddingBottom: 2
214
245
  },
246
+ note: {
247
+ color: _sharedUi.night.color.text,
248
+ fontSize: _sharedUi.night.font.caption,
249
+ paddingHorizontal: 10,
250
+ paddingVertical: 7,
251
+ borderRadius: _sharedUi.night.radius.row,
252
+ borderWidth: _reactNative.StyleSheet.hairlineWidth,
253
+ borderColor: _sharedUi.night.color.border,
254
+ backgroundColor: _sharedUi.night.color.button,
255
+ marginTop: 2
256
+ },
215
257
  actions: {
216
258
  flexDirection: "row",
259
+ flexWrap: "wrap",
217
260
  gap: 8,
218
261
  marginTop: 6
219
262
  },
@@ -230,6 +273,16 @@ const styles = _reactNative.StyleSheet.create({
230
273
  fontWeight: "600",
231
274
  fontSize: _sharedUi.night.font.caption
232
275
  },
276
+ trust: {
277
+ backgroundColor: _sharedUi.night.color.button,
278
+ borderWidth: _reactNative.StyleSheet.hairlineWidth,
279
+ borderColor: _sharedUi.night.color.accentBorderStrong
280
+ },
281
+ trustText: {
282
+ color: _sharedUi.night.color.accent,
283
+ fontWeight: "600",
284
+ fontSize: _sharedUi.night.font.caption
285
+ },
233
286
  reject: {
234
287
  backgroundColor: _sharedUi.night.color.button
235
288
  },
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_sharedUi","_jsxRuntime","ApprovalCard","pending","onAnswer","jsxs","View","style","styles","card","testID","children","titleRow","jsx","AlertTriangle","size","color","night","warning","Text","title","restored","label","reason","description","ApprovalDetails","text","actions","Pressable","accessibilityRole","onPress","pressed","button","approve","approveText","reject","rejectText","open","setOpen","useState","accessibilityState","expanded","prev","disclosure","hitSlop","chevronOpen","chevronClosed","ChevronDown","textTertiary","disclosureText","ScrollView","detail","contentContainerStyle","detailContent","nestedScrollEnabled","StyleSheet","create","marginHorizontal","gutter","marginBottom","padding","cardPad","borderRadius","radius","borderWidth","hairlineWidth","borderColor","accentBorderStrong","backgroundColor","surface","gap","flexDirection","alignItems","fontSize","font","caption","fontWeight","row","lineHeight","textSecondary","info","infoSoft","micro","paddingHorizontal","paddingVertical","transform","rotate","maxHeight","marginTop","paddingBottom","accent","onAccent","opacity"],"sourceRoot":"../../../src","sources":["components/ApprovalCard.tsx"],"mappings":";;;;;;AAuBA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAAuE,IAAAG,WAAA,GAAAH,OAAA;AAzBvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYO,SAASI,YAAYA,CAAC;EAAEC,OAAO;EAAEC;AAA4B,CAAC,EAAE;EACrE,oBACE,IAAAH,WAAA,CAAAI,IAAA,EAACN,YAAA,CAAAO,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,IAAK;IAACC,MAAM,EAAC,wBAAwB;IAAAC,QAAA,gBACvD,IAAAV,WAAA,CAAAI,IAAA,EAACN,YAAA,CAAAO,IAAI;MAACC,KAAK,EAAEC,MAAM,CAACI,QAAS;MAAAD,QAAA,gBAC3B,IAAAV,WAAA,CAAAY,GAAA,EAACb,SAAA,CAAAc,aAAa;QAACC,IAAI,EAAE,EAAG;QAACC,KAAK,EAAEC,eAAK,CAACD,KAAK,CAACE;MAAQ,CAAE,CAAC,eACvD,IAAAjB,WAAA,CAAAY,GAAA,EAACd,YAAA,CAAAoB,IAAI;QAACZ,KAAK,EAAEC,MAAM,CAAC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CAACC;EAAQ,CAAC;EACrE5C,OAAO,EAAE;IAAE6D,OAAO,EAAE;EAAI;AAC1B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_sharedUi","_jsxRuntime","ApprovalCard","pending","onAnswer","note","setNote","useState","jsxs","View","style","styles","card","testID","children","titleRow","jsx","AlertTriangle","size","color","night","warning","Text","title","restored","label","reason","description","ApprovalDetails","text","TextInput","value","onChangeText","placeholder","placeholderTextColor","textTertiary","returnKeyType","blurOnSubmit","actions","Pressable","accessibilityRole","onPress","approved","pressed","button","approve","approveText","trust","trustText","reject","rejectText","open","setOpen","accessibilityState","expanded","prev","disclosure","hitSlop","chevronOpen","chevronClosed","ChevronDown","disclosureText","ScrollView","detail","contentContainerStyle","detailContent","nestedScrollEnabled","StyleSheet","create","marginHorizontal","gutter","marginBottom","padding","cardPad","borderRadius","radius","borderWidth","hairlineWidth","borderColor","accentBorderStrong","backgroundColor","surface","gap","flexDirection","alignItems","fontSize","font","caption","fontWeight","row","lineHeight","textSecondary","info","infoSoft","micro","paddingHorizontal","paddingVertical","transform","rotate","maxHeight","marginTop","paddingBottom","border","flexWrap","accent","onAccent","opacity"],"sourceRoot":"../../../src","sources":["components/ApprovalCard.tsx"],"mappings":";;;;;;AAuBA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAAuE,IAAAG,WAAA,GAAAH,OAAA;AAzBvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoBO,SAASI,YAAYA,CAAC;EAAEC,OAAO;EAAEC;AAA4B,CAAC,EAAE;EACrE,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAG,IAAAC,eAAQ,EAAC,EAAE,CAAC;EACpC,oBACE,IAAAN,WAAA,CAAAO,IAAA,EAACT,YAAA,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gg/shared-ui");
9
9
  var _useAskBuoySettings = require("../store/useAskBuoySettings");
10
10
  var _askBuoySettings = require("../store/askBuoySettings");
11
+ var _askBuoyStore = require("../store/askBuoyStore");
12
+ var _useAskBuoy = require("../store/useAskBuoy");
11
13
  var _jsxRuntime = require("react/jsx-runtime");
12
14
  /**
13
15
  * The sheet's settings, reached from the header.
@@ -23,6 +25,7 @@ var _jsxRuntime = require("react/jsx-runtime");
23
25
 
24
26
  function AskBuoySettings() {
25
27
  const settings = (0, _useAskBuoySettings.useAskBuoySettings)();
28
+ const trusted = (0, _useAskBuoy.useAskBuoyState)().trusted;
26
29
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
27
30
  style: styles.scroll,
28
31
  contentContainerStyle: styles.content,
@@ -74,7 +77,35 @@ function AskBuoySettings() {
74
77
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
75
78
  style: styles.note,
76
79
  children: "On by default for destructive actions only \u2014 reads and ordinary writes already run without asking, and the changes bar records them."
77
- })]
80
+ }), trusted.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
81
+ style: styles.trustedBox,
82
+ testID: "buoy-ask-buoy-trusted",
83
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
84
+ style: styles.section,
85
+ children: "ALLOWED WITHOUT ASKING \u2014 THIS CHAT"
86
+ }), trusted.map(t => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
87
+ style: styles.trustedRow,
88
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
89
+ style: styles.trustedLabel,
90
+ numberOfLines: 2,
91
+ children: t.label
92
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
93
+ testID: `buoy-ask-buoy-untrust-${t.key}`,
94
+ accessibilityRole: "button",
95
+ onPress: () => _askBuoyStore.askBuoyStore.untrust(t.key),
96
+ style: ({
97
+ pressed
98
+ }) => [styles.forget, pressed && {
99
+ opacity: 0.7
100
+ }],
101
+ hitSlop: 6,
102
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
103
+ style: styles.forgetText,
104
+ children: "Ask again"
105
+ })
106
+ })]
107
+ }, t.key))]
108
+ }) : null]
78
109
  });
79
110
  }
80
111
  const styles = _reactNative.StyleSheet.create({
@@ -109,6 +140,37 @@ const styles = _reactNative.StyleSheet.create({
109
140
  fontSize: _sharedUi.night.font.micro,
110
141
  lineHeight: 16
111
142
  },
143
+ trustedBox: {
144
+ gap: 6,
145
+ paddingTop: 6
146
+ },
147
+ trustedRow: {
148
+ flexDirection: "row",
149
+ alignItems: "center",
150
+ gap: 10,
151
+ padding: _sharedUi.night.cardPad,
152
+ borderRadius: _sharedUi.night.radius.card,
153
+ borderWidth: _reactNative.StyleSheet.hairlineWidth,
154
+ borderColor: _sharedUi.night.color.border,
155
+ backgroundColor: _sharedUi.night.color.surface
156
+ },
157
+ trustedLabel: {
158
+ flex: 1,
159
+ color: _sharedUi.night.color.text,
160
+ fontSize: _sharedUi.night.font.caption,
161
+ lineHeight: 18
162
+ },
163
+ forget: {
164
+ paddingHorizontal: 10,
165
+ paddingVertical: 6,
166
+ borderRadius: _sharedUi.night.radius.row,
167
+ backgroundColor: _sharedUi.night.color.button
168
+ },
169
+ forgetText: {
170
+ color: _sharedUi.night.color.text,
171
+ fontSize: _sharedUi.night.font.micro,
172
+ fontWeight: "600"
173
+ },
112
174
  note: {
113
175
  color: _sharedUi.night.color.textTertiary,
114
176
  fontSize: _sharedUi.night.font.micro,
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_sharedUi","_useAskBuoySettings","_askBuoySettings","_jsxRuntime","AskBuoySettings","settings","useAskBuoySettings","jsxs","ScrollView","style","styles","scroll","contentContainerStyle","content","testID","children","jsx","Text","section","ToggleRow","label","description","value","showThinking","onValueChange","next","askBuoySettings","set","note","readOnly","tone","emphasizeLabel","bypassApprovals","disabled","View","warning","AlertTriangle","size","color","night","warningText","StyleSheet","create","flex","padding","gutter","gap","paddingBottom","textTertiary","fontSize","fontWeight","letterSpacing","paddingHorizontal","paddingTop","flexDirection","cardPad","borderRadius","radius","card","borderWidth","hairlineWidth","borderColor","backgroundColor","surface","font","micro","lineHeight"],"sourceRoot":"../../../src","sources":["components/AskBuoySettings.tsx"],"mappings":";;;;;;AAWA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAA2D,IAAAI,WAAA,GAAAJ,OAAA;AAf3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOO,SAASK,eAAeA,CAAA,EAAG;EAChC,MAAMC,QAAQ,GAAG,IAAAC,sCAAkB,EAAC,CAAC;EACrC,oBACE,IAAAH,WAAA,CAAAI,IAAA,EAACT,YAAA,CAAAU,UAAU;IACTC,KAAK,EAAEC,MAAM,CAACC,MAAO;IACrBC,qBAAqB,EAAEF,MAAM,CAACG,OAAQ;IACtCC,MAAM,EAAC,wBAAwB;IAAAC,QAAA,gBAE/B,IAAAZ,WAAA,CAAAa,GAAA,EAAClB,YAAA,CAAAmB,IAAI;MAACR,KAAK,EAAEC,MAAM,CAACQ,OAAQ;MAAAH,QAAA,EAAC;IAAI,CAAM,CAAC,eACxC,IAAAZ,WAAA,CAAAa,GAAA,EAAChB,SAAA,CAAAmB,SAAS;MACRL,MAAM,EAAC,gCAAgC;MACvCM,KAAK,EAAC,qBAAqB;MAC3BC,WAAW,EAAC,+OAA+O;MAC3PC,KAAK,EAAEjB,QAAQ,CAACkB,YAAa;MAC7BC,aAAa,EAAGC,IAAI,IAAKC,gCAAe,CAACC,GAAG,CAAC,cAAc,EAAEF,IAAI;IAAE,CACpE,CAAC,eACF,IAAAtB,WAAA,CAAAa,GAAA,EAAClB,YAAA,CAAAmB,IAAI;MA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EAAEtB,eAAK,CAACD,KAAK,CAACH,OAAO;IAChC2B,eAAe,EAAEvB,eAAK,CAACD,KAAK,CAACyB;EAC/B,CAAC;EACDvB,WAAW,EAAE;IACXG,IAAI,EAAE,CAAC;IACPL,KAAK,EAAEC,eAAK,CAACD,KAAK,CAACH,OAAO;IAC1Bc,QAAQ,EAAEV,eAAK,CAACyB,IAAI,CAACC,KAAK;IAC1BC,UAAU,EAAE;EACd,CAAC;EACDtC,IAAI,EAAE;IACJU,KAAK,EAAEC,eAAK,CAACD,KAAK,CAACU,YAAY;IAC/BC,QAAQ,EAAEV,eAAK,CAACyB,IAAI,CAACC,KAAK;IAC1BC,UAAU,EAAE,EAAE;IACdd,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_sharedUi","_useAskBuoySettings","_askBuoySettings","_askBuoyStore","_useAskBuoy","_jsxRuntime","AskBuoySettings","settings","useAskBuoySettings","trusted","useAskBuoyState","jsxs","ScrollView","style","styles","scroll","contentContainerStyle","content","testID","children","jsx","Text","section","ToggleRow","label","description","value","showThinking","onValueChange","next","askBuoySettings","set","note","readOnly","tone","emphasizeLabel","bypassApprovals","disabled","View","warning","AlertTriangle","size","color","night","warningText","length","trustedBox","map","t","trustedRow","trustedLabel","numberOfLines","Pressable","key","accessibilityRole","onPress","askBuoyStore","untrust","pressed","forget","opacity","hitSlop","forgetText","StyleSheet","create","flex","padding","gutter","gap","paddingBottom","textTertiary","fontSize","fontWeight","letterSpacing","paddingHorizontal","paddingTop","flexDirection","cardPad","borderRadius","radius","card","borderWidth","hairlineWidth","borderColor","backgroundColor","surface","font","micro","lineHeight","alignItems","border","text","caption","paddingVertical","row","button"],"sourceRoot":"../../../src","sources":["components/AskBuoySettings.tsx"],"mappings":";;;;;;AAWA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,g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iB,EAAE;EACrB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -132,6 +132,20 @@ function statusText(call) {
132
132
  text: "Not run — stopped",
133
133
  tone: "muted"
134
134
  };
135
+ // The outcome check, when the action had one: the difference between "the
136
+ // adapter said ok" and "the app now shows it". See agent-core engine/verify.ts.
137
+ if (call.verification?.status === "verified") return {
138
+ text: "Verified",
139
+ tone: "ok"
140
+ };
141
+ if (call.verification?.status === "unverified") return {
142
+ text: "Done · not yet visible",
143
+ tone: "muted"
144
+ };
145
+ if (call.verification?.status === "failed") return {
146
+ text: "Done · check failed",
147
+ tone: "warning"
148
+ };
135
149
  return {
136
150
  text: call.summary || "Done",
137
151
  tone: "muted"
@@ -170,7 +184,7 @@ function ActivityRow({
170
184
  style: styles.rowTitle,
171
185
  children: call.label
172
186
  }), status.text ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
173
- style: [styles.rowStatus, status.tone === "danger" && styles.rowStatusDanger, status.tone === "warning" && styles.rowStatusWarning],
187
+ style: [styles.rowStatus, status.tone === "danger" && styles.rowStatusDanger, status.tone === "warning" && styles.rowStatusWarning, status.tone === "ok" && styles.rowStatusOk],
174
188
  numberOfLines: 1,
175
189
  children: status.text
176
190
  }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(Chevron, {
@@ -188,6 +202,10 @@ function ActivityRow({
188
202
  }) : null, failureDetail ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
189
203
  style: styles.rowFailure,
190
204
  children: failureDetail
205
+ }) : null, call.verification ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
206
+ style: [styles.rowDescription, call.verification.status === "failed" && styles.rowFailure, call.verification.status === "verified" && styles.rowVerified],
207
+ testID: `buoy-ask-buoy-verification-${call.verification.status}`,
208
+ children: call.verification.detail
191
209
  }) : null]
192
210
  })]
193
211
  }), open && receipts.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
@@ -364,7 +382,14 @@ function AssistantMessage({
364
382
  blocks: askBlocks
365
383
  }), showThinking && !message.streaming && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ThinkingStrip.ThinkingStrip, {
366
384
  message: message
367
- }), waiting && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TypingDots.TypingDots, {}), message.error && /*#__PURE__*/(0, _jsxRuntime.jsx)(ErrorNote, {
385
+ }), waiting && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
386
+ style: styles.waitingRow,
387
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TypingDots.TypingDots, {}), message.waiting ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
388
+ style: styles.waitingText,
389
+ testID: "buoy-ask-buoy-waiting",
390
+ children: message.waiting
391
+ }) : null]
392
+ }), message.error && /*#__PURE__*/(0, _jsxRuntime.jsx)(ErrorNote, {
368
393
  error: message.error,
369
394
  onRetry: onRetry
370
395
  }), message.stopped && !message.error && /*#__PURE__*/(0, _jsxRuntime.jsx)(StoppedNote, {
@@ -734,6 +759,15 @@ const styles = _reactNative.StyleSheet.create({
734
759
  blocks: {
735
760
  gap: 10
736
761
  },
762
+ waitingRow: {
763
+ flexDirection: "row",
764
+ alignItems: "center",
765
+ gap: 8
766
+ },
767
+ waitingText: {
768
+ color: _sharedUi.night.color.textSecondary,
769
+ fontSize: _sharedUi.night.font.caption
770
+ },
737
771
  assistantText: {
738
772
  color: _sharedUi.night.color.text,
739
773
  fontSize: _sharedUi.night.font.row,
@@ -810,6 +844,12 @@ const styles = _reactNative.StyleSheet.create({
810
844
  rowStatusWarning: {
811
845
  color: _sharedUi.night.color.warning
812
846
  },
847
+ rowStatusOk: {
848
+ color: _sharedUi.night.color.accent
849
+ },
850
+ rowVerified: {
851
+ color: _sharedUi.night.color.accent
852
+ },
813
853
  rowDetail: {
814
854
  paddingLeft: 28,
815
855
  paddingTop: 8,