run402 4.117.1 → 4.117.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.
@@ -124,7 +124,7 @@ export const COMMAND_MANIFEST = [
124
124
  { path: ["credentials", "project-keys", "status"], positionals: [], projectScoped: true, legacyPositionalProject: false, minimalArgs: [] },
125
125
  { path: ["credentials", "project-keys", "import"], positionals: [], projectScoped: true, legacyPositionalProject: false, minimalArgs: ["--service-key-env", "RUN402_GATE_FAKE_SERVICE_KEY"] },
126
126
  { path: ["credentials", "project-keys", "export"], positionals: [], projectScoped: true, legacyPositionalProject: false, minimalArgs: ["--reveal"] },
127
- { path: ["credentials", "project-keys", "remove"], positionals: [], projectScoped: true, legacyPositionalProject: false, minimalArgs: [] },
127
+ { path: ["credentials", "project-keys", "delete"], positionals: [], projectScoped: true, legacyPositionalProject: false, minimalArgs: [] },
128
128
 
129
129
 
130
130
  // ── tier ─────────────────────────────────────────────────────────────────
@@ -238,7 +238,7 @@ export const COMMAND_MANIFEST = [
238
238
  // run against a live node by the gate.
239
239
  { path: ["orgs", "lightning-receiver", "set"], positionals: [p("org_id", { required: false })], projectScoped: false, orgScoped: true, legacyPositionalProject: false, minimalArgs: [GATE_ORG, "--uri", "nostr+walletconnect://" + "ab".repeat(32) + "?relay=wss://relay.example.test&secret=" + "cd".repeat(32)] },
240
240
  { path: ["orgs", "lightning-receiver", "status"], positionals: [p("org_id", { required: false })], projectScoped: false, orgScoped: true, legacyPositionalProject: false, minimalArgs: [GATE_ORG] },
241
- { path: ["orgs", "lightning-receiver", "remove"], positionals: [p("org_id", { required: false })], projectScoped: false, orgScoped: true, legacyPositionalProject: false, minimalArgs: [GATE_ORG] },
241
+ { path: ["orgs", "lightning-receiver", "delete"], positionals: [p("org_id", { required: false })], projectScoped: false, orgScoped: true, legacyPositionalProject: false, minimalArgs: [GATE_ORG] },
242
242
 
243
243
  // ── grants ───────────────────────────────────────────────────────────────
244
244
  { path: ["grants", "create"], positionals: [p("wallet")], projectScoped: true, legacyPositionalProject: true, minimalArgs: ["0x1111111111111111111111111111111111111111", "--capability", "deploy"] },
@@ -73,7 +73,7 @@ Subcommands:
73
73
  import --project <project_id> --service-key-env <env>
74
74
  import --project <project_id> --anon-key-env <env> Rotate only the anon key
75
75
  export --project <project_id> --reveal Print cached keys, including secrets
76
- remove --project <project_id> Remove one cached key entry
76
+ delete --project <project_id> Delete one cached key entry
77
77
 
78
78
  Notes:
79
79
  - This is a LOCAL CACHE surface. It is not project inventory.
@@ -359,12 +359,12 @@ async function exportKey(args) {
359
359
  console.log(JSON.stringify({ project_id: id, ...entry, ...provenance(), revealed: true }, null, 2));
360
360
  }
361
361
 
362
- async function remove(args) {
362
+ async function deleteProjectKeys(args) {
363
363
  const { projectId, rest } = parseProjectKeyFlags(args);
364
364
  if (rest.length > 0) {
365
- fail({ code: "BAD_USAGE", message: `Unexpected argument for project-keys remove: ${rest[0]}` });
365
+ fail({ code: "BAD_USAGE", message: `Unexpected argument for project-keys delete: ${rest[0]}` });
366
366
  }
367
- const id = requireProjectFlag(projectId, "run402 credentials project-keys remove --project <project_id>");
367
+ const id = requireProjectFlag(projectId, "run402 credentials project-keys delete --project <project_id>");
368
368
  const existed = Boolean(getProject(id));
369
369
  removeProject(id, projectCredentialsFile());
370
370
  console.log(JSON.stringify({ project_id: id, removed: existed, ...provenance() }, null, 2));
@@ -384,7 +384,7 @@ async function runProjectKeys(sub, args) {
384
384
  case "status": await status(args); break;
385
385
  case "import": await importKey(args); break;
386
386
  case "export": await exportKey(args); break;
387
- case "remove": await remove(args); break;
387
+ case "delete": await deleteProjectKeys(args); break;
388
388
  default:
389
389
  failUnknownSubcommand("credentials project-keys", sub);
390
390
  }
package/lib/orgs.mjs CHANGED
@@ -24,7 +24,7 @@ Usage:
24
24
  run402 orgs payout-wallet [<org_id>] <wallet_address> (or: --clear to remove the explicit default)
25
25
  run402 orgs lightning-receiver set [<org_id>] <nwc-uri | -> (receive-only NWC pairing; - reads it from stdin)
26
26
  run402 orgs lightning-receiver status [<org_id>]
27
- run402 orgs lightning-receiver remove [<org_id>]
27
+ run402 orgs lightning-receiver delete [<org_id>]
28
28
  run402 orgs slug <slug> [--org <org_id>]
29
29
  run402 orgs adopt [--org <org_id>] [--name <label>]
30
30
  run402 orgs use <org_id>
@@ -64,7 +64,7 @@ Subcommands:
64
64
  unbind Remove the org/room keys from .run402.json
65
65
  payout-wallet Set or clear the tenant route payout wallet (admin+)
66
66
  lightning-receiver The org's receive-only Lightning receiver for routes priced on
67
- lightning (set / status / remove; set and remove are admin+ + step-up)
67
+ lightning (set / status / delete; set and delete are admin+ + step-up)
68
68
  members Manage members (list, add, role, rm) — mutations require owner
69
69
  invite Manage email invites (list, create, rm) — mutations require owner
70
70
  audit Control-plane audit trail for an org (admin+)
@@ -179,7 +179,7 @@ next_actions for PAYOUT_WALLET_REQUIRED / PAYOUT_WALLET_AMBIGUOUS setup.
179
179
  Usage:
180
180
  run402 orgs lightning-receiver set [<org_id>] <nwc-uri | ->
181
181
  run402 orgs lightning-receiver status [<org_id>]
182
- run402 orgs lightning-receiver remove [<org_id>]
182
+ run402 orgs lightning-receiver delete [<org_id>]
183
183
 
184
184
  A route priced on "lightning" / "lightning-testnet" sells for sats over the
185
185
  x402 exact scheme on Bitcoin Lightning, settled to YOUR node: Run402 never
@@ -864,7 +864,7 @@ async function runInvite(args) {
864
864
  }
865
865
 
866
866
  /**
867
- * `run402 orgs lightning-receiver set|status|remove` — the org's receive-only
867
+ * `run402 orgs lightning-receiver set|status|delete` — the org's receive-only
868
868
  * Lightning receiver (tenant-lnbtc-priced-routes). The pairing is a bearer
869
869
  * secret for the org's node: read from the argument or stdin, sent once,
870
870
  * never printed.
@@ -915,20 +915,20 @@ async function runLightningReceiver(args) {
915
915
  return;
916
916
  }
917
917
 
918
- if (lightningReceiverAction === "remove") {
918
+ if (lightningReceiverAction === "delete") {
919
919
  const a = normalizeArgv(rest);
920
920
  assertKnownFlags(a, ["--org", "--help", "-h"], ["--org"]);
921
921
  const { orgId: org, rest: pos } = await takeOrgPositional(a, ["--org"], { cmd: "orgs" });
922
- requireRest(pos, { max: 0, command: "run402 orgs lightning-receiver remove [<org_id>]" });
922
+ requireRest(pos, { max: 0, command: "run402 orgs lightning-receiver delete [<org_id>]" });
923
923
  try {
924
- console.log(JSON.stringify(await getSdk().orgs.lightningReceiver.remove({ orgId: org }), null, 2));
924
+ console.log(JSON.stringify(await getSdk().orgs.lightningReceiver.delete({ orgId: org }), null, 2));
925
925
  } catch (err) {
926
926
  reportSdkError(err);
927
927
  }
928
928
  return;
929
929
  }
930
930
 
931
- fail({ code: "BAD_USAGE", message: `Unknown 'orgs lightning-receiver' action: ${lightningReceiverAction}. Try set | status | remove.` });
931
+ fail({ code: "BAD_USAGE", message: `Unknown 'orgs lightning-receiver' action: ${lightningReceiverAction}. Try set | status | delete.` });
932
932
  }
933
933
 
934
934
  export async function run(sub, args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run402",
3
- "version": "4.117.1",
3
+ "version": "4.117.2",
4
4
  "description": "CLI for Run402 — full-stack backend infrastructure for AI agents: Postgres, auth, storage, serverless functions and atomic deploys. Paid with x402/MPP. Includes $0.03 image generation.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -112,6 +112,6 @@ export declare class ProjectKeysCache {
112
112
  status(projectId: string): Promise<ProjectKeyCacheStatus>;
113
113
  import(projectId: string, opts: ProjectKeyCacheImportOptions): Promise<ProjectKeyCacheMutationResult>;
114
114
  export(projectId: string, opts?: ProjectKeyCacheExportOptions): Promise<ProjectKeyCacheExportResult>;
115
- remove(projectId: string): Promise<ProjectKeyCacheMutationResult>;
115
+ delete(projectId: string): Promise<ProjectKeyCacheMutationResult>;
116
116
  }
117
117
  //# sourceMappingURL=credentials.d.ts.map
@@ -207,7 +207,7 @@ export class ProjectKeysCache {
207
207
  revealed: true,
208
208
  };
209
209
  }
210
- async remove(projectId) {
210
+ async delete(projectId) {
211
211
  if (!this.client.credentials.removeProject) {
212
212
  throw unsupported("removing local project keys", "removeProject");
213
213
  }
@@ -281,8 +281,8 @@ export declare class OrgLightningReceiver {
281
281
  get(input: {
282
282
  orgId: string;
283
283
  }): Promise<LightningReceiver>;
284
- /** Remove the receiver (`DELETE …/lightning-receiver`); admin/owner plus step-up. Warns about releases still priced on Lightning. */
285
- remove(input: {
284
+ /** Delete the receiver (`DELETE …/lightning-receiver`); admin/owner plus step-up. Warns about releases still priced on Lightning. */
285
+ delete(input: {
286
286
  orgId: string;
287
287
  }): Promise<LightningReceiverRemoved>;
288
288
  }
@@ -328,10 +328,10 @@ export class OrgLightningReceiver {
328
328
  context: "reading org Lightning receiver",
329
329
  });
330
330
  }
331
- /** Remove the receiver (`DELETE …/lightning-receiver`); admin/owner plus step-up. Warns about releases still priced on Lightning. */
332
- async remove(input) {
331
+ /** Delete the receiver (`DELETE …/lightning-receiver`); admin/owner plus step-up. Warns about releases still priced on Lightning. */
332
+ async delete(input) {
333
333
  if (!input?.orgId)
334
- throw new LocalError("orgs.lightningReceiver.remove requires { orgId }", "removing org Lightning receiver");
334
+ throw new LocalError("orgs.lightningReceiver.delete requires { orgId }", "deleting org Lightning receiver");
335
335
  return this.client.request(`/orgs/v1/${encodeURIComponent(input.orgId)}/lightning-receiver`, {
336
336
  method: "DELETE",
337
337
  context: "removing org Lightning receiver",
@@ -1,5 +1,5 @@
1
1
  {
2
- "surface_version": "4.117.1",
2
+ "surface_version": "4.117.2",
3
3
  "verbs": [
4
4
  "repos create",
5
5
  "repos list",