@dragonmastery/tamer 0.38.0 → 0.39.0

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/dist/tamer.mjs CHANGED
@@ -8961,36 +8961,6 @@ async function main() {
8961
8961
  case "doctor":
8962
8962
  exitStatus = await import("./doctor-fm_vGe2C.mjs").then((m) => m.runDoctor(parseDoctorArgs(rest)));
8963
8963
  break;
8964
- case "provision-tenant": {
8965
- const p = parseProvisionTenantArgs(rest);
8966
- await import("./provision-tenant-B4VgWlbl.mjs").then((m) => m.runProvisionTenant({
8967
- env: p.env,
8968
- product: p.product,
8969
- workspace: p.workspace,
8970
- main: p.main,
8971
- artifactKey: p.artifactKey,
8972
- moduleName: p.moduleName,
8973
- configPath: p.configPath,
8974
- compatibilityDate: p.compatibilityDate,
8975
- compatibilityFlags: p.compatibilityFlags,
8976
- shardsRaw: p.shardsRaw,
8977
- json: p.json
8978
- }));
8979
- break;
8980
- }
8981
- case "destroy-tenant": {
8982
- const t = parseDestroyTenantArgs(rest);
8983
- await import("./destroy-tenant-B9ZTeUDk.mjs").then((m) => m.runDestroyTenant({
8984
- env: t.env,
8985
- product: t.product,
8986
- workspace: t.workspace,
8987
- force: t.force,
8988
- confirmTenant: t.confirmTenant,
8989
- configPath: t.configPath,
8990
- json: t.json
8991
- }));
8992
- break;
8993
- }
8994
8964
  case "destroy": {
8995
8965
  const d = parseDestroyArgs(rest);
8996
8966
  await import("./destroy-BeOYY2U6.mjs").then((m) => m.runDestroy({
@@ -9017,37 +8987,43 @@ async function main() {
9017
8987
  await runWfpDelete(parseWfpDeleteArgs(wfpRest));
9018
8988
  break;
9019
8989
  }
9020
- console.error("usage:\n tamer wfp put --namespace <n> --script-name <s> --main <file> [--compatibility-date <d>] [--compat-flags a,b] [--config <path>]\n tamer wfp delete --namespace <n> --script-name <s> [--force] [--config <path>]");
8990
+ if (sub === "tenant") {
8991
+ const tenantSub = wfpRest[0];
8992
+ const tenantRest = wfpRest.slice(1);
8993
+ if (tenantSub === "list") {
8994
+ await import("./tenant-0dRh3gLI.mjs").then((m) => m.runTenantList({
8995
+ env: parseStringFlag(wfpRest, "--env"),
8996
+ configPath: parseStringFlag(wfpRest, "--config"),
8997
+ json: wfpRest.includes("--json")
8998
+ }));
8999
+ break;
9000
+ }
9001
+ if (tenantSub === "status") {
9002
+ await import("./tenant-0dRh3gLI.mjs").then((m) => m.runTenantStatus({
9003
+ env: parseStringFlag(wfpRest, "--env"),
9004
+ product: parseStringFlag(wfpRest, "--product") ?? "",
9005
+ workspace: parseStringFlag(wfpRest, "--workspace") ?? "",
9006
+ configPath: parseStringFlag(wfpRest, "--config")
9007
+ }));
9008
+ break;
9009
+ }
9010
+ if (tenantSub === "provision") {
9011
+ await import("./provision-tenant-B4VgWlbl.mjs").then((m) => m.runProvisionTenant(parseProvisionTenantArgs(tenantRest)));
9012
+ break;
9013
+ }
9014
+ if (tenantSub === "destroy") {
9015
+ await import("./destroy-tenant-B9ZTeUDk.mjs").then((m) => m.runDestroyTenant(parseDestroyTenantArgs(tenantRest)));
9016
+ break;
9017
+ }
9018
+ console.error("Usage: tamer wfp tenant <list|status|provision|destroy> [options]");
9019
+ process.exit(1);
9020
+ }
9021
+ console.error("usage:\n tamer wfp put --namespace <n> --script-name <s> --main <file> [--config <path>]\n tamer wfp delete --namespace <n> --script-name <s> [--force] [--config <path>]\n tamer wfp tenant <list|status|provision|destroy> [options]");
9021
9022
  process.exit(1);
9022
9023
  }
9023
9024
  case "secrets":
9024
9025
  exitStatus = await import("./secrets-CnzjvndT.mjs").then((m) => m.runSecrets(rest));
9025
9026
  break;
9026
- case "tenant":
9027
- if (rest[0] === "list") await import("./tenant-0dRh3gLI.mjs").then((m) => m.runTenantList({
9028
- env: parseStringFlag(rest, "--env"),
9029
- configPath: parseStringFlag(rest, "--config"),
9030
- json: rest.includes("--json")
9031
- }));
9032
- else if (rest[0] === "status") await import("./tenant-0dRh3gLI.mjs").then((m) => m.runTenantStatus({
9033
- env: parseStringFlag(rest, "--env"),
9034
- product: parseStringFlag(rest, "--product") ?? "",
9035
- workspace: parseStringFlag(rest, "--workspace") ?? "",
9036
- configPath: parseStringFlag(rest, "--config")
9037
- }));
9038
- else if (rest[0] === "provision") await import("./provision-tenant-B4VgWlbl.mjs").then((m) => m.runProvisionTenant(parseProvisionTenantArgs(rest.slice(1))));
9039
- else if (rest[0] === "destroy") await import("./destroy-tenant-B9ZTeUDk.mjs").then((m) => m.runDestroyTenant(parseDestroyTenantArgs(rest.slice(1))));
9040
- else {
9041
- console.error("Usage: tamer tenant <list|status|provision|destroy> [options]");
9042
- exitStatus = 1;
9043
- }
9044
- break;
9045
- case "provision-tenant":
9046
- await import("./provision-tenant-B4VgWlbl.mjs").then((m) => m.runProvisionTenant(parseProvisionTenantArgs(rest)));
9047
- break;
9048
- case "destroy-tenant":
9049
- await import("./destroy-tenant-B9ZTeUDk.mjs").then((m) => m.runDestroyTenant(parseDestroyTenantArgs(rest)));
9050
- break;
9051
9027
  case "env":
9052
9028
  if (rest[0] === "list") await import("./env-list-DhbYisDn.mjs").then((m) => m.runEnvList({
9053
9029
  configPath: parseStringFlag(rest, "--config"),
@@ -9088,15 +9064,13 @@ Commands:
9088
9064
  plan CloudFormation-style preview of apply+deploy (read-only)
9089
9065
  import Register an existing Cloudflare resource into Tamer state by logical name
9090
9066
  doctor Verify CLOUDFLARE_* credentials can read the account API
9091
- provision-tenant Runtime: create per-tenant D1 shards declared in tenant.d1Shards + upload dispatch script (--main or --artifact-key); --shards a,b trims to a subset of the configured layout (omit for all); --json emits machine-readable result for Cloudflare Container callers
9092
- destroy-tenant Runtime: remove tenant script + D1 + state (shared envs need --confirm-tenant); --json emits machine-readable result
9093
9067
  destroy Delete all resources for an env (use with caution)
9094
- tenant Manage WFP tenants: list, status, provision, destroy
9095
9068
  env list List all environments from state (with ages and resource counts)
9096
9069
  env gc Destroy ephemeral envs older than --max-age (default 72h; --dry-run, --force, --json)
9097
- secrets Encrypted secrets vault (init, set, load, get, list, rm, verify, push)
9098
9070
  wfp put Upload a single-module user Worker to a dispatch namespace (multipart API)
9099
9071
  wfp delete Delete a user Worker from a dispatch namespace
9072
+ wfp tenant <list|status|provision|destroy> Manage WFP tenants (per-workspace scripts + D1 shards)
9073
+ secrets Encrypted secrets vault (init, set, load, copy, get, list, rm, verify, push)
9100
9074
 
9101
9075
  Options:
9102
9076
  --env <name> Environment (default: local for most commands; deploy requires explicit --env)