@cartanova/qgrid-cli 2.7.0 → 2.7.2
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/README.ko.md +3 -2
- package/README.md +3 -2
- package/bundle/dist/_virtual/_rolldown/runtime.js +20 -1
- package/bundle/dist/application/monit/monit.frame.js +27 -14
- package/bundle/dist/application/monit/monit.types.js +22 -13
- package/bundle/dist/application/qgrid/conv-routing.js +21 -11
- package/bundle/dist/application/qgrid/oauth.js +1 -1
- package/bundle/dist/application/qgrid/qgrid-run-lifecycle.js +15 -4
- package/bundle/dist/application/qgrid/qgrid.dispatcher.js +34 -14
- package/bundle/dist/application/qgrid/qgrid.frame.js +50 -73
- package/bundle/dist/application/qgrid/qgrid.types.js +4 -1
- package/bundle/dist/application/qgrid/schema-prompt.js +240 -0
- package/bundle/dist/application/qgrid/token-subscriber.js +5 -5
- package/bundle/dist/application/qgrid/tool-emulation-schema.js +13 -1
- package/bundle/dist/application/qgrid/tool-emulation.js +8 -6
- package/bundle/dist/application/queries.generated.js +3 -1
- package/bundle/dist/application/request-log/json-schema-type-text.js +55 -0
- package/bundle/dist/application/request-log/request-log.model.js +85 -3
- package/bundle/dist/application/request-log/request-log.types.js +3 -2
- package/bundle/dist/application/request-log/zod-code-format.js +71 -0
- package/bundle/dist/application/setting/setting.constant.js +2 -62
- package/bundle/dist/application/setting/setting.model.js +3 -3
- package/bundle/dist/application/setting/setting.store.js +2 -2
- package/bundle/dist/application/sonamu.generated.js +11 -4
- package/bundle/dist/application/sonamu.generated.sso.js +7 -3
- package/bundle/dist/i18n/sd.generated.js +5 -2
- package/bundle/dist/migrations/20260814130113_alter_request_logs_add1_alter1.js +15 -0
- package/bundle/dist/migrations/20260814131051_alter_request_logs_add1_alter1.js +15 -0
- package/bundle/dist/migrations/20260814134846_alter_request_logs_add1_alter1.js +15 -0
- package/bundle/dist/migrations/20260814140759_alter_request_logs_alter1.js +13 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js +112 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +140 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +676 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +104 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +225 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +30 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +20 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +135 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +63 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +148 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +25 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +174 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +33 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +435 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +115 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +74 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +585 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +20 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +44 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.js +52 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.js +22 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.js +53 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.js +18 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.js +38 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.js +21 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.js +87 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.js +61 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +14 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +27 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +14 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +18 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +59 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +98 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +31 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +18 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +91 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +89 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +18 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +64 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +62 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +61 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +36 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +33 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +53 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +63 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +19 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +43 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +19 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +132 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +16 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +24 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +114 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +103 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +16 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js +37 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +48 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +47 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js +24 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +22 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +17 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +94 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +12 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +25 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js +21 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js +15 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +48 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +61 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +29 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +19 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +51 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +50 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js +20 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +30 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +35 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +49 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +30 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +29 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +40 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +74 -0
- package/bundle/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +72 -0
- package/bundle/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +35 -0
- package/bundle/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +238 -0
- package/bundle/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +189 -0
- package/bundle/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +284 -0
- package/bundle/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +80 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +9 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/chunks/benchmark.CX_oY03V.js +41 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/chunks/evaluatedModules.Dg1zASAC.js +19 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/chunks/index.Chj8NDwU.js +202 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/chunks/index.DdgEv5B1.js +46 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js +119 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js +3044 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js +59 -0
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_vi_3892b4338df694f79f7d384fad23d930/node_modules/vitest/dist/index.js +28 -0
- package/bundle/dist/sonamu.config.js +10 -9
- package/bundle/dist/testing/schema-bench.js +0 -0
- package/bundle/dist/testing/setup-mocks.js +2 -2
- package/bundle/dist/utils/providers/anthropic/anthropic-dispatcher.js +14 -2
- package/bundle/dist/utils/providers/anthropic/claude-session.js +1 -1
- package/bundle/dist/utils/providers/anthropic/fence-strip.js +83 -0
- package/bundle/dist/utils/providers/anthropic/stream-json-adapter.js +3 -5
- package/bundle/dist/utils/providers/common/model-cost.js +1 -1
- package/bundle/dist/utils/providers/common/schema-validation.js +1 -1
- package/bundle/dist/utils/providers/openai/openai-backend-protocol.js +144 -0
- package/bundle/dist/utils/providers/openai/openai-constants.js +4 -2
- package/bundle/dist/utils/providers/openai/openai-direct-client.js +327 -0
- package/bundle/dist/utils/providers/openai/openai-dispatcher.js +358 -781
- package/bundle/dist/utils/providers/openai/openai-oauth.js +84 -0
- package/bundle/dist/utils/providers/openai/openai-quota.js +76 -5
- package/bundle/dist/utils/providers/openai/openai-refresh.js +3 -3
- package/bundle/dist/utils/providers/openai/openai-sse.js +72 -0
- package/bundle/dist/utils/providers/openai/openai-transport-config.js +14 -0
- package/bundle/src/application/monit/monit.frame.test.ts +14 -17
- package/bundle/src/application/monit/monit.frame.ts +23 -12
- package/bundle/src/application/monit/monit.types.ts +40 -11
- package/bundle/src/application/qgrid/conv-routing.test.ts +67 -0
- package/bundle/src/application/qgrid/conv-routing.ts +46 -12
- package/bundle/src/application/qgrid/qgrid-oauth-redirect.test.ts +92 -2
- package/bundle/src/application/qgrid/qgrid-run-lifecycle.test.ts +3 -0
- package/bundle/src/application/qgrid/qgrid-run-lifecycle.ts +15 -1
- package/bundle/src/application/qgrid/qgrid.dispatcher.test.ts +286 -40
- package/bundle/src/application/qgrid/qgrid.dispatcher.ts +58 -14
- package/bundle/src/application/qgrid/qgrid.frame.test.ts +120 -153
- package/bundle/src/application/qgrid/qgrid.frame.ts +57 -94
- package/bundle/src/application/qgrid/qgrid.types.ts +11 -4
- package/bundle/src/application/qgrid/schema-prompt.test.ts +166 -0
- package/bundle/src/application/qgrid/schema-prompt.ts +293 -0
- package/bundle/src/application/qgrid/token-subscriber.ts +4 -4
- package/bundle/src/application/qgrid/tool-emulation-schema.ts +1 -1
- package/bundle/src/application/qgrid/tool-emulation.test.ts +37 -0
- package/bundle/src/application/qgrid/tool-emulation.ts +19 -7
- package/bundle/src/application/queries.generated.ts +6 -0
- package/bundle/src/application/request-log/json-schema-type-text.test.ts +96 -0
- package/bundle/src/application/request-log/json-schema-type-text.ts +83 -0
- package/bundle/src/application/request-log/request-log.entity.json +147 -21
- package/bundle/src/application/request-log/request-log.model.ts +108 -0
- package/bundle/src/application/request-log/request-log.types.ts +2 -0
- package/bundle/src/application/request-log/zod-code-format.test.ts +31 -0
- package/bundle/src/application/request-log/zod-code-format.ts +73 -0
- package/bundle/src/application/setting/setting.constant.test.ts +22 -24
- package/bundle/src/application/setting/setting.constant.ts +2 -63
- package/bundle/src/application/setting/setting.entity.json +1 -1
- package/bundle/src/application/setting/setting.store.ts +1 -1
- package/bundle/src/application/sonamu.generated.http +20 -1
- package/bundle/src/application/sonamu.generated.sso.ts +4 -0
- package/bundle/src/application/sonamu.generated.ts +10 -0
- package/bundle/src/i18n/sd.generated.ts +6 -1
- package/bundle/src/migrations/20260814130113_alter_request_logs_add1_alter1.ts +15 -0
- package/bundle/src/migrations/20260814131051_alter_request_logs_add1_alter1.ts +15 -0
- package/bundle/src/migrations/20260814134846_alter_request_logs_add1_alter1.ts +15 -0
- package/bundle/src/migrations/20260814140759_alter_request_logs_alter1.ts +13 -0
- package/bundle/src/sonamu.config.ts +9 -13
- package/bundle/src/testing/schema-bench.test.ts +358 -0
- package/bundle/src/testing/schema-bench.ts +352 -0
- package/bundle/src/utils/providers/anthropic/anthropic-dispatcher.ts +17 -2
- package/bundle/src/utils/providers/anthropic/claude-session.ts +1 -3
- package/bundle/src/utils/providers/anthropic/fence-strip.test.ts +122 -0
- package/bundle/src/utils/providers/anthropic/fence-strip.ts +105 -0
- package/bundle/src/utils/providers/anthropic/stream-json-adapter.test.ts +1 -2
- package/bundle/src/utils/providers/anthropic/stream-json-adapter.ts +4 -11
- package/bundle/src/utils/providers/common/model-cost.ts +4 -9
- package/bundle/src/utils/providers/common/provider-dispatcher.ts +10 -8
- package/bundle/src/utils/providers/common/provider-types.ts +48 -0
- package/bundle/src/utils/providers/common/schema-validation.ts +1 -1
- package/bundle/src/utils/providers/openai/openai-backend-protocol.test.ts +106 -0
- package/bundle/src/utils/providers/openai/openai-backend-protocol.ts +255 -0
- package/bundle/src/utils/providers/openai/openai-constants.ts +2 -0
- package/bundle/src/utils/providers/openai/openai-direct-client.test.ts +610 -0
- package/bundle/src/utils/providers/openai/openai-direct-client.ts +478 -0
- package/bundle/src/utils/providers/openai/openai-dispatcher.test.ts +336 -1723
- package/bundle/src/utils/providers/openai/openai-dispatcher.ts +458 -1175
- package/bundle/src/utils/providers/openai/openai-oauth.test.ts +95 -0
- package/bundle/src/utils/providers/openai/openai-oauth.ts +141 -0
- package/bundle/src/utils/providers/openai/openai-quota.test.ts +80 -7
- package/bundle/src/utils/providers/openai/openai-quota.ts +105 -4
- package/bundle/src/utils/providers/openai/openai-refresh.test.ts +120 -0
- package/bundle/src/utils/providers/openai/openai-refresh.ts +3 -1
- package/bundle/src/utils/providers/openai/openai-sse.test.ts +52 -0
- package/bundle/src/utils/providers/openai/openai-sse.ts +79 -0
- package/bundle/src/utils/providers/openai/openai-transport-config.ts +17 -0
- package/bundle/web-dist/client/assets/index-BldeEvAK.css +1 -0
- package/bundle/web-dist/client/assets/index-DkAXPF9q.js +106 -0
- package/bundle/web-dist/client/assets/logs-DlI6OojL.js +1 -0
- package/bundle/web-dist/client/assets/monit-qap66dhi.js +1 -0
- package/bundle/web-dist/client/assets/routes-CV07Pzde.js +5 -0
- package/bundle/web-dist/client/assets/services.generated-CSW8bhCP.js +51 -0
- package/bundle/web-dist/client/assets/settings-CdYub4yo.js +1 -0
- package/bundle/web-dist/client/assets/show-DA1L8DVD.js +2 -0
- package/bundle/web-dist/client/assets/tokens-Dt3gfkwP.js +1 -0
- package/bundle/web-dist/client/assets/use-oauth-login-flow-Cwi0HtJY.js +1 -0
- package/bundle/web-dist/client/index.html +3 -3
- package/bundle/web-dist/server/assets/lazyRouteComponent-0y-znAfz.js +1856 -0
- package/bundle/web-dist/server/assets/logs-CJBbHM3_.js +481 -0
- package/bundle/web-dist/server/assets/monit-8WAsPETB.js +1670 -0
- package/bundle/web-dist/server/assets/plus-9das21ju.js +19 -0
- package/bundle/web-dist/server/assets/react-dom-zmEq8BVp.js +462 -0
- package/bundle/web-dist/server/assets/routes-B6bX3o41.js +2924 -0
- package/bundle/web-dist/server/assets/services.generated-DyPeBI00.js +23644 -0
- package/bundle/web-dist/server/assets/settings-D1u5WdpP.js +597 -0
- package/bundle/web-dist/server/assets/show-Cr7vwR0l.js +2861 -0
- package/bundle/web-dist/server/assets/tokens-BumM0gnH.js +441 -0
- package/bundle/web-dist/server/assets/use-oauth-login-flow-DmsHGOlx.js +160 -0
- package/bundle/web-dist/server/entry-server.generated.js +12 -12
- package/dist/cli.d.ts +10 -1
- package/dist/cli.js +1 -6
- package/package.json +3 -2
- package/skills/qgrid/SKILL.md +5 -5
- package/skills/qgrid/references/ai-sdk-provider-contract.md +36 -25
- package/skills/qgrid/references/anthropic-claude-code-runtime.md +31 -14
- package/skills/qgrid/references/cli-env-and-server-boot.md +6 -13
- package/skills/qgrid/references/decision-rationale.md +28 -26
- package/skills/qgrid/references/docs-workflow.md +1 -1
- package/skills/qgrid/references/openai-codex-runtime.md +39 -156
- package/skills/qgrid/references/prompt-cache-and-usage.md +35 -68
- package/skills/qgrid/references/provider-runtime-differences.md +18 -18
- package/skills/qgrid/references/repo-map.md +2 -2
- package/skills/qgrid/references/request-log-run-lifecycle.md +12 -2
- package/skills/qgrid/references/sonamu-api-web-flow.md +4 -0
- package/skills/qgrid/references/token-auth-quota-lifecycle.md +14 -24
- package/skills/qgrid/references/tool-calling-and-multiturn.md +19 -9
- package/skills/qgrid/references/verification-and-debugging.md +17 -15
- package/bundle/dist/codex-protocol/AgentPath.js +0 -1
- package/bundle/dist/codex-protocol/ApplyPatchApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/ApplyPatchApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/AuthMode.js +0 -1
- package/bundle/dist/codex-protocol/ClientInfo.js +0 -1
- package/bundle/dist/codex-protocol/ClientNotification.js +0 -1
- package/bundle/dist/codex-protocol/ClientRequest.js +0 -1
- package/bundle/dist/codex-protocol/CollaborationMode.js +0 -1
- package/bundle/dist/codex-protocol/ContentItem.js +0 -1
- package/bundle/dist/codex-protocol/ConversationGitInfo.js +0 -1
- package/bundle/dist/codex-protocol/ConversationSummary.js +0 -1
- package/bundle/dist/codex-protocol/ExecCommandApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/ExecCommandApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/ExecPolicyAmendment.js +0 -1
- package/bundle/dist/codex-protocol/FileChange.js +0 -1
- package/bundle/dist/codex-protocol/ForcedLoginMethod.js +0 -1
- package/bundle/dist/codex-protocol/FunctionCallOutputBody.js +0 -1
- package/bundle/dist/codex-protocol/FunctionCallOutputContentItem.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchMatchType.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchParams.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchResponse.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchResult.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchSessionCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/FuzzyFileSearchSessionUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/GetAuthStatusParams.js +0 -1
- package/bundle/dist/codex-protocol/GetAuthStatusResponse.js +0 -1
- package/bundle/dist/codex-protocol/GetConversationSummaryParams.js +0 -1
- package/bundle/dist/codex-protocol/GetConversationSummaryResponse.js +0 -1
- package/bundle/dist/codex-protocol/GitDiffToRemoteParams.js +0 -1
- package/bundle/dist/codex-protocol/GitDiffToRemoteResponse.js +0 -1
- package/bundle/dist/codex-protocol/GitSha.js +0 -1
- package/bundle/dist/codex-protocol/ImageDetail.js +0 -1
- package/bundle/dist/codex-protocol/InitializeCapabilities.js +0 -1
- package/bundle/dist/codex-protocol/InitializeParams.js +0 -1
- package/bundle/dist/codex-protocol/InitializeResponse.js +0 -1
- package/bundle/dist/codex-protocol/InputModality.js +0 -1
- package/bundle/dist/codex-protocol/InternalSessionSource.js +0 -1
- package/bundle/dist/codex-protocol/LocalShellAction.js +0 -1
- package/bundle/dist/codex-protocol/LocalShellExecAction.js +0 -1
- package/bundle/dist/codex-protocol/LocalShellStatus.js +0 -1
- package/bundle/dist/codex-protocol/MessagePhase.js +0 -1
- package/bundle/dist/codex-protocol/ModeKind.js +0 -1
- package/bundle/dist/codex-protocol/NetworkPolicyAmendment.js +0 -1
- package/bundle/dist/codex-protocol/NetworkPolicyRuleAction.js +0 -1
- package/bundle/dist/codex-protocol/ParsedCommand.js +0 -1
- package/bundle/dist/codex-protocol/Personality.js +0 -1
- package/bundle/dist/codex-protocol/PlanType.js +0 -1
- package/bundle/dist/codex-protocol/RealtimeConversationVersion.js +0 -1
- package/bundle/dist/codex-protocol/RealtimeOutputModality.js +0 -1
- package/bundle/dist/codex-protocol/RealtimeVoice.js +0 -1
- package/bundle/dist/codex-protocol/RealtimeVoicesList.js +0 -1
- package/bundle/dist/codex-protocol/ReasoningEffort.js +0 -1
- package/bundle/dist/codex-protocol/ReasoningItemContent.js +0 -1
- package/bundle/dist/codex-protocol/ReasoningItemReasoningSummary.js +0 -1
- package/bundle/dist/codex-protocol/ReasoningSummary.js +0 -1
- package/bundle/dist/codex-protocol/RequestId.js +0 -1
- package/bundle/dist/codex-protocol/Resource.js +0 -1
- package/bundle/dist/codex-protocol/ResourceContent.js +0 -1
- package/bundle/dist/codex-protocol/ResourceTemplate.js +0 -1
- package/bundle/dist/codex-protocol/ResponseItem.js +0 -1
- package/bundle/dist/codex-protocol/ReviewDecision.js +0 -1
- package/bundle/dist/codex-protocol/ServerNotification.js +0 -1
- package/bundle/dist/codex-protocol/ServerRequest.js +0 -1
- package/bundle/dist/codex-protocol/SessionSource.js +0 -1
- package/bundle/dist/codex-protocol/Settings.js +0 -1
- package/bundle/dist/codex-protocol/SubAgentSource.js +0 -1
- package/bundle/dist/codex-protocol/ThreadId.js +0 -1
- package/bundle/dist/codex-protocol/ThreadMemoryMode.js +0 -1
- package/bundle/dist/codex-protocol/Tool.js +0 -1
- package/bundle/dist/codex-protocol/Verbosity.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchAction.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchContextSize.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchLocation.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchMode.js +0 -1
- package/bundle/dist/codex-protocol/WebSearchToolConfig.js +0 -1
- package/bundle/dist/codex-protocol/index.js +0 -2
- package/bundle/dist/codex-protocol/serde_json/JsonValue.js +0 -1
- package/bundle/dist/codex-protocol/v2/Account.js +0 -1
- package/bundle/dist/codex-protocol/v2/AccountLoginCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AccountRateLimitsUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AccountUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ActivePermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/ActivePermissionProfileModification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AddCreditsNudgeCreditType.js +0 -1
- package/bundle/dist/codex-protocol/v2/AddCreditsNudgeEmailStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/AdditionalFileSystemPermissions.js +0 -1
- package/bundle/dist/codex-protocol/v2/AdditionalNetworkPermissions.js +0 -1
- package/bundle/dist/codex-protocol/v2/AdditionalPermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/AgentMessageDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AnalyticsConfig.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppBranding.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppListUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppReview.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppScreenshot.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppToolApproval.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppToolsConfig.js +0 -1
- package/bundle/dist/codex-protocol/v2/ApprovalsReviewer.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppsConfig.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppsDefaultConfig.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppsListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/AppsListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/AskForApproval.js +0 -1
- package/bundle/dist/codex-protocol/v2/AutoReviewDecisionSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/ByteRange.js +0 -1
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CancelLoginAccountStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshReason.js +0 -1
- package/bundle/dist/codex-protocol/v2/ChatgptAuthTokensRefreshResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CodexErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollabAgentState.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollabAgentStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollabAgentTool.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollabAgentToolCallStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/CollaborationModeMask.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecOutputDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecOutputStream.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecResizeParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecResizeResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecTerminalSize.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecTerminateParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecTerminateResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecWriteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecWriteResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionApprovalDecision.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionOutputDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionRequestApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionRequestApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandExecutionStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/CommandMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/Config.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigBatchWriteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigEdit.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigLayer.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigLayerMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigLayerSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigRequirements.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigRequirementsReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigValueWriteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigWarningNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfigWriteResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfiguredHookHandler.js +0 -1
- package/bundle/dist/codex-protocol/v2/ConfiguredHookMatcherGroup.js +0 -1
- package/bundle/dist/codex-protocol/v2/ContextCompactedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/CreditsSnapshot.js +0 -1
- package/bundle/dist/codex-protocol/v2/DeprecationNoticeNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolCallOutputContentItem.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolCallParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolCallResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolCallStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/DynamicToolSpec.js +0 -1
- package/bundle/dist/codex-protocol/v2/ErrorNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExecPolicyAmendment.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeature.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureEnablementSetParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureEnablementSetResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExperimentalFeatureStage.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigDetectParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigDetectResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigImportResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigMigrationItem.js +0 -1
- package/bundle/dist/codex-protocol/v2/ExternalAgentConfigMigrationItemType.js +0 -1
- package/bundle/dist/codex-protocol/v2/FeedbackUploadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FeedbackUploadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangeApprovalDecision.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangeOutputDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangePatchUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangeRequestApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileChangeRequestApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileSystemAccessMode.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileSystemPath.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileSystemSandboxEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileSystemSpecialPath.js +0 -1
- package/bundle/dist/codex-protocol/v2/FileUpdateChange.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsChangedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsCopyParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsCopyResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsCreateDirectoryParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsCreateDirectoryResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsGetMetadataParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsGetMetadataResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadDirectoryResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadFileParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsReadFileResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsRemoveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsRemoveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsUnwatchParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsUnwatchResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsWatchParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsWatchResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsWriteFileParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/FsWriteFileResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/GetAccountParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/GetAccountRateLimitsResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/GetAccountResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/GitInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/GrantedPermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReview.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReviewAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianApprovalReviewStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianCommandSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianRiskLevel.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianUserAuthorization.js +0 -1
- package/bundle/dist/codex-protocol/v2/GuardianWarningNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookEventName.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookExecutionMode.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookHandlerType.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookOutputEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookOutputEntryKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookPromptFragment.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookRunStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookRunSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookScope.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/HookTrustStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/HooksListEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/HooksListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/HooksListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ItemCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ItemGuardianApprovalReviewCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ItemGuardianApprovalReviewStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ItemStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ListMcpServerStatusParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ListMcpServerStatusResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/LoginAccountParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/LoginAccountResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/LogoutAccountResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ManagedHooksRequirements.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceAddParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceAddResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceInterface.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceLoadErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceRemoveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceRemoveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/MarketplaceUpgradeResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpAuthStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationArrayType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationBooleanSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationBooleanType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationConstOption.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationLegacyTitledEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationMultiSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationNumberSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationNumberType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationObjectType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationPrimitiveSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationSingleSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationStringFormat.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationStringSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationStringType.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledEnumItems.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledMultiSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationTitledSingleSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledEnumItems.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledMultiSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpElicitationUntitledSingleSelectEnumSchema.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpResourceReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpResourceReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerElicitationAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerElicitationRequestParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerElicitationRequestResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerOauthLoginResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerRefreshResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerStartupState.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerStatusDetail.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerStatusUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerToolCallParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpServerToolCallResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpToolCallError.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpToolCallProgressNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpToolCallResult.js +0 -1
- package/bundle/dist/codex-protocol/v2/McpToolCallStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/MemoryCitation.js +0 -1
- package/bundle/dist/codex-protocol/v2/MemoryCitationEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/MergeStrategy.js +0 -1
- package/bundle/dist/codex-protocol/v2/MigrationDetails.js +0 -1
- package/bundle/dist/codex-protocol/v2/Model.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelAvailabilityNux.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelProviderCapabilitiesReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelProviderCapabilitiesReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelRerouteReason.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelReroutedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelServiceTier.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelUpgradeInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelVerification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ModelVerificationNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkAccess.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkApprovalContext.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkApprovalProtocol.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkDomainPermission.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkPolicyAmendment.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkPolicyRuleAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkRequirements.js +0 -1
- package/bundle/dist/codex-protocol/v2/NetworkUnixSocketPermission.js +0 -1
- package/bundle/dist/codex-protocol/v2/NonSteerableTurnKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/OverriddenMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/PatchApplyStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/PatchChangeKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionGrantScope.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfileFileSystemPermissions.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfileModificationParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfileNetworkPermissions.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionProfileSelectionParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionsRequestApprovalParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PermissionsRequestApprovalResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PlanDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginAuthPolicy.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginAvailability.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginDetail.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginHookSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginInstallParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginInstallPolicy.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginInstallResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginInterface.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginListMarketplaceKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginMarketplaceEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareContext.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareDeleteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareDeleteResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareDiscoverability.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareListItem.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSharePrincipal.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSharePrincipalType.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareSaveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareSaveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareTarget.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateDiscoverability.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateTargetsParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginShareUpdateTargetsResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSkillReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSkillReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginUninstallParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginUninstallResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/PluginsMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProcessExitedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProcessOutputDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProcessOutputStream.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProcessTerminalSize.js +0 -1
- package/bundle/dist/codex-protocol/v2/ProfileV2.js +0 -1
- package/bundle/dist/codex-protocol/v2/RateLimitReachedType.js +0 -1
- package/bundle/dist/codex-protocol/v2/RateLimitSnapshot.js +0 -1
- package/bundle/dist/codex-protocol/v2/RateLimitWindow.js +0 -1
- package/bundle/dist/codex-protocol/v2/RawResponseItemCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReasoningEffortOption.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReasoningSummaryPartAddedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReasoningSummaryTextDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReasoningTextDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/RemoteControlConnectionStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/RemoteControlStatusChangedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/RequestPermissionProfile.js +0 -1
- package/bundle/dist/codex-protocol/v2/ResidencyRequirement.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReviewDelivery.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReviewStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReviewStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ReviewTarget.js +0 -1
- package/bundle/dist/codex-protocol/v2/SandboxMode.js +0 -1
- package/bundle/dist/codex-protocol/v2/SandboxPolicy.js +0 -1
- package/bundle/dist/codex-protocol/v2/SandboxWorkspaceWrite.js +0 -1
- package/bundle/dist/codex-protocol/v2/SendAddCreditsNudgeEmailParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/SendAddCreditsNudgeEmailResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ServerRequestResolvedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/SessionMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/SessionSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillDependencies.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillErrorInfo.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillInterface.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillMetadata.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillScope.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillSummary.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillToolDependency.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsChangedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsConfigWriteParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsConfigWriteResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsListEntry.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/SkillsListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/SortDirection.js +0 -1
- package/bundle/dist/codex-protocol/v2/SubagentMigration.js +0 -1
- package/bundle/dist/codex-protocol/v2/TerminalInteractionNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TextElement.js +0 -1
- package/bundle/dist/codex-protocol/v2/TextPosition.js +0 -1
- package/bundle/dist/codex-protocol/v2/TextRange.js +0 -1
- package/bundle/dist/codex-protocol/v2/Thread.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadActiveFlag.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadApproveGuardianDeniedActionParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadApproveGuardianDeniedActionResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadArchiveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadArchiveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadArchivedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadClosedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadCompactStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadCompactStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadForkParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadForkResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadGoal.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadGoalClearedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadGoalStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadGoalUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadInjectItemsParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadInjectItemsResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadItem.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadLoadedListParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadLoadedListResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadMetadataGitInfoUpdateParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadMetadataUpdateParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadMetadataUpdateResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadNameUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadReadParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadReadResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeAudioChunk.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeClosedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeErrorNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeItemAddedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeOutputAudioDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeSdpNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeStartTransport.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeTranscriptDeltaNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRealtimeTranscriptDoneNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadResumeParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadResumeResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRollbackParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadRollbackResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSetNameParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSetNameResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadShellCommandParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadShellCommandResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSortKey.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadSourceKind.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStartSource.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadStatusChangedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadTokenUsage.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadTokenUsageUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnarchiveParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnarchiveResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnarchivedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ThreadUnsubscribeStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/TokenUsageBreakdown.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputAnswer.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputOption.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputQuestion.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolRequestUserInputResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/ToolsV2.js +0 -1
- package/bundle/dist/codex-protocol/v2/Turn.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnDiffUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnEnvironmentParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnError.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnInterruptParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnInterruptResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnItemsView.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnPlanStep.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnPlanStepStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnPlanUpdatedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnStartedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnSteerParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/TurnSteerResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/UserInput.js +0 -1
- package/bundle/dist/codex-protocol/v2/WarningNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/WebSearchAction.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxReadiness.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxReadinessResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupCompletedNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupMode.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupStartParams.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsSandboxSetupStartResponse.js +0 -1
- package/bundle/dist/codex-protocol/v2/WindowsWorldWritableWarningNotification.js +0 -1
- package/bundle/dist/codex-protocol/v2/WriteStatus.js +0 -1
- package/bundle/dist/codex-protocol/v2/index.js +0 -7
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -9
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/benchmark.CX_oY03V.js +0 -41
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/evaluatedModules.Dg1zASAC.js +0 -19
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/index.Chj8NDwU.js +0 -202
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/index.DdgEv5B1.js +0 -46
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js +0 -119
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js +0 -3044
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js +0 -59
- package/bundle/dist/node_modules/.pnpm/vitest@4.1.10_@opentelemetry_api@1.9.0_@types_node@25.0.7_@vitest_coverage-v8@4.1.10_ms_f9cfcfeddd63e656d4010c98521af26c/node_modules/vitest/dist/index.js +0 -28
- package/bundle/dist/utils/providers/openai/codex-rpc.js +0 -153
- package/bundle/dist/utils/providers/openai/codex-worker.js +0 -642
- package/bundle/dist/utils/providers/openai/openai-worker-pool-config.js +0 -51
- package/bundle/src/codex-protocol/AbsolutePathBuf.ts +0 -14
- package/bundle/src/codex-protocol/AgentPath.ts +0 -5
- package/bundle/src/codex-protocol/ApplyPatchApprovalParams.ts +0 -24
- package/bundle/src/codex-protocol/ApplyPatchApprovalResponse.ts +0 -6
- package/bundle/src/codex-protocol/AuthMode.ts +0 -8
- package/bundle/src/codex-protocol/ClientInfo.ts +0 -5
- package/bundle/src/codex-protocol/ClientNotification.ts +0 -5
- package/bundle/src/codex-protocol/ClientRequest.ts +0 -176
- package/bundle/src/codex-protocol/CollaborationMode.ts +0 -10
- package/bundle/src/codex-protocol/ContentItem.ts +0 -9
- package/bundle/src/codex-protocol/ConversationGitInfo.ts +0 -9
- package/bundle/src/codex-protocol/ConversationSummary.ts +0 -19
- package/bundle/src/codex-protocol/ExecCommandApprovalParams.ts +0 -22
- package/bundle/src/codex-protocol/ExecCommandApprovalResponse.ts +0 -6
- package/bundle/src/codex-protocol/ExecPolicyAmendment.ts +0 -12
- package/bundle/src/codex-protocol/FileChange.ts +0 -8
- package/bundle/src/codex-protocol/ForcedLoginMethod.ts +0 -5
- package/bundle/src/codex-protocol/FunctionCallOutputBody.ts +0 -6
- package/bundle/src/codex-protocol/FunctionCallOutputContentItem.ts +0 -12
- package/bundle/src/codex-protocol/FuzzyFileSearchMatchType.ts +0 -5
- package/bundle/src/codex-protocol/FuzzyFileSearchParams.ts +0 -9
- package/bundle/src/codex-protocol/FuzzyFileSearchResponse.ts +0 -6
- package/bundle/src/codex-protocol/FuzzyFileSearchResult.ts +0 -16
- package/bundle/src/codex-protocol/FuzzyFileSearchSessionCompletedNotification.ts +0 -5
- package/bundle/src/codex-protocol/FuzzyFileSearchSessionUpdatedNotification.ts +0 -10
- package/bundle/src/codex-protocol/GetAuthStatusParams.ts +0 -5
- package/bundle/src/codex-protocol/GetAuthStatusResponse.ts +0 -10
- package/bundle/src/codex-protocol/GetConversationSummaryParams.ts +0 -6
- package/bundle/src/codex-protocol/GetConversationSummaryResponse.ts +0 -6
- package/bundle/src/codex-protocol/GitDiffToRemoteParams.ts +0 -5
- package/bundle/src/codex-protocol/GitDiffToRemoteResponse.ts +0 -6
- package/bundle/src/codex-protocol/GitSha.ts +0 -5
- package/bundle/src/codex-protocol/ImageDetail.ts +0 -5
- package/bundle/src/codex-protocol/InitializeCapabilities.ts +0 -18
- package/bundle/src/codex-protocol/InitializeParams.ts +0 -10
- package/bundle/src/codex-protocol/InitializeResponse.ts +0 -22
- package/bundle/src/codex-protocol/InputModality.ts +0 -8
- package/bundle/src/codex-protocol/InternalSessionSource.ts +0 -5
- package/bundle/src/codex-protocol/LocalShellAction.ts +0 -6
- package/bundle/src/codex-protocol/LocalShellExecAction.ts +0 -11
- package/bundle/src/codex-protocol/LocalShellStatus.ts +0 -5
- package/bundle/src/codex-protocol/MessagePhase.ts +0 -11
- package/bundle/src/codex-protocol/ModeKind.ts +0 -8
- package/bundle/src/codex-protocol/NetworkPolicyAmendment.ts +0 -6
- package/bundle/src/codex-protocol/NetworkPolicyRuleAction.ts +0 -5
- package/bundle/src/codex-protocol/ParsedCommand.ts +0 -20
- package/bundle/src/codex-protocol/Personality.ts +0 -5
- package/bundle/src/codex-protocol/PlanType.ts +0 -17
- package/bundle/src/codex-protocol/RealtimeConversationVersion.ts +0 -5
- package/bundle/src/codex-protocol/RealtimeOutputModality.ts +0 -5
- package/bundle/src/codex-protocol/RealtimeVoice.ts +0 -24
- package/bundle/src/codex-protocol/RealtimeVoicesList.ts +0 -11
- package/bundle/src/codex-protocol/ReasoningEffort.ts +0 -8
- package/bundle/src/codex-protocol/ReasoningItemContent.ts +0 -7
- package/bundle/src/codex-protocol/ReasoningItemReasoningSummary.ts +0 -5
- package/bundle/src/codex-protocol/ReasoningSummary.ts +0 -10
- package/bundle/src/codex-protocol/RequestId.ts +0 -5
- package/bundle/src/codex-protocol/Resource.ts +0 -19
- package/bundle/src/codex-protocol/ResourceContent.ts +0 -27
- package/bundle/src/codex-protocol/ResourceTemplate.ts +0 -16
- package/bundle/src/codex-protocol/ResponseItem.ts +0 -63
- package/bundle/src/codex-protocol/ReviewDecision.ts +0 -17
- package/bundle/src/codex-protocol/ServerNotification.ts +0 -154
- package/bundle/src/codex-protocol/ServerRequest.ts +0 -47
- package/bundle/src/codex-protocol/SessionSource.ts +0 -15
- package/bundle/src/codex-protocol/Settings.ts +0 -13
- package/bundle/src/codex-protocol/SubAgentSource.ts +0 -20
- package/bundle/src/codex-protocol/ThreadId.ts +0 -5
- package/bundle/src/codex-protocol/ThreadMemoryMode.ts +0 -5
- package/bundle/src/codex-protocol/Tool.ts +0 -18
- package/bundle/src/codex-protocol/Verbosity.ts +0 -9
- package/bundle/src/codex-protocol/WebSearchAction.ts +0 -9
- package/bundle/src/codex-protocol/WebSearchContextSize.ts +0 -5
- package/bundle/src/codex-protocol/WebSearchLocation.ts +0 -10
- package/bundle/src/codex-protocol/WebSearchMode.ts +0 -5
- package/bundle/src/codex-protocol/WebSearchToolConfig.ts +0 -11
- package/bundle/src/codex-protocol/index.ts +0 -79
- package/bundle/src/codex-protocol/serde_json/JsonValue.ts +0 -11
- package/bundle/src/codex-protocol/v2/Account.ts +0 -9
- package/bundle/src/codex-protocol/v2/AccountLoginCompletedNotification.ts +0 -9
- package/bundle/src/codex-protocol/v2/AccountRateLimitsUpdatedNotification.ts +0 -6
- package/bundle/src/codex-protocol/v2/AccountUpdatedNotification.ts +0 -7
- package/bundle/src/codex-protocol/v2/ActivePermissionProfile.ts +0 -22
- package/bundle/src/codex-protocol/v2/ActivePermissionProfileModification.ts +0 -9
- package/bundle/src/codex-protocol/v2/AddCreditsNudgeCreditType.ts +0 -5
- package/bundle/src/codex-protocol/v2/AddCreditsNudgeEmailStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/AdditionalFileSystemPermissions.ts +0 -18
- package/bundle/src/codex-protocol/v2/AdditionalNetworkPermissions.ts +0 -5
- package/bundle/src/codex-protocol/v2/AdditionalPermissionProfile.ts +0 -13
- package/bundle/src/codex-protocol/v2/AgentMessageDeltaNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/AnalyticsConfig.ts +0 -14
- package/bundle/src/codex-protocol/v2/AppBranding.ts +0 -15
- package/bundle/src/codex-protocol/v2/AppInfo.ts +0 -32
- package/bundle/src/codex-protocol/v2/AppListUpdatedNotification.ts +0 -9
- package/bundle/src/codex-protocol/v2/AppMetadata.ts +0 -20
- package/bundle/src/codex-protocol/v2/AppReview.ts +0 -5
- package/bundle/src/codex-protocol/v2/AppScreenshot.ts +0 -5
- package/bundle/src/codex-protocol/v2/AppSummary.ts +0 -14
- package/bundle/src/codex-protocol/v2/AppToolApproval.ts +0 -5
- package/bundle/src/codex-protocol/v2/AppToolsConfig.ts +0 -8
- package/bundle/src/codex-protocol/v2/ApprovalsReviewer.ts +0 -12
- package/bundle/src/codex-protocol/v2/AppsConfig.ts +0 -17
- package/bundle/src/codex-protocol/v2/AppsDefaultConfig.ts +0 -9
- package/bundle/src/codex-protocol/v2/AppsListParams.ts +0 -25
- package/bundle/src/codex-protocol/v2/AppsListResponse.ts +0 -16
- package/bundle/src/codex-protocol/v2/AskForApproval.ts +0 -18
- package/bundle/src/codex-protocol/v2/AutoReviewDecisionSource.ts +0 -8
- package/bundle/src/codex-protocol/v2/ByteRange.ts +0 -5
- package/bundle/src/codex-protocol/v2/CancelLoginAccountParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/CancelLoginAccountResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/CancelLoginAccountStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/ChatgptAuthTokensRefreshParams.ts +0 -18
- package/bundle/src/codex-protocol/v2/ChatgptAuthTokensRefreshReason.ts +0 -5
- package/bundle/src/codex-protocol/v2/ChatgptAuthTokensRefreshResponse.ts +0 -9
- package/bundle/src/codex-protocol/v2/CodexErrorInfo.ts +0 -27
- package/bundle/src/codex-protocol/v2/CollabAgentState.ts +0 -6
- package/bundle/src/codex-protocol/v2/CollabAgentStatus.ts +0 -12
- package/bundle/src/codex-protocol/v2/CollabAgentTool.ts +0 -5
- package/bundle/src/codex-protocol/v2/CollabAgentToolCallStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/CollaborationModeMask.ts +0 -15
- package/bundle/src/codex-protocol/v2/CommandAction.ts +0 -10
- package/bundle/src/codex-protocol/v2/CommandExecOutputDeltaNotification.ts +0 -31
- package/bundle/src/codex-protocol/v2/CommandExecOutputStream.ts +0 -8
- package/bundle/src/codex-protocol/v2/CommandExecParams.ts +0 -87
- package/bundle/src/codex-protocol/v2/CommandExecResizeParams.ts +0 -19
- package/bundle/src/codex-protocol/v2/CommandExecResizeResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/CommandExecResponse.ts +0 -25
- package/bundle/src/codex-protocol/v2/CommandExecTerminalSize.ts +0 -17
- package/bundle/src/codex-protocol/v2/CommandExecTerminateParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/CommandExecTerminateResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/CommandExecWriteParams.ts +0 -23
- package/bundle/src/codex-protocol/v2/CommandExecWriteResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/CommandExecutionApprovalDecision.ts +0 -13
- package/bundle/src/codex-protocol/v2/CommandExecutionOutputDeltaNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/CommandExecutionRequestApprovalParams.ts +0 -47
- package/bundle/src/codex-protocol/v2/CommandExecutionRequestApprovalResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/CommandExecutionSource.ts +0 -9
- package/bundle/src/codex-protocol/v2/CommandExecutionStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/CommandMigration.ts +0 -5
- package/bundle/src/codex-protocol/v2/Config.ts +0 -53
- package/bundle/src/codex-protocol/v2/ConfigBatchWriteParams.ts +0 -17
- package/bundle/src/codex-protocol/v2/ConfigEdit.ts +0 -7
- package/bundle/src/codex-protocol/v2/ConfigLayer.ts +0 -12
- package/bundle/src/codex-protocol/v2/ConfigLayerMetadata.ts +0 -6
- package/bundle/src/codex-protocol/v2/ConfigLayerSource.ts +0 -27
- package/bundle/src/codex-protocol/v2/ConfigReadParams.ts +0 -13
- package/bundle/src/codex-protocol/v2/ConfigReadResponse.ts +0 -12
- package/bundle/src/codex-protocol/v2/ConfigRequirements.ts +0 -15
- package/bundle/src/codex-protocol/v2/ConfigRequirementsReadResponse.ts +0 -11
- package/bundle/src/codex-protocol/v2/ConfigValueWriteParams.ts +0 -16
- package/bundle/src/codex-protocol/v2/ConfigWarningNotification.ts +0 -23
- package/bundle/src/codex-protocol/v2/ConfigWriteResponse.ts +0 -16
- package/bundle/src/codex-protocol/v2/ConfiguredHookHandler.ts +0 -14
- package/bundle/src/codex-protocol/v2/ConfiguredHookMatcherGroup.ts +0 -9
- package/bundle/src/codex-protocol/v2/ContextCompactedNotification.ts +0 -8
- package/bundle/src/codex-protocol/v2/CreditsSnapshot.ts +0 -5
- package/bundle/src/codex-protocol/v2/DeprecationNoticeNotification.ts +0 -14
- package/bundle/src/codex-protocol/v2/DynamicToolCallOutputContentItem.ts +0 -7
- package/bundle/src/codex-protocol/v2/DynamicToolCallParams.ts +0 -13
- package/bundle/src/codex-protocol/v2/DynamicToolCallResponse.ts +0 -9
- package/bundle/src/codex-protocol/v2/DynamicToolCallStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/DynamicToolSpec.ts +0 -12
- package/bundle/src/codex-protocol/v2/ErrorNotification.ts +0 -11
- package/bundle/src/codex-protocol/v2/ExecPolicyAmendment.ts +0 -5
- package/bundle/src/codex-protocol/v2/ExperimentalFeature.ts +0 -38
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureEnablementSetParams.ts +0 -13
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureEnablementSetResponse.ts +0 -10
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureListParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureListResponse.ts +0 -13
- package/bundle/src/codex-protocol/v2/ExperimentalFeatureStage.ts +0 -10
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigDetectParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigDetectResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigImportCompletedNotification.ts +0 -5
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigImportParams.ts +0 -8
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigImportResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigMigrationItem.ts +0 -15
- package/bundle/src/codex-protocol/v2/ExternalAgentConfigMigrationItemType.ts +0 -14
- package/bundle/src/codex-protocol/v2/FeedbackUploadParams.ts +0 -12
- package/bundle/src/codex-protocol/v2/FeedbackUploadResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/FileChangeApprovalDecision.ts +0 -5
- package/bundle/src/codex-protocol/v2/FileChangeOutputDeltaNotification.ts +0 -15
- package/bundle/src/codex-protocol/v2/FileChangePatchUpdatedNotification.ts +0 -11
- package/bundle/src/codex-protocol/v2/FileChangeRequestApprovalParams.ts +0 -22
- package/bundle/src/codex-protocol/v2/FileChangeRequestApprovalResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/FileSystemAccessMode.ts +0 -5
- package/bundle/src/codex-protocol/v2/FileSystemPath.ts +0 -10
- package/bundle/src/codex-protocol/v2/FileSystemSandboxEntry.ts +0 -7
- package/bundle/src/codex-protocol/v2/FileSystemSpecialPath.ts +0 -11
- package/bundle/src/codex-protocol/v2/FileUpdateChange.ts +0 -6
- package/bundle/src/codex-protocol/v2/FsChangedNotification.ts +0 -18
- package/bundle/src/codex-protocol/v2/FsCopyParams.ts +0 -22
- package/bundle/src/codex-protocol/v2/FsCopyResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/FsCreateDirectoryParams.ts +0 -18
- package/bundle/src/codex-protocol/v2/FsCreateDirectoryResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/FsGetMetadataParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/FsGetMetadataResponse.ts +0 -29
- package/bundle/src/codex-protocol/v2/FsReadDirectoryEntry.ts +0 -21
- package/bundle/src/codex-protocol/v2/FsReadDirectoryParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/FsReadDirectoryResponse.ts +0 -14
- package/bundle/src/codex-protocol/v2/FsReadFileParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/FsReadFileResponse.ts +0 -13
- package/bundle/src/codex-protocol/v2/FsRemoveParams.ts +0 -22
- package/bundle/src/codex-protocol/v2/FsRemoveResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/FsUnwatchParams.ts +0 -13
- package/bundle/src/codex-protocol/v2/FsUnwatchResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/FsWatchParams.ts +0 -18
- package/bundle/src/codex-protocol/v2/FsWatchResponse.ts +0 -14
- package/bundle/src/codex-protocol/v2/FsWriteFileParams.ts +0 -18
- package/bundle/src/codex-protocol/v2/FsWriteFileResponse.ts +0 -8
- package/bundle/src/codex-protocol/v2/GetAccountParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/GetAccountRateLimitsResponse.ts +0 -15
- package/bundle/src/codex-protocol/v2/GetAccountResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/GitInfo.ts +0 -5
- package/bundle/src/codex-protocol/v2/GrantedPermissionProfile.ts +0 -10
- package/bundle/src/codex-protocol/v2/GuardianApprovalReview.ts +0 -18
- package/bundle/src/codex-protocol/v2/GuardianApprovalReviewAction.ts +0 -34
- package/bundle/src/codex-protocol/v2/GuardianApprovalReviewStatus.ts +0 -13
- package/bundle/src/codex-protocol/v2/GuardianCommandSource.ts +0 -5
- package/bundle/src/codex-protocol/v2/GuardianRiskLevel.ts +0 -8
- package/bundle/src/codex-protocol/v2/GuardianUserAuthorization.ts +0 -8
- package/bundle/src/codex-protocol/v2/GuardianWarningNotification.ts +0 -14
- package/bundle/src/codex-protocol/v2/HookCompletedNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/HookErrorInfo.ts +0 -5
- package/bundle/src/codex-protocol/v2/HookEventName.ts +0 -13
- package/bundle/src/codex-protocol/v2/HookExecutionMode.ts +0 -5
- package/bundle/src/codex-protocol/v2/HookHandlerType.ts +0 -5
- package/bundle/src/codex-protocol/v2/HookMetadata.ts +0 -26
- package/bundle/src/codex-protocol/v2/HookMigration.ts +0 -5
- package/bundle/src/codex-protocol/v2/HookOutputEntry.ts +0 -6
- package/bundle/src/codex-protocol/v2/HookOutputEntryKind.ts +0 -5
- package/bundle/src/codex-protocol/v2/HookPromptFragment.ts +0 -5
- package/bundle/src/codex-protocol/v2/HookRunStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/HookRunSummary.ts +0 -28
- package/bundle/src/codex-protocol/v2/HookScope.ts +0 -5
- package/bundle/src/codex-protocol/v2/HookSource.ts +0 -15
- package/bundle/src/codex-protocol/v2/HookStartedNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/HookTrustStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/HooksListEntry.ts +0 -12
- package/bundle/src/codex-protocol/v2/HooksListParams.ts +0 -10
- package/bundle/src/codex-protocol/v2/HooksListResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/ItemCompletedNotification.ts +0 -14
- package/bundle/src/codex-protocol/v2/ItemGuardianApprovalReviewCompletedNotification.ts +0 -44
- package/bundle/src/codex-protocol/v2/ItemGuardianApprovalReviewStartedNotification.ts +0 -38
- package/bundle/src/codex-protocol/v2/ItemStartedNotification.ts +0 -14
- package/bundle/src/codex-protocol/v2/ListMcpServerStatusParams.ts +0 -20
- package/bundle/src/codex-protocol/v2/ListMcpServerStatusResponse.ts +0 -13
- package/bundle/src/codex-protocol/v2/LoginAccountParams.ts +0 -27
- package/bundle/src/codex-protocol/v2/LoginAccountResponse.ts +0 -27
- package/bundle/src/codex-protocol/v2/LogoutAccountResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/ManagedHooksRequirements.ts +0 -17
- package/bundle/src/codex-protocol/v2/MarketplaceAddParams.ts +0 -9
- package/bundle/src/codex-protocol/v2/MarketplaceAddResponse.ts +0 -10
- package/bundle/src/codex-protocol/v2/MarketplaceInterface.ts +0 -5
- package/bundle/src/codex-protocol/v2/MarketplaceLoadErrorInfo.ts +0 -6
- package/bundle/src/codex-protocol/v2/MarketplaceRemoveParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/MarketplaceRemoveResponse.ts +0 -9
- package/bundle/src/codex-protocol/v2/MarketplaceUpgradeErrorInfo.ts +0 -5
- package/bundle/src/codex-protocol/v2/MarketplaceUpgradeParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/MarketplaceUpgradeResponse.ts +0 -11
- package/bundle/src/codex-protocol/v2/McpAuthStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpElicitationArrayType.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpElicitationBooleanSchema.ts +0 -11
- package/bundle/src/codex-protocol/v2/McpElicitationBooleanType.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpElicitationConstOption.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpElicitationEnumSchema.ts +0 -11
- package/bundle/src/codex-protocol/v2/McpElicitationLegacyTitledEnumSchema.ts +0 -13
- package/bundle/src/codex-protocol/v2/McpElicitationMultiSelectEnumSchema.ts +0 -9
- package/bundle/src/codex-protocol/v2/McpElicitationNumberSchema.ts +0 -13
- package/bundle/src/codex-protocol/v2/McpElicitationNumberType.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpElicitationObjectType.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpElicitationPrimitiveSchema.ts +0 -13
- package/bundle/src/codex-protocol/v2/McpElicitationSchema.ts +0 -18
- package/bundle/src/codex-protocol/v2/McpElicitationSingleSelectEnumSchema.ts +0 -9
- package/bundle/src/codex-protocol/v2/McpElicitationStringFormat.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpElicitationStringSchema.ts +0 -15
- package/bundle/src/codex-protocol/v2/McpElicitationStringType.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpElicitationTitledEnumItems.ts +0 -6
- package/bundle/src/codex-protocol/v2/McpElicitationTitledMultiSelectEnumSchema.ts +0 -15
- package/bundle/src/codex-protocol/v2/McpElicitationTitledSingleSelectEnumSchema.ts +0 -13
- package/bundle/src/codex-protocol/v2/McpElicitationUntitledEnumItems.ts +0 -9
- package/bundle/src/codex-protocol/v2/McpElicitationUntitledMultiSelectEnumSchema.ts +0 -15
- package/bundle/src/codex-protocol/v2/McpElicitationUntitledSingleSelectEnumSchema.ts +0 -12
- package/bundle/src/codex-protocol/v2/McpResourceReadParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpResourceReadResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/McpServerElicitationAction.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpServerElicitationRequestParams.ts +0 -27
- package/bundle/src/codex-protocol/v2/McpServerElicitationRequestResponse.ts +0 -19
- package/bundle/src/codex-protocol/v2/McpServerMigration.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpServerOauthLoginCompletedNotification.ts +0 -9
- package/bundle/src/codex-protocol/v2/McpServerOauthLoginParams.ts +0 -9
- package/bundle/src/codex-protocol/v2/McpServerOauthLoginResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpServerRefreshResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpServerStartupState.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpServerStatus.ts +0 -15
- package/bundle/src/codex-protocol/v2/McpServerStatusDetail.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpServerStatusUpdatedNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/McpServerToolCallParams.ts +0 -12
- package/bundle/src/codex-protocol/v2/McpServerToolCallResponse.ts +0 -11
- package/bundle/src/codex-protocol/v2/McpToolCallError.ts +0 -5
- package/bundle/src/codex-protocol/v2/McpToolCallProgressNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/McpToolCallResult.ts +0 -10
- package/bundle/src/codex-protocol/v2/McpToolCallStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/MemoryCitation.ts +0 -6
- package/bundle/src/codex-protocol/v2/MemoryCitationEntry.ts +0 -10
- package/bundle/src/codex-protocol/v2/MergeStrategy.ts +0 -5
- package/bundle/src/codex-protocol/v2/MigrationDetails.ts +0 -18
- package/bundle/src/codex-protocol/v2/Model.ts +0 -30
- package/bundle/src/codex-protocol/v2/ModelAvailabilityNux.ts +0 -5
- package/bundle/src/codex-protocol/v2/ModelListParams.ts +0 -18
- package/bundle/src/codex-protocol/v2/ModelListResponse.ts +0 -13
- package/bundle/src/codex-protocol/v2/ModelProviderCapabilitiesReadParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/ModelProviderCapabilitiesReadResponse.ts +0 -9
- package/bundle/src/codex-protocol/v2/ModelRerouteReason.ts +0 -5
- package/bundle/src/codex-protocol/v2/ModelReroutedNotification.ts +0 -12
- package/bundle/src/codex-protocol/v2/ModelServiceTier.ts +0 -5
- package/bundle/src/codex-protocol/v2/ModelUpgradeInfo.ts +0 -10
- package/bundle/src/codex-protocol/v2/ModelVerification.ts +0 -5
- package/bundle/src/codex-protocol/v2/ModelVerificationNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/NetworkAccess.ts +0 -5
- package/bundle/src/codex-protocol/v2/NetworkApprovalContext.ts +0 -6
- package/bundle/src/codex-protocol/v2/NetworkApprovalProtocol.ts +0 -5
- package/bundle/src/codex-protocol/v2/NetworkDomainPermission.ts +0 -5
- package/bundle/src/codex-protocol/v2/NetworkPolicyAmendment.ts +0 -6
- package/bundle/src/codex-protocol/v2/NetworkPolicyRuleAction.ts +0 -5
- package/bundle/src/codex-protocol/v2/NetworkRequirements.ts +0 -40
- package/bundle/src/codex-protocol/v2/NetworkUnixSocketPermission.ts +0 -5
- package/bundle/src/codex-protocol/v2/NonSteerableTurnKind.ts +0 -5
- package/bundle/src/codex-protocol/v2/OverriddenMetadata.ts +0 -11
- package/bundle/src/codex-protocol/v2/PatchApplyStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/PatchChangeKind.ts +0 -8
- package/bundle/src/codex-protocol/v2/PermissionGrantScope.ts +0 -5
- package/bundle/src/codex-protocol/v2/PermissionProfile.ts +0 -14
- package/bundle/src/codex-protocol/v2/PermissionProfileFileSystemPermissions.ts +0 -8
- package/bundle/src/codex-protocol/v2/PermissionProfileModificationParams.ts +0 -9
- package/bundle/src/codex-protocol/v2/PermissionProfileNetworkPermissions.ts +0 -5
- package/bundle/src/codex-protocol/v2/PermissionProfileSelectionParams.ts +0 -10
- package/bundle/src/codex-protocol/v2/PermissionsRequestApprovalParams.ts +0 -18
- package/bundle/src/codex-protocol/v2/PermissionsRequestApprovalResponse.ts +0 -14
- package/bundle/src/codex-protocol/v2/PlanDeltaNotification.ts +0 -14
- package/bundle/src/codex-protocol/v2/PluginAuthPolicy.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginAvailability.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginDetail.ts +0 -19
- package/bundle/src/codex-protocol/v2/PluginHookSummary.ts +0 -6
- package/bundle/src/codex-protocol/v2/PluginInstallParams.ts +0 -10
- package/bundle/src/codex-protocol/v2/PluginInstallPolicy.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginInstallResponse.ts +0 -10
- package/bundle/src/codex-protocol/v2/PluginInterface.ts +0 -46
- package/bundle/src/codex-protocol/v2/PluginListMarketplaceKind.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginListParams.ts +0 -18
- package/bundle/src/codex-protocol/v2/PluginListResponse.ts +0 -11
- package/bundle/src/codex-protocol/v2/PluginMarketplaceEntry.ts +0 -17
- package/bundle/src/codex-protocol/v2/PluginReadParams.ts +0 -10
- package/bundle/src/codex-protocol/v2/PluginReadResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/PluginShareContext.ts +0 -12
- package/bundle/src/codex-protocol/v2/PluginShareDeleteParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginShareDeleteResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginShareDiscoverability.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginShareListItem.ts +0 -11
- package/bundle/src/codex-protocol/v2/PluginShareListParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginShareListResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/PluginSharePrincipal.ts +0 -10
- package/bundle/src/codex-protocol/v2/PluginSharePrincipalType.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginShareSaveParams.ts +0 -13
- package/bundle/src/codex-protocol/v2/PluginShareSaveResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginShareTarget.ts +0 -6
- package/bundle/src/codex-protocol/v2/PluginShareUpdateDiscoverability.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginShareUpdateTargetsParams.ts +0 -11
- package/bundle/src/codex-protocol/v2/PluginShareUpdateTargetsResponse.ts +0 -10
- package/bundle/src/codex-protocol/v2/PluginSkillReadParams.ts +0 -9
- package/bundle/src/codex-protocol/v2/PluginSkillReadResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginSource.ts +0 -9
- package/bundle/src/codex-protocol/v2/PluginSummary.ts +0 -29
- package/bundle/src/codex-protocol/v2/PluginUninstallParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginUninstallResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/PluginsMigration.ts +0 -5
- package/bundle/src/codex-protocol/v2/ProcessExitedNotification.ts +0 -43
- package/bundle/src/codex-protocol/v2/ProcessOutputDeltaNotification.ts +0 -27
- package/bundle/src/codex-protocol/v2/ProcessOutputStream.ts +0 -8
- package/bundle/src/codex-protocol/v2/ProcessTerminalSize.ts +0 -17
- package/bundle/src/codex-protocol/v2/ProfileV2.ts +0 -37
- package/bundle/src/codex-protocol/v2/RateLimitReachedType.ts +0 -10
- package/bundle/src/codex-protocol/v2/RateLimitSnapshot.ts +0 -17
- package/bundle/src/codex-protocol/v2/RateLimitWindow.ts +0 -9
- package/bundle/src/codex-protocol/v2/RawResponseItemCompletedNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/ReasoningEffortOption.ts +0 -6
- package/bundle/src/codex-protocol/v2/ReasoningSummaryPartAddedNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/ReasoningSummaryTextDeltaNotification.ts +0 -11
- package/bundle/src/codex-protocol/v2/ReasoningTextDeltaNotification.ts +0 -11
- package/bundle/src/codex-protocol/v2/RemoteControlConnectionStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/RemoteControlStatusChangedNotification.ts +0 -12
- package/bundle/src/codex-protocol/v2/RequestPermissionProfile.ts +0 -10
- package/bundle/src/codex-protocol/v2/ResidencyRequirement.ts +0 -5
- package/bundle/src/codex-protocol/v2/ReviewDelivery.ts +0 -5
- package/bundle/src/codex-protocol/v2/ReviewStartParams.ts +0 -15
- package/bundle/src/codex-protocol/v2/ReviewStartResponse.ts +0 -15
- package/bundle/src/codex-protocol/v2/ReviewTarget.ts +0 -16
- package/bundle/src/codex-protocol/v2/SandboxMode.ts +0 -5
- package/bundle/src/codex-protocol/v2/SandboxPolicy.ts +0 -17
- package/bundle/src/codex-protocol/v2/SandboxWorkspaceWrite.ts +0 -10
- package/bundle/src/codex-protocol/v2/SendAddCreditsNudgeEmailParams.ts +0 -6
- package/bundle/src/codex-protocol/v2/SendAddCreditsNudgeEmailResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/ServerRequestResolvedNotification.ts +0 -6
- package/bundle/src/codex-protocol/v2/SessionMigration.ts +0 -5
- package/bundle/src/codex-protocol/v2/SessionSource.ts +0 -13
- package/bundle/src/codex-protocol/v2/SkillDependencies.ts +0 -6
- package/bundle/src/codex-protocol/v2/SkillErrorInfo.ts +0 -5
- package/bundle/src/codex-protocol/v2/SkillInterface.ts +0 -13
- package/bundle/src/codex-protocol/v2/SkillMetadata.ts +0 -21
- package/bundle/src/codex-protocol/v2/SkillScope.ts +0 -5
- package/bundle/src/codex-protocol/v2/SkillSummary.ts +0 -14
- package/bundle/src/codex-protocol/v2/SkillToolDependency.ts +0 -12
- package/bundle/src/codex-protocol/v2/SkillsChangedNotification.ts +0 -11
- package/bundle/src/codex-protocol/v2/SkillsConfigWriteParams.ts +0 -16
- package/bundle/src/codex-protocol/v2/SkillsConfigWriteResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/SkillsListEntry.ts +0 -11
- package/bundle/src/codex-protocol/v2/SkillsListParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/SkillsListResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/SortDirection.ts +0 -5
- package/bundle/src/codex-protocol/v2/SubagentMigration.ts +0 -5
- package/bundle/src/codex-protocol/v2/TerminalInteractionNotification.ts +0 -11
- package/bundle/src/codex-protocol/v2/TextElement.ts +0 -15
- package/bundle/src/codex-protocol/v2/TextPosition.ts +0 -14
- package/bundle/src/codex-protocol/v2/TextRange.ts +0 -6
- package/bundle/src/codex-protocol/v2/Thread.ts +0 -88
- package/bundle/src/codex-protocol/v2/ThreadActiveFlag.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadApproveGuardianDeniedActionParams.ts +0 -12
- package/bundle/src/codex-protocol/v2/ThreadApproveGuardianDeniedActionResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadArchiveParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadArchiveResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadArchivedNotification.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadClosedNotification.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadCompactStartParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadCompactStartResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadForkParams.ts +0 -40
- package/bundle/src/codex-protocol/v2/ThreadForkResponse.ts +0 -30
- package/bundle/src/codex-protocol/v2/ThreadGoal.ts +0 -15
- package/bundle/src/codex-protocol/v2/ThreadGoalClearedNotification.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadGoalStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadGoalUpdatedNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/ThreadInjectItemsParams.ts +0 -12
- package/bundle/src/codex-protocol/v2/ThreadInjectItemsResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadItem.ts +0 -156
- package/bundle/src/codex-protocol/v2/ThreadListParams.ts +0 -55
- package/bundle/src/codex-protocol/v2/ThreadListResponse.ts +0 -20
- package/bundle/src/codex-protocol/v2/ThreadLoadedListParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/ThreadLoadedListResponse.ts +0 -15
- package/bundle/src/codex-protocol/v2/ThreadMetadataGitInfoUpdateParams.ts +0 -21
- package/bundle/src/codex-protocol/v2/ThreadMetadataUpdateParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/ThreadMetadataUpdateResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/ThreadNameUpdatedNotification.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadReadParams.ts +0 -11
- package/bundle/src/codex-protocol/v2/ThreadReadResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/ThreadRealtimeAudioChunk.ts +0 -14
- package/bundle/src/codex-protocol/v2/ThreadRealtimeClosedNotification.ts +0 -8
- package/bundle/src/codex-protocol/v2/ThreadRealtimeErrorNotification.ts +0 -8
- package/bundle/src/codex-protocol/v2/ThreadRealtimeItemAddedNotification.ts +0 -9
- package/bundle/src/codex-protocol/v2/ThreadRealtimeOutputAudioDeltaNotification.ts +0 -12
- package/bundle/src/codex-protocol/v2/ThreadRealtimeSdpNotification.ts +0 -8
- package/bundle/src/codex-protocol/v2/ThreadRealtimeStartTransport.ts +0 -17
- package/bundle/src/codex-protocol/v2/ThreadRealtimeStartedNotification.ts +0 -13
- package/bundle/src/codex-protocol/v2/ThreadRealtimeTranscriptDeltaNotification.ts +0 -16
- package/bundle/src/codex-protocol/v2/ThreadRealtimeTranscriptDoneNotification.ts +0 -16
- package/bundle/src/codex-protocol/v2/ThreadResumeParams.ts +0 -39
- package/bundle/src/codex-protocol/v2/ThreadResumeResponse.ts +0 -30
- package/bundle/src/codex-protocol/v2/ThreadRollbackParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/ThreadRollbackResponse.ts +0 -15
- package/bundle/src/codex-protocol/v2/ThreadSetNameParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadSetNameResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadShellCommandParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/ThreadShellCommandResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadSortKey.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadSource.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadSourceKind.ts +0 -15
- package/bundle/src/codex-protocol/v2/ThreadStartParams.ts +0 -33
- package/bundle/src/codex-protocol/v2/ThreadStartResponse.ts +0 -30
- package/bundle/src/codex-protocol/v2/ThreadStartSource.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadStartedNotification.ts +0 -6
- package/bundle/src/codex-protocol/v2/ThreadStatus.ts +0 -10
- package/bundle/src/codex-protocol/v2/ThreadStatusChangedNotification.ts +0 -6
- package/bundle/src/codex-protocol/v2/ThreadTokenUsage.ts +0 -10
- package/bundle/src/codex-protocol/v2/ThreadTokenUsageUpdatedNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/ThreadUnarchiveParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadUnarchiveResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/ThreadUnarchivedNotification.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadUnsubscribeParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/ThreadUnsubscribeResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/ThreadUnsubscribeStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/TokenUsageBreakdown.ts +0 -11
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputAnswer.ts +0 -8
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputOption.ts +0 -8
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputParams.ts +0 -14
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputQuestion.ts +0 -16
- package/bundle/src/codex-protocol/v2/ToolRequestUserInputResponse.ts +0 -11
- package/bundle/src/codex-protocol/v2/ToolsV2.ts +0 -6
- package/bundle/src/codex-protocol/v2/Turn.ts +0 -36
- package/bundle/src/codex-protocol/v2/TurnCompletedNotification.ts +0 -6
- package/bundle/src/codex-protocol/v2/TurnDiffUpdatedNotification.ts +0 -9
- package/bundle/src/codex-protocol/v2/TurnEnvironmentParams.ts +0 -6
- package/bundle/src/codex-protocol/v2/TurnError.ts +0 -10
- package/bundle/src/codex-protocol/v2/TurnInterruptParams.ts +0 -5
- package/bundle/src/codex-protocol/v2/TurnInterruptResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/TurnItemsView.ts +0 -5
- package/bundle/src/codex-protocol/v2/TurnPlanStep.ts +0 -6
- package/bundle/src/codex-protocol/v2/TurnPlanStepStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/TurnPlanUpdatedNotification.ts +0 -11
- package/bundle/src/codex-protocol/v2/TurnStartParams.ts +0 -48
- package/bundle/src/codex-protocol/v2/TurnStartResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/TurnStartedNotification.ts +0 -6
- package/bundle/src/codex-protocol/v2/TurnStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/TurnSteerParams.ts +0 -13
- package/bundle/src/codex-protocol/v2/TurnSteerResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/UserInput.ts +0 -18
- package/bundle/src/codex-protocol/v2/WarningNotification.ts +0 -14
- package/bundle/src/codex-protocol/v2/WebSearchAction.ts +0 -9
- package/bundle/src/codex-protocol/v2/WindowsSandboxReadiness.ts +0 -5
- package/bundle/src/codex-protocol/v2/WindowsSandboxReadinessResponse.ts +0 -6
- package/bundle/src/codex-protocol/v2/WindowsSandboxSetupCompletedNotification.ts +0 -10
- package/bundle/src/codex-protocol/v2/WindowsSandboxSetupMode.ts +0 -5
- package/bundle/src/codex-protocol/v2/WindowsSandboxSetupStartParams.ts +0 -10
- package/bundle/src/codex-protocol/v2/WindowsSandboxSetupStartResponse.ts +0 -5
- package/bundle/src/codex-protocol/v2/WindowsWorldWritableWarningNotification.ts +0 -9
- package/bundle/src/codex-protocol/v2/WriteStatus.ts +0 -5
- package/bundle/src/codex-protocol/v2/index.ts +0 -446
- package/bundle/src/utils/providers/openai/codex-rpc.ts +0 -238
- package/bundle/src/utils/providers/openai/codex-worker.test.ts +0 -1006
- package/bundle/src/utils/providers/openai/codex-worker.ts +0 -927
- package/bundle/src/utils/providers/openai/openai-worker-pool-config.ts +0 -112
- package/bundle/web-dist/client/assets/index-C24D5PiN.js +0 -106
- package/bundle/web-dist/client/assets/index-CcMEpCgt.css +0 -1
- package/bundle/web-dist/client/assets/logs-CIlZG6A3.js +0 -1
- package/bundle/web-dist/client/assets/monit-DZFBMxKl.js +0 -1
- package/bundle/web-dist/client/assets/routes-C3wlSNBL.js +0 -5
- package/bundle/web-dist/client/assets/services.generated-jGypfumC.js +0 -51
- package/bundle/web-dist/client/assets/settings-ClRDWO-8.js +0 -1
- package/bundle/web-dist/client/assets/show-BP7U8yyJ.js +0 -2
- package/bundle/web-dist/client/assets/tokens-DfQeULnJ.js +0 -1
- package/bundle/web-dist/client/assets/use-oauth-login-flow-CY-ASCfL.js +0 -1
- package/bundle/web-dist/server/assets/lazyRouteComponent-DOc8TV-P.js +0 -1856
- package/bundle/web-dist/server/assets/logs-CfF3nmLM.js +0 -451
- package/bundle/web-dist/server/assets/monit-BSaKhh5D.js +0 -1577
- package/bundle/web-dist/server/assets/plus-DLFUHsfx.js +0 -19
- package/bundle/web-dist/server/assets/react-dom-BotjLnTK.js +0 -462
- package/bundle/web-dist/server/assets/routes-CHMxrTT0.js +0 -2924
- package/bundle/web-dist/server/assets/services.generated-D3Q3FYot.js +0 -23570
- package/bundle/web-dist/server/assets/settings-DOQjV28c.js +0 -598
- package/bundle/web-dist/server/assets/show-Cn_C6Qvl.js +0 -2776
- package/bundle/web-dist/server/assets/tokens-c0EN3iCx.js +0 -441
- package/bundle/web-dist/server/assets/use-oauth-login-flow-B68AbMDE.js +0 -160
- /package/bundle/dist/{codex-protocol/AbsolutePathBuf.js → utils/providers/common/provider-types.js} +0 -0
|
@@ -0,0 +1,1670 @@
|
|
|
1
|
+
import { H as __toESM, S as require_react, d as _enum, m as object, t as MonitService, v as useQuery, x as require_jsx_runtime } from "./services.generated-DyPeBI00.js";
|
|
2
|
+
import { t as require_react_dom } from "./react-dom-zmEq8BVp.js";
|
|
3
|
+
import { a as clsx, r as Route } from "../entry-server.generated.js";
|
|
4
|
+
import { t as cacheHitRate } from "./cost-CSH_t17I.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@tanstack+virtual-core@3.17.4/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js
|
|
6
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7
|
+
var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
8
|
+
function createLazyMeasurementsView(count, flat, getItemKey) {
|
|
9
|
+
const cache = new Array(count);
|
|
10
|
+
return new Proxy(cache, { get(target, prop, receiver) {
|
|
11
|
+
if (typeof prop === "string") {
|
|
12
|
+
const c = prop.charCodeAt(0);
|
|
13
|
+
if (c >= 48 && c <= 57) {
|
|
14
|
+
const i = +prop;
|
|
15
|
+
if (Number.isInteger(i) && i >= 0 && i < count) {
|
|
16
|
+
let v = target[i];
|
|
17
|
+
if (!v) {
|
|
18
|
+
const s = flat[i * 2];
|
|
19
|
+
v = target[i] = {
|
|
20
|
+
index: i,
|
|
21
|
+
key: getItemKey(i),
|
|
22
|
+
start: s,
|
|
23
|
+
size: flat[i * 2 + 1],
|
|
24
|
+
end: s + flat[i * 2 + 1],
|
|
25
|
+
lane: 0
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return v;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
if (prop === "length") return count;
|
|
32
|
+
}
|
|
33
|
+
return Reflect.get(target, prop, receiver);
|
|
34
|
+
} });
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../node_modules/.pnpm/@tanstack+virtual-core@3.17.4/node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
38
|
+
function memo(getDeps, fn, opts) {
|
|
39
|
+
let deps = opts.initialDeps ?? [];
|
|
40
|
+
let result;
|
|
41
|
+
let isInitial = true;
|
|
42
|
+
function memoizedFunction() {
|
|
43
|
+
var _a;
|
|
44
|
+
const debugEnabled = process.env.NODE_ENV !== "production" && !!opts.key && !!((_a = opts.debug) == null ? void 0 : _a.call(opts));
|
|
45
|
+
let depTime = 0;
|
|
46
|
+
if (debugEnabled) depTime = Date.now();
|
|
47
|
+
const newDeps = getDeps();
|
|
48
|
+
if (!(newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep))) return result;
|
|
49
|
+
deps = newDeps;
|
|
50
|
+
let resultTime = 0;
|
|
51
|
+
if (debugEnabled) resultTime = Date.now();
|
|
52
|
+
result = fn(...newDeps);
|
|
53
|
+
if (debugEnabled) {
|
|
54
|
+
const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
|
|
55
|
+
const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
|
|
56
|
+
const resultFpsPercentage = resultEndTime / 16;
|
|
57
|
+
const pad = (str, num) => {
|
|
58
|
+
str = String(str);
|
|
59
|
+
while (str.length < num) str = " " + str;
|
|
60
|
+
return str;
|
|
61
|
+
};
|
|
62
|
+
console.info(`%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
|
|
63
|
+
font-size: .6rem;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
|
|
66
|
+
}
|
|
67
|
+
if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) opts.onChange(result);
|
|
68
|
+
isInitial = false;
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
memoizedFunction.updateDeps = (newDeps) => {
|
|
72
|
+
deps = newDeps;
|
|
73
|
+
};
|
|
74
|
+
return memoizedFunction;
|
|
75
|
+
}
|
|
76
|
+
function notUndefined(value, msg) {
|
|
77
|
+
if (value === void 0) throw new Error(`Unexpected undefined${msg ? `: ${msg}` : ""}`);
|
|
78
|
+
else return value;
|
|
79
|
+
}
|
|
80
|
+
var approxEqual = (a, b) => Math.abs(a - b) < 1.01;
|
|
81
|
+
var debounce = (targetWindow, fn, ms) => {
|
|
82
|
+
let timeoutId;
|
|
83
|
+
return function(...args) {
|
|
84
|
+
targetWindow.clearTimeout(timeoutId);
|
|
85
|
+
timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region ../../node_modules/.pnpm/@tanstack+virtual-core@3.17.4/node_modules/@tanstack/virtual-core/dist/esm/index.js
|
|
90
|
+
var _isIOSResult;
|
|
91
|
+
var isIOSWebKit = () => {
|
|
92
|
+
if (_isIOSResult !== void 0) return _isIOSResult;
|
|
93
|
+
if (typeof navigator === "undefined") return _isIOSResult = false;
|
|
94
|
+
if (/iP(hone|od|ad)/.test(navigator.userAgent)) return _isIOSResult = true;
|
|
95
|
+
const mtp = navigator.maxTouchPoints;
|
|
96
|
+
return _isIOSResult = navigator.platform === "MacIntel" && mtp !== void 0 && mtp > 0;
|
|
97
|
+
};
|
|
98
|
+
var getRect = (element) => {
|
|
99
|
+
const { offsetWidth, offsetHeight } = element;
|
|
100
|
+
return {
|
|
101
|
+
width: offsetWidth,
|
|
102
|
+
height: offsetHeight
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
var defaultKeyExtractor = (index) => index;
|
|
106
|
+
var defaultRangeExtractor = (range) => {
|
|
107
|
+
const start = Math.max(range.startIndex - range.overscan, 0);
|
|
108
|
+
const len = Math.min(range.endIndex + range.overscan, range.count - 1) - start + 1;
|
|
109
|
+
const arr = new Array(len);
|
|
110
|
+
for (let i = 0; i < len; i++) arr[i] = start + i;
|
|
111
|
+
return arr;
|
|
112
|
+
};
|
|
113
|
+
var observeElementRect = (instance, cb) => {
|
|
114
|
+
const element = instance.scrollElement;
|
|
115
|
+
if (!element) return;
|
|
116
|
+
const targetWindow = instance.targetWindow;
|
|
117
|
+
if (!targetWindow) return;
|
|
118
|
+
const handler = (rect) => {
|
|
119
|
+
const { width, height } = rect;
|
|
120
|
+
cb({
|
|
121
|
+
width: Math.round(width),
|
|
122
|
+
height: Math.round(height)
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
handler(getRect(element));
|
|
126
|
+
if (!targetWindow.ResizeObserver) return () => {};
|
|
127
|
+
const observer = new targetWindow.ResizeObserver((entries) => {
|
|
128
|
+
const run = () => {
|
|
129
|
+
const entry = entries[0];
|
|
130
|
+
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
131
|
+
const box = entry.borderBoxSize[0];
|
|
132
|
+
if (box) {
|
|
133
|
+
handler({
|
|
134
|
+
width: box.inlineSize,
|
|
135
|
+
height: box.blockSize
|
|
136
|
+
});
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
handler(getRect(element));
|
|
141
|
+
};
|
|
142
|
+
instance.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
143
|
+
});
|
|
144
|
+
observer.observe(element, { box: "border-box" });
|
|
145
|
+
return () => {
|
|
146
|
+
observer.unobserve(element);
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
var addEventListenerOptions = { passive: true };
|
|
150
|
+
var supportsScrollend = typeof window == "undefined" ? true : "onscrollend" in window;
|
|
151
|
+
var observeOffset = (instance, cb, readOffset) => {
|
|
152
|
+
const element = instance.scrollElement;
|
|
153
|
+
if (!element) return;
|
|
154
|
+
const targetWindow = instance.targetWindow;
|
|
155
|
+
if (!targetWindow) return;
|
|
156
|
+
const registerScrollendEvent = instance.options.useScrollendEvent && supportsScrollend;
|
|
157
|
+
let offset = 0;
|
|
158
|
+
const fallback = registerScrollendEvent ? null : debounce(targetWindow, () => cb(offset, false), instance.options.isScrollingResetDelay);
|
|
159
|
+
const createHandler = (isScrolling) => () => {
|
|
160
|
+
offset = readOffset(element);
|
|
161
|
+
fallback?.();
|
|
162
|
+
cb(offset, isScrolling);
|
|
163
|
+
};
|
|
164
|
+
const handler = createHandler(true);
|
|
165
|
+
const endHandler = createHandler(false);
|
|
166
|
+
element.addEventListener("scroll", handler, addEventListenerOptions);
|
|
167
|
+
if (registerScrollendEvent) element.addEventListener("scrollend", endHandler, addEventListenerOptions);
|
|
168
|
+
return () => {
|
|
169
|
+
element.removeEventListener("scroll", handler);
|
|
170
|
+
if (registerScrollendEvent) element.removeEventListener("scrollend", endHandler);
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
var observeElementOffset = (instance, cb) => observeOffset(instance, cb, (el) => {
|
|
174
|
+
const { horizontal, isRtl } = instance.options;
|
|
175
|
+
return horizontal ? el.scrollLeft * (isRtl && -1 || 1) : el.scrollTop;
|
|
176
|
+
});
|
|
177
|
+
var measureElement = (element, entry, instance) => {
|
|
178
|
+
if (instance.options.useCachedMeasurements) {
|
|
179
|
+
const index = instance.indexFromElement(element);
|
|
180
|
+
const key = instance.options.getItemKey(index);
|
|
181
|
+
return instance.itemSizeCache.get(key) ?? instance.options.estimateSize(index);
|
|
182
|
+
}
|
|
183
|
+
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
184
|
+
const box = entry.borderBoxSize[0];
|
|
185
|
+
if (box) return Math.round(box[instance.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
186
|
+
}
|
|
187
|
+
if (!entry) {
|
|
188
|
+
const index = instance.indexFromElement(element);
|
|
189
|
+
const key = instance.options.getItemKey(index);
|
|
190
|
+
const cachedSize = instance.itemSizeCache.get(key);
|
|
191
|
+
if (cachedSize !== void 0) return cachedSize;
|
|
192
|
+
}
|
|
193
|
+
return element[instance.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
194
|
+
};
|
|
195
|
+
var scrollWithAdjustments = (offset, { adjustments = 0, behavior }, instance) => {
|
|
196
|
+
var _a, _b;
|
|
197
|
+
(_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null || _b.call(_a, {
|
|
198
|
+
[instance.options.horizontal ? "left" : "top"]: offset + adjustments,
|
|
199
|
+
behavior
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
var elementScroll = scrollWithAdjustments;
|
|
203
|
+
var Virtualizer = class {
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
this.unsubs = [];
|
|
206
|
+
this.scrollElement = null;
|
|
207
|
+
this.targetWindow = null;
|
|
208
|
+
this.isScrolling = false;
|
|
209
|
+
this.scrollState = null;
|
|
210
|
+
this.measurementsCache = [];
|
|
211
|
+
this._flatMeasurements = null;
|
|
212
|
+
this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
213
|
+
this.itemSizeCacheVersion = 0;
|
|
214
|
+
this.laneAssignments = /* @__PURE__ */ new Map();
|
|
215
|
+
this.pendingMin = null;
|
|
216
|
+
this.prevLanes = void 0;
|
|
217
|
+
this.lanesChangedFlag = false;
|
|
218
|
+
this.lanesSettling = false;
|
|
219
|
+
this.pendingScrollAnchor = null;
|
|
220
|
+
this.scrollRect = null;
|
|
221
|
+
this.scrollOffset = null;
|
|
222
|
+
this.scrollDirection = null;
|
|
223
|
+
this.scrollAdjustments = 0;
|
|
224
|
+
this._iosDeferredAdjustment = 0;
|
|
225
|
+
this._iosTouching = false;
|
|
226
|
+
this._iosJustTouchEnded = false;
|
|
227
|
+
this._iosTouchEndTimerId = null;
|
|
228
|
+
this._intendedScrollOffset = null;
|
|
229
|
+
this.elementsCache = /* @__PURE__ */ new Map();
|
|
230
|
+
this.now = () => {
|
|
231
|
+
var _a, _b, _c;
|
|
232
|
+
return ((_c = (_b = (_a = this.targetWindow) == null ? void 0 : _a.performance) == null ? void 0 : _b.now) == null ? void 0 : _c.call(_b)) ?? Date.now();
|
|
233
|
+
};
|
|
234
|
+
this.observer = /* @__PURE__ */ (() => {
|
|
235
|
+
let _ro = null;
|
|
236
|
+
const get = () => {
|
|
237
|
+
if (_ro) return _ro;
|
|
238
|
+
if (!this.targetWindow || !this.targetWindow.ResizeObserver) return null;
|
|
239
|
+
return _ro = new this.targetWindow.ResizeObserver((entries) => {
|
|
240
|
+
entries.forEach((entry) => {
|
|
241
|
+
const run = () => {
|
|
242
|
+
const node = entry.target;
|
|
243
|
+
const index = this.indexFromElement(node);
|
|
244
|
+
if (!node.isConnected) {
|
|
245
|
+
this.observer.unobserve(node);
|
|
246
|
+
for (const [cacheKey, cachedNode] of this.elementsCache) if (cachedNode === node) {
|
|
247
|
+
this.elementsCache.delete(cacheKey);
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
if (this.shouldMeasureDuringScroll(index)) this.resizeItem(index, this.options.measureElement(node, entry, this));
|
|
253
|
+
};
|
|
254
|
+
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
};
|
|
258
|
+
return {
|
|
259
|
+
disconnect: () => {
|
|
260
|
+
var _a;
|
|
261
|
+
(_a = get()) == null || _a.disconnect();
|
|
262
|
+
_ro = null;
|
|
263
|
+
},
|
|
264
|
+
observe: (target) => {
|
|
265
|
+
var _a;
|
|
266
|
+
return (_a = get()) == null ? void 0 : _a.observe(target, { box: "border-box" });
|
|
267
|
+
},
|
|
268
|
+
unobserve: (target) => {
|
|
269
|
+
var _a;
|
|
270
|
+
return (_a = get()) == null ? void 0 : _a.unobserve(target);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
})();
|
|
274
|
+
this.range = null;
|
|
275
|
+
this.setOptions = (opts2) => {
|
|
276
|
+
var _a, _b;
|
|
277
|
+
const merged = {
|
|
278
|
+
debug: false,
|
|
279
|
+
initialOffset: 0,
|
|
280
|
+
overscan: 1,
|
|
281
|
+
paddingStart: 0,
|
|
282
|
+
paddingEnd: 0,
|
|
283
|
+
scrollPaddingStart: 0,
|
|
284
|
+
scrollPaddingEnd: 0,
|
|
285
|
+
horizontal: false,
|
|
286
|
+
getItemKey: defaultKeyExtractor,
|
|
287
|
+
rangeExtractor: defaultRangeExtractor,
|
|
288
|
+
onChange: () => {},
|
|
289
|
+
measureElement,
|
|
290
|
+
initialRect: {
|
|
291
|
+
width: 0,
|
|
292
|
+
height: 0
|
|
293
|
+
},
|
|
294
|
+
scrollMargin: 0,
|
|
295
|
+
gap: 0,
|
|
296
|
+
indexAttribute: "data-index",
|
|
297
|
+
initialMeasurementsCache: [],
|
|
298
|
+
lanes: 1,
|
|
299
|
+
anchorTo: "start",
|
|
300
|
+
followOnAppend: false,
|
|
301
|
+
scrollEndThreshold: 1,
|
|
302
|
+
isScrollingResetDelay: 150,
|
|
303
|
+
enabled: true,
|
|
304
|
+
isRtl: false,
|
|
305
|
+
useScrollendEvent: false,
|
|
306
|
+
useAnimationFrameWithResizeObserver: false,
|
|
307
|
+
laneAssignmentMode: "estimate",
|
|
308
|
+
useCachedMeasurements: false
|
|
309
|
+
};
|
|
310
|
+
for (const key in opts2) {
|
|
311
|
+
const v = opts2[key];
|
|
312
|
+
if (v !== void 0) merged[key] = v;
|
|
313
|
+
}
|
|
314
|
+
const prevOptions = this.options;
|
|
315
|
+
let anchor = null;
|
|
316
|
+
let followOnAppend = null;
|
|
317
|
+
let edgeKeysChanged = false;
|
|
318
|
+
if (prevOptions !== void 0 && prevOptions.enabled && merged.enabled && merged.anchorTo === "end" && this.scrollElement !== null) {
|
|
319
|
+
const prevCount = prevOptions.count;
|
|
320
|
+
const nextCount = merged.count;
|
|
321
|
+
const measurements = this.getMeasurements();
|
|
322
|
+
const prevFirstKey = prevCount > 0 ? ((_a = measurements[0]) == null ? void 0 : _a.key) ?? prevOptions.getItemKey(0) : null;
|
|
323
|
+
const prevLastKey = prevCount > 0 ? ((_b = measurements[prevCount - 1]) == null ? void 0 : _b.key) ?? prevOptions.getItemKey(prevCount - 1) : null;
|
|
324
|
+
if (nextCount !== prevCount || prevCount > 0 && nextCount > 0 && (merged.getItemKey(0) !== prevFirstKey || merged.getItemKey(nextCount - 1) !== prevLastKey)) {
|
|
325
|
+
edgeKeysChanged = true;
|
|
326
|
+
const item = prevCount > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? measurements[0] : null;
|
|
327
|
+
if (item) anchor = [item.key, this.getScrollOffset() - item.start];
|
|
328
|
+
const behavior = merged.followOnAppend === true ? "auto" : merged.followOnAppend || null;
|
|
329
|
+
if (behavior && nextCount > prevCount && this.isAtEnd(prevOptions.scrollEndThreshold) && (prevCount === 0 || merged.getItemKey(nextCount - 1) !== prevLastKey)) followOnAppend = behavior;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
this.options = merged;
|
|
333
|
+
if (edgeKeysChanged) {
|
|
334
|
+
this.pendingMin = 0;
|
|
335
|
+
this.itemSizeCacheVersion++;
|
|
336
|
+
}
|
|
337
|
+
let anchorResolved = false;
|
|
338
|
+
let anchorDelta = 0;
|
|
339
|
+
if (anchor && this.scrollOffset !== null) {
|
|
340
|
+
const [anchorKey, anchorOffset] = anchor;
|
|
341
|
+
const newMeasurements = this.getMeasurements();
|
|
342
|
+
const { count, getItemKey } = this.options;
|
|
343
|
+
let idx = 0;
|
|
344
|
+
while (idx < count && getItemKey(idx) !== anchorKey) idx++;
|
|
345
|
+
if (idx < count) {
|
|
346
|
+
const anchorItem = newMeasurements[idx];
|
|
347
|
+
if (anchorItem) {
|
|
348
|
+
const newOffset = anchorItem.start + anchorOffset;
|
|
349
|
+
if (newOffset !== this.scrollOffset) {
|
|
350
|
+
anchorDelta = newOffset - this.scrollOffset;
|
|
351
|
+
this.scrollOffset = newOffset;
|
|
352
|
+
anchorResolved = true;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
if (anchorResolved || followOnAppend) this.pendingScrollAnchor = [
|
|
358
|
+
anchorResolved ? anchor[0] : null,
|
|
359
|
+
anchorResolved ? anchor[1] : 0,
|
|
360
|
+
followOnAppend,
|
|
361
|
+
anchorDelta
|
|
362
|
+
];
|
|
363
|
+
};
|
|
364
|
+
this.notify = (sync) => {
|
|
365
|
+
var _a, _b;
|
|
366
|
+
(_b = (_a = this.options).onChange) == null || _b.call(_a, this, sync);
|
|
367
|
+
};
|
|
368
|
+
this.maybeNotify = memo(() => {
|
|
369
|
+
this.calculateRange();
|
|
370
|
+
return [
|
|
371
|
+
this.isScrolling,
|
|
372
|
+
this.range ? this.range.startIndex : null,
|
|
373
|
+
this.range ? this.range.endIndex : null
|
|
374
|
+
];
|
|
375
|
+
}, (isScrolling) => {
|
|
376
|
+
this.notify(isScrolling);
|
|
377
|
+
}, {
|
|
378
|
+
key: process.env.NODE_ENV !== "production" && "maybeNotify",
|
|
379
|
+
debug: () => this.options.debug,
|
|
380
|
+
initialDeps: [
|
|
381
|
+
this.isScrolling,
|
|
382
|
+
this.range ? this.range.startIndex : null,
|
|
383
|
+
this.range ? this.range.endIndex : null
|
|
384
|
+
]
|
|
385
|
+
});
|
|
386
|
+
this.cleanup = () => {
|
|
387
|
+
this.unsubs.filter(Boolean).forEach((d) => d());
|
|
388
|
+
this.unsubs = [];
|
|
389
|
+
this.observer.disconnect();
|
|
390
|
+
if (this.rafId != null && this.targetWindow) {
|
|
391
|
+
this.targetWindow.cancelAnimationFrame(this.rafId);
|
|
392
|
+
this.rafId = null;
|
|
393
|
+
}
|
|
394
|
+
this.scrollState = null;
|
|
395
|
+
this._iosDeferredAdjustment = 0;
|
|
396
|
+
this._iosTouching = false;
|
|
397
|
+
this._iosJustTouchEnded = false;
|
|
398
|
+
this.scrollElement = null;
|
|
399
|
+
this.targetWindow = null;
|
|
400
|
+
};
|
|
401
|
+
this._didMount = () => {
|
|
402
|
+
return () => {
|
|
403
|
+
this.cleanup();
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
this._willUpdate = () => {
|
|
407
|
+
var _a;
|
|
408
|
+
const scrollElement = this.options.enabled ? this.options.getScrollElement() : null;
|
|
409
|
+
if (this.scrollElement !== scrollElement) {
|
|
410
|
+
this.cleanup();
|
|
411
|
+
if (!scrollElement) {
|
|
412
|
+
this.maybeNotify();
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
this.scrollElement = scrollElement;
|
|
416
|
+
if (this.scrollElement && "ownerDocument" in this.scrollElement) this.targetWindow = this.scrollElement.ownerDocument.defaultView;
|
|
417
|
+
else this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
|
|
418
|
+
this.elementsCache.forEach((cached) => {
|
|
419
|
+
this.observer.observe(cached);
|
|
420
|
+
});
|
|
421
|
+
this.unsubs.push(this.options.observeElementRect(this, (rect) => {
|
|
422
|
+
this.scrollRect = rect;
|
|
423
|
+
this.maybeNotify();
|
|
424
|
+
}));
|
|
425
|
+
this.unsubs.push(this.options.observeElementOffset(this, (offset, isScrolling) => {
|
|
426
|
+
if (isScrolling && this._intendedScrollOffset === null && offset === this.scrollOffset) return;
|
|
427
|
+
if (this._intendedScrollOffset !== null && Math.abs(offset - this._intendedScrollOffset) < 1.5) offset = this._intendedScrollOffset;
|
|
428
|
+
this._intendedScrollOffset = null;
|
|
429
|
+
this.scrollAdjustments = 0;
|
|
430
|
+
const prevOffset = this.getScrollOffset();
|
|
431
|
+
this.scrollDirection = isScrolling ? prevOffset === offset ? this.scrollDirection : prevOffset < offset ? "forward" : "backward" : null;
|
|
432
|
+
this.scrollOffset = offset;
|
|
433
|
+
this.isScrolling = isScrolling;
|
|
434
|
+
this._flushIosDeferredIfReady();
|
|
435
|
+
if (this.scrollState) this.scheduleScrollReconcile();
|
|
436
|
+
this.maybeNotify();
|
|
437
|
+
}));
|
|
438
|
+
if ("addEventListener" in this.scrollElement) {
|
|
439
|
+
const scrollEl = this.scrollElement;
|
|
440
|
+
const onTouchStart = () => {
|
|
441
|
+
this._iosTouching = true;
|
|
442
|
+
this._iosJustTouchEnded = false;
|
|
443
|
+
if (this._iosTouchEndTimerId !== null && this.targetWindow != null) {
|
|
444
|
+
this.targetWindow.clearTimeout(this._iosTouchEndTimerId);
|
|
445
|
+
this._iosTouchEndTimerId = null;
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
const onTouchEnd = () => {
|
|
449
|
+
this._iosTouching = false;
|
|
450
|
+
if (!isIOSWebKit() || this.targetWindow == null) return;
|
|
451
|
+
this._iosJustTouchEnded = true;
|
|
452
|
+
this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
|
|
453
|
+
this._iosJustTouchEnded = false;
|
|
454
|
+
this._iosTouchEndTimerId = null;
|
|
455
|
+
this._flushIosDeferredIfReady();
|
|
456
|
+
}, 150);
|
|
457
|
+
};
|
|
458
|
+
scrollEl.addEventListener("touchstart", onTouchStart, addEventListenerOptions);
|
|
459
|
+
scrollEl.addEventListener("touchend", onTouchEnd, addEventListenerOptions);
|
|
460
|
+
this.unsubs.push(() => {
|
|
461
|
+
scrollEl.removeEventListener("touchstart", onTouchStart);
|
|
462
|
+
scrollEl.removeEventListener("touchend", onTouchEnd);
|
|
463
|
+
if (this._iosTouchEndTimerId !== null && this.targetWindow != null) {
|
|
464
|
+
this.targetWindow.clearTimeout(this._iosTouchEndTimerId);
|
|
465
|
+
this._iosTouchEndTimerId = null;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
this._scrollToOffset(this.getScrollOffset(), {
|
|
470
|
+
adjustments: void 0,
|
|
471
|
+
behavior: void 0
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
const anchor = this.pendingScrollAnchor;
|
|
475
|
+
this.pendingScrollAnchor = null;
|
|
476
|
+
if (anchor && this.scrollElement && this.options.enabled) {
|
|
477
|
+
const [key, _offset, followOnAppend, anchorDelta] = anchor;
|
|
478
|
+
if (key !== null && !followOnAppend) if (isIOSWebKit() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded)) {
|
|
479
|
+
if (anchorDelta !== 0) this._iosDeferredAdjustment += anchorDelta;
|
|
480
|
+
} else this._scrollToOffset(this.getScrollOffset(), {
|
|
481
|
+
adjustments: void 0,
|
|
482
|
+
behavior: void 0
|
|
483
|
+
});
|
|
484
|
+
if (followOnAppend) this.scrollToEnd({ behavior: followOnAppend });
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
this._flushIosDeferredIfReady = () => {
|
|
488
|
+
if (this._iosDeferredAdjustment === 0) return;
|
|
489
|
+
if (this.isScrolling) return;
|
|
490
|
+
if (this._iosTouching) return;
|
|
491
|
+
if (this._iosJustTouchEnded) return;
|
|
492
|
+
const cur = this.getScrollOffset();
|
|
493
|
+
const max = this.getMaxScrollOffset();
|
|
494
|
+
if (cur < 0 || cur > max) return;
|
|
495
|
+
const delta = this._iosDeferredAdjustment;
|
|
496
|
+
this._iosDeferredAdjustment = 0;
|
|
497
|
+
this._scrollToOffset(cur, {
|
|
498
|
+
adjustments: this.scrollAdjustments += delta,
|
|
499
|
+
behavior: void 0
|
|
500
|
+
});
|
|
501
|
+
};
|
|
502
|
+
this.rafId = null;
|
|
503
|
+
this.getSize = () => {
|
|
504
|
+
if (!this.options.enabled) {
|
|
505
|
+
this.scrollRect = null;
|
|
506
|
+
return 0;
|
|
507
|
+
}
|
|
508
|
+
this.scrollRect = this.scrollRect ?? this.options.initialRect;
|
|
509
|
+
return this.scrollRect[this.options.horizontal ? "width" : "height"];
|
|
510
|
+
};
|
|
511
|
+
this.getScrollOffset = () => {
|
|
512
|
+
if (!this.options.enabled) {
|
|
513
|
+
this.scrollOffset = null;
|
|
514
|
+
return 0;
|
|
515
|
+
}
|
|
516
|
+
this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset === "function" ? this.options.initialOffset() : this.options.initialOffset);
|
|
517
|
+
return this.scrollOffset;
|
|
518
|
+
};
|
|
519
|
+
this.getMeasurementOptions = memo(() => [
|
|
520
|
+
this.options.count,
|
|
521
|
+
this.options.paddingStart,
|
|
522
|
+
this.options.scrollMargin,
|
|
523
|
+
this.options.getItemKey,
|
|
524
|
+
this.options.enabled,
|
|
525
|
+
this.options.lanes,
|
|
526
|
+
this.options.laneAssignmentMode,
|
|
527
|
+
this.options.gap
|
|
528
|
+
], (count, paddingStart, scrollMargin, getItemKey, enabled, lanes, laneAssignmentMode, gap) => {
|
|
529
|
+
if (this.prevLanes !== void 0 && this.prevLanes !== lanes) this.lanesChangedFlag = true;
|
|
530
|
+
this.prevLanes = lanes;
|
|
531
|
+
this.pendingMin = null;
|
|
532
|
+
return {
|
|
533
|
+
count,
|
|
534
|
+
paddingStart,
|
|
535
|
+
scrollMargin,
|
|
536
|
+
getItemKey,
|
|
537
|
+
enabled,
|
|
538
|
+
lanes,
|
|
539
|
+
laneAssignmentMode,
|
|
540
|
+
gap
|
|
541
|
+
};
|
|
542
|
+
}, { key: false });
|
|
543
|
+
this.getMeasurements = memo(() => [this.getMeasurementOptions(), this.itemSizeCacheVersion], ({ count, paddingStart, scrollMargin, getItemKey, enabled, lanes, laneAssignmentMode, gap }, _itemSizeCacheVersion) => {
|
|
544
|
+
const itemSizeCache = this.itemSizeCache;
|
|
545
|
+
if (!enabled) {
|
|
546
|
+
this.measurementsCache = [];
|
|
547
|
+
this.itemSizeCache.clear();
|
|
548
|
+
this.laneAssignments.clear();
|
|
549
|
+
return [];
|
|
550
|
+
}
|
|
551
|
+
if (this.laneAssignments.size > count) {
|
|
552
|
+
for (const index of this.laneAssignments.keys()) if (index >= count) this.laneAssignments.delete(index);
|
|
553
|
+
}
|
|
554
|
+
if (this.lanesChangedFlag) {
|
|
555
|
+
this.lanesChangedFlag = false;
|
|
556
|
+
this.lanesSettling = true;
|
|
557
|
+
this.measurementsCache = [];
|
|
558
|
+
this.itemSizeCache.clear();
|
|
559
|
+
this.laneAssignments.clear();
|
|
560
|
+
this.pendingMin = null;
|
|
561
|
+
}
|
|
562
|
+
if (this.measurementsCache.length === 0 && !this.lanesSettling) {
|
|
563
|
+
this.measurementsCache = this.options.initialMeasurementsCache;
|
|
564
|
+
this.measurementsCache.forEach((item) => {
|
|
565
|
+
this.itemSizeCache.set(item.key, item.size);
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
const min = this.lanesSettling ? 0 : this.pendingMin ?? 0;
|
|
569
|
+
this.pendingMin = null;
|
|
570
|
+
if (this.lanesSettling && this.measurementsCache.length === count) this.lanesSettling = false;
|
|
571
|
+
if (lanes === 1) {
|
|
572
|
+
const need = count * 2;
|
|
573
|
+
let flat = this._flatMeasurements;
|
|
574
|
+
if (!flat || flat.length < need) {
|
|
575
|
+
const next = new Float64Array(need);
|
|
576
|
+
if (flat && min > 0) next.set(flat.subarray(0, min * 2));
|
|
577
|
+
flat = next;
|
|
578
|
+
this._flatMeasurements = flat;
|
|
579
|
+
}
|
|
580
|
+
let runningStart;
|
|
581
|
+
if (min === 0) runningStart = paddingStart + scrollMargin;
|
|
582
|
+
else {
|
|
583
|
+
const prevIdx = min - 1;
|
|
584
|
+
runningStart = flat[prevIdx * 2] + flat[prevIdx * 2 + 1] + gap;
|
|
585
|
+
}
|
|
586
|
+
for (let i = min; i < count; i++) {
|
|
587
|
+
const key = getItemKey(i);
|
|
588
|
+
const measuredSize = itemSizeCache.get(key);
|
|
589
|
+
const size = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i);
|
|
590
|
+
flat[i * 2] = runningStart;
|
|
591
|
+
flat[i * 2 + 1] = size;
|
|
592
|
+
runningStart += size + gap;
|
|
593
|
+
}
|
|
594
|
+
const view = createLazyMeasurementsView(count, flat, getItemKey);
|
|
595
|
+
this.measurementsCache = view;
|
|
596
|
+
return view;
|
|
597
|
+
}
|
|
598
|
+
const measurements = this.measurementsCache.slice(0, min);
|
|
599
|
+
const laneLastIndex = new Array(lanes).fill(void 0);
|
|
600
|
+
const laneEnds = new Float64Array(lanes);
|
|
601
|
+
let filledLanes = 0;
|
|
602
|
+
for (let m = 0; m < min; m++) {
|
|
603
|
+
const item = measurements[m];
|
|
604
|
+
if (item) {
|
|
605
|
+
if (laneLastIndex[item.lane] === void 0) filledLanes++;
|
|
606
|
+
laneLastIndex[item.lane] = m;
|
|
607
|
+
laneEnds[item.lane] = item.end;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
for (let i = min; i < count; i++) {
|
|
611
|
+
const key = getItemKey(i);
|
|
612
|
+
const cachedLane = this.laneAssignments.get(i);
|
|
613
|
+
let lane;
|
|
614
|
+
let start;
|
|
615
|
+
const shouldCacheLane = laneAssignmentMode === "estimate" || itemSizeCache.has(key);
|
|
616
|
+
if (cachedLane !== void 0 && this.options.lanes > 1) {
|
|
617
|
+
lane = cachedLane;
|
|
618
|
+
const prevIndex = laneLastIndex[lane];
|
|
619
|
+
const prevInLane = prevIndex !== void 0 ? measurements[prevIndex] : void 0;
|
|
620
|
+
start = prevInLane ? prevInLane.end + gap : paddingStart + scrollMargin;
|
|
621
|
+
} else if (filledLanes === lanes) {
|
|
622
|
+
let bestLane = 0;
|
|
623
|
+
let bestEnd = laneEnds[0];
|
|
624
|
+
let bestIdx = laneLastIndex[0];
|
|
625
|
+
for (let l = 1; l < lanes; l++) {
|
|
626
|
+
const e = laneEnds[l];
|
|
627
|
+
if (e < bestEnd || e === bestEnd && laneLastIndex[l] < bestIdx) {
|
|
628
|
+
bestLane = l;
|
|
629
|
+
bestEnd = e;
|
|
630
|
+
bestIdx = laneLastIndex[l];
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
lane = bestLane;
|
|
634
|
+
start = bestEnd + gap;
|
|
635
|
+
if (shouldCacheLane) this.laneAssignments.set(i, lane);
|
|
636
|
+
} else {
|
|
637
|
+
lane = i % this.options.lanes;
|
|
638
|
+
start = paddingStart + scrollMargin;
|
|
639
|
+
if (shouldCacheLane) this.laneAssignments.set(i, lane);
|
|
640
|
+
}
|
|
641
|
+
const measuredSize = itemSizeCache.get(key);
|
|
642
|
+
const size = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i);
|
|
643
|
+
const end = start + size;
|
|
644
|
+
measurements[i] = {
|
|
645
|
+
index: i,
|
|
646
|
+
start,
|
|
647
|
+
size,
|
|
648
|
+
end,
|
|
649
|
+
key,
|
|
650
|
+
lane
|
|
651
|
+
};
|
|
652
|
+
if (laneLastIndex[lane] === void 0) filledLanes++;
|
|
653
|
+
laneLastIndex[lane] = i;
|
|
654
|
+
laneEnds[lane] = end;
|
|
655
|
+
}
|
|
656
|
+
this.measurementsCache = measurements;
|
|
657
|
+
return measurements;
|
|
658
|
+
}, {
|
|
659
|
+
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
660
|
+
debug: () => this.options.debug
|
|
661
|
+
});
|
|
662
|
+
this.calculateRange = memo(() => [
|
|
663
|
+
this.getMeasurements(),
|
|
664
|
+
this.getSize(),
|
|
665
|
+
this.getScrollOffset(),
|
|
666
|
+
this.options.lanes
|
|
667
|
+
], (measurements, outerSize, scrollOffset, lanes) => {
|
|
668
|
+
if (measurements.length === 0 || outerSize === 0) {
|
|
669
|
+
this.range = null;
|
|
670
|
+
return null;
|
|
671
|
+
}
|
|
672
|
+
this.range = calculateRangeImpl(measurements, outerSize, scrollOffset, lanes, lanes === 1 && this._flatMeasurements != null ? this._flatMeasurements : null);
|
|
673
|
+
return this.range;
|
|
674
|
+
}, {
|
|
675
|
+
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
676
|
+
debug: () => this.options.debug
|
|
677
|
+
});
|
|
678
|
+
this.getVirtualIndexes = memo(() => {
|
|
679
|
+
let startIndex = null;
|
|
680
|
+
let endIndex = null;
|
|
681
|
+
const range = this.calculateRange();
|
|
682
|
+
if (range) {
|
|
683
|
+
startIndex = range.startIndex;
|
|
684
|
+
endIndex = range.endIndex;
|
|
685
|
+
}
|
|
686
|
+
this.maybeNotify.updateDeps([
|
|
687
|
+
this.isScrolling,
|
|
688
|
+
startIndex,
|
|
689
|
+
endIndex
|
|
690
|
+
]);
|
|
691
|
+
return [
|
|
692
|
+
this.options.rangeExtractor,
|
|
693
|
+
this.options.overscan,
|
|
694
|
+
this.options.count,
|
|
695
|
+
startIndex,
|
|
696
|
+
endIndex
|
|
697
|
+
];
|
|
698
|
+
}, (rangeExtractor, overscan, count, startIndex, endIndex) => {
|
|
699
|
+
return startIndex === null || endIndex === null ? [] : rangeExtractor({
|
|
700
|
+
startIndex,
|
|
701
|
+
endIndex,
|
|
702
|
+
overscan,
|
|
703
|
+
count
|
|
704
|
+
});
|
|
705
|
+
}, {
|
|
706
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
|
|
707
|
+
debug: () => this.options.debug
|
|
708
|
+
});
|
|
709
|
+
this.indexFromElement = (node) => {
|
|
710
|
+
const attributeName = this.options.indexAttribute;
|
|
711
|
+
const indexStr = node.getAttribute(attributeName);
|
|
712
|
+
if (!indexStr) {
|
|
713
|
+
console.warn(`Missing attribute name '${attributeName}={index}' on measured element.`);
|
|
714
|
+
return -1;
|
|
715
|
+
}
|
|
716
|
+
return parseInt(indexStr, 10);
|
|
717
|
+
};
|
|
718
|
+
this.shouldMeasureDuringScroll = (index) => {
|
|
719
|
+
var _a;
|
|
720
|
+
if (!this.scrollState || this.scrollState.behavior !== "smooth") return true;
|
|
721
|
+
const scrollIndex = this.scrollState.index ?? ((_a = this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)) == null ? void 0 : _a.index);
|
|
722
|
+
if (scrollIndex !== void 0 && this.range) {
|
|
723
|
+
const bufferSize = Math.max(this.options.overscan, Math.ceil((this.range.endIndex - this.range.startIndex) / 2));
|
|
724
|
+
const minIndex = Math.max(0, scrollIndex - bufferSize);
|
|
725
|
+
const maxIndex = Math.min(this.options.count - 1, scrollIndex + bufferSize);
|
|
726
|
+
return index >= minIndex && index <= maxIndex;
|
|
727
|
+
}
|
|
728
|
+
return true;
|
|
729
|
+
};
|
|
730
|
+
this.measureElement = (node) => {
|
|
731
|
+
if (!node) {
|
|
732
|
+
this.elementsCache.forEach((cached, key2) => {
|
|
733
|
+
if (!cached.isConnected) {
|
|
734
|
+
this.observer.unobserve(cached);
|
|
735
|
+
this.elementsCache.delete(key2);
|
|
736
|
+
}
|
|
737
|
+
});
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
const index = this.indexFromElement(node);
|
|
741
|
+
const key = this.options.getItemKey(index);
|
|
742
|
+
const prevNode = this.elementsCache.get(key);
|
|
743
|
+
if (prevNode !== node) {
|
|
744
|
+
if (prevNode) this.observer.unobserve(prevNode);
|
|
745
|
+
this.observer.observe(node);
|
|
746
|
+
this.elementsCache.set(key, node);
|
|
747
|
+
}
|
|
748
|
+
if ((!this.isScrolling || this.scrollState) && this.shouldMeasureDuringScroll(index)) this.resizeItem(index, this.options.measureElement(node, void 0, this));
|
|
749
|
+
};
|
|
750
|
+
this.resizeItem = (index, size) => {
|
|
751
|
+
var _a, _b;
|
|
752
|
+
if (index < 0 || index >= this.options.count) return;
|
|
753
|
+
let cachedSize;
|
|
754
|
+
let itemStart;
|
|
755
|
+
let key;
|
|
756
|
+
const flat = this._flatMeasurements;
|
|
757
|
+
if (this.options.lanes === 1 && flat !== null) {
|
|
758
|
+
key = this.options.getItemKey(index);
|
|
759
|
+
itemStart = flat[index * 2];
|
|
760
|
+
cachedSize = flat[index * 2 + 1];
|
|
761
|
+
} else {
|
|
762
|
+
const item = this.measurementsCache[index];
|
|
763
|
+
if (!item) return;
|
|
764
|
+
key = item.key;
|
|
765
|
+
itemStart = item.start;
|
|
766
|
+
cachedSize = item.size;
|
|
767
|
+
}
|
|
768
|
+
const delta = size - (this.itemSizeCache.get(key) ?? cachedSize);
|
|
769
|
+
if (delta !== 0) {
|
|
770
|
+
const wasAtEnd = this.options.anchorTo === "end" && ((_a = this.scrollState) == null ? void 0 : _a.behavior) !== "smooth" && this.getVirtualDistanceFromEnd() <= this.options.scrollEndThreshold;
|
|
771
|
+
const prevTotalSize = wasAtEnd ? this.getTotalSize() : 0;
|
|
772
|
+
const shouldAdjustScroll = ((_b = this.scrollState) == null ? void 0 : _b.behavior) !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[index] ?? {
|
|
773
|
+
index,
|
|
774
|
+
key,
|
|
775
|
+
start: itemStart,
|
|
776
|
+
size: cachedSize,
|
|
777
|
+
end: itemStart + cachedSize,
|
|
778
|
+
lane: 0
|
|
779
|
+
}, delta, this) : itemStart < this.getScrollOffset() + this.scrollAdjustments && (!this.itemSizeCache.has(key) || this.scrollDirection !== "backward"));
|
|
780
|
+
if (this.pendingMin === null || index < this.pendingMin) this.pendingMin = index;
|
|
781
|
+
this.itemSizeCache.set(key, size);
|
|
782
|
+
this.itemSizeCacheVersion++;
|
|
783
|
+
if (wasAtEnd) this.applyScrollAdjustment(this.getTotalSize() - prevTotalSize);
|
|
784
|
+
else if (shouldAdjustScroll) this.applyScrollAdjustment(delta);
|
|
785
|
+
this.notify(false);
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
this.getVirtualItems = memo(() => [this.getVirtualIndexes(), this.getMeasurements()], (indexes, measurements) => {
|
|
789
|
+
const virtualItems = [];
|
|
790
|
+
for (let k = 0, len = indexes.length; k < len; k++) {
|
|
791
|
+
const measurement = measurements[indexes[k]];
|
|
792
|
+
virtualItems.push(measurement);
|
|
793
|
+
}
|
|
794
|
+
return virtualItems;
|
|
795
|
+
}, {
|
|
796
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualItems",
|
|
797
|
+
debug: () => this.options.debug
|
|
798
|
+
});
|
|
799
|
+
this.getVirtualItemForOffset = (offset) => {
|
|
800
|
+
const measurements = this.getMeasurements();
|
|
801
|
+
if (measurements.length === 0) return;
|
|
802
|
+
const flat = this._flatMeasurements;
|
|
803
|
+
const useFlat = this.options.lanes === 1 && flat != null;
|
|
804
|
+
return notUndefined(measurements[findNearestBinarySearch(0, measurements.length - 1, useFlat ? (i) => flat[i * 2] : (i) => notUndefined(measurements[i]).start, offset)]);
|
|
805
|
+
};
|
|
806
|
+
this.getMaxScrollOffset = () => {
|
|
807
|
+
if (!this.scrollElement) return 0;
|
|
808
|
+
if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
|
|
809
|
+
else {
|
|
810
|
+
const doc = this.scrollElement.document.documentElement;
|
|
811
|
+
return this.options.horizontal ? doc.scrollWidth - this.scrollElement.innerWidth : doc.scrollHeight - this.scrollElement.innerHeight;
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
this.getVirtualDistanceFromEnd = () => {
|
|
815
|
+
return Math.max(this.getTotalSize() - this.getSize() - this.getScrollOffset(), 0);
|
|
816
|
+
};
|
|
817
|
+
this.getDistanceFromEnd = () => {
|
|
818
|
+
return Math.max(this.getMaxScrollOffset() - this.getScrollOffset(), 0);
|
|
819
|
+
};
|
|
820
|
+
this.isAtEnd = (threshold = this.options.scrollEndThreshold) => {
|
|
821
|
+
return this.getDistanceFromEnd() <= threshold;
|
|
822
|
+
};
|
|
823
|
+
this.getOffsetForAlignment = (toOffset, align, itemSize = 0) => {
|
|
824
|
+
if (!this.scrollElement) return 0;
|
|
825
|
+
const size = this.getSize();
|
|
826
|
+
const scrollOffset = this.getScrollOffset();
|
|
827
|
+
if (align === "auto") align = toOffset >= scrollOffset + size ? "end" : "start";
|
|
828
|
+
if (align === "center") toOffset += (itemSize - size) / 2;
|
|
829
|
+
else if (align === "end") toOffset -= size;
|
|
830
|
+
const maxOffset = this.getMaxScrollOffset();
|
|
831
|
+
return Math.max(Math.min(maxOffset, toOffset), 0);
|
|
832
|
+
};
|
|
833
|
+
this.getOffsetForIndex = (index, align = "auto") => {
|
|
834
|
+
index = Math.max(0, Math.min(index, this.options.count - 1));
|
|
835
|
+
const size = this.getSize();
|
|
836
|
+
const scrollOffset = this.getScrollOffset();
|
|
837
|
+
const item = this.measurementsCache[index];
|
|
838
|
+
if (!item) return;
|
|
839
|
+
if (align === "auto") if (item.end >= scrollOffset + size - this.options.scrollPaddingEnd) align = "end";
|
|
840
|
+
else if (item.start <= scrollOffset + this.options.scrollPaddingStart) align = "start";
|
|
841
|
+
else return [scrollOffset, align];
|
|
842
|
+
if (align === "end" && index === this.options.count - 1) return [this.getMaxScrollOffset(), align];
|
|
843
|
+
const toOffset = align === "end" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;
|
|
844
|
+
return [this.getOffsetForAlignment(toOffset, align, item.size), align];
|
|
845
|
+
};
|
|
846
|
+
this.scrollToOffset = (toOffset, { align = "start", behavior = "auto" } = {}) => {
|
|
847
|
+
const offset = this.getOffsetForAlignment(toOffset, align);
|
|
848
|
+
this.scrollState = {
|
|
849
|
+
index: null,
|
|
850
|
+
align,
|
|
851
|
+
behavior,
|
|
852
|
+
startedAt: this.now(),
|
|
853
|
+
lastTargetOffset: offset,
|
|
854
|
+
stableFrames: 0
|
|
855
|
+
};
|
|
856
|
+
this._scrollToOffset(offset, {
|
|
857
|
+
adjustments: void 0,
|
|
858
|
+
behavior
|
|
859
|
+
});
|
|
860
|
+
this.scheduleScrollReconcile();
|
|
861
|
+
};
|
|
862
|
+
this.scrollToIndex = (index, { align: initialAlign = "auto", behavior = "auto" } = {}) => {
|
|
863
|
+
index = Math.max(0, Math.min(index, this.options.count - 1));
|
|
864
|
+
const offsetInfo = this.getOffsetForIndex(index, initialAlign);
|
|
865
|
+
if (!offsetInfo) return;
|
|
866
|
+
const [offset, align] = offsetInfo;
|
|
867
|
+
const now = this.now();
|
|
868
|
+
this.scrollState = {
|
|
869
|
+
index,
|
|
870
|
+
align,
|
|
871
|
+
behavior,
|
|
872
|
+
startedAt: now,
|
|
873
|
+
lastTargetOffset: offset,
|
|
874
|
+
stableFrames: 0
|
|
875
|
+
};
|
|
876
|
+
this._scrollToOffset(offset, {
|
|
877
|
+
adjustments: void 0,
|
|
878
|
+
behavior
|
|
879
|
+
});
|
|
880
|
+
this.scheduleScrollReconcile();
|
|
881
|
+
};
|
|
882
|
+
this.scrollBy = (delta, { behavior = "auto" } = {}) => {
|
|
883
|
+
const offset = this.getScrollOffset() + delta;
|
|
884
|
+
this.scrollState = {
|
|
885
|
+
index: null,
|
|
886
|
+
align: "start",
|
|
887
|
+
behavior,
|
|
888
|
+
startedAt: this.now(),
|
|
889
|
+
lastTargetOffset: offset,
|
|
890
|
+
stableFrames: 0
|
|
891
|
+
};
|
|
892
|
+
this._scrollToOffset(offset, {
|
|
893
|
+
adjustments: void 0,
|
|
894
|
+
behavior
|
|
895
|
+
});
|
|
896
|
+
this.scheduleScrollReconcile();
|
|
897
|
+
};
|
|
898
|
+
this.scrollToEnd = ({ behavior = "auto" } = {}) => {
|
|
899
|
+
if (this.options.count > 0) {
|
|
900
|
+
this.scrollToIndex(this.options.count - 1, {
|
|
901
|
+
align: "end",
|
|
902
|
+
behavior
|
|
903
|
+
});
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), { behavior });
|
|
907
|
+
};
|
|
908
|
+
this.getTotalSize = () => {
|
|
909
|
+
var _a;
|
|
910
|
+
const measurements = this.getMeasurements();
|
|
911
|
+
let end;
|
|
912
|
+
if (measurements.length === 0) end = this.options.paddingStart;
|
|
913
|
+
else if (this.options.lanes === 1) {
|
|
914
|
+
const lastIdx = measurements.length - 1;
|
|
915
|
+
const flat = this._flatMeasurements;
|
|
916
|
+
if (flat != null) end = flat[lastIdx * 2] + flat[lastIdx * 2 + 1];
|
|
917
|
+
else end = ((_a = measurements[lastIdx]) == null ? void 0 : _a.end) ?? 0;
|
|
918
|
+
} else {
|
|
919
|
+
const endByLane = Array(this.options.lanes).fill(null);
|
|
920
|
+
let endIndex = measurements.length - 1;
|
|
921
|
+
while (endIndex >= 0 && endByLane.some((val) => val === null)) {
|
|
922
|
+
const item = measurements[endIndex];
|
|
923
|
+
if (endByLane[item.lane] === null) endByLane[item.lane] = item.end;
|
|
924
|
+
endIndex--;
|
|
925
|
+
}
|
|
926
|
+
end = Math.max(...endByLane.filter((val) => val !== null));
|
|
927
|
+
}
|
|
928
|
+
return Math.max(end - this.options.scrollMargin + this.options.paddingEnd, 0);
|
|
929
|
+
};
|
|
930
|
+
this.takeSnapshot = () => {
|
|
931
|
+
const snapshot = [];
|
|
932
|
+
if (this.itemSizeCache.size === 0) return snapshot;
|
|
933
|
+
const m = this.getMeasurements();
|
|
934
|
+
for (const item of m) if (item && this.itemSizeCache.has(item.key)) snapshot.push({
|
|
935
|
+
index: item.index,
|
|
936
|
+
key: item.key,
|
|
937
|
+
start: item.start,
|
|
938
|
+
size: item.size,
|
|
939
|
+
end: item.end,
|
|
940
|
+
lane: item.lane
|
|
941
|
+
});
|
|
942
|
+
return snapshot;
|
|
943
|
+
};
|
|
944
|
+
this._scrollToOffset = (offset, { adjustments, behavior }) => {
|
|
945
|
+
this._intendedScrollOffset = offset + (adjustments ?? 0);
|
|
946
|
+
this.options.scrollToFn(offset, {
|
|
947
|
+
behavior,
|
|
948
|
+
adjustments
|
|
949
|
+
}, this);
|
|
950
|
+
};
|
|
951
|
+
this.measure = () => {
|
|
952
|
+
this.pendingMin = null;
|
|
953
|
+
this.itemSizeCache.clear();
|
|
954
|
+
this.laneAssignments.clear();
|
|
955
|
+
this.itemSizeCacheVersion++;
|
|
956
|
+
this.notify(false);
|
|
957
|
+
};
|
|
958
|
+
this.setOptions(opts);
|
|
959
|
+
}
|
|
960
|
+
applyScrollAdjustment(delta, behavior) {
|
|
961
|
+
if (delta === 0) return;
|
|
962
|
+
if (process.env.NODE_ENV !== "production" && this.options.debug) console.info("correction", delta);
|
|
963
|
+
if (isIOSWebKit() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded)) this._iosDeferredAdjustment += delta;
|
|
964
|
+
else {
|
|
965
|
+
this._scrollToOffset(this.getScrollOffset(), {
|
|
966
|
+
adjustments: this.scrollAdjustments += delta,
|
|
967
|
+
behavior
|
|
968
|
+
});
|
|
969
|
+
if (this.scrollOffset !== null) {
|
|
970
|
+
this.scrollOffset += this.scrollAdjustments;
|
|
971
|
+
this.scrollAdjustments = 0;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
scheduleScrollReconcile() {
|
|
976
|
+
if (!this.targetWindow) {
|
|
977
|
+
this.scrollState = null;
|
|
978
|
+
return;
|
|
979
|
+
}
|
|
980
|
+
if (this.rafId != null) return;
|
|
981
|
+
this.rafId = this.targetWindow.requestAnimationFrame(() => {
|
|
982
|
+
this.rafId = null;
|
|
983
|
+
this.reconcileScroll();
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
reconcileScroll() {
|
|
987
|
+
if (!this.scrollState) return;
|
|
988
|
+
if (!this.scrollElement) return;
|
|
989
|
+
if (this.now() - this.scrollState.startedAt > 5e3) {
|
|
990
|
+
this.scrollState = null;
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
const offsetInfo = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0;
|
|
994
|
+
const targetOffset = offsetInfo ? offsetInfo[0] : this.scrollState.lastTargetOffset;
|
|
995
|
+
const STABLE_FRAMES = 1;
|
|
996
|
+
const targetChanged = targetOffset !== this.scrollState.lastTargetOffset;
|
|
997
|
+
if (!targetChanged && approxEqual(targetOffset, this.getScrollOffset())) {
|
|
998
|
+
this.scrollState.stableFrames++;
|
|
999
|
+
if (this.scrollState.stableFrames >= STABLE_FRAMES) {
|
|
1000
|
+
if (this.getScrollOffset() !== targetOffset) this._scrollToOffset(targetOffset, {
|
|
1001
|
+
adjustments: void 0,
|
|
1002
|
+
behavior: "auto"
|
|
1003
|
+
});
|
|
1004
|
+
this.scrollState = null;
|
|
1005
|
+
return;
|
|
1006
|
+
}
|
|
1007
|
+
} else {
|
|
1008
|
+
this.scrollState.stableFrames = 0;
|
|
1009
|
+
if (targetChanged) {
|
|
1010
|
+
const viewport = this.getSize() || 600;
|
|
1011
|
+
const distance = Math.abs(targetOffset - this.getScrollOffset());
|
|
1012
|
+
const keepSmooth = this.scrollState.behavior === "smooth" && distance > viewport;
|
|
1013
|
+
this.scrollState.lastTargetOffset = targetOffset;
|
|
1014
|
+
if (!keepSmooth) this.scrollState.behavior = "auto";
|
|
1015
|
+
this._scrollToOffset(targetOffset, {
|
|
1016
|
+
adjustments: void 0,
|
|
1017
|
+
behavior: keepSmooth ? "smooth" : "auto"
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
this.scheduleScrollReconcile();
|
|
1022
|
+
}
|
|
1023
|
+
};
|
|
1024
|
+
var findNearestBinarySearch = (low, high, getCurrentValue, value) => {
|
|
1025
|
+
while (low <= high) {
|
|
1026
|
+
const middle = (low + high) / 2 | 0;
|
|
1027
|
+
const currentValue = getCurrentValue(middle);
|
|
1028
|
+
if (currentValue < value) low = middle + 1;
|
|
1029
|
+
else if (currentValue > value) high = middle - 1;
|
|
1030
|
+
else return middle;
|
|
1031
|
+
}
|
|
1032
|
+
if (low > 0) return low - 1;
|
|
1033
|
+
else return 0;
|
|
1034
|
+
};
|
|
1035
|
+
function findNearestBinarySearchFlat(flat, high, value) {
|
|
1036
|
+
let low = 0;
|
|
1037
|
+
while (low <= high) {
|
|
1038
|
+
const middle = (low + high) / 2 | 0;
|
|
1039
|
+
const currentValue = flat[middle * 2];
|
|
1040
|
+
if (currentValue < value) low = middle + 1;
|
|
1041
|
+
else if (currentValue > value) high = middle - 1;
|
|
1042
|
+
else return middle;
|
|
1043
|
+
}
|
|
1044
|
+
return low > 0 ? low - 1 : 0;
|
|
1045
|
+
}
|
|
1046
|
+
function calculateRangeImpl(measurements, outerSize, scrollOffset, lanes, flat) {
|
|
1047
|
+
const lastIndex = measurements.length - 1;
|
|
1048
|
+
if (measurements.length <= lanes) return {
|
|
1049
|
+
startIndex: 0,
|
|
1050
|
+
endIndex: lastIndex
|
|
1051
|
+
};
|
|
1052
|
+
if (lanes === 1 && flat !== null) {
|
|
1053
|
+
const startIndex2 = findNearestBinarySearchFlat(flat, lastIndex, scrollOffset);
|
|
1054
|
+
let endIndex2 = startIndex2;
|
|
1055
|
+
const limit = scrollOffset + outerSize;
|
|
1056
|
+
while (endIndex2 < lastIndex && flat[endIndex2 * 2] + flat[endIndex2 * 2 + 1] < limit) endIndex2++;
|
|
1057
|
+
return {
|
|
1058
|
+
startIndex: startIndex2,
|
|
1059
|
+
endIndex: endIndex2
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
const getStart = (index) => measurements[index].start;
|
|
1063
|
+
let startIndex = findNearestBinarySearch(0, lastIndex, getStart, scrollOffset);
|
|
1064
|
+
let endIndex = startIndex;
|
|
1065
|
+
if (lanes === 1) while (endIndex < lastIndex && measurements[endIndex].end < scrollOffset + outerSize) endIndex++;
|
|
1066
|
+
else if (lanes > 1) {
|
|
1067
|
+
const endPerLane = Array(lanes).fill(0);
|
|
1068
|
+
while (endIndex < lastIndex && endPerLane.some((pos) => pos < scrollOffset + outerSize)) {
|
|
1069
|
+
const item = measurements[endIndex];
|
|
1070
|
+
endPerLane[item.lane] = item.end;
|
|
1071
|
+
endIndex++;
|
|
1072
|
+
}
|
|
1073
|
+
const startPerLane = Array(lanes).fill(scrollOffset + outerSize);
|
|
1074
|
+
while (startIndex >= 0 && startPerLane.some((pos) => pos >= scrollOffset)) {
|
|
1075
|
+
const item = measurements[startIndex];
|
|
1076
|
+
startPerLane[item.lane] = item.start;
|
|
1077
|
+
startIndex--;
|
|
1078
|
+
}
|
|
1079
|
+
startIndex = Math.max(0, startIndex - startIndex % lanes);
|
|
1080
|
+
endIndex = Math.min(lastIndex, endIndex + (lanes - 1 - endIndex % lanes));
|
|
1081
|
+
}
|
|
1082
|
+
return {
|
|
1083
|
+
startIndex,
|
|
1084
|
+
endIndex
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
//#endregion
|
|
1088
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-virtual@3.14.6_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
1089
|
+
var useIsomorphicLayoutEffect = typeof document !== "undefined" ? import_react.useLayoutEffect : import_react.useEffect;
|
|
1090
|
+
function useVirtualizerBase({ useFlushSync = true, directDomUpdates = false, directDomUpdatesMode = "transform", ...options }) {
|
|
1091
|
+
const rerender = import_react.useReducer((x) => x + 1, 0)[1];
|
|
1092
|
+
const directRef = import_react.useRef({
|
|
1093
|
+
enabled: directDomUpdates,
|
|
1094
|
+
mode: directDomUpdatesMode,
|
|
1095
|
+
container: null,
|
|
1096
|
+
lastSize: null,
|
|
1097
|
+
lastPositions: /* @__PURE__ */ new WeakMap(),
|
|
1098
|
+
prevRange: null
|
|
1099
|
+
});
|
|
1100
|
+
directRef.current.enabled = directDomUpdates;
|
|
1101
|
+
directRef.current.mode = directDomUpdatesMode;
|
|
1102
|
+
const applyDirectStyles = (instance2) => {
|
|
1103
|
+
const state = directRef.current;
|
|
1104
|
+
if (!state.enabled || !state.container) return;
|
|
1105
|
+
const totalSize = instance2.getTotalSize();
|
|
1106
|
+
if (totalSize !== state.lastSize) {
|
|
1107
|
+
state.lastSize = totalSize;
|
|
1108
|
+
const sizeAxis = instance2.options.horizontal ? "width" : "height";
|
|
1109
|
+
state.container.style[sizeAxis] = `${totalSize}px`;
|
|
1110
|
+
}
|
|
1111
|
+
const horizontal = !!instance2.options.horizontal;
|
|
1112
|
+
const useTransform = state.mode === "transform";
|
|
1113
|
+
const posAxis = horizontal ? "left" : "top";
|
|
1114
|
+
const scrollMargin = instance2.options.scrollMargin;
|
|
1115
|
+
const items = instance2.getVirtualItems();
|
|
1116
|
+
for (const item of items) {
|
|
1117
|
+
const next = item.start - scrollMargin;
|
|
1118
|
+
const el = instance2.elementsCache.get(item.key);
|
|
1119
|
+
if (!el) continue;
|
|
1120
|
+
if (state.lastPositions.get(el) === next) continue;
|
|
1121
|
+
state.lastPositions.set(el, next);
|
|
1122
|
+
if (useTransform) el.style.transform = horizontal ? `translate3d(${next}px, 0, 0)` : `translate3d(0, ${next}px, 0)`;
|
|
1123
|
+
else el.style[posAxis] = `${next}px`;
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
const resolvedOptions = {
|
|
1127
|
+
...options,
|
|
1128
|
+
onChange: (instance2, sync) => {
|
|
1129
|
+
var _a;
|
|
1130
|
+
const state = directRef.current;
|
|
1131
|
+
let shouldRerender = true;
|
|
1132
|
+
if (state.enabled) {
|
|
1133
|
+
applyDirectStyles(instance2);
|
|
1134
|
+
const range = instance2.range;
|
|
1135
|
+
const prev = state.prevRange;
|
|
1136
|
+
shouldRerender = !prev || prev.isScrolling !== instance2.isScrolling || prev.startIndex !== (range == null ? void 0 : range.startIndex) || prev.endIndex !== (range == null ? void 0 : range.endIndex);
|
|
1137
|
+
if (shouldRerender) state.prevRange = range ? {
|
|
1138
|
+
startIndex: range.startIndex,
|
|
1139
|
+
endIndex: range.endIndex,
|
|
1140
|
+
isScrolling: instance2.isScrolling
|
|
1141
|
+
} : null;
|
|
1142
|
+
}
|
|
1143
|
+
if (shouldRerender) if (useFlushSync && sync) (0, import_react_dom.flushSync)(rerender);
|
|
1144
|
+
else rerender();
|
|
1145
|
+
(_a = options.onChange) == null || _a.call(options, instance2, sync);
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
const [instance] = import_react.useState(() => {
|
|
1149
|
+
const v = new Virtualizer(resolvedOptions);
|
|
1150
|
+
return Object.assign(v, { containerRef: (node) => {
|
|
1151
|
+
const state = directRef.current;
|
|
1152
|
+
state.container = node;
|
|
1153
|
+
state.lastSize = null;
|
|
1154
|
+
if (node && state.enabled) {
|
|
1155
|
+
const total = v.getTotalSize();
|
|
1156
|
+
state.lastSize = total;
|
|
1157
|
+
const axis = v.options.horizontal ? "width" : "height";
|
|
1158
|
+
node.style[axis] = `${total}px`;
|
|
1159
|
+
}
|
|
1160
|
+
} });
|
|
1161
|
+
});
|
|
1162
|
+
instance.setOptions(resolvedOptions);
|
|
1163
|
+
useIsomorphicLayoutEffect(() => {
|
|
1164
|
+
return instance._didMount();
|
|
1165
|
+
}, []);
|
|
1166
|
+
useIsomorphicLayoutEffect(() => {
|
|
1167
|
+
return instance._willUpdate();
|
|
1168
|
+
});
|
|
1169
|
+
useIsomorphicLayoutEffect(() => {
|
|
1170
|
+
applyDirectStyles(instance);
|
|
1171
|
+
});
|
|
1172
|
+
return instance;
|
|
1173
|
+
}
|
|
1174
|
+
function useVirtualizer(options) {
|
|
1175
|
+
return useVirtualizerBase({
|
|
1176
|
+
observeElementRect,
|
|
1177
|
+
observeElementOffset,
|
|
1178
|
+
scrollToFn: elementScroll,
|
|
1179
|
+
...options
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
//#endregion
|
|
1183
|
+
//#region ~icons/lucide/refresh-cw.jsx
|
|
1184
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
1185
|
+
var lucideRefreshCw = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
1186
|
+
viewBox: "0 0 24 24",
|
|
1187
|
+
width: "1.2em",
|
|
1188
|
+
height: "1.2em",
|
|
1189
|
+
...props,
|
|
1190
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", {
|
|
1191
|
+
fill: "none",
|
|
1192
|
+
stroke: "currentColor",
|
|
1193
|
+
strokeLinecap: "round",
|
|
1194
|
+
strokeLinejoin: "round",
|
|
1195
|
+
strokeWidth: 2,
|
|
1196
|
+
children: [
|
|
1197
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8" }),
|
|
1198
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16" }),
|
|
1199
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 16H3v5" })
|
|
1200
|
+
]
|
|
1201
|
+
})
|
|
1202
|
+
});
|
|
1203
|
+
//#endregion
|
|
1204
|
+
//#region src/components/qgrid/MonitConsole.tsx
|
|
1205
|
+
var POLL_INTERVAL_MS = 1e3;
|
|
1206
|
+
var STALE_AFTER_MS = 5e3;
|
|
1207
|
+
var MIRROR_CAP = 4e3;
|
|
1208
|
+
var LEVEL_RANK = {
|
|
1209
|
+
trace: 0,
|
|
1210
|
+
debug: 1,
|
|
1211
|
+
info: 2,
|
|
1212
|
+
warning: 3,
|
|
1213
|
+
error: 4,
|
|
1214
|
+
fatal: 5
|
|
1215
|
+
};
|
|
1216
|
+
var LEVEL_LABEL = {
|
|
1217
|
+
trace: "TRC",
|
|
1218
|
+
debug: "DBG",
|
|
1219
|
+
info: "INF",
|
|
1220
|
+
warning: "WRN",
|
|
1221
|
+
error: "ERR",
|
|
1222
|
+
fatal: "FTL"
|
|
1223
|
+
};
|
|
1224
|
+
var TIME_FORMATTER = new Intl.DateTimeFormat("en-GB", {
|
|
1225
|
+
hour: "2-digit",
|
|
1226
|
+
minute: "2-digit",
|
|
1227
|
+
second: "2-digit",
|
|
1228
|
+
hour12: false
|
|
1229
|
+
});
|
|
1230
|
+
function formatTime(epochMs) {
|
|
1231
|
+
return TIME_FORMATTER.format(new Date(epochMs));
|
|
1232
|
+
}
|
|
1233
|
+
function categoryLabel(category) {
|
|
1234
|
+
return category.join("·");
|
|
1235
|
+
}
|
|
1236
|
+
var SPARK_CAP = 120;
|
|
1237
|
+
function pushSample(buffer, value) {
|
|
1238
|
+
buffer.push(value);
|
|
1239
|
+
if (buffer.length > SPARK_CAP) buffer.shift();
|
|
1240
|
+
}
|
|
1241
|
+
var SPARK_WIDTH = 56;
|
|
1242
|
+
var SPARK_HEIGHT = 14;
|
|
1243
|
+
function Sparkline({ values }) {
|
|
1244
|
+
if (values.length < 2) return null;
|
|
1245
|
+
const width = SPARK_WIDTH;
|
|
1246
|
+
const height = SPARK_HEIGHT;
|
|
1247
|
+
const max = Math.max(...values, 1);
|
|
1248
|
+
const step = width / (SPARK_CAP - 1);
|
|
1249
|
+
const startX = width - (values.length - 1) * step;
|
|
1250
|
+
const points = values.map((v, i) => {
|
|
1251
|
+
const x = startX + i * step;
|
|
1252
|
+
const y = height - 1 - v / max * (height - 2);
|
|
1253
|
+
return `${x.toFixed(1)},${y.toFixed(1)}`;
|
|
1254
|
+
}).join(" ");
|
|
1255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
1256
|
+
width,
|
|
1257
|
+
height,
|
|
1258
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
1259
|
+
className: "shrink-0",
|
|
1260
|
+
"aria-hidden": "true",
|
|
1261
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", {
|
|
1262
|
+
points,
|
|
1263
|
+
fill: "none",
|
|
1264
|
+
stroke: "currentColor",
|
|
1265
|
+
strokeWidth: "1.5",
|
|
1266
|
+
strokeLinejoin: "round",
|
|
1267
|
+
strokeLinecap: "round",
|
|
1268
|
+
className: "text-sand-300"
|
|
1269
|
+
})
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
function QuotaGauge({ usedPercent, threshold, blocked }) {
|
|
1273
|
+
if (usedPercent === null) return null;
|
|
1274
|
+
const clamped = Math.max(0, Math.min(usedPercent, 100));
|
|
1275
|
+
const over = blocked || threshold !== null && usedPercent >= threshold;
|
|
1276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1277
|
+
className: "inline-flex items-center gap-1",
|
|
1278
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1279
|
+
className: "relative inline-block h-[4px] w-9 overflow-hidden rounded-full bg-sand-100",
|
|
1280
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1281
|
+
className: clsx("absolute inset-y-0 left-0 rounded-full", over ? "bg-caution-500" : "bg-sand-400"),
|
|
1282
|
+
style: { width: `${clamped}%` }
|
|
1283
|
+
}), threshold !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1284
|
+
className: "absolute inset-y-0 w-px bg-sand-500",
|
|
1285
|
+
style: { left: `${Math.min(threshold, 100)}%` }
|
|
1286
|
+
})]
|
|
1287
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1288
|
+
className: clsx("font-mono text-[10px] tabular-nums", over ? "font-semibold text-caution-500" : "text-sand-500"),
|
|
1289
|
+
children: [Math.round(usedPercent), "%"]
|
|
1290
|
+
})]
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
function MonitConsole({ search, onSearchChange }) {
|
|
1294
|
+
const [items, setItems] = (0, import_react.useState)([]);
|
|
1295
|
+
const cursorRef = (0, import_react.useRef)(void 0);
|
|
1296
|
+
const epochRef = (0, import_react.useRef)(void 0);
|
|
1297
|
+
const keyRef = (0, import_react.useRef)(0);
|
|
1298
|
+
const [clock, setClock] = (0, import_react.useState)(() => Date.now());
|
|
1299
|
+
const query = useQuery({
|
|
1300
|
+
queryKey: ["Monit", "monitLogs"],
|
|
1301
|
+
queryFn: () => MonitService.monitLogs(cursorRef.current),
|
|
1302
|
+
refetchInterval: POLL_INTERVAL_MS,
|
|
1303
|
+
retry: false
|
|
1304
|
+
});
|
|
1305
|
+
const info = useQuery({
|
|
1306
|
+
...MonitService.monitInfoQueryOptions(),
|
|
1307
|
+
staleTime: Infinity
|
|
1308
|
+
}).data;
|
|
1309
|
+
const vitals = query.data?.vitals;
|
|
1310
|
+
const stats = useQuery({
|
|
1311
|
+
...MonitService.monitStatsQueryOptions(),
|
|
1312
|
+
refetchInterval: 3e4,
|
|
1313
|
+
retry: false
|
|
1314
|
+
}).data;
|
|
1315
|
+
const inFlightSparkRef = (0, import_react.useRef)([]);
|
|
1316
|
+
(0, import_react.useEffect)(() => {
|
|
1317
|
+
if (!vitals) return;
|
|
1318
|
+
pushSample(inFlightSparkRef.current, vitals.openaiInFlight);
|
|
1319
|
+
}, [vitals]);
|
|
1320
|
+
(0, import_react.useEffect)(() => {
|
|
1321
|
+
const chunk = query.data;
|
|
1322
|
+
if (!chunk) return;
|
|
1323
|
+
applyChunk(chunk);
|
|
1324
|
+
}, [query.data]);
|
|
1325
|
+
function applyChunk(chunk) {
|
|
1326
|
+
const nextKey = () => ++keyRef.current;
|
|
1327
|
+
setItems((prev) => {
|
|
1328
|
+
let base = prev;
|
|
1329
|
+
const appended = [];
|
|
1330
|
+
if (epochRef.current !== void 0 && chunk.processStartedAt !== epochRef.current) {
|
|
1331
|
+
base = [];
|
|
1332
|
+
appended.push({
|
|
1333
|
+
kind: "restart",
|
|
1334
|
+
key: nextKey(),
|
|
1335
|
+
processStartedAt: chunk.processStartedAt
|
|
1336
|
+
});
|
|
1337
|
+
} else if (chunk.dropped > 0) appended.push({
|
|
1338
|
+
kind: "dropped",
|
|
1339
|
+
key: nextKey(),
|
|
1340
|
+
count: chunk.dropped
|
|
1341
|
+
});
|
|
1342
|
+
epochRef.current = chunk.processStartedAt;
|
|
1343
|
+
cursorRef.current = chunk.nextCursor;
|
|
1344
|
+
const lastSeq = base.findLast((item) => item.kind === "log")?.entry.seq;
|
|
1345
|
+
for (const entry of chunk.entries) {
|
|
1346
|
+
if (lastSeq !== void 0 && entry.seq <= lastSeq) continue;
|
|
1347
|
+
appended.push({
|
|
1348
|
+
kind: "log",
|
|
1349
|
+
key: nextKey(),
|
|
1350
|
+
entry
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
if (appended.length === 0) return prev;
|
|
1354
|
+
const next = [...base, ...appended];
|
|
1355
|
+
return next.length > MIRROR_CAP ? next.slice(-MIRROR_CAP) : next;
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
(0, import_react.useEffect)(() => {
|
|
1359
|
+
const timer = window.setInterval(() => setClock(Date.now()), 2e3);
|
|
1360
|
+
return () => window.clearInterval(timer);
|
|
1361
|
+
}, []);
|
|
1362
|
+
const isStale = items.length > 0 && (query.isRefetchError || query.dataUpdatedAt > 0 && clock - query.dataUpdatedAt > STALE_AFTER_MS);
|
|
1363
|
+
const visible = (0, import_react.useMemo)(() => {
|
|
1364
|
+
return items.filter((item) => {
|
|
1365
|
+
if (item.kind !== "log") return true;
|
|
1366
|
+
switch (search.level) {
|
|
1367
|
+
case "warn": return (LEVEL_RANK[item.entry.level] ?? 2) >= 3;
|
|
1368
|
+
case "error": return (LEVEL_RANK[item.entry.level] ?? 2) >= 4;
|
|
1369
|
+
default: return true;
|
|
1370
|
+
}
|
|
1371
|
+
});
|
|
1372
|
+
}, [items, search.level]);
|
|
1373
|
+
const parentRef = (0, import_react.useRef)(null);
|
|
1374
|
+
const virtualizer = useVirtualizer({
|
|
1375
|
+
count: visible.length,
|
|
1376
|
+
getScrollElement: () => parentRef.current,
|
|
1377
|
+
estimateSize: () => 20,
|
|
1378
|
+
getItemKey: (index) => visible[index].key,
|
|
1379
|
+
anchorTo: "end",
|
|
1380
|
+
followOnAppend: true,
|
|
1381
|
+
scrollEndThreshold: 80,
|
|
1382
|
+
overscan: 12
|
|
1383
|
+
});
|
|
1384
|
+
const atEnd = virtualizer.isAtEnd();
|
|
1385
|
+
const hasFirstData = query.dataUpdatedAt > 0;
|
|
1386
|
+
const firstLoadFailed = !hasFirstData && query.isError;
|
|
1387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
|
|
1388
|
+
className: "panel overflow-hidden",
|
|
1389
|
+
children: [
|
|
1390
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
1391
|
+
className: "panel-header flex min-h-11 flex-wrap items-center gap-x-3 gap-y-2 px-4 py-2 sm:px-5",
|
|
1392
|
+
children: [
|
|
1393
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", {
|
|
1394
|
+
className: "text-[13px] font-semibold tracking-[-0.01em] text-sand-800",
|
|
1395
|
+
children: "Server logs"
|
|
1396
|
+
}),
|
|
1397
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1398
|
+
className: "inline-flex items-center gap-1.5 text-[11px] font-medium text-sand-700",
|
|
1399
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: clsx("size-1.5 rounded-full", isStale || firstLoadFailed ? "bg-danger-400" : "bg-sienna-500 motion-safe:animate-pulse") }), firstLoadFailed ? "Disconnected" : isStale ? "Stale" : hasFirstData ? "Live" : "…"]
|
|
1400
|
+
}),
|
|
1401
|
+
epochRef.current !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1402
|
+
className: "text-[11px] text-sand-500",
|
|
1403
|
+
children: ["ephemeral · resets on restart · since ", formatTime(epochRef.current)]
|
|
1404
|
+
}),
|
|
1405
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1406
|
+
className: "ml-auto flex flex-wrap items-center gap-2",
|
|
1407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1408
|
+
className: "segmented-control inline-flex",
|
|
1409
|
+
role: "tablist",
|
|
1410
|
+
"aria-label": "Log filter",
|
|
1411
|
+
children: [
|
|
1412
|
+
{
|
|
1413
|
+
value: "all",
|
|
1414
|
+
label: "All"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
value: "warn",
|
|
1418
|
+
label: "Warn+"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
value: "error",
|
|
1422
|
+
label: "Err+"
|
|
1423
|
+
}
|
|
1424
|
+
].map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
1425
|
+
type: "button",
|
|
1426
|
+
"data-active": search.level === option.value,
|
|
1427
|
+
onClick: () => onSearchChange({
|
|
1428
|
+
...search,
|
|
1429
|
+
level: option.value
|
|
1430
|
+
}),
|
|
1431
|
+
className: "rounded-[6px] px-2.5 py-1 text-[11px] font-medium text-sand-500 transition-colors hover:text-sand-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sienna-300 data-[active=true]:text-sand-900",
|
|
1432
|
+
children: option.label
|
|
1433
|
+
}, option.value))
|
|
1434
|
+
})
|
|
1435
|
+
})
|
|
1436
|
+
]
|
|
1437
|
+
}),
|
|
1438
|
+
info && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1439
|
+
className: "flex flex-wrap items-center gap-x-5 gap-y-1 border-b border-sand-100 bg-sand-50/60 px-4 py-2 text-[11px] text-sand-600 sm:px-5",
|
|
1440
|
+
children: [
|
|
1441
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: ["server ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1442
|
+
className: "font-mono text-sand-800",
|
|
1443
|
+
children: info.serverUrl
|
|
1444
|
+
})] }),
|
|
1445
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
1446
|
+
"db",
|
|
1447
|
+
" ",
|
|
1448
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1449
|
+
className: "font-mono text-sand-800",
|
|
1450
|
+
children: [
|
|
1451
|
+
info.dbHost,
|
|
1452
|
+
"/",
|
|
1453
|
+
info.dbName
|
|
1454
|
+
]
|
|
1455
|
+
})
|
|
1456
|
+
] }),
|
|
1457
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
1458
|
+
"openai transport",
|
|
1459
|
+
" ",
|
|
1460
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1461
|
+
className: "font-mono text-sand-800",
|
|
1462
|
+
children: info.openai.transport
|
|
1463
|
+
})
|
|
1464
|
+
] }),
|
|
1465
|
+
vitals && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1466
|
+
className: "inline-flex items-center gap-1.5",
|
|
1467
|
+
children: [
|
|
1468
|
+
"openai in-flight",
|
|
1469
|
+
" ",
|
|
1470
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1471
|
+
className: "font-mono text-sand-800",
|
|
1472
|
+
children: vitals.openaiInFlight
|
|
1473
|
+
}),
|
|
1474
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Sparkline, { values: inFlightSparkRef.current })
|
|
1475
|
+
]
|
|
1476
|
+
}), vitals.anthropicTokenCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
1477
|
+
"anthropic running",
|
|
1478
|
+
" ",
|
|
1479
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1480
|
+
className: "font-mono text-sand-800",
|
|
1481
|
+
children: vitals.anthropicInFlight
|
|
1482
|
+
})
|
|
1483
|
+
] })] }),
|
|
1484
|
+
stats?.providers.map((p) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1485
|
+
className: "text-sand-500",
|
|
1486
|
+
children: [
|
|
1487
|
+
"1h ",
|
|
1488
|
+
p.provider,
|
|
1489
|
+
" ",
|
|
1490
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1491
|
+
className: "font-mono text-sand-700",
|
|
1492
|
+
children: p.requests
|
|
1493
|
+
}),
|
|
1494
|
+
" req",
|
|
1495
|
+
p.errors > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
1496
|
+
" · ",
|
|
1497
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1498
|
+
className: "font-mono font-semibold text-caution-500",
|
|
1499
|
+
children: p.errors
|
|
1500
|
+
}),
|
|
1501
|
+
" err"
|
|
1502
|
+
] }),
|
|
1503
|
+
" · hit ",
|
|
1504
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1505
|
+
className: "font-mono text-sand-700",
|
|
1506
|
+
children: cacheHitRate({
|
|
1507
|
+
input_tokens: p.inputTokens,
|
|
1508
|
+
cache_read_tokens: p.cacheReadTokens
|
|
1509
|
+
})
|
|
1510
|
+
})
|
|
1511
|
+
]
|
|
1512
|
+
}, p.provider))
|
|
1513
|
+
]
|
|
1514
|
+
}),
|
|
1515
|
+
vitals && (vitals.openaiQuotaByToken.length > 0 || vitals.anthropicTokenNames.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1516
|
+
className: "space-y-1.5 border-b border-sand-100 px-4 py-2.5 sm:px-5",
|
|
1517
|
+
children: [vitals.openaiQuotaByToken.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1518
|
+
className: "flex flex-wrap items-center gap-2",
|
|
1519
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1520
|
+
className: "w-[4.5rem] shrink-0 text-[10px] font-medium uppercase tracking-[0.08em] text-sand-400",
|
|
1521
|
+
children: "openai"
|
|
1522
|
+
}), vitals.openaiQuotaByToken.map((quota) => {
|
|
1523
|
+
const quotaTitle = quota.usedPercent === null ? "quota not sampled yet" : `quota ${Math.round(quota.usedPercent)}%${quota.threshold !== null ? ` / threshold ${quota.threshold}%` : ""}${quota.resetsAt ? ` · resets ${formatTime(quota.resetsAt)}` : ""}`;
|
|
1524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1525
|
+
title: `${quota.name} · ${quotaTitle}`,
|
|
1526
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-sand-200 bg-white px-2 py-1",
|
|
1527
|
+
children: [
|
|
1528
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1529
|
+
className: "font-mono text-[11px] text-sand-600",
|
|
1530
|
+
children: quota.name.split("/").pop()
|
|
1531
|
+
}),
|
|
1532
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(QuotaGauge, {
|
|
1533
|
+
usedPercent: quota.usedPercent,
|
|
1534
|
+
threshold: quota.threshold,
|
|
1535
|
+
blocked: quota.blocked
|
|
1536
|
+
}),
|
|
1537
|
+
quota.blocked && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1538
|
+
className: "rounded-full bg-caution-500/10 px-1.5 py-0.5 text-[9px] font-semibold text-caution-500",
|
|
1539
|
+
children: "quota"
|
|
1540
|
+
})
|
|
1541
|
+
]
|
|
1542
|
+
}, quota.name);
|
|
1543
|
+
})]
|
|
1544
|
+
}), vitals.anthropicTokenNames.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1545
|
+
className: "flex flex-wrap items-center gap-2",
|
|
1546
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1547
|
+
className: "w-[4.5rem] shrink-0 text-[10px] font-medium uppercase tracking-[0.08em] text-sand-400",
|
|
1548
|
+
children: "anthropic"
|
|
1549
|
+
}), vitals.anthropicTokenNames.map((name) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1550
|
+
title: name,
|
|
1551
|
+
className: "inline-flex items-baseline rounded-md border border-sand-200 bg-white px-2 py-1 font-mono text-[11px] text-sand-600",
|
|
1552
|
+
children: name.split("/").pop()
|
|
1553
|
+
}, name))]
|
|
1554
|
+
})]
|
|
1555
|
+
}),
|
|
1556
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1557
|
+
className: "relative",
|
|
1558
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1559
|
+
ref: parentRef,
|
|
1560
|
+
role: "log",
|
|
1561
|
+
"aria-label": "Server process logs",
|
|
1562
|
+
tabIndex: 0,
|
|
1563
|
+
className: "main-scroll h-[calc(100vh-232px)] min-h-[320px] overflow-y-auto bg-sand-900 px-4 py-3 font-mono text-[12px] leading-[1.6] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-sienna-400",
|
|
1564
|
+
children: firstLoadFailed ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1565
|
+
className: "flex h-full flex-col items-center justify-center gap-3 text-sand-400",
|
|
1566
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
1567
|
+
className: "text-[12px]",
|
|
1568
|
+
children: ["Could not reach the qgrid server — is it running?", query.error instanceof Error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1569
|
+
className: "block text-center text-[11px] text-sand-500",
|
|
1570
|
+
children: query.error.message
|
|
1571
|
+
})]
|
|
1572
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
|
|
1573
|
+
type: "button",
|
|
1574
|
+
onClick: () => void query.refetch(),
|
|
1575
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-sand-600 px-2.5 py-1.5 text-[11px] font-medium text-sand-300 transition-colors hover:bg-sand-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sienna-400",
|
|
1576
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucideRefreshCw, { className: "size-3" }), "Retry now"]
|
|
1577
|
+
})]
|
|
1578
|
+
}) : !hasFirstData ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1579
|
+
className: "flex h-full items-center justify-center text-[12px] text-sand-500",
|
|
1580
|
+
children: "Connecting to server logs…"
|
|
1581
|
+
}) : visible.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1582
|
+
className: "flex h-full items-center justify-center text-[12px] text-sand-500",
|
|
1583
|
+
children: items.length === 0 ? `No log lines yet — waiting for activity since ${epochRef.current !== void 0 ? formatTime(epochRef.current) : "startup"}.` : "No lines match the current filters."
|
|
1584
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1585
|
+
className: "relative w-full",
|
|
1586
|
+
style: { height: `${virtualizer.getTotalSize()}px` },
|
|
1587
|
+
children: virtualizer.getVirtualItems().map((virtualRow) => {
|
|
1588
|
+
const item = visible[virtualRow.index];
|
|
1589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1590
|
+
ref: virtualizer.measureElement,
|
|
1591
|
+
"data-index": virtualRow.index,
|
|
1592
|
+
className: "absolute left-0 top-0 w-full",
|
|
1593
|
+
style: { transform: `translateY(${virtualRow.start}px)` },
|
|
1594
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LogLine, { item })
|
|
1595
|
+
}, virtualRow.key);
|
|
1596
|
+
})
|
|
1597
|
+
})
|
|
1598
|
+
}), hasFirstData && !firstLoadFailed && !atEnd && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
1599
|
+
type: "button",
|
|
1600
|
+
onClick: () => virtualizer.scrollToEnd(),
|
|
1601
|
+
className: "absolute bottom-4 right-5 inline-flex items-center gap-1.5 rounded-full border border-sand-600 bg-sand-800/90 px-3 py-1.5 text-[11px] font-medium text-sand-200 shadow-lg backdrop-blur transition-colors hover:bg-sand-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sienna-400",
|
|
1602
|
+
children: "↓ Jump to live"
|
|
1603
|
+
})]
|
|
1604
|
+
})
|
|
1605
|
+
]
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
function LogLine({ item }) {
|
|
1609
|
+
if (item.kind === "restart") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1610
|
+
className: "py-1 text-center text-[11px] text-caution-400",
|
|
1611
|
+
children: [
|
|
1612
|
+
"── process restarted · ",
|
|
1613
|
+
formatTime(item.processStartedAt),
|
|
1614
|
+
" ──"
|
|
1615
|
+
]
|
|
1616
|
+
});
|
|
1617
|
+
if (item.kind === "dropped") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1618
|
+
className: "py-1 text-center text-[11px] italic text-sand-500",
|
|
1619
|
+
children: [
|
|
1620
|
+
"── ",
|
|
1621
|
+
item.count,
|
|
1622
|
+
" lines dropped (buffer overflow) ──"
|
|
1623
|
+
]
|
|
1624
|
+
});
|
|
1625
|
+
const { entry } = item;
|
|
1626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1627
|
+
className: "whitespace-pre-wrap break-words text-sand-200",
|
|
1628
|
+
children: [
|
|
1629
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1630
|
+
className: "text-sand-500",
|
|
1631
|
+
children: formatTime(entry.timestamp)
|
|
1632
|
+
}),
|
|
1633
|
+
" ",
|
|
1634
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1635
|
+
className: clsx("font-semibold", entry.level === "fatal" || entry.level === "error" ? "text-danger-400" : entry.level === "warning" ? "text-caution-400" : "text-sand-400"),
|
|
1636
|
+
children: LEVEL_LABEL[entry.level] ?? entry.level.slice(0, 3).toUpperCase()
|
|
1637
|
+
}),
|
|
1638
|
+
" ",
|
|
1639
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1640
|
+
className: "text-sienna-300",
|
|
1641
|
+
children: categoryLabel(entry.category)
|
|
1642
|
+
}),
|
|
1643
|
+
" ",
|
|
1644
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: entry.text })
|
|
1645
|
+
]
|
|
1646
|
+
});
|
|
1647
|
+
}
|
|
1648
|
+
//#endregion
|
|
1649
|
+
//#region src/routes/monit.tsx?tsr-split=component
|
|
1650
|
+
object({ level: _enum([
|
|
1651
|
+
"all",
|
|
1652
|
+
"warn",
|
|
1653
|
+
"error"
|
|
1654
|
+
]).optional().default("all").catch(() => "all") });
|
|
1655
|
+
function MonitPage() {
|
|
1656
|
+
const search = Route.useSearch();
|
|
1657
|
+
const navigate = Route.useNavigate();
|
|
1658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1659
|
+
className: "max-w-[100rem] mx-auto",
|
|
1660
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MonitConsole, {
|
|
1661
|
+
search,
|
|
1662
|
+
onSearchChange: (next) => navigate({
|
|
1663
|
+
search: next,
|
|
1664
|
+
replace: true
|
|
1665
|
+
})
|
|
1666
|
+
})
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
//#endregion
|
|
1670
|
+
export { MonitPage as component };
|