@asgard-js/core 0.3.28 → 0.3.29
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/dist/lib/channel.d.ts +12 -1
- package/dist/lib/channel.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2775,14 +2775,26 @@ class K {
|
|
|
2775
2775
|
* text — the backend suppresses `message.*` and writes no transcript, so nothing renders in the
|
|
2776
2776
|
* conversation; the FE simply waits for the resulting `sandbox.launch`/`ready` frames (and a metadata
|
|
2777
2777
|
* refetch) to refill `launchedSandboxes$`. An invisible turn, unlike `sendMessage`.
|
|
2778
|
+
*
|
|
2779
|
+
* Invisible, but still a real turn — so it needs `payload` exactly like the other three outbounds
|
|
2780
|
+
* (BUG-004). The backend rebuilds `prevPayload` from *this* turn's incoming payload and never carries
|
|
2781
|
+
* the previous turn's over, and the sandbox blueprint reads its subagents / source-set mounts /
|
|
2782
|
+
* working directory straight out of it. Omitting payload therefore wakes an empty sandbox rather than
|
|
2783
|
+
* the one the channel was working in, and every one of those expressions has a falsy fallback, so it
|
|
2784
|
+
* fails silently.
|
|
2785
|
+
*
|
|
2786
|
+
* @param payload Turn-level payload, resolved through the same path as `sendMessage` — pass a
|
|
2787
|
+
* function to compute it at send time. In `@asgard-js/react` this is filled in automatically from
|
|
2788
|
+
* `onBeforeSendMessage`.
|
|
2778
2789
|
*/
|
|
2779
|
-
nudge(t) {
|
|
2790
|
+
nudge(t, e) {
|
|
2780
2791
|
return this.fetchSse(
|
|
2781
2792
|
"nudge",
|
|
2782
2793
|
{
|
|
2783
2794
|
action: $.NUDGE,
|
|
2784
2795
|
customChannelId: this.customChannelId,
|
|
2785
2796
|
customMessageId: this.lastSentMessageId ?? this.customMessageId,
|
|
2797
|
+
payload: this.resolvePayload(e),
|
|
2786
2798
|
text: ""
|
|
2787
2799
|
},
|
|
2788
2800
|
t
|