@wairon/cli 5.1.1-dev.22 → 5.1.1-dev.23

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/cli/index.js CHANGED
@@ -65,7 +65,7 @@ var init_defaults = __esm({
65
65
  copilot: ".github/prompts",
66
66
  codex: ".codex/agents"
67
67
  };
68
- WAIRON_VERSION = "5.1.1-dev.22";
68
+ WAIRON_VERSION = "5.1.1-dev.23";
69
69
  GITHUB_REPO = "SYW-Apps/Waffle-AIron";
70
70
  SUPPORTED_ALIASES = ["wai"];
71
71
  SCAN_EXCLUDE_DIRS = /* @__PURE__ */ new Set([
@@ -35297,19 +35297,19 @@ async function completeSsoLogin(cfg, state, code) {
35297
35297
  );
35298
35298
  return token;
35299
35299
  }
35300
- function listIdentityProviders(cfg, credential) {
35300
+ function listProviders(cfg, credential) {
35301
35301
  const principal = requirePrincipal5(cfg, credential);
35302
35302
  requireInstanceProjectAdmin(cfg, principal, "identity-provider administration");
35303
35303
  return listIdentityProviderRecords(cfg.dataDir);
35304
35304
  }
35305
- function upsertIdentityProvider(cfg, credential, config) {
35305
+ function upsertProvider(cfg, credential, config) {
35306
35306
  const principal = requirePrincipal5(cfg, credential);
35307
35307
  requireInstanceProjectAdmin(cfg, principal, "identity-provider administration");
35308
35308
  const stored = upsertIdentityProviderRecord(cfg.dataDir, config);
35309
35309
  tryAppendAudit3(cfg, buildAuditEvent3(principal, "idp.upsert", "security", "auth", { target: stored.id }));
35310
35310
  return stored;
35311
35311
  }
35312
- function removeIdentityProvider(cfg, credential, id) {
35312
+ function removeProvider(cfg, credential, id) {
35313
35313
  const principal = requirePrincipal5(cfg, credential);
35314
35314
  requireInstanceProjectAdmin(cfg, principal, "identity-provider administration");
35315
35315
  removeIdentityProviderRecord(cfg.dataDir, id);
@@ -35364,14 +35364,14 @@ async function handleIdentityRequest(cfg, credential, req, res, body, url) {
35364
35364
  return sendJson(res, 200, { token });
35365
35365
  }
35366
35366
  if (req.method === "GET" && parts.length === 2 && parts[1] === "providers") {
35367
- return sendJson(res, 200, listIdentityProviders(cfg, credential));
35367
+ return sendJson(res, 200, listProviders(cfg, credential));
35368
35368
  }
35369
35369
  if (req.method === "PUT" && parts.length === 3 && parts[1] === "providers") {
35370
35370
  const config = { ...body, id: parts[2] };
35371
- return sendJson(res, 200, upsertIdentityProvider(cfg, credential, config));
35371
+ return sendJson(res, 200, upsertProvider(cfg, credential, config));
35372
35372
  }
35373
35373
  if (req.method === "DELETE" && parts.length === 3 && parts[1] === "providers") {
35374
- removeIdentityProvider(cfg, credential, parts[2]);
35374
+ removeProvider(cfg, credential, parts[2]);
35375
35375
  return sendJson(res, 200, { ok: true });
35376
35376
  }
35377
35377
  if (req.method === "GET" && parts.length === 3 && parts[1] === "audit" && parts[2] === "count") {
@@ -37825,7 +37825,7 @@ function runMirrorSync(cfg, binding) {
37825
37825
  if (published) touchSync(cfg.dataDir, binding.id, (/* @__PURE__ */ new Date()).toISOString());
37826
37826
  return published;
37827
37827
  }
37828
- function syncBackingScope(cfg, credential, bindingId) {
37828
+ function syncScope(cfg, credential, bindingId) {
37829
37829
  const principal = requirePrincipal9(cfg, credential);
37830
37830
  const binding = getBinding(cfg.dataDir, bindingId);
37831
37831
  if (!binding) throw new Error(`Backing binding "${bindingId}" not found.`);
@@ -37949,8 +37949,8 @@ function bindBackingScope(cfg, credential, binding, pat) {
37949
37949
  function unbindBackingScope(cfg, credential, bindingId) {
37950
37950
  unbindScope(cfg, credential, bindingId);
37951
37951
  }
37952
- function syncBackingScope2(cfg, credential, bindingId) {
37953
- return syncBackingScope(cfg, credential, bindingId);
37952
+ function syncBackingScope(cfg, credential, bindingId) {
37953
+ return syncScope(cfg, credential, bindingId);
37954
37954
  }
37955
37955
  function queryAuditEvents3(cfg, credential, query) {
37956
37956
  return queryAuditEvents2(cfg, credential, query);
@@ -38145,14 +38145,14 @@ function upsertUser3(cfg, sessionId, record2) {
38145
38145
  function setUserStatus3(cfg, sessionId, userId, status2) {
38146
38146
  return setUserStatus2(cfg, sessionId, userId, status2);
38147
38147
  }
38148
- function listIdentityProviders2(cfg, sessionId) {
38149
- return listIdentityProviders(cfg, sessionId);
38148
+ function listIdentityProviders(cfg, sessionId) {
38149
+ return listProviders(cfg, sessionId);
38150
38150
  }
38151
- function upsertIdentityProvider2(cfg, sessionId, config) {
38152
- return upsertIdentityProvider(cfg, sessionId, config);
38151
+ function upsertIdentityProvider(cfg, sessionId, config) {
38152
+ return upsertProvider(cfg, sessionId, config);
38153
38153
  }
38154
- function removeIdentityProvider2(cfg, sessionId, id) {
38155
- removeIdentityProvider(cfg, sessionId, id);
38154
+ function removeIdentityProvider(cfg, sessionId, id) {
38155
+ removeProvider(cfg, sessionId, id);
38156
38156
  }
38157
38157
  function mintProjectToken(cfg, sessionId, projectId, write) {
38158
38158
  return mintSelfToken(cfg, sessionId, projectId, write);
@@ -41088,13 +41088,13 @@ function adminGetShareAccessLog(cfg, sessionId, url, res) {
41088
41088
  sendJson(res, 200, { entries: getShareAccessLog(cfg, sessionId, url.searchParams.get("linkId") ?? "", limit) });
41089
41089
  }
41090
41090
  function adminListProviders(cfg, sessionId, res) {
41091
- sendJson(res, 200, { providers: listIdentityProviders2(cfg, sessionId) });
41091
+ sendJson(res, 200, { providers: listIdentityProviders(cfg, sessionId) });
41092
41092
  }
41093
41093
  function adminUpsertProvider(cfg, sessionId, body, res) {
41094
- sendJson(res, 200, upsertIdentityProvider2(cfg, sessionId, body));
41094
+ sendJson(res, 200, upsertIdentityProvider(cfg, sessionId, body));
41095
41095
  }
41096
41096
  function adminRemoveProvider(cfg, sessionId, body, res) {
41097
- removeIdentityProvider2(cfg, sessionId, String(body?.id ?? ""));
41097
+ removeIdentityProvider(cfg, sessionId, String(body?.id ?? ""));
41098
41098
  sendJson(res, 200, { ok: true });
41099
41099
  }
41100
41100
  function mintAgentToken(cfg, sessionId, body, res) {
@@ -41361,7 +41361,7 @@ function opsUnbindGitBacking(cfg, sessionId, body, res) {
41361
41361
  sendJson(res, 200, { ok: true });
41362
41362
  }
41363
41363
  function opsSyncGitBacking(cfg, sessionId, body, res) {
41364
- sendJson(res, 200, { published: syncBackingScope2(cfg, sessionId, String(body?.id ?? "")) });
41364
+ sendJson(res, 200, { published: syncBackingScope(cfg, sessionId, String(body?.id ?? "")) });
41365
41365
  }
41366
41366
  function auditQueryFrom(url) {
41367
41367
  const query = {};