@singularity-layer/cli 0.5.0 → 0.5.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/README.md CHANGED
@@ -14,7 +14,8 @@ account and no dashboard login — your wallet *is* the account.
14
14
 
15
15
  A Processor is a loop you write; we host it, run it on demand, and buyers pay **you** directly per
16
16
  call. There is no platform cut and we never custody your money: an x402 payment is a USDC transfer
17
- from the buyer's wallet to yours.
17
+ from the buyer's wallet to yours. Buyers pay with the x402 `X-Payment` header (v1) or, where the 402
18
+ also carries a `PAYMENT-REQUIRED` header, `PAYMENT-SIGNATURE` (v2); it is the same transfer either way.
18
19
 
19
20
  ```bash
20
21
  mkdir my-loop && cd my-loop
package/dist/cli.js CHANGED
@@ -432,6 +432,8 @@ to processor.json:
432
432
  }
433
433
 
434
434
  One price_usd covers all three (every asset is 6-decimal), and buyers pick a chain from the 402.
435
+ Buyers pay with x402: X-Payment (v1) or, when the 402 also carries a PAYMENT-REQUIRED header,
436
+ PAYMENT-SIGNATURE (v2). The signed payment is the same USDC transfer either way.
435
437
  Name only the chains you want: a chain you leave out is never offered. Check each address twice \u2014
436
438
  a payment cannot be reversed.`;
437
439
  var PAYOUT_CHAINS = ["solana", "base", "robinhood"];
@@ -1616,7 +1618,7 @@ function looksLikeRef(s) {
1616
1618
  }
1617
1619
 
1618
1620
  // src/version.ts
1619
- var VERSION = "0.5.0";
1621
+ var VERSION = "0.5.1";
1620
1622
 
1621
1623
  // src/cli.ts
1622
1624
  var COMMANDS = {
package/dist/index.js CHANGED
@@ -306,7 +306,7 @@ function coerce(raw, type) {
306
306
  }
307
307
 
308
308
  // src/version.ts
309
- var VERSION = "0.5.0";
309
+ var VERSION = "0.5.1";
310
310
  export {
311
311
  MAX_BUNDLE_BYTES,
312
312
  VERSION,
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { type Flags } from './auth.js';
9
9
  export declare function resolveBase(flags: Flags): string;
10
- export declare const HELP = "singularity processors \u2014 deploy loops we host and run\n\n init [slug] scaffold processor.json + processor.js here\n configure interactive setup: keypair, defaults\n deploy create it (prints the invoke token ONCE)\n update push new code or manifest\n run '{\"n\":10}' invoke and print the output\n run --get '{\"n\":10}' invoke over GET (for methods: [\"GET\"] processors)\n call -i invoke interactively, prompted per input field\n schema [slug] the input/output schema buyers and agents see\n list your processors\n search [query] the public catalogue\n logs [slug] recent runs and failure rate\n logs --follow stream new runs as they happen\n revenue sales and compute spend across everything you own\n earnings [slug] the same, for one processor\n env list | unset KEY which secrets are set; clear one\n secrets KEY=value ... set secret values (KEY= also clears)\n pause | resume stop or restart traffic, keeping the slug\n publish | unpublish list or unlist publicly (instant, no review)\n rotate new invoke token, the old one stops working\n delete --yes soft delete (the slug is never reusable)\n\n --keypair <path> defaults to ~/.config/solana/id.json\n --slug <slug> when not run from a processor directory\n --json machine-readable output, for scripts and agents\n --bundle bundle with esbuild: imports and npm packages\n --entry <file> bundle entry (default: the manifest's $code)\n\nGetting paid. Buyers pay YOU directly \u2014 we never hold the money and take no cut. By default that\nis USDC on Solana at your signing wallet. To be paid on more than one chain, add a \"payout\" block\nto processor.json:\n\n \"payout\": {\n \"solana\": \"<base58 wallet>\", USDC\n \"base\": \"0x\u2026\", USDC\n \"robinhood\": \"0x\u2026\" USDG on Robinhood Chain\n }\n\nOne price_usd covers all three (every asset is 6-decimal), and buyers pick a chain from the 402.\nName only the chains you want: a chain you leave out is never offered. Check each address twice \u2014\na payment cannot be reversed.";
10
+ export declare const HELP = "singularity processors \u2014 deploy loops we host and run\n\n init [slug] scaffold processor.json + processor.js here\n configure interactive setup: keypair, defaults\n deploy create it (prints the invoke token ONCE)\n update push new code or manifest\n run '{\"n\":10}' invoke and print the output\n run --get '{\"n\":10}' invoke over GET (for methods: [\"GET\"] processors)\n call -i invoke interactively, prompted per input field\n schema [slug] the input/output schema buyers and agents see\n list your processors\n search [query] the public catalogue\n logs [slug] recent runs and failure rate\n logs --follow stream new runs as they happen\n revenue sales and compute spend across everything you own\n earnings [slug] the same, for one processor\n env list | unset KEY which secrets are set; clear one\n secrets KEY=value ... set secret values (KEY= also clears)\n pause | resume stop or restart traffic, keeping the slug\n publish | unpublish list or unlist publicly (instant, no review)\n rotate new invoke token, the old one stops working\n delete --yes soft delete (the slug is never reusable)\n\n --keypair <path> defaults to ~/.config/solana/id.json\n --slug <slug> when not run from a processor directory\n --json machine-readable output, for scripts and agents\n --bundle bundle with esbuild: imports and npm packages\n --entry <file> bundle entry (default: the manifest's $code)\n\nGetting paid. Buyers pay YOU directly \u2014 we never hold the money and take no cut. By default that\nis USDC on Solana at your signing wallet. To be paid on more than one chain, add a \"payout\" block\nto processor.json:\n\n \"payout\": {\n \"solana\": \"<base58 wallet>\", USDC\n \"base\": \"0x\u2026\", USDC\n \"robinhood\": \"0x\u2026\" USDG on Robinhood Chain\n }\n\nOne price_usd covers all three (every asset is 6-decimal), and buyers pick a chain from the 402.\nBuyers pay with x402: X-Payment (v1) or, when the 402 also carries a PAYMENT-REQUIRED header,\nPAYMENT-SIGNATURE (v2). The signed payment is the same USDC transfer either way.\nName only the chains you want: a chain you leave out is never offered. Check each address twice \u2014\na payment cannot be reversed.";
11
11
  /**
12
12
  * The chains a buyer can pay on. USDC on Solana and Base, USDG on Robinhood Chain — all three are
13
13
  * 6-decimal stablecoins, so ONE `price_usd` is the price everywhere with no conversion.
package/dist/version.d.ts CHANGED
@@ -8,4 +8,4 @@
8
8
  *
9
9
  * Kept in sync with package.json by the release workflow, which is the only thing that bumps either.
10
10
  */
11
- export declare const VERSION = "0.5.0";
11
+ export declare const VERSION = "0.5.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularity-layer/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Singularity developer CLI \u2014 deploy paid endpoints (Processors) on the Singularity Cloud Network",
5
5
  "type": "module",
6
6
  "bin": {