File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @abstract-foundation/agw-cli" ,
3- "version" : " 0.1.2 " ,
3+ "version" : " 0.1.3 " ,
44 "type" : " module" ,
55 "description" : " Agent-first CLI for Abstract Global Wallet workflows" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ async function main(): Promise<void> {
145145 program
146146 . name ( "agw-cli" )
147147 . description ( "Agent-first CLI for Abstract Global Wallet workflows." )
148- . version ( "0.1.0 " )
148+ . version ( "0.1.3 " )
149149 . showHelpAfterError ( ) ;
150150
151151 program
Original file line number Diff line number Diff line change 11import { createPublicKey , type KeyObject , verify as verifySignature } from "node:crypto" ;
2+ import { AGW_HTTP_HEADERS } from "../config/runtime.js" ;
23
34const DEFAULT_CALLBACK_ISSUER = "agw" ;
45const DEFAULT_CLOCK_SKEW_SECONDS = 60 ;
@@ -54,6 +55,7 @@ export async function resolveCallbackVerificationConfig(appUrl: string): Promise
5455 method : "GET" ,
5556 headers : {
5657 Accept : "application/json" ,
58+ ...AGW_HTTP_HEADERS ,
5759 } ,
5860 } ) ;
5961 if ( ! response . ok ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ import path from "node:path";
33import type { AgwOutputMode , AgwSanitizeProfile } from "../registry/types.js" ;
44
55const DEFAULT_HOME_DIRNAME = ".agw" ;
6+
7+ export const AGW_HTTP_HEADERS : Record < string , string > = {
8+ "User-Agent" : "AGW-CLI/1.0" ,
9+ } ;
610const OUTPUT_ENV_KEY = "AGW_OUTPUT" ;
711const SANITIZE_ENV_KEY = "AGW_SANITIZE_PROFILE" ;
812const HOME_ENV_KEY = "AGW_HOME" ;
Original file line number Diff line number Diff line change 11import type { KeyObject } from "node:crypto" ;
2+ import { AGW_HTTP_HEADERS } from "../config/runtime.js" ;
23import { computeAuthorizationSignature , readAuthKeyfile } from "./auth.js" ;
34import type {
45 PrivySignerConfig ,
@@ -84,6 +85,7 @@ export class PrivyWalletClient {
8485 method : "GET" ,
8586 headers : {
8687 Accept : "application/json" ,
88+ ...AGW_HTTP_HEADERS ,
8789 } ,
8890 } ) ;
8991 if ( ! response . ok ) {
@@ -139,6 +141,7 @@ export class PrivyWalletClient {
139141 method : "POST" ,
140142 headers : {
141143 "Content-Type" : "application/json" ,
144+ ...AGW_HTTP_HEADERS ,
142145 } ,
143146 body : JSON . stringify ( {
144147 walletId : this . walletId ,
You can’t perform that action at this time.
0 commit comments