@cartanova/qgrid-cli 2.12.0 → 2.13.1

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.
Files changed (192) hide show
  1. package/README.ko.md +1 -1
  2. package/README.md +1 -1
  3. package/bundle/dist/_virtual/{_@oxc-project_runtime@0.140.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/decorate.js +1 -1
  4. package/bundle/dist/_virtual/{_@oxc-project_runtime@0.140.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/decorateMetadata.js +1 -1
  5. package/bundle/dist/_virtual/_rolldown/runtime.js +2 -2
  6. package/bundle/dist/application/monit/monit.frame.js +2 -2
  7. package/bundle/dist/application/qgrid/qgrid-run-lifecycle.js +3 -3
  8. package/bundle/dist/application/qgrid/qgrid.dispatcher.js +1 -1
  9. package/bundle/dist/application/qgrid/qgrid.frame.js +6 -6
  10. package/bundle/dist/application/qgrid/qgrid.types.js +8 -8
  11. package/bundle/dist/application/qgrid/token-death.js +3 -2
  12. package/bundle/dist/application/qgrid/token-subscriber.js +2 -2
  13. package/bundle/dist/application/qgrid/token-window-keepalive.js +2 -2
  14. package/bundle/dist/application/qgrid/tool-emulation-schema.js +5 -3
  15. package/bundle/dist/application/qgrid/tool-emulation.js +2 -2
  16. package/bundle/dist/application/request-log/request-log.model.js +9 -7
  17. package/bundle/dist/application/request-log-step/request-log-step.model.js +11 -7
  18. package/bundle/dist/application/setting/setting.model.js +11 -7
  19. package/bundle/dist/application/token/token.model.js +15 -11
  20. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js +1 -1
  21. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +1 -1
  22. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +1 -1
  23. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +1 -1
  24. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +1 -1
  25. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +1 -1
  26. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +1 -1
  27. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +1 -1
  28. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +7 -5
  29. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +1 -1
  30. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +1 -1
  31. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +1 -1
  32. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +1 -1
  33. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +1 -1
  34. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +1 -1
  35. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +1 -1
  36. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +1 -1
  37. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +1 -1
  38. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +1 -1
  39. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +1 -1
  40. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +1 -1
  41. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.js +1 -1
  42. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.js +1 -1
  43. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.js +1 -1
  44. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.js +1 -1
  45. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.js +1 -1
  46. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.js +1 -1
  47. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.js +1 -1
  48. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.js +1 -1
  49. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +1 -1
  50. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +1 -1
  51. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +1 -1
  52. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +1 -1
  53. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +1 -1
  54. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +1 -1
  55. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +1 -1
  56. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +1 -1
  57. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +1 -1
  58. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +1 -1
  59. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +1 -1
  60. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +1 -1
  61. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
  62. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +1 -1
  63. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +1 -1
  64. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +1 -1
  65. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +1 -1
  66. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +1 -1
  67. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +1 -1
  68. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +1 -1
  69. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +1 -1
  70. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +1 -1
  71. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +1 -1
  72. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +1 -1
  73. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
  74. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +15 -11
  75. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +1 -1
  76. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +1 -1
  77. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js +1 -1
  78. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +1 -1
  79. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +1 -1
  80. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js +1 -1
  81. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +1 -1
  82. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +1 -1
  83. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +1 -1
  84. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
  85. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +1 -1
  86. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js +1 -1
  87. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js +1 -1
  88. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +1 -1
  89. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +1 -1
  90. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +1 -1
  91. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +1 -1
  92. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +1 -1
  93. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
  94. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js +1 -1
  95. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +1 -1
  96. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +1 -1
  97. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +1 -1
  98. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +1 -1
  99. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +1 -1
  100. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +1 -1
  101. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +1 -1
  102. package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +1 -1
  103. package/bundle/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +1 -1
  104. package/bundle/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +18 -12
  105. package/bundle/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +1 -1
  106. package/bundle/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +16 -13
  107. package/bundle/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +1 -1
  108. package/bundle/dist/sonamu.config.js +11 -11
  109. package/bundle/dist/startup-migrations.js +1 -1
  110. package/bundle/dist/utils/providers/anthropic/anthropic-dispatcher.js +3 -2
  111. package/bundle/dist/utils/providers/anthropic/anthropic-thinking.js +5 -2
  112. package/bundle/dist/utils/providers/anthropic/stream-json-adapter.js +9 -7
  113. package/bundle/dist/utils/providers/common/model-cost.js +7 -5
  114. package/bundle/dist/utils/providers/common/schema-validation.js +3 -3
  115. package/bundle/dist/utils/providers/grok/grok-constants.js +1 -1
  116. package/bundle/dist/utils/providers/grok/grok-dispatcher.js +5 -3
  117. package/bundle/dist/utils/providers/grok/grok-media-client.js +4 -4
  118. package/bundle/dist/utils/providers/grok/grok-oauth.js +2 -2
  119. package/bundle/dist/utils/providers/openai/openai-dispatcher.js +8 -6
  120. package/bundle/dist/utils/providers/openai/openai-image-generation.js +4 -4
  121. package/bundle/src/application/qgrid/qgrid.frame.test.ts +3 -2
  122. package/bundle/src/application/qgrid/qgrid.types.ts +5 -5
  123. package/bundle/src/application/request-log/request-log.model.ts +1 -1
  124. package/bundle/src/sonamu.config.ts +14 -14
  125. package/bundle/src/utils/providers/common/model-cost.ts +8 -6
  126. package/bundle/src/utils/providers/grok/grok-constants.ts +7 -8
  127. package/bundle/web-dist/client/assets/clsx-DB0hHKMi.js +1 -0
  128. package/bundle/web-dist/client/assets/cost-CZzlCFS2.js +1 -0
  129. package/bundle/web-dist/client/assets/index-DLo1QCw7.css +1 -0
  130. package/bundle/web-dist/client/assets/index-DplV-wqZ.js +104 -0
  131. package/bundle/web-dist/client/assets/logs-st46aRba.js +1 -0
  132. package/bundle/web-dist/client/assets/monit-BMXR2tY2.js +1 -0
  133. package/bundle/web-dist/client/assets/plus-Bab0ACnC.js +1 -0
  134. package/bundle/web-dist/client/assets/refresh-cw-BtYoFHVw.js +1 -0
  135. package/bundle/web-dist/client/assets/request-model-Dl31cZdf.js +1 -0
  136. package/bundle/web-dist/client/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  137. package/bundle/web-dist/client/assets/routes-BWPjgvhg.js +5 -0
  138. package/bundle/web-dist/client/assets/settings-DTXZjDAw.js +1 -0
  139. package/bundle/web-dist/client/assets/show-CdWNFPyS.js +2 -0
  140. package/bundle/web-dist/client/assets/tokens-eA34Gw5f.js +1 -0
  141. package/bundle/web-dist/client/assets/use-oauth-login-flow-CcUdLsa7.js +1 -0
  142. package/bundle/web-dist/client/assets/use-update-token-mutation-D2r5K5Bz.js +1 -0
  143. package/bundle/web-dist/client/assets/vendor-react-8xo7RSum.js +9 -0
  144. package/bundle/web-dist/client/assets/vendor-tanstack-6B86itGS.js +2 -0
  145. package/bundle/web-dist/client/index.html +5 -7
  146. package/bundle/web-dist/server/assets/{logs-B5M5B7pN.js → logs-C0md5rmp.js} +48 -36
  147. package/bundle/web-dist/server/assets/monit-YVvwJuAF.js +479 -0
  148. package/bundle/web-dist/server/assets/plus-z5Hy__3C.js +26 -0
  149. package/bundle/web-dist/server/assets/refresh-cw-CNm0CERy.js +30 -0
  150. package/bundle/web-dist/server/assets/{request-model-Cp6h5EuP.js → request-model-DIuPZZwu.js} +14 -7
  151. package/bundle/web-dist/server/assets/{routes-rIXpkI-t.js → routes-CjWxvHAO.js} +1741 -1101
  152. package/bundle/web-dist/server/assets/{services.generated-CMJ8AHbO.js → services.generated-CqS8DCjT.js} +11973 -6081
  153. package/bundle/web-dist/server/assets/{settings-_MoaFGxj.js → settings-CXwnKiMG.js} +40 -19
  154. package/bundle/web-dist/server/assets/{show-Cfm9UeDr.js → show-G1t8dOEh.js} +268 -213
  155. package/bundle/web-dist/server/assets/{tokens-DMSHDg9D.js → tokens-C4D67FBX.js} +41 -18
  156. package/bundle/web-dist/server/assets/{use-oauth-login-flow-jkAkT3X6.js → use-oauth-login-flow-CFzShQtp.js} +1569 -38
  157. package/bundle/web-dist/server/assets/{use-update-token-mutation-Sm6kh02m.js → use-update-token-mutation-oH0O0n-g.js} +1 -1
  158. package/bundle/web-dist/server/entry-server.generated.js +11595 -5045
  159. package/dist/cli.js +20 -11
  160. package/package.json +24 -24
  161. package/skills/qgrid/references/ai-sdk-provider-contract.md +4 -4
  162. package/skills/qgrid/references/decision-rationale.md +3 -0
  163. package/skills/qgrid/references/repo-map.md +1 -1
  164. package/skills/qgrid/references/request-log-run-lifecycle.md +1 -1
  165. package/skills/qgrid/references/tool-calling-and-multiturn.md +2 -2
  166. package/bundle/web-dist/client/assets/clsx-5XM_pHvN.js +0 -1
  167. package/bundle/web-dist/client/assets/cost-DB3HbU7T.js +0 -1
  168. package/bundle/web-dist/client/assets/index-Be2qCZmI.css +0 -1
  169. package/bundle/web-dist/client/assets/index-CK9LwGNV.js +0 -32
  170. package/bundle/web-dist/client/assets/logs-DjQcEivP.js +0 -1
  171. package/bundle/web-dist/client/assets/monit-RTxpU7oZ.js +0 -1
  172. package/bundle/web-dist/client/assets/plus-DDvVTvQP.js +0 -1
  173. package/bundle/web-dist/client/assets/preload-helper-DWTEM3RW.js +0 -1
  174. package/bundle/web-dist/client/assets/refresh-cw-CTQsNddA.js +0 -1
  175. package/bundle/web-dist/client/assets/request-model-DliRuPcw.js +0 -1
  176. package/bundle/web-dist/client/assets/rolldown-runtime-Dw2cE7zH.js +0 -1
  177. package/bundle/web-dist/client/assets/routes-DVHoo-YF.js +0 -5
  178. package/bundle/web-dist/client/assets/services.generated-B5lc3aIC.js +0 -51
  179. package/bundle/web-dist/client/assets/settings-BQUz6UFr.js +0 -1
  180. package/bundle/web-dist/client/assets/show-CalQG1Ew.js +0 -2
  181. package/bundle/web-dist/client/assets/tokens-DU4fWXI9.js +0 -1
  182. package/bundle/web-dist/client/assets/use-oauth-login-flow-BfxYI4Oh.js +0 -1
  183. package/bundle/web-dist/client/assets/use-update-token-mutation-qKBC2sn7.js +0 -1
  184. package/bundle/web-dist/client/assets/vendor-react-DH4kUfK2.js +0 -9
  185. package/bundle/web-dist/client/assets/vendor-tanstack-DRPs09ai.js +0 -1
  186. package/bundle/web-dist/server/assets/lazyRouteComponent-AKiHfZWp.js +0 -1983
  187. package/bundle/web-dist/server/assets/monit-p6JM8MMl.js +0 -1652
  188. package/bundle/web-dist/server/assets/plus-I0FfLVgU.js +0 -19
  189. package/bundle/web-dist/server/assets/react-dom-Cv23mm1K.js +0 -335
  190. package/bundle/web-dist/server/assets/refresh-cw-DYsnffRC.js +0 -23
  191. /package/bundle/web-dist/server/assets/{clsx-D_N5PN_2.js → clsx-DgIEfj3H.js} +0 -0
  192. /package/bundle/web-dist/server/assets/{cost-BC9yzyA9.js → cost-oNK0T4Jo.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { $ as __toESM, M as require_jsx_runtime, N as require_react, j as useQueryClient, n as QgridService, o as TokenService } from "./services.generated-CMJ8AHbO.js";
2
- import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry } from "./use-oauth-login-flow-jkAkT3X6.js";
3
- import { u as lucideKeyRound } from "../entry-server.generated.js";
4
- import { t as useUpdateTokenMutation } from "./use-update-token-mutation-Sm6kh02m.js";
5
- import { t as lucidePlus } from "./plus-I0FfLVgU.js";
1
+ import { J as require_react, K as useQueryClient, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime } from "./services.generated-CqS8DCjT.js";
2
+ import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry } from "./use-oauth-login-flow-CFzShQtp.js";
3
+ import { l as ForwardRef$2 } from "../entry-server.generated.js";
4
+ import { t as useUpdateTokenMutation } from "./use-update-token-mutation-oH0O0n-g.js";
5
+ import { t as ForwardRef$3 } from "./plus-z5Hy__3C.js";
6
6
  //#region src/components/qgrid/DeviceCodeEntry.tsx
7
7
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
8
8
  var import_jsx_runtime = require_jsx_runtime();
@@ -123,7 +123,7 @@ function AddTokenProviderOptions({ disabled, loadingProvider, onStart, onStartGr
123
123
  className: "w-full py-2.5 text-sm font-medium rounded-md bg-sand-900 text-white hover:bg-sand-800 disabled:opacity-50 transition-colors duration-150 flex items-center justify-center gap-2",
124
124
  disabled,
125
125
  onClick: () => onStart("openai"),
126
- children: loadingProvider === "openai" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { light: true }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucideKeyRound, { className: "size-4" }), "Login with OpenAI"] })
126
+ children: loadingProvider === "openai" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { light: true }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$2, { className: "size-4" }), "Login with OpenAI"] })
127
127
  }),
