@code-yeongyu/senpi 2026.8.16 → 2026.8.18
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/CHANGELOG.md +74 -0
- package/dist/bun/cli.js +1 -0
- package/dist/bun/cli.js.map +1 -1
- package/dist/bun/register-cursor-agent.d.ts +2 -0
- package/dist/bun/register-cursor-agent.d.ts.map +1 -0
- package/dist/bun/register-cursor-agent.js +4 -0
- package/dist/bun/register-cursor-agent.js.map +1 -0
- package/dist/core/agent-session-services.js +2 -2
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +48 -5
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +239 -61
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/cursor-exec-bridge-session.d.ts +11 -0
- package/dist/core/cursor-exec-bridge-session.d.ts.map +1 -0
- package/dist/core/cursor-exec-bridge-session.js +17 -0
- package/dist/core/cursor-exec-bridge-session.js.map +1 -0
- package/dist/core/cursor-exec-bridge.d.ts +52 -0
- package/dist/core/cursor-exec-bridge.d.ts.map +1 -0
- package/dist/core/cursor-exec-bridge.js +196 -0
- package/dist/core/cursor-exec-bridge.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/account-command.d.ts +31 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/account-command.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/account-command.js +298 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/account-command.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/accounts.d.ts +38 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/accounts.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/accounts.js +75 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/accounts.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/affinity.d.ts +24 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/affinity.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/affinity.js +64 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/affinity.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/diagnostics.d.ts +139 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/diagnostics.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/diagnostics.js +362 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/diagnostics.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/errors.d.ts +19 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/errors.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/errors.js +122 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/errors.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/executable.d.ts +30 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/executable.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/executable.js +117 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/executable.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/failover.d.ts +39 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/failover.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/failover.js +155 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/failover.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/guardrails.d.ts +89 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/guardrails.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/guardrails.js +147 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/guardrails.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/home-store.d.ts +20 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/home-store.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/home-store.js +99 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/home-store.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/index.d.ts +25 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/index.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/index.js +69 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/index.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/models.d.ts +27 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/models.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/models.js +242 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/models.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/oauth-login.d.ts +77 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/oauth-login.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/oauth-login.js +361 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/oauth-login.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/session-router.d.ts +94 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/session-router.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/session-router.js +248 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/session-router.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/settings.d.ts +37 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/settings.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/settings.js +196 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/settings.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/spawn-args.d.ts +11 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/spawn-args.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/spawn-args.js +17 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/spawn-args.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/stream-parser.d.ts +104 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/stream-parser.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/stream-parser.js +301 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/stream-parser.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/stream.d.ts +26 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/stream.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/stream.js +587 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/stream.js.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/transport.d.ts +43 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/transport.d.ts.map +1 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/transport.js +196 -0
- package/dist/core/extensions/builtin/cursor-cli-oauth/transport.js.map +1 -0
- package/dist/core/extensions/builtin/goal/channel-state-subscriptions.d.ts +9 -0
- package/dist/core/extensions/builtin/goal/channel-state-subscriptions.d.ts.map +1 -0
- package/dist/core/extensions/builtin/goal/channel-state-subscriptions.js +18 -0
- package/dist/core/extensions/builtin/goal/channel-state-subscriptions.js.map +1 -0
- package/dist/core/extensions/builtin/goal/monitor-continuation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/monitor-continuation.js +10 -9
- package/dist/core/extensions/builtin/goal/monitor-continuation.js.map +1 -1
- package/dist/core/extensions/builtin/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/index.js +5 -2
- package/dist/core/extensions/builtin/index.js.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/detectors.d.ts.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/detectors.js +21 -3
- package/dist/core/extensions/builtin/loop-guard/detectors.js.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/escalation.d.ts +24 -0
- package/dist/core/extensions/builtin/loop-guard/escalation.d.ts.map +1 -0
- package/dist/core/extensions/builtin/loop-guard/escalation.js +77 -0
- package/dist/core/extensions/builtin/loop-guard/escalation.js.map +1 -0
- package/dist/core/extensions/builtin/loop-guard/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/index.js +98 -3
- package/dist/core/extensions/builtin/loop-guard/index.js.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/notice.d.ts +9 -0
- package/dist/core/extensions/builtin/loop-guard/notice.d.ts.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/notice.js +17 -0
- package/dist/core/extensions/builtin/loop-guard/notice.js.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/policy.d.ts +4 -0
- package/dist/core/extensions/builtin/loop-guard/policy.d.ts.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/policy.js +4 -0
- package/dist/core/extensions/builtin/loop-guard/policy.js.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/renderer.d.ts +2 -0
- package/dist/core/extensions/builtin/loop-guard/renderer.d.ts.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/renderer.js +11 -0
- package/dist/core/extensions/builtin/loop-guard/renderer.js.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/tracker.d.ts +1 -1
- package/dist/core/extensions/builtin/loop-guard/tracker.d.ts.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/tracker.js +3 -1
- package/dist/core/extensions/builtin/loop-guard/tracker.js.map +1 -1
- package/dist/core/extensions/builtin/monitor-state-event.d.ts +6 -0
- package/dist/core/extensions/builtin/monitor-state-event.d.ts.map +1 -1
- package/dist/core/extensions/builtin/monitor-state-event.js +10 -0
- package/dist/core/extensions/builtin/monitor-state-event.js.map +1 -1
- package/dist/core/model-resolver.js +1 -1
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts +7 -2
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +14 -2
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/prompt-templates.d.ts +5 -0
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js +8 -9
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/provider-display-names.d.ts.map +1 -1
- package/dist/core/provider-display-names.js +1 -0
- package/dist/core/provider-display-names.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +6 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/modes/interactive/editor-paste-transfer.d.ts +10 -0
- package/dist/modes/interactive/editor-paste-transfer.d.ts.map +1 -1
- package/dist/modes/interactive/editor-paste-transfer.js +16 -0
- package/dist/modes/interactive/editor-paste-transfer.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +13 -7
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/rpc/connection-handler.d.ts.map +1 -1
- package/dist/modes/rpc/connection-handler.js +32 -27
- package/dist/modes/rpc/connection-handler.js.map +1 -1
- package/dist/modes/rpc/jsonl.d.ts +6 -1
- package/dist/modes/rpc/jsonl.d.ts.map +1 -1
- package/dist/modes/rpc/jsonl.js +47 -14
- package/dist/modes/rpc/jsonl.js.map +1 -1
- package/dist/modes/rpc/multi-session-host.d.ts.map +1 -1
- package/dist/modes/rpc/multi-session-host.js +26 -4
- package/dist/modes/rpc/multi-session-host.js.map +1 -1
- package/dist/modes/rpc/rpc-command-invocation.d.ts +5 -0
- package/dist/modes/rpc/rpc-command-invocation.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-command-invocation.js +2 -0
- package/dist/modes/rpc/rpc-command-invocation.js.map +1 -0
- package/dist/modes/rpc/rpc-command-surface.d.ts +49 -0
- package/dist/modes/rpc/rpc-command-surface.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-command-surface.js +40 -0
- package/dist/modes/rpc/rpc-command-surface.js.map +1 -0
- package/dist/modes/rpc/rpc-input-validation.d.ts +4 -0
- package/dist/modes/rpc/rpc-input-validation.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-input-validation.js +20 -0
- package/dist/modes/rpc/rpc-input-validation.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +12 -1
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +12 -12
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/docs/providers.md +52 -1
- package/docs/rpc.md +78 -6
- package/docs/skills.md +14 -3
- package/node_modules/@bufbuild/protobuf/README.md +44 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/clone.d.ts +6 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/clone.js +66 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/boot.d.ts +1 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/boot.js +18 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/enum.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/enum.js +31 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/extension.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/extension.js +28 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/file.d.ts +1 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/file.js +18 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/index.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/index.js +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/message.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/message.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/service.d.ts +8 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/service.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.d.ts +140 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.js +43 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/types.d.ts +79 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/types.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/boot.d.ts +63 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/boot.js +105 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.d.ts +43 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.js +244 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/enum.d.ts +29 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/enum.js +58 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/extension.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/extension.js +28 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.d.ts +7 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.js +35 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/index.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/index.js +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/message.d.ts +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/message.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/restore-json-names.d.ts +5 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/restore-json-names.js +29 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/scalar.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/scalar.js +67 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/service.d.ts +8 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/service.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.d.ts +145 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.js +74 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/types.d.ts +85 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/types.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/create.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +259 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/descriptors.d.ts +634 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/descriptors.js +53 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/equals.d.ts +46 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/equals.js +209 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/extensions.d.ts +60 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/extensions.js +168 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/fields.d.ts +23 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/fields.js +45 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.d.ts +48 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +247 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.d.ts +73 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +739 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/index.d.ts +19 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/index.js +55 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/is-message.d.ts +7 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/is-message.js +33 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/json-value.d.ts +16 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/json-value.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/merge.d.ts +13 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/merge.js +70 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/package.json +4 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/proto-int64.d.ts +98 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/proto-int64.js +131 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/error.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/error.js +36 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/guard.d.ts +20 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/guard.js +78 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/index.d.ts +8 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/index.js +41 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/names.d.ts +30 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/names.js +115 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/nested-types.d.ts +35 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/nested-types.js +110 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/path.d.ts +107 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/path.js +376 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.d.ts +19 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +268 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-types.d.ts +217 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-types.js +16 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.d.ts +43 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +546 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/scalar.d.ts +43 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/scalar.js +129 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.d.ts +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.js +149 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.d.ts +98 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +945 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.d.ts +24 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +199 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.d.ts +67 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +391 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/from-text.d.ts +35 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/from-text.js +684 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/index.d.ts +4 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/index.js +21 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/is-group-like.d.ts +19 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/is-group-like.js +47 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/reader.d.ts +91 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/reader.js +481 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/to-text.d.ts +34 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/to-text.js +358 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/writer.d.ts +76 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/writer.js +220 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/types.d.ts +135 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/types.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/unknown-enum.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/unknown-enum.js +26 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.d.ts +23 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +156 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.d.ts +268 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +530 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.d.ts +5 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +34 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/size-delimited.d.ts +69 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/size-delimited.js +191 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.d.ts +28 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +61 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-format.d.ts +13 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-format.js +199 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.d.ts +70 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +322 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.d.ts +38 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.js +75 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.js +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/any_pb.d.ts +238 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/any_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/api_pb.d.ts +537 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/api_pb.js +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +490 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +68 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/cpp_features_pb.d.ts +91 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/cpp_features_pb.js +60 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +4143 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/descriptor_pb.js +892 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/duration_pb.d.ts +161 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/duration_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/empty_pb.d.ts +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/empty_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +424 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/field_mask_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/go_features_pb.d.ts +189 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/go_features_pb.js +126 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/java_features_pb.d.ts +194 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/java_features_pb.js +106 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/source_context_pb.d.ts +43 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/source_context_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/struct_pb.d.ts +195 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/struct_pb.js +59 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +222 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/timestamp_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/type_pb.d.ts +722 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/type_pb.js +242 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +330 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/wrappers_pb.js +67 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.d.ts +19 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.js +48 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.d.ts +21 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.js +57 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.d.ts +25 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +66 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/clone.d.ts +6 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/clone.js +63 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/boot.d.ts +1 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/boot.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +26 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +25 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.d.ts +1 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +23 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +21 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.d.ts +8 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.d.ts +140 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +40 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.d.ts +79 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.d.ts +63 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +101 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.d.ts +43 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +239 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.d.ts +29 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +53 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +25 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.d.ts +7 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +32 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +23 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.d.ts +15 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +21 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.d.ts +5 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +26 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +63 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.d.ts +8 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.d.ts +145 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +71 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.d.ts +85 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/create.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/create.js +256 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.d.ts +634 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +50 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/equals.d.ts +46 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/equals.js +206 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/extensions.d.ts +60 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +159 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/fields.d.ts +23 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/fields.js +41 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.d.ts +48 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +241 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.d.ts +73 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +731 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/index.d.ts +19 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/index.js +29 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/is-message.d.ts +7 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +30 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/json-value.d.ts +16 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/merge.d.ts +13 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/merge.js +67 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/package.json +4 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.d.ts +98 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +128 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +31 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.d.ts +20 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +71 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.d.ts +8 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +21 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.d.ts +30 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +109 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.d.ts +35 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +105 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.d.ts +107 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +369 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.d.ts +19 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +262 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.d.ts +217 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.d.ts +43 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +541 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.d.ts +43 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +124 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.d.ts +39 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +140 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.d.ts +98 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +939 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.d.ts +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +195 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.d.ts +67 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +386 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/from-text.d.ts +35 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/from-text.js +680 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/index.d.ts +4 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/index.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/is-group-like.d.ts +19 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/is-group-like.js +44 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/reader.d.ts +91 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/reader.js +477 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/to-text.d.ts +34 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/to-text.js +355 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/writer.d.ts +76 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/writer.js +214 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/types.d.ts +135 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/types.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/unknown-enum.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/unknown-enum.js +23 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.d.ts +23 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +152 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +268 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +525 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.d.ts +5 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +18 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.d.ts +69 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +186 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts +28 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +57 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.d.ts +13 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +195 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.d.ts +70 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +313 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.d.ts +38 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +69 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.d.ts +9 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +35 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts +238 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +537 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +36 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +490 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +65 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.d.ts +91 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +57 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +4143 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +888 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts +161 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +39 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +424 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +189 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +123 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts +194 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +103 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +43 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +195 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +56 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +222 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +722 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +239 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +330 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +64 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.d.ts +19 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +32 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.d.ts +21 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +50 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts +25 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +61 -0
- package/node_modules/@bufbuild/protobuf/package.json +147 -0
- package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +26 -0
- package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/cell-runtime.ts +2 -0
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/render.ts +43 -6
- package/node_modules/@code-yeongyu/senpi-codemode/src/tool/types.ts +4 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +59 -17
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +14 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +14 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +12 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
- package/node_modules/@earendil-works/pi-ai/README.md +3 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/deterministic-id.d.ts +17 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/deterministic-id.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/deterministic-id.js +14 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/deterministic-id.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/exec-lifecycle.d.ts +13 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/exec-lifecycle.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/exec-lifecycle.js +33 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/exec-lifecycle.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/exec-modern.d.ts +79 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/exec-modern.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/exec-modern.js +360 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/exec-modern.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/gen/agent_pb.d.ts +16797 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/gen/agent_pb.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/gen/agent_pb.js +3828 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/gen/agent_pb.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/pi-args.d.ts +55 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/pi-args.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/pi-args.js +76 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/pi-args.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/types.d.ts +116 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/types.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/types.js +16 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/types.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.d.ts +191 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.js +3316 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.lazy.d.ts +29 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.lazy.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.lazy.js +33 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.lazy.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/compat.d.ts +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/compat.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/compat.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/compat.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/cursor-agent-provider.d.ts +11 -0
- package/node_modules/@earendil-works/pi-ai/dist/cursor-agent-provider.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/cursor-agent-provider.js +11 -0
- package/node_modules/@earendil-works/pi-ai/dist/cursor-agent-provider.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/index.d.ts +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/index.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/model.d.ts +6 -1
- package/node_modules/@earendil-works/pi-ai/dist/model.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/model.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cursor.d.ts +6 -9
- package/node_modules/@earendil-works/pi-ai/dist/providers/cursor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cursor.js +42 -9
- package/node_modules/@earendil-works/pi-ai/dist/providers/cursor.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/block-symbols.d.ts +57 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/block-symbols.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/block-symbols.js +57 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/block-symbols.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts +10 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +22 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +3 -2
- package/node_modules/@earendil-works/pi-pty/package.json +1 -1
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +21 -0
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/dollar-invocation-autocomplete.d.ts +9 -0
- package/node_modules/@earendil-works/pi-tui/dist/dollar-invocation-autocomplete.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/dollar-invocation-autocomplete.js +82 -0
- package/node_modules/@earendil-works/pi-tui/dist/dollar-invocation-autocomplete.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/package.json +11 -8
|
@@ -0,0 +1,945 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2021-2026 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.maximumEdition = exports.minimumEdition = void 0;
|
|
17
|
+
exports.createRegistry = createRegistry;
|
|
18
|
+
exports.createMutableRegistry = createMutableRegistry;
|
|
19
|
+
exports.createFileRegistry = createFileRegistry;
|
|
20
|
+
const descriptors_js_1 = require("./descriptors.js");
|
|
21
|
+
const text_format_js_1 = require("./wire/text-format.js");
|
|
22
|
+
const nested_types_js_1 = require("./reflect/nested-types.js");
|
|
23
|
+
const unsafe_js_1 = require("./reflect/unsafe.js");
|
|
24
|
+
const names_js_1 = require("./reflect/names.js");
|
|
25
|
+
/**
|
|
26
|
+
* Create a registry from the given inputs.
|
|
27
|
+
*
|
|
28
|
+
* An input can be:
|
|
29
|
+
* - Any message, enum, service, or extension descriptor, which adds just the
|
|
30
|
+
* descriptor for this type.
|
|
31
|
+
* - A file descriptor, which adds all typed defined in this file.
|
|
32
|
+
* - A registry, which adds all types from the registry.
|
|
33
|
+
*
|
|
34
|
+
* For duplicate descriptors (same type name), the one given last wins.
|
|
35
|
+
*/
|
|
36
|
+
function createRegistry(...input) {
|
|
37
|
+
return initBaseRegistry(input);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Create a registry that allows adding and removing descriptors.
|
|
41
|
+
*/
|
|
42
|
+
function createMutableRegistry(...input) {
|
|
43
|
+
const reg = initBaseRegistry(input);
|
|
44
|
+
return Object.assign(Object.assign({}, reg), { remove(desc) {
|
|
45
|
+
var _a;
|
|
46
|
+
if (desc.kind == "extension") {
|
|
47
|
+
(_a = reg.extendees.get(desc.extendee.typeName)) === null || _a === void 0 ? void 0 : _a.delete(desc.number);
|
|
48
|
+
}
|
|
49
|
+
reg.types.delete(desc.typeName);
|
|
50
|
+
} });
|
|
51
|
+
}
|
|
52
|
+
function createFileRegistry(...args) {
|
|
53
|
+
const registry = createBaseRegistry();
|
|
54
|
+
if (!args.length) {
|
|
55
|
+
return registry;
|
|
56
|
+
}
|
|
57
|
+
if ("$typeName" in args[0] &&
|
|
58
|
+
args[0].$typeName == "google.protobuf.FileDescriptorSet") {
|
|
59
|
+
for (const file of args[0].file) {
|
|
60
|
+
addFile(file, registry);
|
|
61
|
+
}
|
|
62
|
+
return registry;
|
|
63
|
+
}
|
|
64
|
+
if ("$typeName" in args[0]) {
|
|
65
|
+
const input = args[0];
|
|
66
|
+
const resolve = args[1];
|
|
67
|
+
const seen = new Set();
|
|
68
|
+
function recurseDeps(file) {
|
|
69
|
+
const deps = [];
|
|
70
|
+
for (const protoFileName of file.dependency) {
|
|
71
|
+
if (registry.getFile(protoFileName) != undefined) {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (seen.has(protoFileName)) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
const dep = resolve(protoFileName);
|
|
78
|
+
if (!dep) {
|
|
79
|
+
throw new Error(`Unable to resolve ${protoFileName}, imported by ${file.name}`);
|
|
80
|
+
}
|
|
81
|
+
if ("kind" in dep) {
|
|
82
|
+
registry.addFile(dep, false, true);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
seen.add(dep.name);
|
|
86
|
+
deps.push(dep);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return deps.concat(...deps.map(recurseDeps));
|
|
90
|
+
}
|
|
91
|
+
for (const file of [input, ...recurseDeps(input)].reverse()) {
|
|
92
|
+
addFile(file, registry);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
for (const fileReg of args) {
|
|
97
|
+
for (const file of fileReg.files) {
|
|
98
|
+
registry.addFile(file);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return registry;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @private
|
|
106
|
+
*/
|
|
107
|
+
function createBaseRegistry() {
|
|
108
|
+
const types = new Map();
|
|
109
|
+
const extendees = new Map();
|
|
110
|
+
const files = new Map();
|
|
111
|
+
return {
|
|
112
|
+
kind: "registry",
|
|
113
|
+
types,
|
|
114
|
+
extendees,
|
|
115
|
+
[Symbol.iterator]() {
|
|
116
|
+
return types.values();
|
|
117
|
+
},
|
|
118
|
+
get files() {
|
|
119
|
+
return files.values();
|
|
120
|
+
},
|
|
121
|
+
addFile(file, skipTypes, withDeps) {
|
|
122
|
+
files.set(file.proto.name, file);
|
|
123
|
+
if (!skipTypes) {
|
|
124
|
+
for (const type of (0, nested_types_js_1.nestedTypes)(file)) {
|
|
125
|
+
this.add(type);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (withDeps) {
|
|
129
|
+
for (const f of file.dependencies) {
|
|
130
|
+
this.addFile(f, skipTypes, withDeps);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
add(desc) {
|
|
135
|
+
if (desc.kind == "extension") {
|
|
136
|
+
let numberToExt = extendees.get(desc.extendee.typeName);
|
|
137
|
+
if (!numberToExt) {
|
|
138
|
+
extendees.set(desc.extendee.typeName,
|
|
139
|
+
// biome-ignore lint/suspicious/noAssignInExpressions: no
|
|
140
|
+
(numberToExt = new Map()));
|
|
141
|
+
}
|
|
142
|
+
numberToExt.set(desc.number, desc);
|
|
143
|
+
}
|
|
144
|
+
types.set(desc.typeName, desc);
|
|
145
|
+
},
|
|
146
|
+
get(typeName) {
|
|
147
|
+
return types.get(typeName);
|
|
148
|
+
},
|
|
149
|
+
getFile(fileName) {
|
|
150
|
+
return files.get(fileName);
|
|
151
|
+
},
|
|
152
|
+
getMessage(typeName) {
|
|
153
|
+
const t = types.get(typeName);
|
|
154
|
+
return (t === null || t === void 0 ? void 0 : t.kind) == "message" ? t : undefined;
|
|
155
|
+
},
|
|
156
|
+
getEnum(typeName) {
|
|
157
|
+
const t = types.get(typeName);
|
|
158
|
+
return (t === null || t === void 0 ? void 0 : t.kind) == "enum" ? t : undefined;
|
|
159
|
+
},
|
|
160
|
+
getExtension(typeName) {
|
|
161
|
+
const t = types.get(typeName);
|
|
162
|
+
return (t === null || t === void 0 ? void 0 : t.kind) == "extension" ? t : undefined;
|
|
163
|
+
},
|
|
164
|
+
getExtensionFor(extendee, no) {
|
|
165
|
+
var _a;
|
|
166
|
+
return (_a = extendees.get(extendee.typeName)) === null || _a === void 0 ? void 0 : _a.get(no);
|
|
167
|
+
},
|
|
168
|
+
getService(typeName) {
|
|
169
|
+
const t = types.get(typeName);
|
|
170
|
+
return (t === null || t === void 0 ? void 0 : t.kind) == "service" ? t : undefined;
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* @private
|
|
176
|
+
*/
|
|
177
|
+
function initBaseRegistry(inputs) {
|
|
178
|
+
const registry = createBaseRegistry();
|
|
179
|
+
for (const input of inputs) {
|
|
180
|
+
switch (input.kind) {
|
|
181
|
+
case "registry":
|
|
182
|
+
for (const n of input) {
|
|
183
|
+
registry.add(n);
|
|
184
|
+
}
|
|
185
|
+
break;
|
|
186
|
+
case "file":
|
|
187
|
+
registry.addFile(input);
|
|
188
|
+
break;
|
|
189
|
+
default:
|
|
190
|
+
registry.add(input);
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return registry;
|
|
195
|
+
}
|
|
196
|
+
// bootstrap-inject google.protobuf.Edition.EDITION_PROTO2: const $name = $number;
|
|
197
|
+
const EDITION_PROTO2 = 998;
|
|
198
|
+
// bootstrap-inject google.protobuf.Edition.EDITION_PROTO3: const $name = $number;
|
|
199
|
+
const EDITION_PROTO3 = 999;
|
|
200
|
+
// bootstrap-inject google.protobuf.Edition.EDITION_UNSTABLE: const $name = $number;
|
|
201
|
+
const EDITION_UNSTABLE = 9999;
|
|
202
|
+
// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_STRING: const $name = $number;
|
|
203
|
+
const TYPE_STRING = 9;
|
|
204
|
+
// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_GROUP: const $name = $number;
|
|
205
|
+
const TYPE_GROUP = 10;
|
|
206
|
+
// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_MESSAGE: const $name = $number;
|
|
207
|
+
const TYPE_MESSAGE = 11;
|
|
208
|
+
// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_BYTES: const $name = $number;
|
|
209
|
+
const TYPE_BYTES = 12;
|
|
210
|
+
// bootstrap-inject google.protobuf.FieldDescriptorProto.Type.TYPE_ENUM: const $name = $number;
|
|
211
|
+
const TYPE_ENUM = 14;
|
|
212
|
+
// bootstrap-inject google.protobuf.FieldDescriptorProto.Label.LABEL_REPEATED: const $name = $number;
|
|
213
|
+
const LABEL_REPEATED = 3;
|
|
214
|
+
// bootstrap-inject google.protobuf.FieldDescriptorProto.Label.LABEL_REQUIRED: const $name = $number;
|
|
215
|
+
const LABEL_REQUIRED = 2;
|
|
216
|
+
// bootstrap-inject google.protobuf.FieldOptions.JSType.JS_STRING: const $name = $number;
|
|
217
|
+
const JS_STRING = 1;
|
|
218
|
+
// bootstrap-inject google.protobuf.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN: const $name = $number;
|
|
219
|
+
const IDEMPOTENCY_UNKNOWN = 0;
|
|
220
|
+
// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.EXPLICIT: const $name = $number;
|
|
221
|
+
const EXPLICIT = 1;
|
|
222
|
+
// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name = $number;
|
|
223
|
+
const IMPLICIT = 2;
|
|
224
|
+
// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.LEGACY_REQUIRED: const $name = $number;
|
|
225
|
+
const LEGACY_REQUIRED = 3;
|
|
226
|
+
// bootstrap-inject google.protobuf.FeatureSet.RepeatedFieldEncoding.PACKED: const $name = $number;
|
|
227
|
+
const PACKED = 1;
|
|
228
|
+
// bootstrap-inject google.protobuf.FeatureSet.MessageEncoding.DELIMITED: const $name = $number;
|
|
229
|
+
const DELIMITED = 2;
|
|
230
|
+
// bootstrap-inject google.protobuf.FeatureSet.EnumType.OPEN: const $name = $number;
|
|
231
|
+
const OPEN = 1;
|
|
232
|
+
// bootstrap-inject google.protobuf.FeatureSet.Utf8Validation.VERIFY: const $name = $number;
|
|
233
|
+
const VERIFY = 2;
|
|
234
|
+
// biome-ignore format: want this to read well
|
|
235
|
+
// bootstrap-inject defaults: EDITION_PROTO2 to EDITION_2024: export const minimumEdition: SupportedEdition = $minimumEdition, maximumEdition: SupportedEdition = $maximumEdition;
|
|
236
|
+
// generated from protoc v34.1
|
|
237
|
+
exports.minimumEdition = 998, exports.maximumEdition = 1001;
|
|
238
|
+
const featureDefaults = {
|
|
239
|
+
// EDITION_PROTO2
|
|
240
|
+
998: {
|
|
241
|
+
fieldPresence: 1, // EXPLICIT,
|
|
242
|
+
enumType: 2, // CLOSED,
|
|
243
|
+
repeatedFieldEncoding: 2, // EXPANDED,
|
|
244
|
+
utf8Validation: 3, // NONE,
|
|
245
|
+
messageEncoding: 1, // LENGTH_PREFIXED,
|
|
246
|
+
jsonFormat: 2, // LEGACY_BEST_EFFORT,
|
|
247
|
+
enforceNamingStyle: 2, // STYLE_LEGACY,
|
|
248
|
+
defaultSymbolVisibility: 1, // EXPORT_ALL,
|
|
249
|
+
},
|
|
250
|
+
// EDITION_PROTO3
|
|
251
|
+
999: {
|
|
252
|
+
fieldPresence: 2, // IMPLICIT,
|
|
253
|
+
enumType: 1, // OPEN,
|
|
254
|
+
repeatedFieldEncoding: 1, // PACKED,
|
|
255
|
+
utf8Validation: 2, // VERIFY,
|
|
256
|
+
messageEncoding: 1, // LENGTH_PREFIXED,
|
|
257
|
+
jsonFormat: 1, // ALLOW,
|
|
258
|
+
enforceNamingStyle: 2, // STYLE_LEGACY,
|
|
259
|
+
defaultSymbolVisibility: 1, // EXPORT_ALL,
|
|
260
|
+
},
|
|
261
|
+
// EDITION_2023
|
|
262
|
+
1000: {
|
|
263
|
+
fieldPresence: 1, // EXPLICIT,
|
|
264
|
+
enumType: 1, // OPEN,
|
|
265
|
+
repeatedFieldEncoding: 1, // PACKED,
|
|
266
|
+
utf8Validation: 2, // VERIFY,
|
|
267
|
+
messageEncoding: 1, // LENGTH_PREFIXED,
|
|
268
|
+
jsonFormat: 1, // ALLOW,
|
|
269
|
+
enforceNamingStyle: 2, // STYLE_LEGACY,
|
|
270
|
+
defaultSymbolVisibility: 1, // EXPORT_ALL,
|
|
271
|
+
},
|
|
272
|
+
// EDITION_2024
|
|
273
|
+
1001: {
|
|
274
|
+
fieldPresence: 1, // EXPLICIT,
|
|
275
|
+
enumType: 1, // OPEN,
|
|
276
|
+
repeatedFieldEncoding: 1, // PACKED,
|
|
277
|
+
utf8Validation: 2, // VERIFY,
|
|
278
|
+
messageEncoding: 1, // LENGTH_PREFIXED,
|
|
279
|
+
jsonFormat: 1, // ALLOW,
|
|
280
|
+
enforceNamingStyle: 1, // STYLE2024,
|
|
281
|
+
defaultSymbolVisibility: 2, // EXPORT_TOP_LEVEL,
|
|
282
|
+
},
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Create a descriptor for a file, add it to the registry.
|
|
286
|
+
*/
|
|
287
|
+
function addFile(proto, reg) {
|
|
288
|
+
var _a, _b;
|
|
289
|
+
const file = {
|
|
290
|
+
kind: "file",
|
|
291
|
+
proto,
|
|
292
|
+
deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false,
|
|
293
|
+
edition: getFileEdition(proto),
|
|
294
|
+
name: proto.name.replace(/\.proto$/, ""),
|
|
295
|
+
dependencies: findFileDependencies(proto, reg),
|
|
296
|
+
enums: [],
|
|
297
|
+
messages: [],
|
|
298
|
+
extensions: [],
|
|
299
|
+
services: [],
|
|
300
|
+
toString() {
|
|
301
|
+
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- we asserted above
|
|
302
|
+
return `file ${proto.name}`;
|
|
303
|
+
},
|
|
304
|
+
};
|
|
305
|
+
const mapEntriesStore = new Map();
|
|
306
|
+
const mapEntries = {
|
|
307
|
+
get(typeName) {
|
|
308
|
+
return mapEntriesStore.get(typeName);
|
|
309
|
+
},
|
|
310
|
+
add(desc) {
|
|
311
|
+
var _a;
|
|
312
|
+
assert(((_a = desc.proto.options) === null || _a === void 0 ? void 0 : _a.mapEntry) === true);
|
|
313
|
+
mapEntriesStore.set(desc.typeName, desc);
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
for (const enumProto of proto.enumType) {
|
|
317
|
+
addEnum(enumProto, file, undefined, reg);
|
|
318
|
+
}
|
|
319
|
+
for (const messageProto of proto.messageType) {
|
|
320
|
+
addMessage(messageProto, file, undefined, reg, mapEntries);
|
|
321
|
+
}
|
|
322
|
+
for (const serviceProto of proto.service) {
|
|
323
|
+
addService(serviceProto, file, reg);
|
|
324
|
+
}
|
|
325
|
+
addExtensions(file, reg);
|
|
326
|
+
for (const mapEntry of mapEntriesStore.values()) {
|
|
327
|
+
// to create a map field, we need access to the map entry's fields
|
|
328
|
+
addFields(mapEntry, reg, mapEntries);
|
|
329
|
+
}
|
|
330
|
+
for (const message of file.messages) {
|
|
331
|
+
addFields(message, reg, mapEntries);
|
|
332
|
+
addExtensions(message, reg);
|
|
333
|
+
}
|
|
334
|
+
reg.addFile(file, true);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Create descriptors for extensions, and add them to the message / file,
|
|
338
|
+
* and to our cart.
|
|
339
|
+
* Recurses into nested types.
|
|
340
|
+
*/
|
|
341
|
+
function addExtensions(desc, reg) {
|
|
342
|
+
switch (desc.kind) {
|
|
343
|
+
case "file":
|
|
344
|
+
for (const proto of desc.proto.extension) {
|
|
345
|
+
const ext = newField(proto, desc, reg);
|
|
346
|
+
desc.extensions.push(ext);
|
|
347
|
+
reg.add(ext);
|
|
348
|
+
}
|
|
349
|
+
break;
|
|
350
|
+
case "message":
|
|
351
|
+
for (const proto of desc.proto.extension) {
|
|
352
|
+
const ext = newField(proto, desc, reg);
|
|
353
|
+
desc.nestedExtensions.push(ext);
|
|
354
|
+
reg.add(ext);
|
|
355
|
+
}
|
|
356
|
+
for (const message of desc.nestedMessages) {
|
|
357
|
+
addExtensions(message, reg);
|
|
358
|
+
}
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Create descriptors for fields and oneof groups, and add them to the message.
|
|
364
|
+
* Recurses into nested types.
|
|
365
|
+
*/
|
|
366
|
+
function addFields(message, reg, mapEntries) {
|
|
367
|
+
const allOneofs = message.proto.oneofDecl.map((proto) => newOneof(proto, message));
|
|
368
|
+
const oneofsSeen = new Set();
|
|
369
|
+
for (const proto of message.proto.field) {
|
|
370
|
+
const oneof = findOneof(proto, allOneofs);
|
|
371
|
+
const field = newField(proto, message, reg, oneof, mapEntries);
|
|
372
|
+
message.fields.push(field);
|
|
373
|
+
message.field[field.localName] = field;
|
|
374
|
+
if (oneof === undefined) {
|
|
375
|
+
message.members.push(field);
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
oneof.fields.push(field);
|
|
379
|
+
if (!oneofsSeen.has(oneof)) {
|
|
380
|
+
oneofsSeen.add(oneof);
|
|
381
|
+
message.members.push(oneof);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
for (const oneof of allOneofs.filter((o) => oneofsSeen.has(o))) {
|
|
386
|
+
message.oneofs.push(oneof);
|
|
387
|
+
}
|
|
388
|
+
for (const child of message.nestedMessages) {
|
|
389
|
+
addFields(child, reg, mapEntries);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Create a descriptor for an enumeration, and add it our cart and to the
|
|
394
|
+
* parent type, if any.
|
|
395
|
+
*/
|
|
396
|
+
function addEnum(proto, file, parent, reg) {
|
|
397
|
+
var _a, _b, _c, _d, _e;
|
|
398
|
+
const sharedPrefix = findEnumSharedPrefix(proto.name, proto.value);
|
|
399
|
+
const desc = {
|
|
400
|
+
kind: "enum",
|
|
401
|
+
proto,
|
|
402
|
+
deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false,
|
|
403
|
+
file,
|
|
404
|
+
parent,
|
|
405
|
+
open: true,
|
|
406
|
+
name: proto.name,
|
|
407
|
+
typeName: makeTypeName(proto, parent, file),
|
|
408
|
+
value: {},
|
|
409
|
+
values: [],
|
|
410
|
+
sharedPrefix,
|
|
411
|
+
toString() {
|
|
412
|
+
return `enum ${this.typeName}`;
|
|
413
|
+
},
|
|
414
|
+
};
|
|
415
|
+
desc.open = isEnumOpen(desc);
|
|
416
|
+
reg.add(desc);
|
|
417
|
+
for (const p of proto.value) {
|
|
418
|
+
const name = p.name;
|
|
419
|
+
desc.values.push(
|
|
420
|
+
// biome-ignore lint/suspicious/noAssignInExpressions: no
|
|
421
|
+
(desc.value[p.number] = {
|
|
422
|
+
kind: "enum_value",
|
|
423
|
+
proto: p,
|
|
424
|
+
deprecated: (_d = (_c = p.options) === null || _c === void 0 ? void 0 : _c.deprecated) !== null && _d !== void 0 ? _d : false,
|
|
425
|
+
parent: desc,
|
|
426
|
+
name,
|
|
427
|
+
localName: (0, names_js_1.safeObjectProperty)(sharedPrefix == undefined
|
|
428
|
+
? name
|
|
429
|
+
: name.substring(sharedPrefix.length)),
|
|
430
|
+
number: p.number,
|
|
431
|
+
toString() {
|
|
432
|
+
return `enum value ${desc.typeName}.${name}`;
|
|
433
|
+
},
|
|
434
|
+
}));
|
|
435
|
+
}
|
|
436
|
+
((_e = parent === null || parent === void 0 ? void 0 : parent.nestedEnums) !== null && _e !== void 0 ? _e : file.enums).push(desc);
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Create a descriptor for a message, including nested types, and add it to our
|
|
440
|
+
* cart. Note that this does not create descriptors fields.
|
|
441
|
+
*/
|
|
442
|
+
function addMessage(proto, file, parent, reg, mapEntries) {
|
|
443
|
+
var _a, _b, _c, _d;
|
|
444
|
+
const desc = {
|
|
445
|
+
kind: "message",
|
|
446
|
+
proto,
|
|
447
|
+
deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false,
|
|
448
|
+
file,
|
|
449
|
+
parent,
|
|
450
|
+
name: proto.name,
|
|
451
|
+
typeName: makeTypeName(proto, parent, file),
|
|
452
|
+
fields: [],
|
|
453
|
+
field: {},
|
|
454
|
+
oneofs: [],
|
|
455
|
+
members: [],
|
|
456
|
+
nestedEnums: [],
|
|
457
|
+
nestedMessages: [],
|
|
458
|
+
nestedExtensions: [],
|
|
459
|
+
toString() {
|
|
460
|
+
return `message ${this.typeName}`;
|
|
461
|
+
},
|
|
462
|
+
};
|
|
463
|
+
if (((_c = proto.options) === null || _c === void 0 ? void 0 : _c.mapEntry) === true) {
|
|
464
|
+
mapEntries.add(desc);
|
|
465
|
+
}
|
|
466
|
+
else {
|
|
467
|
+
((_d = parent === null || parent === void 0 ? void 0 : parent.nestedMessages) !== null && _d !== void 0 ? _d : file.messages).push(desc);
|
|
468
|
+
reg.add(desc);
|
|
469
|
+
}
|
|
470
|
+
for (const enumProto of proto.enumType) {
|
|
471
|
+
addEnum(enumProto, file, desc, reg);
|
|
472
|
+
}
|
|
473
|
+
for (const messageProto of proto.nestedType) {
|
|
474
|
+
addMessage(messageProto, file, desc, reg, mapEntries);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Create a descriptor for a service, including methods, and add it to our
|
|
479
|
+
* cart.
|
|
480
|
+
*/
|
|
481
|
+
function addService(proto, file, reg) {
|
|
482
|
+
var _a, _b;
|
|
483
|
+
const desc = {
|
|
484
|
+
kind: "service",
|
|
485
|
+
proto,
|
|
486
|
+
deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false,
|
|
487
|
+
file,
|
|
488
|
+
name: proto.name,
|
|
489
|
+
typeName: makeTypeName(proto, undefined, file),
|
|
490
|
+
methods: [],
|
|
491
|
+
method: {},
|
|
492
|
+
toString() {
|
|
493
|
+
return `service ${this.typeName}`;
|
|
494
|
+
},
|
|
495
|
+
};
|
|
496
|
+
file.services.push(desc);
|
|
497
|
+
reg.add(desc);
|
|
498
|
+
for (const methodProto of proto.method) {
|
|
499
|
+
const method = newMethod(methodProto, desc, reg);
|
|
500
|
+
desc.methods.push(method);
|
|
501
|
+
desc.method[method.localName] = method;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Create a descriptor for a method.
|
|
506
|
+
*/
|
|
507
|
+
function newMethod(proto, parent, reg) {
|
|
508
|
+
var _a, _b, _c, _d;
|
|
509
|
+
let methodKind;
|
|
510
|
+
if (proto.clientStreaming && proto.serverStreaming) {
|
|
511
|
+
methodKind = "bidi_streaming";
|
|
512
|
+
}
|
|
513
|
+
else if (proto.clientStreaming) {
|
|
514
|
+
methodKind = "client_streaming";
|
|
515
|
+
}
|
|
516
|
+
else if (proto.serverStreaming) {
|
|
517
|
+
methodKind = "server_streaming";
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
methodKind = "unary";
|
|
521
|
+
}
|
|
522
|
+
const input = reg.getMessage(trimLeadingDot(proto.inputType));
|
|
523
|
+
const output = reg.getMessage(trimLeadingDot(proto.outputType));
|
|
524
|
+
assert(input, `invalid MethodDescriptorProto: input_type ${proto.inputType} not found`);
|
|
525
|
+
assert(output, `invalid MethodDescriptorProto: output_type ${proto.inputType} not found`);
|
|
526
|
+
const name = proto.name;
|
|
527
|
+
return {
|
|
528
|
+
kind: "rpc",
|
|
529
|
+
proto,
|
|
530
|
+
deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false,
|
|
531
|
+
parent,
|
|
532
|
+
name,
|
|
533
|
+
localName: (0, names_js_1.safeObjectProperty)(name.length
|
|
534
|
+
? (0, names_js_1.safeObjectProperty)(name[0].toLowerCase() + name.substring(1))
|
|
535
|
+
: name),
|
|
536
|
+
methodKind,
|
|
537
|
+
input,
|
|
538
|
+
output,
|
|
539
|
+
idempotency: (_d = (_c = proto.options) === null || _c === void 0 ? void 0 : _c.idempotencyLevel) !== null && _d !== void 0 ? _d : IDEMPOTENCY_UNKNOWN,
|
|
540
|
+
toString() {
|
|
541
|
+
return `rpc ${parent.typeName}.${name}`;
|
|
542
|
+
},
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Create a descriptor for a oneof group.
|
|
547
|
+
*/
|
|
548
|
+
function newOneof(proto, parent) {
|
|
549
|
+
return {
|
|
550
|
+
kind: "oneof",
|
|
551
|
+
proto,
|
|
552
|
+
deprecated: false,
|
|
553
|
+
parent,
|
|
554
|
+
fields: [],
|
|
555
|
+
name: proto.name,
|
|
556
|
+
localName: (0, names_js_1.safeObjectProperty)((0, names_js_1.protoCamelCase)(proto.name)),
|
|
557
|
+
toString() {
|
|
558
|
+
return `oneof ${parent.typeName}.${this.name}`;
|
|
559
|
+
},
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
function newField(proto, parentOrFile, reg, oneof, mapEntries) {
|
|
563
|
+
var _a, _b, _c;
|
|
564
|
+
const isExtension = mapEntries === undefined;
|
|
565
|
+
const field = {
|
|
566
|
+
kind: "field",
|
|
567
|
+
proto,
|
|
568
|
+
deprecated: (_b = (_a = proto.options) === null || _a === void 0 ? void 0 : _a.deprecated) !== null && _b !== void 0 ? _b : false,
|
|
569
|
+
name: proto.name,
|
|
570
|
+
number: proto.number,
|
|
571
|
+
scalar: undefined,
|
|
572
|
+
message: undefined,
|
|
573
|
+
enum: undefined,
|
|
574
|
+
presence: getFieldPresence(proto, oneof, isExtension, parentOrFile),
|
|
575
|
+
utf8Validation: isUtf8Validated(proto, parentOrFile),
|
|
576
|
+
listKind: undefined,
|
|
577
|
+
mapKind: undefined,
|
|
578
|
+
mapKey: undefined,
|
|
579
|
+
delimitedEncoding: undefined,
|
|
580
|
+
packed: undefined,
|
|
581
|
+
longAsString: false,
|
|
582
|
+
getDefaultValue: undefined,
|
|
583
|
+
};
|
|
584
|
+
if (isExtension) {
|
|
585
|
+
// extension field
|
|
586
|
+
const file = parentOrFile.kind == "file" ? parentOrFile : parentOrFile.file;
|
|
587
|
+
const parent = parentOrFile.kind == "file" ? undefined : parentOrFile;
|
|
588
|
+
const typeName = makeTypeName(proto, parent, file);
|
|
589
|
+
field.kind = "extension";
|
|
590
|
+
field.file = file;
|
|
591
|
+
field.parent = parent;
|
|
592
|
+
field.oneof = undefined;
|
|
593
|
+
field.typeName = typeName;
|
|
594
|
+
field.jsonName = `[${typeName}]`; // option json_name is not allowed on extension fields
|
|
595
|
+
field.toString = () => `extension ${typeName}`;
|
|
596
|
+
const extendee = reg.getMessage(trimLeadingDot(proto.extendee));
|
|
597
|
+
assert(extendee, `invalid FieldDescriptorProto: extendee ${proto.extendee} not found`);
|
|
598
|
+
field.extendee = extendee;
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
// regular field
|
|
602
|
+
const parent = parentOrFile;
|
|
603
|
+
assert(parent.kind == "message");
|
|
604
|
+
field.parent = parent;
|
|
605
|
+
field.oneof = oneof;
|
|
606
|
+
field.localName = oneof
|
|
607
|
+
? (0, names_js_1.protoCamelCase)(proto.name)
|
|
608
|
+
: (0, names_js_1.safeObjectProperty)((0, names_js_1.protoCamelCase)(proto.name));
|
|
609
|
+
field.jsonName = proto.jsonName;
|
|
610
|
+
field.toString = () => `field ${parent.typeName}.${proto.name}`;
|
|
611
|
+
}
|
|
612
|
+
const label = proto.label;
|
|
613
|
+
const type = proto.type;
|
|
614
|
+
const jstype = (_c = proto.options) === null || _c === void 0 ? void 0 : _c.jstype;
|
|
615
|
+
if (label === LABEL_REPEATED) {
|
|
616
|
+
// list or map field
|
|
617
|
+
const mapEntry = type == TYPE_MESSAGE
|
|
618
|
+
? mapEntries === null || mapEntries === void 0 ? void 0 : mapEntries.get(trimLeadingDot(proto.typeName))
|
|
619
|
+
: undefined;
|
|
620
|
+
if (mapEntry) {
|
|
621
|
+
// map field
|
|
622
|
+
field.fieldKind = "map";
|
|
623
|
+
const { key, value } = findMapEntryFields(mapEntry);
|
|
624
|
+
field.mapKey = key.scalar;
|
|
625
|
+
field.mapKind = value.fieldKind;
|
|
626
|
+
field.message = value.message;
|
|
627
|
+
field.delimitedEncoding = false; // map fields are always LENGTH_PREFIXED
|
|
628
|
+
field.enum = value.enum;
|
|
629
|
+
field.scalar = value.scalar;
|
|
630
|
+
return field;
|
|
631
|
+
}
|
|
632
|
+
// list field
|
|
633
|
+
field.fieldKind = "list";
|
|
634
|
+
switch (type) {
|
|
635
|
+
case TYPE_MESSAGE:
|
|
636
|
+
case TYPE_GROUP:
|
|
637
|
+
field.listKind = "message";
|
|
638
|
+
field.message = reg.getMessage(trimLeadingDot(proto.typeName));
|
|
639
|
+
assert(field.message);
|
|
640
|
+
field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile);
|
|
641
|
+
break;
|
|
642
|
+
case TYPE_ENUM:
|
|
643
|
+
field.listKind = "enum";
|
|
644
|
+
field.enum = reg.getEnum(trimLeadingDot(proto.typeName));
|
|
645
|
+
assert(field.enum);
|
|
646
|
+
break;
|
|
647
|
+
default:
|
|
648
|
+
field.listKind = "scalar";
|
|
649
|
+
field.scalar = type;
|
|
650
|
+
field.longAsString = jstype == JS_STRING;
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
field.packed = isPackedField(proto, parentOrFile);
|
|
654
|
+
return field;
|
|
655
|
+
}
|
|
656
|
+
// singular
|
|
657
|
+
switch (type) {
|
|
658
|
+
case TYPE_MESSAGE:
|
|
659
|
+
case TYPE_GROUP:
|
|
660
|
+
field.fieldKind = "message";
|
|
661
|
+
field.message = reg.getMessage(trimLeadingDot(proto.typeName));
|
|
662
|
+
assert(field.message, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`);
|
|
663
|
+
field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile);
|
|
664
|
+
field.getDefaultValue = () => undefined;
|
|
665
|
+
break;
|
|
666
|
+
case TYPE_ENUM: {
|
|
667
|
+
const enumeration = reg.getEnum(trimLeadingDot(proto.typeName));
|
|
668
|
+
assert(enumeration !== undefined, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`);
|
|
669
|
+
field.fieldKind = "enum";
|
|
670
|
+
field.enum = reg.getEnum(trimLeadingDot(proto.typeName));
|
|
671
|
+
field.getDefaultValue = () => {
|
|
672
|
+
return (0, unsafe_js_1.unsafeIsSetExplicit)(proto, "defaultValue")
|
|
673
|
+
? (0, text_format_js_1.parseTextFormatEnumValue)(enumeration, proto.defaultValue)
|
|
674
|
+
: undefined;
|
|
675
|
+
};
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
default: {
|
|
679
|
+
field.fieldKind = "scalar";
|
|
680
|
+
field.scalar = type;
|
|
681
|
+
field.longAsString = jstype == JS_STRING;
|
|
682
|
+
field.getDefaultValue = () => {
|
|
683
|
+
return (0, unsafe_js_1.unsafeIsSetExplicit)(proto, "defaultValue")
|
|
684
|
+
? (0, text_format_js_1.parseTextFormatScalarValue)(type, proto.defaultValue)
|
|
685
|
+
: undefined;
|
|
686
|
+
};
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return field;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Parse the "syntax" and "edition" fields, returning one of the supported
|
|
694
|
+
* editions.
|
|
695
|
+
*/
|
|
696
|
+
function getFileEdition(proto) {
|
|
697
|
+
switch (proto.syntax) {
|
|
698
|
+
case "":
|
|
699
|
+
case "proto2":
|
|
700
|
+
return EDITION_PROTO2;
|
|
701
|
+
case "proto3":
|
|
702
|
+
return EDITION_PROTO3;
|
|
703
|
+
case "editions":
|
|
704
|
+
// EDITION_UNSTABLE is a sandbox for in-development features. Collapse
|
|
705
|
+
// it to maximumEdition so SupportedEdition and feature resolution do
|
|
706
|
+
// not leak the test-only edition to users.
|
|
707
|
+
if (proto.edition === EDITION_UNSTABLE) {
|
|
708
|
+
return exports.maximumEdition;
|
|
709
|
+
}
|
|
710
|
+
if (proto.edition in featureDefaults) {
|
|
711
|
+
return proto.edition;
|
|
712
|
+
}
|
|
713
|
+
throw new Error(`${proto.name}: unsupported edition`);
|
|
714
|
+
default:
|
|
715
|
+
throw new Error(`${proto.name}: unsupported syntax "${proto.syntax}"`);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Resolve dependencies of FileDescriptorProto to DescFile.
|
|
720
|
+
*/
|
|
721
|
+
function findFileDependencies(proto, reg) {
|
|
722
|
+
return proto.dependency.map((wantName) => {
|
|
723
|
+
const dep = reg.getFile(wantName);
|
|
724
|
+
if (!dep) {
|
|
725
|
+
throw new Error(`Cannot find ${wantName}, imported by ${proto.name}`);
|
|
726
|
+
}
|
|
727
|
+
return dep;
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Finds a prefix shared by enum values, for example `my_enum_` for
|
|
732
|
+
* `enum MyEnum {MY_ENUM_A=0; MY_ENUM_B=1;}`.
|
|
733
|
+
*/
|
|
734
|
+
function findEnumSharedPrefix(enumName, values) {
|
|
735
|
+
const prefix = camelToSnakeCase(enumName) + "_";
|
|
736
|
+
for (const value of values) {
|
|
737
|
+
if (!value.name.toLowerCase().startsWith(prefix)) {
|
|
738
|
+
return undefined;
|
|
739
|
+
}
|
|
740
|
+
const shortName = value.name.substring(prefix.length);
|
|
741
|
+
if (shortName.length == 0) {
|
|
742
|
+
return undefined;
|
|
743
|
+
}
|
|
744
|
+
if (/^\d/.test(shortName)) {
|
|
745
|
+
// identifiers must not start with numbers
|
|
746
|
+
return undefined;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
return prefix;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Converts lowerCamelCase or UpperCamelCase into lower_snake_case.
|
|
753
|
+
* This is used to find shared prefixes in an enum.
|
|
754
|
+
*/
|
|
755
|
+
function camelToSnakeCase(camel) {
|
|
756
|
+
return (camel.substring(0, 1) + camel.substring(1).replace(/[A-Z]/g, (c) => "_" + c)).toLowerCase();
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Create a fully qualified name for a protobuf type or extension field.
|
|
760
|
+
*
|
|
761
|
+
* The fully qualified name for messages, enumerations, and services is
|
|
762
|
+
* constructed by concatenating the package name (if present), parent
|
|
763
|
+
* message names (for nested types), and the type name. We omit the leading
|
|
764
|
+
* dot added by protobuf compilers. Examples:
|
|
765
|
+
* - mypackage.MyMessage
|
|
766
|
+
* - mypackage.MyMessage.NestedMessage
|
|
767
|
+
*
|
|
768
|
+
* The fully qualified name for extension fields is constructed by
|
|
769
|
+
* concatenating the package name (if present), parent message names (for
|
|
770
|
+
* extensions declared within a message), and the field name. Examples:
|
|
771
|
+
* - mypackage.extfield
|
|
772
|
+
* - mypackage.MyMessage.extfield
|
|
773
|
+
*/
|
|
774
|
+
function makeTypeName(proto, parent, file) {
|
|
775
|
+
let typeName;
|
|
776
|
+
if (parent) {
|
|
777
|
+
typeName = `${parent.typeName}.${proto.name}`;
|
|
778
|
+
}
|
|
779
|
+
else if (file.proto.package.length > 0) {
|
|
780
|
+
typeName = `${file.proto.package}.${proto.name}`;
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
typeName = `${proto.name}`;
|
|
784
|
+
}
|
|
785
|
+
return typeName;
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Remove the leading dot from a fully qualified type name.
|
|
789
|
+
*/
|
|
790
|
+
function trimLeadingDot(typeName) {
|
|
791
|
+
return typeName.startsWith(".") ? typeName.substring(1) : typeName;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Did the user put the field in a oneof group?
|
|
795
|
+
* Synthetic oneofs for proto3 optionals are ignored.
|
|
796
|
+
*/
|
|
797
|
+
function findOneof(proto, allOneofs) {
|
|
798
|
+
if (!(0, unsafe_js_1.unsafeIsSetExplicit)(proto, "oneofIndex")) {
|
|
799
|
+
return undefined;
|
|
800
|
+
}
|
|
801
|
+
if (proto.proto3Optional) {
|
|
802
|
+
return undefined;
|
|
803
|
+
}
|
|
804
|
+
const oneof = allOneofs[proto.oneofIndex];
|
|
805
|
+
assert(oneof, `invalid FieldDescriptorProto: oneof #${proto.oneofIndex} for field #${proto.number} not found`);
|
|
806
|
+
return oneof;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Presence of the field.
|
|
810
|
+
* See https://protobuf.dev/programming-guides/field_presence/
|
|
811
|
+
*/
|
|
812
|
+
function getFieldPresence(proto, oneof, isExtension, parent) {
|
|
813
|
+
if (proto.label == LABEL_REQUIRED) {
|
|
814
|
+
// proto2 required is LEGACY_REQUIRED
|
|
815
|
+
return LEGACY_REQUIRED;
|
|
816
|
+
}
|
|
817
|
+
if (proto.label == LABEL_REPEATED) {
|
|
818
|
+
// repeated fields (including maps) do not track presence
|
|
819
|
+
return IMPLICIT;
|
|
820
|
+
}
|
|
821
|
+
if (!!oneof || proto.proto3Optional) {
|
|
822
|
+
// oneof is always explicit
|
|
823
|
+
return EXPLICIT;
|
|
824
|
+
}
|
|
825
|
+
if (isExtension) {
|
|
826
|
+
// extensions always track presence
|
|
827
|
+
return EXPLICIT;
|
|
828
|
+
}
|
|
829
|
+
const resolved = resolveFeature("fieldPresence", { proto, parent });
|
|
830
|
+
if (resolved == IMPLICIT &&
|
|
831
|
+
(proto.type == TYPE_MESSAGE || proto.type == TYPE_GROUP)) {
|
|
832
|
+
// singular message field cannot be implicit
|
|
833
|
+
return EXPLICIT;
|
|
834
|
+
}
|
|
835
|
+
return resolved;
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* Pack this repeated field?
|
|
839
|
+
*/
|
|
840
|
+
function isPackedField(proto, parent) {
|
|
841
|
+
if (proto.label != LABEL_REPEATED) {
|
|
842
|
+
return false;
|
|
843
|
+
}
|
|
844
|
+
switch (proto.type) {
|
|
845
|
+
case TYPE_STRING:
|
|
846
|
+
case TYPE_BYTES:
|
|
847
|
+
case TYPE_GROUP:
|
|
848
|
+
case TYPE_MESSAGE:
|
|
849
|
+
// length-delimited types cannot be packed
|
|
850
|
+
return false;
|
|
851
|
+
}
|
|
852
|
+
const o = proto.options;
|
|
853
|
+
if (o && (0, unsafe_js_1.unsafeIsSetExplicit)(o, "packed")) {
|
|
854
|
+
// prefer the field option over edition features
|
|
855
|
+
return o.packed;
|
|
856
|
+
}
|
|
857
|
+
return (PACKED ==
|
|
858
|
+
resolveFeature("repeatedFieldEncoding", {
|
|
859
|
+
proto,
|
|
860
|
+
parent,
|
|
861
|
+
}));
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Find the key and value fields of a synthetic map entry message.
|
|
865
|
+
*/
|
|
866
|
+
function findMapEntryFields(mapEntry) {
|
|
867
|
+
const key = mapEntry.fields.find((f) => f.number === 1);
|
|
868
|
+
const value = mapEntry.fields.find((f) => f.number === 2);
|
|
869
|
+
assert(key &&
|
|
870
|
+
key.fieldKind == "scalar" &&
|
|
871
|
+
key.scalar != descriptors_js_1.ScalarType.BYTES &&
|
|
872
|
+
key.scalar != descriptors_js_1.ScalarType.FLOAT &&
|
|
873
|
+
key.scalar != descriptors_js_1.ScalarType.DOUBLE &&
|
|
874
|
+
value &&
|
|
875
|
+
value.fieldKind != "list" &&
|
|
876
|
+
value.fieldKind != "map");
|
|
877
|
+
return { key, value };
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Enumerations can be open or closed.
|
|
881
|
+
* See https://protobuf.dev/programming-guides/enum/
|
|
882
|
+
*/
|
|
883
|
+
function isEnumOpen(desc) {
|
|
884
|
+
var _a;
|
|
885
|
+
return (OPEN ==
|
|
886
|
+
resolveFeature("enumType", {
|
|
887
|
+
proto: desc.proto,
|
|
888
|
+
parent: (_a = desc.parent) !== null && _a !== void 0 ? _a : desc.file,
|
|
889
|
+
}));
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Encode the message delimited (a.k.a. proto2 group encoding), or
|
|
893
|
+
* length-prefixed?
|
|
894
|
+
*/
|
|
895
|
+
function isDelimitedEncoding(proto, parent) {
|
|
896
|
+
if (proto.type == TYPE_GROUP) {
|
|
897
|
+
return true;
|
|
898
|
+
}
|
|
899
|
+
return (DELIMITED ==
|
|
900
|
+
resolveFeature("messageEncoding", {
|
|
901
|
+
proto,
|
|
902
|
+
parent,
|
|
903
|
+
}));
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* Reject invalid UTF-8 when reading string fields from the binary wire format?
|
|
907
|
+
* Driven by the resolved `utf8_validation` feature: VERIFY (proto3 / editions
|
|
908
|
+
* 2023+ default) enforces; NONE (proto2 default) does not.
|
|
909
|
+
*/
|
|
910
|
+
function isUtf8Validated(proto, parent) {
|
|
911
|
+
return (VERIFY ==
|
|
912
|
+
resolveFeature("utf8Validation", {
|
|
913
|
+
proto,
|
|
914
|
+
parent,
|
|
915
|
+
}));
|
|
916
|
+
}
|
|
917
|
+
function resolveFeature(name, ref) {
|
|
918
|
+
var _a, _b;
|
|
919
|
+
const featureSet = (_a = ref.proto.options) === null || _a === void 0 ? void 0 : _a.features;
|
|
920
|
+
if (featureSet) {
|
|
921
|
+
const val = featureSet[name];
|
|
922
|
+
if (val != 0) {
|
|
923
|
+
return val;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
if ("kind" in ref) {
|
|
927
|
+
if (ref.kind == "message") {
|
|
928
|
+
return resolveFeature(name, (_b = ref.parent) !== null && _b !== void 0 ? _b : ref.file);
|
|
929
|
+
}
|
|
930
|
+
const editionDefaults = featureDefaults[ref.edition];
|
|
931
|
+
if (!editionDefaults) {
|
|
932
|
+
throw new Error(`feature default for edition ${ref.edition} not found`);
|
|
933
|
+
}
|
|
934
|
+
return editionDefaults[name];
|
|
935
|
+
}
|
|
936
|
+
return resolveFeature(name, ref.parent);
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* Assert that condition is truthy or throw error (with message)
|
|
940
|
+
*/
|
|
941
|
+
function assert(condition, msg) {
|
|
942
|
+
if (!condition) {
|
|
943
|
+
throw new Error(msg);
|
|
944
|
+
}
|
|
945
|
+
}
|