You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove Complete message type per updated TAIP specifications
- Remove Complete message implementation from tap-msg
- Remove CompleteTool from tap-mcp tools
- Update test files to remove Complete references
- Update MCP integration test to expect 30 tools instead of 31
- Update README.md to list Cancel and Revert instead of Complete
This aligns the codebase with the updated TAIP specifications where
the Complete message has been removed in favor of using the standard
TAIP-4 authorization flow (Payment -> Authorize -> Settle).
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
"Complete message sent successfully to {}, packed message length: {}",
1357
-
recipient_did,
1358
-
packed_message.len()
1359
-
);
1360
-
1361
-
let response = CompleteResponse{
1362
-
transaction_id: params.transaction_id,
1363
-
message_id: didcomm_message.id,
1364
-
status:"sent".to_string(),
1365
-
settlement_address: params.settlement_address,
1366
-
amount: params.amount,
1367
-
completed_at: chrono::Utc::now().to_rfc3339(),
1368
-
};
1369
-
1370
-
let response_json = serde_json::to_string_pretty(&response).map_err(|e| {
1371
-
Error::tool_execution(format!("Failed to serialize response: {}", e))
1372
-
})?;
1373
-
1374
-
Ok(success_text_response(response_json))
1375
-
}
1376
-
Err(e) => {
1377
-
error!("Failed to send complete message: {}", e);
1378
-
Ok(error_text_response(format!(
1379
-
"Failed to send complete message: {}",
1380
-
e
1381
-
)))
1382
-
}
1383
-
}
1384
-
}
1385
-
1386
-
fnget_definition(&self) -> Tool{
1387
-
Tool{
1388
-
name:"tap_complete".to_string(),
1389
-
description:"Request from merchant to complete a TAP payment (TAIP-14) transaction using the Complete message so funds are settled and the transaction is finalized."
assert_eq!(tools.len(),31);// All 31 tools should be available (including complete, revert, communication, delivery, customer, received message tools, database tools, agent management tools, and policy tools)
177
+
assert_eq!(tools.len(),30);// All 30 tools should be available (including revert, communication, delivery, customer, received message tools, database tools, agent management tools, and policy tools)
178
178
179
179
let tool_names:Vec<&str> = tools.iter().map(|t| t["name"].as_str().unwrap()).collect();
0 commit comments