128
128
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OrDivider, {}),
129
129
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
@@ -131,7 +131,7 @@ function AddTokenProviderOptions({ disabled, loadingProvider, onStart, onStartGr
131
131
  className: secondary,
132
132
  disabled,
133
133
  onClick: () => onStart("anthropic"),
134
- children: loadingProvider === "anthropic" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { light: false }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucideKeyRound, { className: "size-4" }), "Login with Claude"] })
134
+ children: loadingProvider === "anthropic" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { light: false }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$2, { className: "size-4" }), "Login with Claude"] })
135
135
  }),
136
136
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OrDivider, {}),
137
137
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
@@ -139,7 +139,7 @@ function AddTokenProviderOptions({ disabled, loadingProvider, onStart, onStartGr
139
139
  className: secondary,
140
140
  disabled,
141
141
  onClick: onStartGrokDevice,
142
- children: loadingProvider === "grok" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { light: false }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucideKeyRound, { className: "size-4" }), "Login with xAI"] })
142
+ children: loadingProvider === "grok" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { light: false }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$2, { className: "size-4" }), "Login with xAI"] })
143
143
  })
144
144
  ]
145
145
  });
@@ -160,7 +160,7 @@ function AddTokenModal() {
160
160
  type: "button",
161
161
  className: "px-3.5 py-1.5 text-[12px] font-medium rounded-lg bg-sienna-500 text-white hover:bg-sienna-600 disabled:opacity-50 transition-all duration-150 active:scale-[0.97] flex items-center gap-1.5 shadow-sm",
162
162
  onClick: () => setOpen(true),
163
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucidePlus, { className: "size-3.5" }), "Add Token"]
163
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$3, { className: "size-3.5" }), "Add Token"]
164
164
  }), open && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
