From 5cc431b56499f4f07dafe2b5b0a067d8102418ed Mon Sep 17 00:00:00 2001 From: Brett Cleary <27568879+BrettCleary@users.noreply.github.com> Date: Sun, 8 Mar 2026 14:19:40 -0700 Subject: [PATCH 1/4] update turn 2 msg --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f51d4ec..f966e3c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -294,8 +294,12 @@ program // 8. Send signed delegation back to conversation endpoint console.log('Sending signed delegation...') + const turn2Message = + `The delegation has been signed and approved. ` + + `Call redeem_delegation_lifi_swap` + + `The swap transaction data is already cached on the server from prepare_lifi_swap.` const finalResponse = await sendConversation({ - prompt: 'Please refer to the previous conversation messages and redeem this delegation.', + prompt: turn2Message, signedSubdelegation, chatId: initialResponse.chatId, delegationArguments: JSON.stringify(args), From 8b4ee85622f49bdd01d3032b43c47db897d889bd Mon Sep 17 00:00:00 2001 From: jiyuu-jin Date: Sun, 8 Mar 2026 17:48:29 -0400 Subject: [PATCH 2/4] Pass through valueLte to delegation parseScope --- src/scope.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scope.ts b/src/scope.ts index 1fc4003..d516f0f 100644 --- a/src/scope.ts +++ b/src/scope.ts @@ -14,6 +14,7 @@ export interface RawScope { tokenId?: string targets?: string[] selectors?: string[] + valueLte?: { maxValue: string } } export function parseScope(raw: RawScope): DelegationScope { @@ -79,6 +80,9 @@ export function parseScope(raw: RawScope): DelegationScope { type: 'functionCall', targets: (raw.targets ?? []).map((t) => t as Hex), selectors: (raw.selectors ?? []).map((s) => s as Hex), + ...(raw.valueLte?.maxValue + ? { valueLte: { maxValue: BigInt(raw.valueLte.maxValue) } } + : {}), } default: From 07b2e086f19c99e8c2c70de6b3d7f17d83b7a2bd Mon Sep 17 00:00:00 2001 From: Brett Cleary <27568879+BrettCleary@users.noreply.github.com> Date: Sun, 8 Mar 2026 15:13:19 -0700 Subject: [PATCH 3/4] revert follow up msg --- src/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index f966e3c..f51d4ec 100644 --- a/src/index.ts +++ b/src/index.ts @@ -294,12 +294,8 @@ program // 8. Send signed delegation back to conversation endpoint console.log('Sending signed delegation...') - const turn2Message = - `The delegation has been signed and approved. ` + - `Call redeem_delegation_lifi_swap` + - `The swap transaction data is already cached on the server from prepare_lifi_swap.` const finalResponse = await sendConversation({ - prompt: turn2Message, + prompt: 'Please refer to the previous conversation messages and redeem this delegation.', signedSubdelegation, chatId: initialResponse.chatId, delegationArguments: JSON.stringify(args), From ab4c90244854434350546af3ba445d273e61ec26 Mon Sep 17 00:00:00 2001 From: Brett Cleary <27568879+BrettCleary@users.noreply.github.com> Date: Sun, 8 Mar 2026 15:13:40 -0700 Subject: [PATCH 4/4] bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f59cb82..5655d51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coinfello/agent-cli", - "version": "0.1.4", + "version": "0.1.5", "description": "", "type": "module", "main": "dist/index.js",