arispay 0.1.0 → 0.1.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/dist/cli.js CHANGED
@@ -141,6 +141,10 @@ ${bold("Connect your agent to ArisPay")}`);
141
141
  saveConfig(BRAND, { ...config, agentId: a.id });
142
142
  console.log();
143
143
  success(`Agent connected!
144
+ `);
145
+ console.log(` ${dim("ArisPay generated an Ed25519 keypair for your agent \u2014 this is its")}`);
146
+ console.log(` ${dim("cryptographic identity for signing payments (RFC 9421 TAP).")}`);
147
+ console.log(` ${dim("A circuit breaker has been set up to auto-pause if anything looks off.")}
144
148
  `);
145
149
  console.log(` ${bold("Agent ID:")} ${a.id}`);
146
150
  console.log(` ${bold("Name:")} ${a.name}`);
@@ -155,18 +159,16 @@ ${bold("Connect your agent to ArisPay")}`);
155
159
  async function wizardAddPaymentMethod(client) {
156
160
  console.log(`
157
161
  ${bold("Add a payment method")}`);
158
- console.log(` ${dim("Before your agent can spend, you need a funding source.")}
162
+ console.log(` ${dim("Before your agent can spend, you need a funding source.")}`);
163
+ console.log(` ${dim("Your account details are always available on your dashboard.")}
159
164
  `);
160
165
  const config = loadConfig(BRAND);
161
166
  let userId = config.endUserId;
162
167
  if (!userId) {
163
- const email = await prompt(` Your email ${dim("(for payment receipts)")}: `);
164
- console.log(`
165
- ${dim("Setting up your account...")}`);
168
+ console.log(` ${dim("Setting up your account...")}`);
166
169
  try {
167
170
  const user = await client.users.create({
168
- externalId: `cli_${Date.now()}`,
169
- email: email || void 0
171
+ externalId: `cli_${Date.now()}`
170
172
  });
171
173
  userId = user.id;
172
174
  saveConfig(BRAND, { ...config, endUserId: userId });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arispay",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "SDK and CLI for enabling agent-initiated payments via Visa TAP + Fiserv",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/cli.ts CHANGED
@@ -163,6 +163,9 @@ async function wizardConnectAgent(client: ArisPayClient): Promise<void> {
163
163
 
164
164
  console.log();
165
165
  success(`Agent connected!\n`);
166
+ console.log(` ${dim('ArisPay generated an Ed25519 keypair for your agent — this is its')}`);
167
+ console.log(` ${dim('cryptographic identity for signing payments (RFC 9421 TAP).')}`);
168
+ console.log(` ${dim('A circuit breaker has been set up to auto-pause if anything looks off.')}\n`);
166
169
  console.log(` ${bold('Agent ID:')} ${a.id}`);
167
170
  console.log(` ${bold('Name:')} ${a.name}`);
168
171
  console.log(` ${bold('Mode:')} ${a.mode || mode}`);
@@ -177,23 +180,20 @@ async function wizardConnectAgent(client: ArisPayClient): Promise<void> {
177
180
 
178
181
  async function wizardAddPaymentMethod(client: ArisPayClient): Promise<void> {
179
182
  console.log(`\n${bold('Add a payment method')}`);
180
- console.log(` ${dim('Before your agent can spend, you need a funding source.')}\n`);
183
+ console.log(` ${dim('Before your agent can spend, you need a funding source.')}`)
184
+ console.log(` ${dim('Your account details are always available on your dashboard.')}\n`);
181
185
 
182
186
  // Auto-create end user if not already stored in config
183
187
  const config = loadConfig(BRAND);
184
188
  let userId = (config as any).endUserId;
185
189
 
186
190
  if (!userId) {
187
- const email = await prompt(` Your email ${dim('(for payment receipts)')}: `);
188
-
189
- console.log(`\n ${dim('Setting up your account...')}`);
191
+ console.log(` ${dim('Setting up your account...')}`);
190
192
  try {
191
193
  const user = await client.users.create({
192
194
  externalId: `cli_${Date.now()}`,
193
- email: email || undefined,
194
195
  });
195
196
  userId = (user as any).id;
196
- // Store in config so they never have to do this again
197
197
  saveConfig(BRAND, { ...config, endUserId: userId } as any);
198
198
  success('Account ready');
199
199
  } catch (e: any) {