165
165
  className: "fixed inset-0 z-50 flex items-start justify-center pt-[15vh]",
166
166
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
@@ -219,36 +219,48 @@ function AddTokenModal() {
219
219
  }
220
220
  //#endregion
221
221
  //#region ~icons/lucide/pencil.jsx
222
- var lucidePencil = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
222
+ var lucidePencil = ({ title, titleId, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
223
223
  viewBox: "0 0 24 24",
224
224
  width: "1.2em",
225
225
  height: "1.2em",
226
+ ref,
227
+ "aria-labelledby": titleId,
226
228
  ...props,
227
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
229
+ children: [title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", {
230
+ id: titleId,
231
+ children: title
232
+ }) : null, /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
228
233
  fill: "none",
229
234
  stroke: "currentColor",
230
235
  strokeLinecap: "round",
231
236
  strokeLinejoin: "round",
232
237
  strokeWidth: 2,
233
238
  d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4"
234
- })
239
+ })]
235
240
  });
241
+ var ForwardRef$1 = (0, import_react.forwardRef)(lucidePencil);
236
242
  //#endregion
237
243
  //#region ~icons/lucide/trash-2.jsx
238
- var lucideTrash2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
244
+ var lucideTrash2 = ({ title, titleId, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
239
245
  viewBox: "0 0 24 24",
240
246
  width: "1.2em",
241
247
  height: "1.2em",
248
+ ref,
249
+ "aria-labelledby": titleId,
242
250
  ...props,
243
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
251
+ children: [title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", {
252
+ id: titleId,
253
+ children: title
254
+ }) : null, /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
244
255
  fill: "none",
245
256
  stroke: "currentColor",
246
257
  strokeLinecap: "round",
247
258
  strokeLinejoin: "round",
248
259
  strokeWidth: 2,
249
260
  d: "M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
250
- })
261
+ })]
251
262
  });
