@certalis/agent-smith 0.1.19 → 0.2.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.
@@ -32,7 +32,7 @@
32
32
  }
33
33
  </script>
34
34
 
35
- <link rel="stylesheet" crossorigin href="./chunk-re8nxxzq.css"><script type="module" crossorigin src="./chunk-v15gev12.js"></script></head>
35
+ <link rel="stylesheet" crossorigin href="./chunk-re8nxxzq.css"><script type="module" crossorigin src="./chunk-wzenqdk1.js"></script></head>
36
36
  <body>
37
37
  <div id="root"></div>
38
38
  </body>
@@ -1,7 +1,7 @@
1
1
  {
2
- "/chunk-v15gev12.js": "/chunk-v15gev12.js",
2
+ "/chunk-wzenqdk1.js": "/chunk-wzenqdk1.js",
3
3
  "/index.html": "/index.html",
4
4
  "/chunk-re8nxxzq.css": "/chunk-re8nxxzq.css",
5
- "/chunk-v15gev12.js.map": "/chunk-v15gev12.js.map",
5
+ "/chunk-wzenqdk1.js.map": "/chunk-wzenqdk1.js.map",
6
6
  "/favicon-7fef0tsq.svg": "/favicon-7fef0tsq.svg"
7
7
  }
@@ -99,7 +99,7 @@ function summarizePool({
99
99
  maxUsagePercent: routing.maxUsage * 100,
100
100
  enrollmentUrl: `${origin}/pool-enroll`,
101
101
  emails,
102
- accounts: accounts.map((account) => {
102
+ accounts: accounts.filter((account) => byId.get(account.id)?.provider === "claude-code").map((account) => {
103
103
  const identity = byId.get(account.id);
104
104
  const windows = account.quotaWindows ?? {};
105
105
  return {
@@ -123,7 +123,7 @@ function summarizePool({
123
123
  function readMemberships(dbPath) {
124
124
  const database = new Database(dbPath, { readonly: true });
125
125
  try {
126
- return database.query("SELECT id, account_uuid, auth_method FROM accounts").all();
126
+ return database.query("SELECT id, account_uuid, auth_method, provider FROM accounts").all();
127
127
  } finally {
128
128
  database.close();
129
129
  }
@@ -147,7 +147,7 @@ async function readPoolStatus(options) {
147
147
  };
148
148
  const [{ accounts }, routing, { emails }] = await Promise.all([
149
149
  admin("status"),
150
- admin("config/team-routing"),
150
+ admin("config/providers/claude-code/pool"),
151
151
  admin("enrollment-emails", {})
152
152
  ]);
153
153
  if (!Array.isArray(accounts) || typeof routing.enabled !== "boolean" || !Array.isArray(routing.allowlistedAccountUuids) || !Number.isFinite(routing.maxUsage) || !Array.isArray(emails) || !emails.every((email) => typeof email === "string"))