@onesi/genesis-cli 0.2.11 → 0.2.12

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.11 --help
6
+ npx -y @onesi/genesis-cli@0.2.12 --help
7
7
  ```
8
8
 
9
9
  ## First run
@@ -8,6 +8,7 @@ export const HIVES_COVERAGE_COMMANDS = {
8
8
  'flights list': 'hives_list_flights',
9
9
  'flights create': 'hives_create_flight',
10
10
  'flights get': 'hives_get_flight',
11
+ 'flights delete': 'hives_delete_flight',
11
12
  'flights files': 'hives_list_flight_files',
12
13
  'flights read-file': 'hives_read_flight_file',
13
14
  'flights processes': 'hives_list_flight_processes',
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ export function buildProgram(deps = {}) {
47
47
  const auth = { ...authConfig(env, f), sleep: deps.sleep };
48
48
  const program = new Command('genesis')
49
49
  .description('One CLI for every Genesis service.')
50
- .version('0.2.11')
50
+ .version('0.2.12')
51
51
  .option('--json', 'machine-readable JSON output')
52
52
  .option('--api-key <key>', 'use this API key (default: GENESIS_API_KEY, then your `genesis login`)')
53
53
  .option('--base-url <url>', 'gateway URL (default: GENESIS_BASE_URL or https://os.one.ml/api)')
@@ -63,7 +63,7 @@ export function buildProgram(deps = {}) {
63
63
  const opts = {
64
64
  apiKey: o.apiKey ?? env.GENESIS_API_KEY, token: env.GENESIS_TOKEN,
65
65
  baseUrl: o.baseUrl ?? env.GENESIS_BASE_URL, routing: o.direct || env.GENESIS_ROUTING === 'direct' ? 'direct' : 'gateway',
66
- fetch: f, userAgent: 'genesis-cli/0.2.11',
66
+ fetch: f, userAgent: 'genesis-cli/0.2.12',
67
67
  credentials: store ? savedLoginProvider(auth, store) : undefined,
68
68
  };
69
69
  return new Genesis(hivesTransport ? { ...opts, fetch: createHivesNodeTransport(opts, deps.signal) } : opts);
@@ -284,7 +284,7 @@ export function buildProgram(deps = {}) {
284
284
  if (!key)
285
285
  throw new Error('Give the enrollment key with --key-file, --key-stdin or GENESIS_ENROLLMENT_KEY; it is never accepted as an argument.');
286
286
  const body = await readFunctionJson(o.bodyFile, 16 * 1024);
287
- const result = await new Genesis({ baseUrl: g().baseUrl ?? env.GENESIS_BASE_URL, fetch: f, userAgent: 'genesis-cli/0.2.11' }).iam.agents.enroll(key, body);
287
+ const result = await new Genesis({ baseUrl: g().baseUrl ?? env.GENESIS_BASE_URL, fetch: f, userAgent: 'genesis-cli/0.2.12' }).iam.agents.enroll(key, body);
288
288
  emit(result, () => JSON.stringify(result, null, 2));
289
289
  });
290
290
  // ---- auth ------------------------------------------------------------
@@ -836,7 +836,7 @@ export function buildProgram(deps = {}) {
836
836
  const url = `${base.href.replace(/\/+$/, '')}/v1/status`;
837
837
  let response;
838
838
  try {
839
- response = await f(url, { method: 'GET', headers: { accept: 'application/json', 'user-agent': 'genesis-cli/0.2.11' }, signal: AbortSignal.timeout(15_000) });
839
+ response = await f(url, { method: 'GET', headers: { accept: 'application/json', 'user-agent': 'genesis-cli/0.2.12' }, signal: AbortSignal.timeout(15_000) });
840
840
  }
841
841
  catch (e) {
842
842
  throw new Error(`Gateway unreachable at ${safe(url)}: ${safe(e.message)}`);
package/dist/minds.js CHANGED
@@ -65,7 +65,7 @@ export function registerMinds(program, client, emit, agentClient = client, signa
65
65
  emit(await (await client()).minds.memory.insert(id, event));
66
66
  });
67
67
  memory.command('get <mind_id> <storage_id>').action(async (mind, storage) => emit(await (await client()).minds.memory.get(mind, storage)));
68
- memory.command('update <mind_id> <storage_id>').requiredOption('--content-file <path>', 'JSON {event_id,content}; preserves stored metadata, never automatically retries')
68
+ memory.command('update <mind_id> <storage_id>').requiredOption('--content-file <path>', 'JSON {event_id,content}; event_id must equal <storage_id> (the storage UUID insert returned, not the caller event UUID; otherwise 409 EVENT_ID_MISMATCH); preserves stored metadata, never automatically retries')
69
69
  .action(async (mind, storage, options) => {
70
70
  const metadata = await stat(options.contentFile);
71
71
  if (!metadata.isFile() || metadata.size > 65_536)
@@ -263,7 +263,7 @@ class Steps {
263
263
  return { state: 'skipped' };
264
264
  }
265
265
  const token = () => d.login.savedLoginProvider(d.auth, store)().then((t) => t ?? '');
266
- const iam = new Iam(secureUrl(d.env.GENESIS_IAM_URL ?? 'https://iam.l1fe.ai', 'GENESIS_IAM_URL'), d.fetch, token);
266
+ const iam = new Iam(secureUrl(d.env.GENESIS_IAM_URL ?? 'https://iam.one.ml', 'GENESIS_IAM_URL'), d.fetch, token);
267
267
  const orgs = await busy(term, style, 'Finding your organizations', iam.list('/v4/iam/orgs').catch((e) => {
268
268
  this.note(`Your organizations could not be listed (${errorText(e)}); using the one you signed in to.`);
269
269
  return [];
package/dist/products.js CHANGED
@@ -39,9 +39,9 @@ export const PRODUCT_COMMANDS = {
39
39
  'quotas get': 'gateway_getOrgQuotas', 'quotas requests list': 'gateway_listQuotaRequests', 'quotas requests create': 'gateway_createQuotaRequest',
40
40
  'minds-account': 'gateway_getMindsAccount', invoices: 'gateway_listOrgInvoices', 'usage-report': 'gateway_getOrgUsageReport', catalog: 'gateway_listBillingServices',
41
41
  } },
42
- credits: { description: 'Your One credits: balance, ledger, usage, settings, checkout and subscription (login session, or an org API key with genesis.billing.read / .manage). Stripe test mode: checkout opens checkout.stripe.com and nothing is charged until you pay there.', commands: {
43
- balance: 'gateway_getCredits', entries: 'gateway_listCreditEntries', usage: 'gateway_listCreditUsage', settings: 'gateway_updateCreditSettings',
44
- checkout: 'gateway_createCreditCheckout', subscription: 'gateway_changeCreditSubscription', cancel: 'gateway_cancelCreditSubscription',
42
+ credits: { description: 'Your One credits: balance, catalog, ledger, usage, settings, checkout, wallet payment and subscription (login session, or an org API key with genesis.billing.read / .manage). Stripe test mode: checkout opens checkout.stripe.com and nothing is charged until you pay there.', commands: {
43
+ balance: 'gateway_getCredits', catalog: 'gateway_getCreditCatalog', entries: 'gateway_listCreditEntries', usage: 'gateway_listCreditUsage', settings: 'gateway_updateCreditSettings',
44
+ checkout: 'gateway_createCreditCheckout', 'wallet-payment': 'gateway_createCreditWalletPayment', subscription: 'gateway_changeCreditSubscription', cancel: 'gateway_cancelCreditSubscription',
45
45
  } },
46
46
  gears: { description: 'Gears: durable workflows, runs, signals and run lifecycle', commands: {
47
47
  'workflows list': 'gears_listWorkflows', 'workflows get': 'gears_getWorkflow', 'workflows register': 'gears_registerWorkflow',
@@ -126,7 +126,7 @@ export const PRODUCT_COMMANDS = {
126
126
  create: 'brews_createBrew', list: 'brews_listBrews', get: 'brews_getBrew', card: 'brews_getBrewCard', compile: 'brews_compileBrew',
127
127
  run: 'brews_runBrew', eval: 'brews_evalBrew', 'bench run': 'brews_runBrewBench', 'tools call': 'brews_callTool',
128
128
  'exchange public': 'brews_listPublicExchange', 'exchange list': 'brews_listExchange', 'exchange get': 'brews_getExchangeListing',
129
- 'exchange install': 'brews_installBrew',
129
+ 'exchange install': 'brews_installBrew', 'exchange uninstall': 'brews_uninstallBrew', delete: 'brews_deleteBrew',
130
130
  'decisions status': 'brews_getDecisionStatus', 'decisions create': 'brews_createDecision', 'decisions get': 'brews_getDecision',
131
131
  'decisions reconcile': 'brews_reconcileDecision',
132
132
  'selections create': 'brews_createSelection', 'selections get': 'brews_getSelection', 'selections recover': 'brews_recoverSelection',
@@ -144,7 +144,7 @@ export const PRODUCT_COMMANDS = {
144
144
  'trust score': 'flares_getTrustScore', 'trust check': 'flares_checkTrust', 'trust endorsements': 'flares_listEndorsements',
145
145
  'trust endorse': 'flares_createEndorsement', 'trust revoke': 'flares_revokeEndorsement',
146
146
  'choreography workflows list': 'flares_listChoreographyWorkflows', 'choreography workflows create': 'flares_createChoreographyWorkflow',
147
- 'choreography workflows start': 'flares_startChoreographyExecution',
147
+ 'choreography workflows start': 'flares_startChoreographyExecution', 'choreography workflows delete': 'flares_deleteChoreographyWorkflow',
148
148
  'choreography executions list': 'flares_listChoreographyExecutions', 'choreography executions get': 'flares_getChoreographyExecution',
149
149
  'choreography executions complete-step': 'flares_completeChoreographyStep', 'choreography executions fail-step': 'flares_failChoreographyStep',
150
150
  'choreography executions cancel': 'flares_cancelChoreographyExecution',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesi/genesis-cli",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
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.11"
36
+ "@onesi/genesis": "0.2.12"
37
37
  },
38
38
  "optionalDependencies": {
39
39
  "@napi-rs/keyring": "^1.2.0"