@onesi/genesis-cli 0.2.1 → 0.2.2

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
@@ -3,7 +3,7 @@
3
3
  `genesis`, the OneOS command line. It works against the Genesis API at `https://os.one.ml/api`.
4
4
 
5
5
  ```sh
6
- npx -y @onesi/genesis-cli@0.2.1 --help
6
+ npx -y @onesi/genesis-cli@0.2.2 --help
7
7
  ```
8
8
 
9
9
  ## First run
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ export function buildProgram(deps = {}) {
40
40
  const auth = { ...authConfig(env, f), sleep: deps.sleep };
41
41
  const program = new Command('genesis')
42
42
  .description('One CLI for every Genesis service.')
43
- .version('0.2.1')
43
+ .version('0.2.2')
44
44
  .option('--json', 'machine-readable JSON output')
45
45
  .option('--api-key <key>', 'use this API key (default: GENESIS_API_KEY, then your `genesis login`)')
46
46
  .option('--base-url <url>', 'gateway URL (default: GENESIS_BASE_URL or https://os.one.ml/api)')
@@ -56,7 +56,7 @@ export function buildProgram(deps = {}) {
56
56
  const opts = {
57
57
  apiKey: o.apiKey ?? env.GENESIS_API_KEY, token: env.GENESIS_TOKEN,
58
58
  baseUrl: o.baseUrl ?? env.GENESIS_BASE_URL, routing: o.direct || env.GENESIS_ROUTING === 'direct' ? 'direct' : 'gateway',
59
- fetch: f, userAgent: 'genesis-cli/0.2.1',
59
+ fetch: f, userAgent: 'genesis-cli/0.2.2',
60
60
  credentials: store ? savedLoginProvider(auth, store) : undefined,
61
61
  };
62
62
  return new Genesis(hivesTransport ? { ...opts, fetch: createHivesNodeTransport(opts, deps.signal) } : opts);
@@ -277,7 +277,7 @@ export function buildProgram(deps = {}) {
277
277
  if (!key)
278
278
  throw new Error('Give the enrollment key with --key-file, --key-stdin or GENESIS_ENROLLMENT_KEY; it is never accepted as an argument.');
279
279
  const body = await readFunctionJson(o.bodyFile, 16 * 1024);
280
- const result = await new Genesis({ baseUrl: g().baseUrl ?? env.GENESIS_BASE_URL, fetch: f, userAgent: 'genesis-cli/0.2.1' }).iam.agents.enroll(key, body);
280
+ const result = await new Genesis({ baseUrl: g().baseUrl ?? env.GENESIS_BASE_URL, fetch: f, userAgent: 'genesis-cli/0.2.2' }).iam.agents.enroll(key, body);
281
281
  emit(result, () => JSON.stringify(result, null, 2));
282
282
  });
283
283
  // ---- auth ------------------------------------------------------------
@@ -810,7 +810,7 @@ export function buildProgram(deps = {}) {
810
810
  const url = `${base.href.replace(/\/+$/, '')}/v1/status`;
811
811
  let response;
812
812
  try {
813
- response = await f(url, { method: 'GET', headers: { accept: 'application/json', 'user-agent': 'genesis-cli/0.2.1' }, signal: AbortSignal.timeout(15_000) });
813
+ response = await f(url, { method: 'GET', headers: { accept: 'application/json', 'user-agent': 'genesis-cli/0.2.2' }, signal: AbortSignal.timeout(15_000) });
814
814
  }
815
815
  catch (e) {
816
816
  throw new Error(`Gateway unreachable at ${safe(url)}: ${safe(e.message)}`);
package/dist/orgs.js CHANGED
@@ -7,7 +7,7 @@ const MEDIA_TYPES = {
7
7
  '.pdf': 'application/pdf', '.png': 'image/png', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg',
8
8
  '.txt': 'text/plain', '.md': 'text/markdown', '.markdown': 'text/markdown', '.json': 'application/json',
9
9
  };
10
- const DOCUMENT_KINDS = ['articles', 'certificate', 'operating_agreement', 'bylaws', 'resolution', 'filing_receipt', 'tax_letter', 'other'];
10
+ const DOCUMENT_KINDS = ['agent_consent', 'articles', 'certificate', 'operating_agreement', 'bylaws', 'resolution', 'filing_receipt', 'tax_letter', 'other'];
11
11
  const group = (parent, name) => parent.commands.find(c => c.name() === name) ?? parent.command(name);
12
12
  /**
13
13
  * The Orgs commands that are more than one JSON request: uploading a document from a file, downloading
@@ -5,6 +5,7 @@ export const domainsCommands = {
5
5
  'registrar domains get': 'relays_getRegistrarDomain',
6
6
  'domains analyze': 'relays_analyzeDomain',
7
7
  'domains suggest': 'relays_suggestDomains',
8
+ 'domains specials': 'relays_listDomainSpecials',
8
9
  'forwarding list': 'relays_listDomainForwardingRules',
9
10
  'forwarding create': 'relays_createDomainForwardingRule',
10
11
  'forwarding delete': 'relays_deleteDomainForwardingRule',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesi/genesis-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/l1felabs/genesis-api.git",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "commander": "^14.0.0",
35
35
  "undici": "6.29.0",
36
- "@onesi/genesis": "0.2.1"
36
+ "@onesi/genesis": "0.2.2"
37
37
  },
38
38
  "optionalDependencies": {
39
39
  "@napi-rs/keyring": "^1.2.0"