@pouchy_ai/companion-sdk 0.12.0 → 0.12.1
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/CHANGELOG.md +13 -1
- package/dist/client.d.ts +5 -2
- package/dist/client.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,17 @@ a protocol bump is always called out explicitly here.
|
|
|
12
12
|
|
|
13
13
|
## [Unreleased]
|
|
14
14
|
|
|
15
|
+
## [0.12.1] - 2026-07-05
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **`confirmAction` now returns the action's `outcome` text** alongside
|
|
20
|
+
`status`. The surface that clicked Approve renders the result immediately
|
|
21
|
+
instead of racing the stream copy (which still arrives as a normal
|
|
22
|
+
`companion.message`) — a field round caught an approved skill run whose
|
|
23
|
+
stream frame missed a 30s window while the server-side audit proved the
|
|
24
|
+
call executed. Additive; no wire-protocol change.
|
|
25
|
+
|
|
15
26
|
## [0.12.0] - 2026-07-05
|
|
16
27
|
|
|
17
28
|
### Added
|
|
@@ -137,7 +148,8 @@ self-hosted/CDN build; this entry captures the surface that ships publicly.
|
|
|
137
148
|
- **Versioned wire protocol.** `PROTOCOL_VERSION = 1`, kept in lockstep with the
|
|
138
149
|
server by `protocol.drift.test.ts` (fails CI on divergence).
|
|
139
150
|
|
|
140
|
-
[Unreleased]: https://github.com/oviswang/Pouchy/compare/companion-sdk-v0.12.
|
|
151
|
+
[Unreleased]: https://github.com/oviswang/Pouchy/compare/companion-sdk-v0.12.1...HEAD
|
|
152
|
+
[0.12.1]: https://github.com/oviswang/Pouchy/compare/companion-sdk-v0.12.0...companion-sdk-v0.12.1
|
|
141
153
|
[0.12.0]: https://github.com/oviswang/Pouchy/compare/companion-sdk-v0.11.0...companion-sdk-v0.12.0
|
|
142
154
|
[0.11.0]: https://github.com/oviswang/Pouchy/compare/companion-sdk-v0.10.1...companion-sdk-v0.11.0
|
|
143
155
|
[0.10.1]: https://github.com/oviswang/Pouchy/compare/companion-sdk-v0.10.0...companion-sdk-v0.10.1
|
package/dist/client.d.ts
CHANGED
|
@@ -349,12 +349,15 @@ export declare class CompanionClient {
|
|
|
349
349
|
/** Resolve a pending confirmation (platform session tokens only — see
|
|
350
350
|
* `onConfirmRequest`). Show the user what they're approving (the event's
|
|
351
351
|
* `summary`), collect an explicit tap, then pass their decision here. On
|
|
352
|
-
* approval the recorded action runs server-side
|
|
353
|
-
*
|
|
352
|
+
* approval the recorded action runs server-side; its result comes back as
|
|
353
|
+
* `outcome` in this response (render it where the user tapped) AND as a
|
|
354
|
+
* normal companion.message on the stream (so the conversation shows it).
|
|
355
|
+
* A denial returns/emits a brief decline the same way. One-time:
|
|
354
356
|
* re-resolving a settled confirmId fails with 409. */
|
|
355
357
|
confirmAction(confirmId: string, approve: boolean): Promise<{
|
|
356
358
|
ok: boolean;
|
|
357
359
|
status: 'approved' | 'denied';
|
|
360
|
+
outcome?: string;
|
|
358
361
|
}>;
|
|
359
362
|
/** The session's still-pending confirmations (display-safe: id, summary,
|
|
360
363
|
* scope, timestamps — never raw args). Use it to rebuild your confirm card
|
package/dist/client.js
CHANGED
|
@@ -511,8 +511,10 @@ export class CompanionClient {
|
|
|
511
511
|
/** Resolve a pending confirmation (platform session tokens only — see
|
|
512
512
|
* `onConfirmRequest`). Show the user what they're approving (the event's
|
|
513
513
|
* `summary`), collect an explicit tap, then pass their decision here. On
|
|
514
|
-
* approval the recorded action runs server-side
|
|
515
|
-
*
|
|
514
|
+
* approval the recorded action runs server-side; its result comes back as
|
|
515
|
+
* `outcome` in this response (render it where the user tapped) AND as a
|
|
516
|
+
* normal companion.message on the stream (so the conversation shows it).
|
|
517
|
+
* A denial returns/emits a brief decline the same way. One-time:
|
|
516
518
|
* re-resolving a settled confirmId fails with 409. */
|
|
517
519
|
async confirmAction(confirmId, approve) {
|
|
518
520
|
const sessionId = this.requireSession();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pouchy_ai/companion-sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Embed the Pouchy companion — chat, voice, tools, memory, live world-state, instant UI, and agent-to-agent messaging — in any app, game, or site.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|