sella-cli 0.6.0 → 0.6.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 +1 -1
- package/dist/fund.js +2 -2
- package/dist/index.js +4 -4
- package/dist/pairing.js +1 -1
- package/dist/postinstall.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# sella-cli
|
|
2
2
|
|
|
3
|
-
Terminal onboarding for [Sella](https://
|
|
3
|
+
Terminal onboarding for [Sella](https://sellag.vercel.app) — the marketplace where agents buy datasets,
|
|
4
4
|
models, and machine-payable APIs.
|
|
5
5
|
|
|
6
6
|
```bash
|
package/dist/fund.js
CHANGED
|
@@ -2,9 +2,9 @@ import * as fs from 'node:fs';
|
|
|
2
2
|
import * as path from 'node:path';
|
|
3
3
|
import { fetchChainRegistry, chainCapability } from './chains.js';
|
|
4
4
|
function platformOrigin(mcpUrl) {
|
|
5
|
-
return mcpUrl.replace(/\/api\/mcp\/?$/, '') || 'https://
|
|
5
|
+
return mcpUrl.replace(/\/api\/mcp\/?$/, '') || 'https://sellag.vercel.app';
|
|
6
6
|
}
|
|
7
|
-
export function getFundingInfo(env, mcpUrl = 'https://
|
|
7
|
+
export function getFundingInfo(env, mcpUrl = 'https://sellag.vercel.app/api/mcp') {
|
|
8
8
|
const fundingUrl = `${platformOrigin(mcpUrl)}/dashboard/funding`;
|
|
9
9
|
const configPath = path.join(env.home, '.sella-agentwallet', 'config.json');
|
|
10
10
|
let config = null;
|
package/dist/index.js
CHANGED
|
@@ -11,8 +11,8 @@ import { getFundingInfo, annotateFunding } from './fund.js';
|
|
|
11
11
|
import { capabilityLabel } from './chains.js';
|
|
12
12
|
import { defaultIo, Printer } from './output.js';
|
|
13
13
|
import { Ui } from './ui.js';
|
|
14
|
-
const DEFAULT_MCP_URL = 'https://
|
|
15
|
-
const VERSION = '0.6.
|
|
14
|
+
const DEFAULT_MCP_URL = 'https://sellag.vercel.app/api/mcp';
|
|
15
|
+
const VERSION = '0.6.1';
|
|
16
16
|
function parseFlags(argv) {
|
|
17
17
|
const flags = {
|
|
18
18
|
json: false, yes: false, noColor: false, dryRun: false, noKeychain: false,
|
|
@@ -206,7 +206,7 @@ function wizardAsk(ui, ctx) {
|
|
|
206
206
|
async function cmdInit(ctx, flags, printer) {
|
|
207
207
|
const ui = new Ui(ctx.io, { json: flags.json, noColor: flags.noColor, yes: flags.yes });
|
|
208
208
|
const emit = ui.pretty ? uiEmitter(ui, printer) : printer;
|
|
209
|
-
const origin = ctx.mcpUrl.replace(/\/api\/mcp\/?$/, '') || 'https://
|
|
209
|
+
const origin = ctx.mcpUrl.replace(/\/api\/mcp\/?$/, '') || 'https://sellag.vercel.app';
|
|
210
210
|
let host = ctx.mcpUrl;
|
|
211
211
|
try {
|
|
212
212
|
host = new URL(ctx.mcpUrl).host;
|
|
@@ -442,7 +442,7 @@ export async function runCli(argv, io = defaultIo(), env = defaultEnv()) {
|
|
|
442
442
|
}
|
|
443
443
|
case 'publish': {
|
|
444
444
|
const sub = flags.positional[1];
|
|
445
|
-
const origin = ctx.mcpUrl.replace(/\/api\/mcp\/?$/, '') || 'https://
|
|
445
|
+
const origin = ctx.mcpUrl.replace(/\/api\/mcp\/?$/, '') || 'https://sellag.vercel.app';
|
|
446
446
|
if (sub === 'init') {
|
|
447
447
|
const csv = flags.positional.slice(2).find((s) => !s.startsWith('--'));
|
|
448
448
|
if (!csv) {
|
package/dist/pairing.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { claimSetupCode, completeEmailOtp, startEmailOtp } from './api.js';
|
|
2
2
|
import { saveCredentials } from './credentials.js';
|
|
3
3
|
const NO_TTY_HELP = 'Non-interactive run without credentials. Pass --setup-code <SELLA-…>, set SELLA_SETUP_CODE, ' +
|
|
4
|
-
'or run interactively. Mint a code at https://
|
|
4
|
+
'or run interactively. Mint a code at https://sellag.vercel.app/onboarding (Connect your agent).';
|
|
5
5
|
export async function pair(opts) {
|
|
6
6
|
const finish = (payload, method) => {
|
|
7
7
|
if (!payload.ok || !payload.apiKey) {
|
package/dist/postinstall.js
CHANGED
|
@@ -24,7 +24,7 @@ function main() {
|
|
|
24
24
|
'',
|
|
25
25
|
` ${bold(cmd)}`,
|
|
26
26
|
'',
|
|
27
|
-
` ${dim('Docs: https://
|
|
27
|
+
` ${dim('Docs: https://sellag.vercel.app · Try without an account: `' + cmd + ' sandbox "web search"`')}`,
|
|
28
28
|
'',
|
|
29
29
|
].join('\n'));
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sella-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Sella onboarding CLI — install Sella into your agent clients, pair, verify, fund, publish. (`npx sella-cli init`)",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://sellag.vercel.app",
|
|
7
7
|
"repository": { "type": "git", "url": "https://github.com/010100100100011101010100/ogsella", "directory": "cli" },
|
|
8
8
|
"type": "module",
|
|
9
9
|
"bin": { "sella": "./dist/index.js" },
|