@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 +2 -1
- package/dist/cli.js +3 -1
- package/dist/index.js +1 -1
- package/dist/processors.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
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.
|
|
1621
|
+
var VERSION = "0.5.1";
|
|
1620
1622
|
|
|
1621
1623
|
// src/cli.ts
|
|
1622
1624
|
var COMMANDS = {
|
package/dist/index.js
CHANGED
package/dist/processors.d.ts
CHANGED
|
@@ -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