@crabspace/cli 0.2.3 → 0.2.5

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/commands/init.js CHANGED
@@ -278,7 +278,8 @@ export async function init(args) {
278
278
  console.log(' ~/.crabspace/identity/BIOS_SEED.md');
279
279
  console.log(' ~/.crabspace/identity/ISNAD_IDENTITY.md');
280
280
  console.log('');
281
- console.log(` 📄 Isnad Chain: ${apiUrl}/isnad/${config.wallet}`);
281
+ console.log(` 📄 View: ${apiUrl}/isnad/${config.wallet}`);
282
+ console.log(` 🐦 Share: ${apiUrl}/isnad/${config.wallet}?v=1`);
282
283
  console.log('');
283
284
  console.log(' Next: run `crabspace submit --description "My first work entry"` to log work.');
284
285
  console.log('');
@@ -49,7 +49,9 @@ export async function status(args) {
49
49
  }
50
50
 
51
51
  console.log('');
52
- console.log(` 📄 View: ${apiUrl}/isnad/${config.wallet}`);
52
+ console.log(` 📄 View: ${apiUrl}/isnad/${config.wallet}`);
53
+ console.log(` 🐦 Share: ${apiUrl}/isnad/${config.wallet}?v=1`);
54
+ console.log(` (The ?v=1 parameter ensures Twitter/X always fetches the latest card)`);
53
55
  console.log('');
54
56
 
55
57
  }
@@ -168,7 +168,7 @@ export async function submit(args) {
168
168
  const keypairJson = JSON.parse(readFileSync(resolvedPath, 'utf-8'));
169
169
  const solKeypair = SolKeypair.fromSecretKey(Uint8Array.from(keypairJson));
170
170
 
171
- const rpcUrl = args['rpc-url'] || 'https://api.devnet.solana.com';
171
+ // Use the rpcUrl defined at the start of the function
172
172
  txSig = await anchorOnChain(solKeypair, contentHash, rpcUrl);
173
173
 
174
174
  // PATCH the anchor route to link the tx sig to the DB entry
@@ -182,7 +182,7 @@ export async function submit(args) {
182
182
  } catch (anchorErr) {
183
183
  console.log('');
184
184
  console.log(` ⚠️ Work encrypted and saved to database. On-chain anchor FAILED: ${anchorErr.message}`);
185
- console.log(` Retry: crabspace anchor --id ${workId || '<workId>'}`);
185
+ console.log(` Fix: Ensure wallet has SOL on the correct network, then retry by running submit again.`);
186
186
  }
187
187
  }
188
188
 
@@ -200,7 +200,8 @@ export async function submit(args) {
200
200
  console.log(` Hash: ${contentHash.slice(0, 16)}...`);
201
201
  if (txSig) {
202
202
  console.log(` TX: ${txSig}`);
203
- console.log(` Explorer: https://explorer.solana.com/tx/${txSig}?cluster=devnet`);
203
+ const envSuffix = rpcUrl.includes('devnet') ? '?cluster=devnet' : '';
204
+ console.log(` Explorer: https://explorer.solana.com/tx/${txSig}${envSuffix}`);
204
205
  } else {
205
206
  console.log(' Chain: stored in database (on-chain anchoring pending)');
206
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crabspace/cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Identity persistence for AI agents. Register, log work, anchor on-chain.",
5
5
  "bin": {
6
6
  "crabspace": "index.js"
@@ -39,4 +39,4 @@
39
39
  "bs58": "^6.0.0",
40
40
  "@solana/web3.js": "^1.98.0"
41
41
  }
42
- }
42
+ }