263
+ var ForwardRef = (0, import_react.forwardRef)(lucideTrash2);
252
264
  //#endregion
253
265
  //#region src/lib/token-label.ts
254
266
  function maskAccessToken(credentials) {
@@ -367,7 +379,13 @@ function TokenTable({ data, isLoading }) {
367
379
  className: "text-left px-5 py-2.5 text-[10px] uppercase tracking-wider text-sand-400 font-medium",
368
380
  children: "Expires"
369
381
  }),
370
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", { className: "w-20 px-3 py-2.5" })
382
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", {
383
+ className: "w-20 px-3 py-2.5",
384
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
385
+ className: "sr-only",
386
+ children: "Actions"
387
+ })
388
+ })
371
389
  ]
372
390
  }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", {
373
391
  className: "divide-y divide-sand-100/80",
@@ -404,6 +422,9 @@ function TokenTable({ data, isLoading }) {
404
422
  className: "px-5 py-3",
405
423
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
406
424
  type: "button",
425
+ role: "switch",
426
+ "aria-checked": token.active,
427
+ "aria-label": `${token.name || token.provider} active`,
407
428
  className: `relative inline-flex h-5 w-9 items-center rounded-full transition-colors duration-200 ${token.active ? "bg-sage-400" : "bg-sand-300"}`,
408
429
  onClick: () => handleToggle(token),
409
430
  disabled: toggleMutation.isPending || !token.active && token.reauth_required,
@@ -424,14 +445,16 @@ function TokenTable({ data, isLoading }) {
424
445
  className: "flex items-center gap-1",
425
446
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
426
447
  type: "button",
448
+ "aria-label": "Edit token",
427
449
  className: "p-1 rounded text-sand-400 hover:text-sienna-500 transition-colors duration-150",
428
450
  onClick: () => openEdit(token),
429
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucidePencil, { className: "size-4" })
451
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$1, { className: "size-4" })
430
452
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
431
453
  type: "button",
454
+ "aria-label": "Delete token",
432
455
  className: "p-1 rounded text-sand-400 hover:text-red-500 transition-colors duration-150",
433
456
  onClick: () => setDeleteTarget(token),
434
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucideTrash2, { className: "size-4" })
457
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef, { className: "size-4" })
435
458
  })]
436
459
  })
437
460
  })