@cortexkit/opencode-antigravity-auth 3.0.31 → 3.0.32

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.
@@ -5941,7 +5941,7 @@
5941
5941
  "format": "esm"
5942
5942
  },
5943
5943
  "src/common-auth-embedded/routing-accessor/index.js": {
5944
- "bytes": 4904,
5944
+ "bytes": 8194,
5945
5945
  "imports": [
5946
5946
  {
5947
5947
  "path": "src/common-auth-embedded/routing-accessor/handle.js",
@@ -6565,7 +6565,7 @@
6565
6565
  "imports": [],
6566
6566
  "exports": [],
6567
6567
  "inputs": {},
6568
- "bytes": 4834383
6568
+ "bytes": 4838272
6569
6569
  },
6570
6570
  "dist/index.js": {
6571
6571
  "imports": [
@@ -8531,7 +8531,7 @@
8531
8531
  "bytesInOutput": 297
8532
8532
  },
8533
8533
  "src/common-auth-embedded/routing-accessor/index.js": {
8534
- "bytesInOutput": 3269
8534
+ "bytesInOutput": 4265
8535
8535
  },
8536
8536
  "src/plugin/errors.ts": {
8537
8537
  "bytesInOutput": 583
@@ -8582,7 +8582,7 @@
8582
8582
  "bytesInOutput": 0
8583
8583
  }
8584
8584
  },
8585
- "bytes": 2190234
8585
+ "bytes": 2191230
8586
8586
  }
8587
8587
  }
8588
8588
  }
package/dist/server.js CHANGED
@@ -45159,32 +45159,61 @@ function reportRouting(input2) {
45159
45159
  const report = handle.report;
45160
45160
  if (typeof report !== "function")
45161
45161
  return;
45162
- const identity3 = {
45163
- account_id: input2.accountId,
45164
- ...input2.credentialId !== void 0 ? { credential_id: input2.credentialId } : {}
45165
- };
45166
45162
  let payload;
45167
- switch (input2.outcome) {
45168
- case "served":
45169
- payload = { ...identity3, outcome: "served", headers: input2.headers };
45170
- break;
45171
- case "exhausted": {
45172
- const { window, pool } = input2;
45173
- if (window !== "5h" && window !== "7d")
45163
+ if ("kind" in input2) {
45164
+ switch (input2.kind) {
45165
+ case "turn_notes_supported": {
45166
+ const { model, supported } = input2;
45167
+ if (typeof model !== "string" || model.length === 0 || typeof supported !== "boolean")
45168
+ return;
45169
+ payload = {
45170
+ kind: "turn_notes_supported",
45171
+ model,
45172
+ supported
45173
+ };
45174
+ break;
45175
+ }
45176
+ case "turn_note_skipped": {
45177
+ const { after_tool_use_id, reason } = input2;
45178
+ if (typeof after_tool_use_id !== "string" || after_tool_use_id.length === 0 || reason !== "anchor_missing" && reason !== "before_user_message" && reason !== "unsupported_model" && reason !== "not_oauth")
45179
+ return;
45180
+ payload = {
45181
+ kind: "turn_note_skipped",
45182
+ after_tool_use_id,
45183
+ reason
45184
+ };
45185
+ break;
45186
+ }
45187
+ default:
45174
45188
  return;
45175
- if (pool !== void 0 && (typeof pool !== "string" || !/^[a-z0-9._-]{1,64}$/.test(pool)))
45189
+ }
45190
+ } else {
45191
+ const identity3 = {
45192
+ account_id: input2.accountId,
45193
+ ...input2.credentialId !== void 0 ? { credential_id: input2.credentialId } : {}
45194
+ };
45195
+ switch (input2.outcome) {
45196
+ case "served":
45197
+ payload = { ...identity3, outcome: "served", headers: input2.headers };
45198
+ break;
45199
+ case "exhausted": {
45200
+ const { window, pool } = input2;
45201
+ if (window !== "5h" && window !== "7d")
45202
+ return;
45203
+ if (pool !== void 0 && (typeof pool !== "string" || !/^[a-z0-9._-]{1,64}$/.test(pool)))
45204
+ return;
45205
+ payload = {
45206
+ ...identity3,
45207
+ outcome: "exhausted",
45208
+ window,
45209
+ ...pool ? { pool } : {},
45210
+ ...input2.resetsAt !== void 0 ? { resets_at: input2.resetsAt } : {}
45211
+ };
45212
+ break;
45213
+ }
45214
+ default:
45176
45215
  return;
45177
- payload = {
45178
- ...identity3,
45179
- outcome: "exhausted",
45180
- window,
45181
- ...pool ? { pool } : {},
45182
- ...input2.resetsAt !== void 0 ? { resets_at: input2.resetsAt } : {}
45183
- };
45184
- break;
45185
45216
  }
45186
- default:
45187
- return;
45188
45217
  }
45189
45218
  const pending = report.call(handle, payload);
45190
45219
  if (isObject2(pending) && typeof pending.then === "function") {