From b0b6ebf57493b40927a06989be2a3c729a3f9bfa Mon Sep 17 00:00:00 2001 From: Sehoon Shon Date: Tue, 24 Feb 2026 17:07:52 -0500 Subject: [PATCH] docs(teleporter): append productionization roadmap to TELEPORTATION.md --- package.json | 1 + packages/cli/src/ui/commands/chatCommand.ts | 6 +- .../cli/src/ui/components/SessionBrowser.tsx | 5 +- packages/core/package.json | 1 + .../src/skills/builtin/skill-creator/SKILL.md | 302 +- .../core/src/teleportation/TELEPORTATION.md | 194 +- packages/core/src/teleportation/discovery.ts | 56 +- .../trajectory_teleporter.min.js | 98286 +++++++++++----- 8 files changed, 66036 insertions(+), 32815 deletions(-) diff --git a/package.json b/package.json index 531f9f75d9..c4013bbc14 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "build:packages": "npm run build --workspaces", "build:sandbox": "node scripts/build_sandbox.js", "build:binary": "node scripts/build_binary.js", + "build:teleporter": "npm run build:teleporter --workspace @google/gemini-cli-core", "bundle": "npm run generate && npm run build --workspace=@google/gemini-cli-devtools && node esbuild.config.js && node scripts/copy_bundle_assets.js", "test": "npm run test --workspaces --if-present && npm run test:sea-launch", "test:ci": "npm run test:ci --workspaces --if-present && npm run test:scripts && npm run test:sea-launch", diff --git a/packages/cli/src/ui/commands/chatCommand.ts b/packages/cli/src/ui/commands/chatCommand.ts index 845de8d05f..e9c72708d4 100644 --- a/packages/cli/src/ui/commands/chatCommand.ts +++ b/packages/cli/src/ui/commands/chatCommand.ts @@ -7,6 +7,7 @@ import * as fsPromises from 'node:fs/promises'; import React from 'react'; import { Text } from 'ink'; +import { pathToFileURL } from 'node:url'; import { theme } from '../semantic-colors.js'; import type { Content, Part } from '@google/genai'; import type { @@ -69,8 +70,9 @@ const getSavedChatTags = async ( : a.mtime.localeCompare(b.mtime), ); - // Also look for Antigravity sessions - const agySessions = await listAgySessions(); + // Also look for Antigravity sessions matching the current workspace + const workspaceUri = pathToFileURL(process.cwd()).toString(); + const agySessions = await listAgySessions(workspaceUri); for (const agy of agySessions) { chatDetails.push({ name: `agy:${agy.id}`, diff --git a/packages/cli/src/ui/components/SessionBrowser.tsx b/packages/cli/src/ui/components/SessionBrowser.tsx index 816164be69..0ad13a14f1 100644 --- a/packages/cli/src/ui/components/SessionBrowser.tsx +++ b/packages/cli/src/ui/components/SessionBrowser.tsx @@ -12,6 +12,7 @@ import { Colors } from '../colors.js'; import { useTerminalSize } from '../hooks/useTerminalSize.js'; import { useKeypress } from '../hooks/useKeypress.js'; import path from 'node:path'; +import { pathToFileURL } from 'node:url'; import { listAgySessions, type Config, @@ -482,9 +483,11 @@ const useLoadSessions = (config: Config, state: SessionBrowserState) => { const loadSessions = async () => { try { const chatsDir = path.join(config.storage.getProjectTempDir(), 'chats'); + const workspaceUri = pathToFileURL(process.cwd()).toString(); + const [sessionData, agyData] = await Promise.all([ getSessionFiles(chatsDir, config.getSessionId()), - listAgySessions(), + listAgySessions(workspaceUri), ]); setSessions(sessionData); diff --git a/packages/core/package.json b/packages/core/package.json index de105d4389..4fb7b0d227 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -12,6 +12,7 @@ "scripts": { "bundle:browser-mcp": "node scripts/bundle-browser-mcp.mjs", "build": "node ../../scripts/build_package.js", + "build:teleporter": "./scripts/build-teleporter.sh", "lint": "eslint . --ext .ts,.tsx", "format": "prettier --write .", "test": "vitest run", diff --git a/packages/core/src/skills/builtin/skill-creator/SKILL.md b/packages/core/src/skills/builtin/skill-creator/SKILL.md index 57996a25cd..b4af4c071c 100644 --- a/packages/core/src/skills/builtin/skill-creator/SKILL.md +++ b/packages/core/src/skills/builtin/skill-creator/SKILL.md @@ -1,6 +1,9 @@ --- name: skill-creator -description: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Gemini CLI's capabilities with specialized knowledge, workflows, or tool integrations. +description: + Guide for creating effective skills. This skill should be used when users want + to create a new skill (or update an existing skill) that extends Gemini CLI's + capabilities with specialized knowledge, workflows, or tool integrations. --- # Skill Creator @@ -9,22 +12,33 @@ This skill provides guidance for creating effective skills. ## About Skills -Skills are modular, self-contained packages that extend Gemini CLI's capabilities by providing specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific domains or tasks—they transform Gemini CLI from a general-purpose agent into a specialized agent equipped with procedural knowledge that no model can fully possess. +Skills are modular, self-contained packages that extend Gemini CLI's +capabilities by providing specialized knowledge, workflows, and tools. Think of +them as "onboarding guides" for specific domains or tasks—they transform Gemini +CLI from a general-purpose agent into a specialized agent equipped with +procedural knowledge that no model can fully possess. ### What Skills Provide 1. Specialized workflows - Multi-step procedures for specific domains -2. Tool integrations - Instructions for working with specific file formats or APIs +2. Tool integrations - Instructions for working with specific file formats or + APIs 3. Domain expertise - Company-specific knowledge, schemas, business logic -4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks +4. Bundled resources - Scripts, references, and assets for complex and + repetitive tasks ## Core Principles ### Concise is Key -The context window is a public good. Skills share the context window with everything else Gemini CLI needs: system prompt, conversation history, other Skills' metadata, and the actual user request. +The context window is a public good. Skills share the context window with +everything else Gemini CLI needs: system prompt, conversation history, other +Skills' metadata, and the actual user request. -**Default assumption: Gemini CLI is already very smart.** Only add context Gemini CLI doesn't already have. Challenge each piece of information: "Does Gemini CLI really need this explanation?" and "Does this paragraph justify its token cost?" +**Default assumption: Gemini CLI is already very smart.** Only add context +Gemini CLI doesn't already have. Challenge each piece of information: "Does +Gemini CLI really need this explanation?" and "Does this paragraph justify its +token cost?" Prefer concise examples over verbose explanations. @@ -32,13 +46,19 @@ Prefer concise examples over verbose explanations. Match the level of specificity to the task's fragility and variability: -**High freedom (text-based instructions)**: Use when multiple approaches are valid, decisions depend on context, or heuristics guide the approach. +**High freedom (text-based instructions)**: Use when multiple approaches are +valid, decisions depend on context, or heuristics guide the approach. -**Medium freedom (pseudocode or scripts with parameters)**: Use when a preferred pattern exists, some variation is acceptable, or configuration affects behavior. +**Medium freedom (pseudocode or scripts with parameters)**: Use when a preferred +pattern exists, some variation is acceptable, or configuration affects behavior. -**Low freedom (specific scripts, few parameters)**: Use when operations are fragile and error-prone, consistency is critical, or a specific sequence must be followed. +**Low freedom (specific scripts, few parameters)**: Use when operations are +fragile and error-prone, consistency is critical, or a specific sequence must be +followed. -Think of Gemini CLI as exploring a path: a narrow bridge with cliffs needs specific guardrails (low freedom), while an open field allows many routes (high freedom). +Think of Gemini CLI as exploring a path: a narrow bridge with cliffs needs +specific guardrails (low freedom), while an open field allows many routes (high +freedom). ### Anatomy of a Skill @@ -61,45 +81,75 @@ skill-name/ Every SKILL.md consists of: -- **Frontmatter** (YAML): Contains `name` and `description` fields. These are the only fields that Gemini CLI reads to determine when the skill gets used, thus it is very important to be clear and comprehensive in describing what the skill is, and when it should be used. -- **Body** (Markdown): Instructions and guidance for using the skill. Only loaded AFTER the skill triggers (if at all). +- **Frontmatter** (YAML): Contains `name` and `description` fields. These are + the only fields that Gemini CLI reads to determine when the skill gets used, + thus it is very important to be clear and comprehensive in describing what the + skill is, and when it should be used. +- **Body** (Markdown): Instructions and guidance for using the skill. Only + loaded AFTER the skill triggers (if at all). #### Bundled Resources (optional) ##### Scripts (`scripts/`) -Executable code (Node.js/Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten. +Executable code (Node.js/Python/Bash/etc.) for tasks that require deterministic +reliability or are repeatedly rewritten. -- **When to include**: When the same code is being rewritten repeatedly or deterministic reliability is needed +- **When to include**: When the same code is being rewritten repeatedly or + deterministic reliability is needed - **Example**: `scripts/rotate_pdf.cjs` for PDF rotation tasks -- **Benefits**: Token efficient, deterministic, may be executed without loading into context -- **Agentic Ergonomics**: Scripts must output LLM-friendly stdout. Suppress standard tracebacks. Output clear, concise success/failure messages, and paginate or truncate outputs (e.g., "Success: First 50 lines of processed file...") to prevent context window overflow. -- **Note**: Scripts may still need to be read by Gemini CLI for patching or environment-specific adjustments +- **Benefits**: Token efficient, deterministic, may be executed without loading + into context +- **Agentic Ergonomics**: Scripts must output LLM-friendly stdout. Suppress + standard tracebacks. Output clear, concise success/failure messages, and + paginate or truncate outputs (e.g., "Success: First 50 lines of processed + file...") to prevent context window overflow. +- **Note**: Scripts may still need to be read by Gemini CLI for patching or + environment-specific adjustments ##### References (`references/`) -Documentation and reference material intended to be loaded as needed into context to inform Gemini CLI's process and thinking. +Documentation and reference material intended to be loaded as needed into +context to inform Gemini CLI's process and thinking. -- **When to include**: For documentation that Gemini CLI should reference while working -- **Examples**: `references/finance.md` for financial schemas, `references/mnda.md` for company NDA template, `references/policies.md` for company policies, `references/api_docs.md` for API specifications -- **Use cases**: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides -- **Benefits**: Keeps SKILL.md lean, loaded only when Gemini CLI determines it's needed -- **Best practice**: If files are large (>10k words), include grep search patterns in SKILL.md +- **When to include**: For documentation that Gemini CLI should reference while + working +- **Examples**: `references/finance.md` for financial schemas, + `references/mnda.md` for company NDA template, `references/policies.md` for + company policies, `references/api_docs.md` for API specifications +- **Use cases**: Database schemas, API documentation, domain knowledge, company + policies, detailed workflow guides +- **Benefits**: Keeps SKILL.md lean, loaded only when Gemini CLI determines it's + needed +- **Best practice**: If files are large (>10k words), include grep search + patterns in SKILL.md - **Avoid duplication**: Information should live in either SKILL.md or - references files, not both. Prefer references files for detailed information unless it's truly core to the skill—this keeps SKILL.md lean while making information discoverable without hogging the context window. Keep only essential procedural instructions and workflow guidance in SKILL.md; move detailed reference material, schemas, and examples to references files. + references files, not both. Prefer references files for detailed information + unless it's truly core to the skill—this keeps SKILL.md lean while making + information discoverable without hogging the context window. Keep only + essential procedural instructions and workflow guidance in SKILL.md; move + detailed reference material, schemas, and examples to references files. ##### Assets (`assets/`) -Files not intended to be loaded into context, but rather used within the output Gemini CLI produces. +Files not intended to be loaded into context, but rather used within the output +Gemini CLI produces. -- **When to include**: When the skill needs files that will be used in the final output -- **Examples**: `assets/logo.png` for brand assets, `assets/slides.pptx` for PowerPoint templates, `assets/frontend-template/` for HTML/React boilerplate, `assets/font.ttf` for typography -- **Use cases**: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified -- **Benefits**: Separates output resources from documentation, enables Gemini CLI to use files without loading them into context +- **When to include**: When the skill needs files that will be used in the final + output +- **Examples**: `assets/logo.png` for brand assets, `assets/slides.pptx` for + PowerPoint templates, `assets/frontend-template/` for HTML/React boilerplate, + `assets/font.ttf` for typography +- **Use cases**: Templates, images, icons, boilerplate code, fonts, sample + documents that get copied or modified +- **Benefits**: Separates output resources from documentation, enables Gemini + CLI to use files without loading them into context #### What to Not Include in a Skill -A skill should only contain essential files that directly support its functionality. Do NOT create extraneous documentation or auxiliary files, including: +A skill should only contain essential files that directly support its +functionality. Do NOT create extraneous documentation or auxiliary files, +including: - README.md - INSTALLATION_GUIDE.md @@ -107,7 +157,10 @@ A skill should only contain essential files that directly support its functional - CHANGELOG.md - etc. -The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxiliary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion. +The skill should only contain the information needed for an AI agent to do the +job at hand. It should not contain auxiliary context about the process that went +into creating it, setup and testing procedures, user-facing documentation, etc. +Creating additional documentation files just adds clutter and confusion. ### Progressive Disclosure Design Principle @@ -115,13 +168,21 @@ Skills use a three-level loading system to manage context efficiently: 1. **Metadata (name + description)** - Always in context (~100 words) 2. **SKILL.md body** - When skill triggers (<5k words) -3. **Bundled resources** - As needed by Gemini CLI (Unlimited because scripts can be executed without reading into context window) +3. **Bundled resources** - As needed by Gemini CLI (Unlimited because scripts + can be executed without reading into context window) #### Progressive Disclosure Patterns -Keep SKILL.md body to the essentials and under 500 lines to minimize context bloat. Split content into separate files when approaching this limit. When splitting out content into other files, it is very important to reference them from SKILL.md and describe clearly when to read them, to ensure the reader of the skill knows they exist and when to use them. +Keep SKILL.md body to the essentials and under 500 lines to minimize context +bloat. Split content into separate files when approaching this limit. When +splitting out content into other files, it is very important to reference them +from SKILL.md and describe clearly when to read them, to ensure the reader of +the skill knows they exist and when to use them. -**Key principle:** When a skill supports multiple variations, frameworks, or options, keep only the core workflow and selection guidance in SKILL.md. Move variant-specific details (patterns, examples, configuration) into separate reference files. +**Key principle:** When a skill supports multiple variations, frameworks, or +options, keep only the core workflow and selection guidance in SKILL.md. Move +variant-specific details (patterns, examples, configuration) into separate +reference files. **Pattern 1: High-level guide with references** @@ -143,7 +204,8 @@ Gemini CLI loads FORMS.md, REFERENCE.md, or EXAMPLES.md only when needed. **Pattern 2: Domain-specific organization** -For Skills with multiple domains, organize content by domain to avoid loading irrelevant context: +For Skills with multiple domains, organize content by domain to avoid loading +irrelevant context: ``` bigquery-skill/ @@ -157,7 +219,8 @@ bigquery-skill/ When a user asks about sales metrics, Gemini CLI only reads sales.md. -Similarly, for skills supporting multiple frameworks or variants, organize by variant: +Similarly, for skills supporting multiple frameworks or variants, organize by +variant: ``` cloud-deploy/ @@ -183,15 +246,20 @@ Use pandas for loading and basic queries. See [PANDAS.md](PANDAS.md). ## Advanced Operations -For massive files that exceed memory, see [STREAMING.md](STREAMING.md). For timestamp normalization, see [TIMESTAMPS.md](TIMESTAMPS.md). +For massive files that exceed memory, see [STREAMING.md](STREAMING.md). For +timestamp normalization, see [TIMESTAMPS.md](TIMESTAMPS.md). -Gemini CLI reads REDLINING.md or OOXML.md only when the user needs those features. +Gemini CLI reads REDLINING.md or OOXML.md only when the user needs those +features. ``` **Important guidelines:** -- **Avoid deeply nested references** - Keep references one level deep from SKILL.md. All reference files should link directly from SKILL.md. -- **Structure longer reference files** - For files longer than 100 lines, include a table of contents at the top so Gemini CLI can see the full scope when previewing. +- **Avoid deeply nested references** - Keep references one level deep from + SKILL.md. All reference files should link directly from SKILL.md. +- **Structure longer reference files** - For files longer than 100 lines, + include a table of contents at the top so Gemini CLI can see the full scope + when previewing. ## Skill Creation Process @@ -205,66 +273,93 @@ Skill creation involves these steps: 6. Install and reload the skill 7. Iterate based on real usage -Follow these steps in order, skipping only if there is a clear reason why they are not applicable. +Follow these steps in order, skipping only if there is a clear reason why they +are not applicable. ### Skill Naming -- Use lowercase letters, digits, and hyphens only; normalize user-provided titles to hyphen-case (e.g., "Plan Mode" -> `plan-mode`). -- When generating names, generate a name under 64 characters (letters, digits, hyphens). +- Use lowercase letters, digits, and hyphens only; normalize user-provided + titles to hyphen-case (e.g., "Plan Mode" -> `plan-mode`). +- When generating names, generate a name under 64 characters (letters, digits, + hyphens). - Prefer short, verb-led phrases that describe the action. -- Namespace by tool when it improves clarity or triggering (e.g., `gh-address-comments`, `linear-address-issue`). +- Namespace by tool when it improves clarity or triggering (e.g., + `gh-address-comments`, `linear-address-issue`). - Name the skill folder exactly after the skill name. ### Step 1: Understanding the Skill with Concrete Examples -Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill. +Skip this step only when the skill's usage patterns are already clearly +understood. It remains valuable even when working with an existing skill. -To create an effective skill, clearly understand concrete examples of how the skill will be used. This understanding can come from either direct user examples or generated examples that are validated with user feedback. +To create an effective skill, clearly understand concrete examples of how the +skill will be used. This understanding can come from either direct user examples +or generated examples that are validated with user feedback. For example, when building an image-editor skill, relevant questions include: -- "What functionality should the image-editor skill support? Editing, rotating, anything else?" +- "What functionality should the image-editor skill support? Editing, rotating, + anything else?" - "Can you give some examples of how this skill would be used?" -- "I can imagine users asking for things like 'Remove the red-eye from this image' or 'Rotate this image'. Are there other ways you imagine this skill being used?" +- "I can imagine users asking for things like 'Remove the red-eye from this + image' or 'Rotate this image'. Are there other ways you imagine this skill + being used?" - "What would a user say that should trigger this skill?" -**Avoid interrogation loops:** Do not ask more than one or two clarifying questions at a time. Bias toward action: propose a concrete list of features or examples based on your initial understanding, and ask the user to refine them. +**Avoid interrogation loops:** Do not ask more than one or two clarifying +questions at a time. Bias toward action: propose a concrete list of features or +examples based on your initial understanding, and ask the user to refine them. -Conclude this step when there is a clear sense of the functionality the skill should support. +Conclude this step when there is a clear sense of the functionality the skill +should support. ### Step 2: Planning the Reusable Skill Contents To turn concrete examples into an effective skill, analyze each example by: 1. Considering how to execute on the example from scratch -2. Identifying what scripts, references, and assets would be helpful when executing these workflows repeatedly +2. Identifying what scripts, references, and assets would be helpful when + executing these workflows repeatedly -Example: When building a `pdf-editor` skill to handle queries like "Help me rotate this PDF," the analysis shows: +Example: When building a `pdf-editor` skill to handle queries like "Help me +rotate this PDF," the analysis shows: 1. Rotating a PDF requires re-writing the same code each time 2. A `scripts/rotate_pdf.cjs` script would be helpful to store in the skill -Example: When designing a `frontend-webapp-builder` skill for queries like "Build me a todo app" or "Build me a dashboard to track my steps," the analysis shows: +Example: When designing a `frontend-webapp-builder` skill for queries like +"Build me a todo app" or "Build me a dashboard to track my steps," the analysis +shows: 1. Writing a frontend webapp requires the same boilerplate HTML/React each time -2. An `assets/hello-world/` template containing the boilerplate HTML/React project files would be helpful to store in the skill +2. An `assets/hello-world/` template containing the boilerplate HTML/React + project files would be helpful to store in the skill -Example: When building a `big-query` skill to handle queries like "How many users have logged in today?" the analysis shows: +Example: When building a `big-query` skill to handle queries like "How many +users have logged in today?" the analysis shows: -1. Querying BigQuery requires re-discovering the table schemas and relationships each time -2. A `references/schema.md` file documenting the table schemas would be helpful to store in the skill +1. Querying BigQuery requires re-discovering the table schemas and relationships + each time +2. A `references/schema.md` file documenting the table schemas would be helpful + to store in the skill -To establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets. +To establish the skill's contents, analyze each concrete example to create a +list of the reusable resources to include: scripts, references, and assets. ### Step 3: Initializing the Skill At this point, it is time to actually create the skill. -Skip this step only if the skill being developed already exists, and iteration or packaging is needed. In this case, continue to the next step. +Skip this step only if the skill being developed already exists, and iteration +or packaging is needed. In this case, continue to the next step. -When creating a new skill from scratch, always run the `init_skill.cjs` script. The script conveniently generates a new template skill directory that automatically includes everything a skill requires, making the skill creation process much more efficient and reliable. +When creating a new skill from scratch, always run the `init_skill.cjs` script. +The script conveniently generates a new template skill directory that +automatically includes everything a skill requires, making the skill creation +process much more efficient and reliable. -**Note:** Use the absolute path to the script as provided in the `available_resources` section. +**Note:** Use the absolute path to the script as provided in the +`available_resources` section. Usage: @@ -277,30 +372,48 @@ The script: - Creates the skill directory at the specified path - Generates a SKILL.md template with proper frontmatter and TODO placeholders - Creates example resource directories: `scripts/`, `references/`, and `assets/` -- Adds example files (`scripts/example_script.cjs`, `references/example_reference.md`, `assets/example_asset.txt`) that can be customized or deleted +- Adds example files (`scripts/example_script.cjs`, + `references/example_reference.md`, `assets/example_asset.txt`) that can be + customized or deleted -After initialization, customize or remove the generated SKILL.md and example files as needed. +After initialization, customize or remove the generated SKILL.md and example +files as needed. ### Step 4: Edit the Skill -When editing the (newly-generated or existing) skill, remember that the skill is being created for another instance of Gemini CLI to use. Include information that would be beneficial and non-obvious to Gemini CLI. Consider what procedural knowledge, domain-specific details, or reusable assets would help another Gemini CLI instance execute these tasks more effectively. +When editing the (newly-generated or existing) skill, remember that the skill is +being created for another instance of Gemini CLI to use. Include information +that would be beneficial and non-obvious to Gemini CLI. Consider what procedural +knowledge, domain-specific details, or reusable assets would help another Gemini +CLI instance execute these tasks more effectively. #### Learn Proven Design Patterns Consult these helpful guides based on your skill's needs: -- **Multi-step processes**: See references/workflows.md for sequential workflows and conditional logic -- **Specific output formats or quality standards**: See references/output-patterns.md for template and example patterns +- **Multi-step processes**: See references/workflows.md for sequential workflows + and conditional logic +- **Specific output formats or quality standards**: See + references/output-patterns.md for template and example patterns These files contain established best practices for effective skill design. #### Start with Reusable Skill Contents -To begin implementation, start with the reusable resources identified above: `scripts/`, `references/`, and `assets/` files. Note that this step may require user input. For example, when implementing a `brand-guidelines` skill, the user may need to provide brand assets or templates to store in `assets/`, or documentation to store in `references/`. +To begin implementation, start with the reusable resources identified above: +`scripts/`, `references/`, and `assets/` files. Note that this step may require +user input. For example, when implementing a `brand-guidelines` skill, the user +may need to provide brand assets or templates to store in `assets/`, or +documentation to store in `references/`. -Added scripts must be tested by actually running them to ensure there are no bugs and that the output matches what is expected. If there are many similar scripts, only a representative sample needs to be tested to ensure confidence that they all work while balancing time to completion. +Added scripts must be tested by actually running them to ensure there are no +bugs and that the output matches what is expected. If there are many similar +scripts, only a representative sample needs to be tested to ensure confidence +that they all work while balancing time to completion. -Any example files and directories not needed for the skill should be deleted. The initialization script creates example files in `scripts/`, `references/`, and `assets/` to demonstrate structure, but most skills won't need all of them. +Any example files and directories not needed for the skill should be deleted. +The initialization script creates example files in `scripts/`, `references/`, +and `assets/` to demonstrate structure, but most skills won't need all of them. #### Update SKILL.md @@ -311,11 +424,17 @@ Any example files and directories not needed for the skill should be deleted. Th Write the YAML frontmatter with `name` and `description`: - `name`: The skill name -- `description`: This is the primary triggering mechanism for your skill, and helps Gemini CLI understand when to use the skill. - - Include both what the Skill does and specific triggers/contexts for when to use it. - - **Must be a single-line string** (e.g., `description: Data ingestion...`). Quotes are optional. - - Include all "when to use" information here - Not in the body. The body is only loaded after triggering, so "When to Use This Skill" sections in the body are not helpful to Gemini CLI. - - Example: `description: Data ingestion, cleaning, and transformation for tabular data. Use when Gemini CLI needs to work with CSV/TSV files to analyze large datasets, normalize schemas, or merge sources.` +- `description`: This is the primary triggering mechanism for your skill, and + helps Gemini CLI understand when to use the skill. + - Include both what the Skill does and specific triggers/contexts for when to + use it. + - **Must be a single-line string** (e.g., `description: Data ingestion...`). + Quotes are optional. + - Include all "when to use" information here - Not in the body. The body is + only loaded after triggering, so "When to Use This Skill" sections in the + body are not helpful to Gemini CLI. + - Example: + `description: Data ingestion, cleaning, and transformation for tabular data. Use when Gemini CLI needs to work with CSV/TSV files to analyze large datasets, normalize schemas, or merge sources.` Do not include any other fields in YAML frontmatter. @@ -325,9 +444,13 @@ Write instructions for using the skill and its bundled resources. ### Step 5: Packaging a Skill -Once development of the skill is complete, it must be packaged into a distributable .skill file that gets shared with the user. The packaging process automatically validates the skill first (checking YAML and ensuring no TODOs remain) to ensure it meets all requirements: +Once development of the skill is complete, it must be packaged into a +distributable .skill file that gets shared with the user. The packaging process +automatically validates the skill first (checking YAML and ensuring no TODOs +remain) to ensure it meets all requirements: -**Note:** Use the absolute path to the script as provided in the `available_resources` section. +**Note:** Use the absolute path to the script as provided in the +`available_resources` section. ```bash node /scripts/package_skill.cjs @@ -347,15 +470,22 @@ The packaging script will: - Description completeness and quality - File organization and resource references -2. **Package** the skill if validation passes, creating a .skill file named after the skill (e.g., `my-skill.skill`) that includes all files and maintains the proper directory structure for distribution. The .skill file is a zip file with a .skill extension. +2. **Package** the skill if validation passes, creating a .skill file named + after the skill (e.g., `my-skill.skill`) that includes all files and + maintains the proper directory structure for distribution. The .skill file is + a zip file with a .skill extension. -If validation fails, the script will report the errors and exit without creating a package. Fix any validation errors and run the packaging command again. +If validation fails, the script will report the errors and exit without creating +a package. Fix any validation errors and run the packaging command again. ### Step 6: Installing and Reloading a Skill -Once the skill is packaged into a `.skill` file, offer to install it for the user. Ask whether they would like to install it locally in the current folder (workspace scope) or at the user level (user scope). +Once the skill is packaged into a `.skill` file, offer to install it for the +user. Ask whether they would like to install it locally in the current folder +(workspace scope) or at the user level (user scope). -If the user agrees to an installation, perform it immediately using the `run_shell_command` tool: +If the user agrees to an installation, perform it immediately using the +`run_shell_command` tool: - **Locally (workspace scope)**: ```bash @@ -366,13 +496,19 @@ If the user agrees to an installation, perform it immediately using the `run_she gemini skills install --scope user ``` -**Important:** After the installation is complete, notify the user that they MUST manually execute the `/skills reload` command in their interactive Gemini CLI session to enable the new skill. They can then verify the installation by running `/skills list`. +**Important:** After the installation is complete, notify the user that they +MUST manually execute the `/skills reload` command in their interactive Gemini +CLI session to enable the new skill. They can then verify the installation by +running `/skills list`. -Note: You (the agent) cannot execute the `/skills reload` command yourself; it must be done by the user in an interactive instance of Gemini CLI. Do not attempt to run it on their behalf. +Note: You (the agent) cannot execute the `/skills reload` command yourself; it +must be done by the user in an interactive instance of Gemini CLI. Do not +attempt to run it on their behalf. ### Step 7: Iterate -After testing the skill, users may request improvements. Often this happens right after using the skill, with fresh context of how the skill performed. +After testing the skill, users may request improvements. Often this happens +right after using the skill, with fresh context of how the skill performed. **Iteration workflow:** diff --git a/packages/core/src/teleportation/TELEPORTATION.md b/packages/core/src/teleportation/TELEPORTATION.md index a22527c8a8..117e71fd76 100644 --- a/packages/core/src/teleportation/TELEPORTATION.md +++ b/packages/core/src/teleportation/TELEPORTATION.md @@ -28,7 +28,19 @@ dedicated teleporter bundle: teleporter's `trajectoryToJson` function, which outputs a standard JavaScript object. -## 3. Conversion Logic +## 3. Workspace Identification + +To filter sessions by the user's active workspace, the CLI attempts to read the +target workspace from the trajectory. + +1. **Primary**: It reads `metadata.workspaces[0].workspaceFolderAbsoluteUri` + from the top-level trajectory metadata. This is the authoritative data + populated by the Jetski Go backend. +2. **Fallback**: For older trajectories without top-level metadata, it attempts + to extract `workspaceUri` from the first user input's + `activeUserState.activeDocument` context. + +## 4. Conversion Logic The conversion layer ([converter.ts](file:///Users/sshon/developments/gemini-cli/packages/core/src/teleportation/converter.ts)) @@ -43,9 +55,82 @@ translates the technical "Steps" of an Antigravity trajectory into the CLI's and populates the `thoughts` array in the CLI record, preserving the model's logic. - **Tool Calls**: Maps Antigravity tool execution steps to CLI `ToolCallRecord` - objects, including status mapping (Success/Error) and argument parsing. + objects. The integration handles these in three main categories: -## 4. Session Resumption +| Tool Capability | Gemini CLI Tool | Jetski Protobuf Step | Teleportation Status | +| :------------------- | :------------------------------------- | :---------------------------------------------- | :----------------------- | +| **Read File** | `read_file` | `CORTEX_STEP_TYPE_VIEW_FILE` | ✅ Native Mapping | +| **List Directory** | `ls` | `CORTEX_STEP_TYPE_LIST_DIRECTORY` | ✅ Native Mapping | +| **Search Code** | `grep_search` | `CORTEX_STEP_TYPE_GREP_SEARCH` | ✅ Native Mapping | +| **Edit File** | `replace` | `CORTEX_STEP_TYPE_FILE_CHANGE` | ✅ Native Mapping | +| **Search Web** | `google_web_search` | `CORTEX_STEP_TYPE_SEARCH_WEB` | ✅ Native Mapping | +| **Execute Shell** | `run_shell_command` | `CORTEX_STEP_TYPE_RUN_COMMAND` | ✅ Native Mapping | +| **Browser Agent** | _N/A_ \* | `CORTEX_STEP_TYPE_BROWSER_SUBAGENT` | ❌ Dropped | +| **User Input** | `ask_user` | `CORTEX_STEP_TYPE_GENERIC` | ⚠️ Generic / MCP | +| **Read URL Content** | `web_fetch` | `CORTEX_STEP_TYPE_READ_URL_CONTENT` | ❌ Dropped | +| **Find Files** | `glob` | `CORTEX_STEP_TYPE_FIND` | ❌ Dropped | +| **Write File** | `write_file` | `CORTEX_STEP_TYPE_WRITE_TO_FILE` | ❌ Dropped | +| **Read Many Files** | `read_many_files` | `CORTEX_STEP_TYPE_GENERIC` | ⚠️ Generic / MCP | +| **Write Todos** | `write_todos` | `CORTEX_STEP_TYPE_GENERIC` | ⚠️ Generic / MCP | +| **Save Memory** | `save_memory` | `CORTEX_STEP_TYPE_GENERIC` | ⚠️ Generic / MCP | +| **Docs/Skills** | `get_internal_docs` & `activate_skill` | `CORTEX_STEP_TYPE_GENERIC` | ⚠️ Generic / MCP | +| **Plan Mode** | `enter_plan_mode` & `exit_plan_mode` | `CORTEX_STEP_TYPE_GENERIC` | ⚠️ Generic / MCP | +| **IDE Actions** | _N/A_ | `VIEW_CODE_ITEM`, `LINT_DIFF`, `ADD_ANNOTATION` | 🚫 Jetski Only (Dropped) | + +**1. Native Mappings** Antigravity has specific protobuf message types for +common tool calls, which map directly to the CLI's native tools: + +- `CORTEX_STEP_TYPE_VIEW_FILE` -> `read_file` +- `CORTEX_STEP_TYPE_LIST_DIRECTORY` -> `ls` +- `CORTEX_STEP_TYPE_GREP_SEARCH` -> `grep_search` +- `CORTEX_STEP_TYPE_RUN_COMMAND` -> `run_shell_command` +- `CORTEX_STEP_TYPE_FILE_CHANGE` -> `replace` +- `CORTEX_STEP_TYPE_BROWSER_SUBAGENT` -> (Dropped) + +**2. Generic & MCP Integrations** Jetski uses `CORTEX_STEP_TYPE_GENERIC` to +handle dynamic or MCP (Model Context Protocol) tool calls that are not hardcoded +into the native protobuf schema. + +- The CLI reads the `toolName` and `argsJson` directly from the generic step + payload and executes them as-is (e.g. `ask_user`, `mcp_*` tools). + +**3. Unsupported Tools** Many isolated actions, sub-agent tools, and +IDE-specific UI interactions are dropped by the teleporter to maintain strict +CLI compatibility and preserve valid context-window state. + +
+Click to view exhaustive list of all 75+ dropped Jetski steps + +Any step mapped in `cortex.proto` that isn't functionally replicated by the CLI +is skipped. This includes: + +- **Browser UI & Automation**: `CORTEX_STEP_TYPE_BROWSER_CLICK_ELEMENT`, + `CORTEX_STEP_TYPE_BROWSER_MOVE_MOUSE`, `CORTEX_STEP_TYPE_BROWSER_SUBAGENT`, + `CORTEX_STEP_TYPE_EXECUTE_BROWSER_JAVASCRIPT`, + `CORTEX_STEP_TYPE_CAPTURE_BROWSER_SCREENSHOT`, + `CORTEX_STEP_TYPE_READ_BROWSER_PAGE`, `CORTEX_STEP_TYPE_BROWSER_GET_DOM`, + `CORTEX_STEP_TYPE_BROWSER_LIST_NETWORK_REQUESTS`, + `CORTEX_STEP_TYPE_BROWSER_SCROLL_UP`, `CORTEX_STEP_TYPE_OPEN_BROWSER_URL`, and + 15+ other browser controls. +- **IDE & UI Actions**: `CORTEX_STEP_TYPE_VIEW_CODE_ITEM`, + `CORTEX_STEP_TYPE_LINT_DIFF`, `CORTEX_STEP_TYPE_ADD_ANNOTATION`, + `CORTEX_STEP_TYPE_VIEW_FILE_OUTLINE`, `CORTEX_STEP_TYPE_CODE_SEARCH`, + `CORTEX_STEP_TYPE_FIND_ALL_REFERENCES`, `CORTEX_STEP_TYPE_CODE_ACTION`. +- **Agent Framework**: `CORTEX_STEP_TYPE_TASK_BOUNDARY`, + `CORTEX_STEP_TYPE_NOTIFY_USER`, `CORTEX_STEP_TYPE_INVOKE_SUBAGENT`, + `CORTEX_STEP_TYPE_CHECKPOINT`, `CORTEX_STEP_TYPE_EPHEMERAL_MESSAGE`, + `CORTEX_STEP_TYPE_COMMAND_STATUS`, `CORTEX_STEP_TYPE_SEND_COMMAND_INPUT`. +- **Knowledge & Workspace**: `CORTEX_STEP_TYPE_KNOWLEDGE_GENERATION`, + `CORTEX_STEP_TYPE_KI_INSERTION`, `CORTEX_STEP_TYPE_TRAJECTORY_SEARCH`, + `CORTEX_STEP_TYPE_MQUERY`, `CORTEX_STEP_TYPE_INTERNAL_SEARCH`, + `CORTEX_STEP_TYPE_LIST_RESOURCES`, `CORTEX_STEP_TYPE_WORKSPACE_API`. +- **Misc Commands**: `CORTEX_STEP_TYPE_GIT_COMMIT`, + `CORTEX_STEP_TYPE_GENERATE_IMAGE`, `CORTEX_STEP_TYPE_COMPILE`, + `CORTEX_STEP_TYPE_CLIPBOARD`, `CORTEX_STEP_TYPE_ERROR_MESSAGE`, etc. + +
+ +## 5. Session Resumption Once converted: @@ -61,37 +146,90 @@ compatibility. ### When to Update -- If new step types are added to Antigravity that the CLI should support. +- If new step types are added to Antigravity that the CLI should support in + `converter.ts`. - If the binary format of the `.pb` files changes. - If the encryption key or algorithm is rotated. ### How to Regenerate the Bundle -To keep the CLI up to date: +To keep the CLI up to date, you can run the automated build script: -1. Update `packages/core/src/teleportation/trajectory_teleporter.ts` with any - logic changes. -2. To build a new minified bundle, you must run it from within the Antigravity - `Exafunction` workspace because it depends on the complex Protobuf schema - definitions there - (`exa/proto_ts/dist/exa/gemini_coder/proto/trajectory_pb.js`). -3. If the Protobuf JS definitions haven't been generated in your `Exafunction` - project yet, build them first: - ```bash - pnpm --dir exa/proto_ts build - ``` -4. Inside the `Exafunction` project root, run: - ```bash - pnpm dlx esbuild /path/to/orions-belt/packages/core/src/teleportation/trajectory_teleporter.ts \ - --bundle \ - --minify \ - --format=esm \ - --platform=node \ - --outfile=/path/to/orions-belt/packages/core/src/teleportation/trajectory_teleporter.min.js - ``` -5. Verify the new `trajectory_teleporter.min.js` works locally in the CLI. +```bash +npm run build:teleporter +``` + +This runs `packages/core/scripts/build-teleporter.sh`, which automatically: + +1. Navigates to the neighboring `Exafunction` directory. +2. Generates the latest Protobuf JS schemas (`pnpm --dir exa/proto_ts build`). +3. Uses `esbuild` to re-bundle the CLI's teleporter script + (`trajectory_teleporter.ts`) against the fresh schemas. +4. Outputs the new `trajectory_teleporter.min.js` directly into the `gemini-cli` + source tree. > [!TIP] In the long term, this logic could be moved to a shared NPM package > published from the Antigravity repository, allowing the Gemini CLI to stay -> updated via simple `npm update`. 3. Users can continue the conversation -> seamlessly via the `/chat resume` command. +> updated via a simple `npm update`. + +## Productionization Roadmap + +To safely and seamlessly bring the Jetski trajectory teleportation feature to a +fully production-ready state in the Gemini CLI, several key areas need to be +addressed: + +### 1. Security & Key Management + +- **Dynamic Key Exchange:** Instead of a hardcoded key in the CLI source code, + the CLI should retrieve the encryption key securely (e.g., from the OS + Keychain, a local Jetski config file, or by querying the local Jetski daemon). +- **Permission Scoping:** Ensure the CLI enforces the same file-access + permission rules (`file_permission_request`) that Jetski enforces so the AI + doesn't suddenly gain destructive permissions when transitioning to the + terminal. + +### 2. Architecture & Build Process Decoupling + +- **Shared NPM Package:** Publish the compiled Protobufs and parsing logic as a + private internal package (e.g., `@google/cortex-teleporter`). The Gemini CLI + should simply `npm install` this, rather than generating `.min.js` blobs + manually. +- **Schema Versioning:** Add version checks. If the CLI encounters a trajectory + from a newer version of Jetski with breaking protobuf changes, it should + gracefully prompt the user to update the CLI. + +### 3. User Experience (UX) + +- **Clear UI Indicators:** In the CLI's `/chat resume` menu, Jetski sessions + should be visually distinct from native CLI sessions (e.g., using a 🛸 icon + and a "Jetski" tag next to the session name). +- **Missing Context Warnings:** Because we intentionally drop 75+ step types + (browser actions, IDE UI clicks, etc.), the CLI conversation history might + look like it has "gaps." The UI should render a small placeholder like: + `[ ⚠️ Jetski browser action dropped for CLI compatibility ]` so the user + understands the model did something in the IDE that isn't shown in the + terminal. +- **Seamless Handoff Prompt:** If the user has a currently active (running) + Jetski session, the CLI could intelligently prompt them on startup: _"You have + an active session in Jetski. Type `/resume` to bring it into the terminal."_ + +### 4. Data Fidelity & Error Handling + +- **Graceful Degradation:** If the CLI fails to parse a specific `generic` step + or misses a tool argument, it shouldn't crash the entire resume process. It + should skip the broken step and append a system message warning the model. +- **File State Synchronization:** If a user made uncommitted file edits in + Jetski (e.g., `fileChange` steps that haven't been saved to disk), the CLI + needs to ensure it doesn't accidentally overwrite or hallucinate disk state. + It might be worth requiring a file save before teleporting. + +### 5. Performance + +- **Lazy Loading / Streaming:** When populating the list of sessions for + `/chat resume`, the CLI shouldn’t decrypt and parse the _entire_ history of + every file. It should only read the `metadata` headers to render the UI + picker, and only parse the full multi-megabyte `ConversationRecord` when a + specific session is selected. +- **Memory Limits:** Set an upper limit on how many historical tool turns the + CLI loads into memory when teleporting to avoid OOM (Out of Memory) crashes in + Node.js. diff --git a/packages/core/src/teleportation/discovery.ts b/packages/core/src/teleportation/discovery.ts index 7cd9edf2b6..d844ca0bcd 100644 --- a/packages/core/src/teleportation/discovery.ts +++ b/packages/core/src/teleportation/discovery.ts @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ +/* eslint-disable @typescript-eslint/no-unsafe-type-assertion */ import fs from 'node:fs/promises'; import path from 'node:path'; import os from 'node:os'; @@ -17,6 +18,7 @@ export interface AgySessionInfo { mtime: string; displayName?: string; messageCount?: number; + workspaceUri?: string; } const AGY_CONVERSATIONS_DIR = path.join( @@ -28,8 +30,11 @@ const AGY_CONVERSATIONS_DIR = path.join( /** * Lists all Antigravity sessions found on disk. + * @param filterWorkspaceUri Optional filter to only return sessions matching this workspace URI (e.g. "file:///..."). */ -export async function listAgySessions(): Promise { +export async function listAgySessions( + filterWorkspaceUri?: string, +): Promise { try { const files = await fs.readdir(AGY_CONVERSATIONS_DIR); const sessions: AgySessionInfo[] = []; @@ -40,7 +45,7 @@ export async function listAgySessions(): Promise { const stats = await fs.stat(filePath); const id = path.basename(file, '.pb'); - let details = {}; + let details: ReturnType = {}; try { const data = await fs.readFile(filePath); const json = trajectoryToJson(data); @@ -49,6 +54,14 @@ export async function listAgySessions(): Promise { // Ignore errors during parsing } + if ( + filterWorkspaceUri && + details.workspaceUri && + details.workspaceUri !== filterWorkspaceUri + ) { + continue; // Skip sessions from other workspaces if we have a filter + } + sessions.push({ id, path: filePath, @@ -68,6 +81,7 @@ export async function listAgySessions(): Promise { function extractAgyDetails(json: unknown): { displayName?: string; messageCount?: number; + workspaceUri?: string; } { try { const record = convertAgyToCliRecord(json); @@ -79,9 +93,47 @@ function extractAgyDetails(json: unknown): { ? partListUnionToString(firstUserMsg.content).slice(0, 100) : 'Antigravity Session'; + // Attempt to extract authoritative workspace object from top-level metadata first + let workspaceUri: string | undefined; + const agyJson = json as Record; + + const metadata = agyJson['metadata'] as Record | undefined; + if (metadata) { + const workspaces = metadata['workspaces'] as + | Array> + | undefined; + const firstWorkspace = workspaces?.[0]; + if (firstWorkspace && firstWorkspace['workspaceFolderAbsoluteUri']) { + workspaceUri = firstWorkspace['workspaceFolderAbsoluteUri'] as string; + } + } + + // Fallback: Attempt to extract workspace object from raw JSON steps (e.g. older offline trajectories) + if (!workspaceUri) { + const steps = (agyJson['steps'] as Array>) || []; + for (const step of steps) { + const userInput = step['userInput'] as + | Record + | undefined; + if (userInput) { + const activeState = userInput['activeUserState'] as + | Record + | undefined; + const activeDoc = activeState?.['activeDocument'] as + | Record + | undefined; + if (activeDoc && activeDoc['workspaceUri']) { + workspaceUri = activeDoc['workspaceUri'] as string; + break; + } + } + } + } + return { displayName, messageCount: messages.length, + workspaceUri, }; } catch (_error) { return {}; diff --git a/packages/core/src/teleportation/trajectory_teleporter.min.js b/packages/core/src/teleportation/trajectory_teleporter.min.js index 43cf4f70e2..f13ad8f563 100644 --- a/packages/core/src/teleportation/trajectory_teleporter.min.js +++ b/packages/core/src/teleportation/trajectory_teleporter.min.js @@ -1,1847 +1,2654 @@ -import * as Oe from 'crypto'; -function p(e, n) { - if (!e) throw new Error(n); +// trajectory_teleporter_tmp.ts +import * as crypto from 'node:crypto'; + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/assert.js +function assert(condition, msg) { + if (!condition) { + throw new Error(msg); + } } -var np = 34028234663852886e22, - ep = -34028234663852886e22, - tp = 4294967295, - ap = 2147483647, - rp = -2147483648; -function Vn(e) { - if (typeof e != 'number') throw new Error('invalid int 32: ' + typeof e); - if (!Number.isInteger(e) || e > ap || e < rp) - throw new Error('invalid int 32: ' + e); +var FLOAT32_MAX = 34028234663852886e22; +var FLOAT32_MIN = -34028234663852886e22; +var UINT32_MAX = 4294967295; +var INT32_MAX = 2147483647; +var INT32_MIN = -2147483648; +function assertInt32(arg) { + if (typeof arg !== 'number') throw new Error('invalid int 32: ' + typeof arg); + if (!Number.isInteger(arg) || arg > INT32_MAX || arg < INT32_MIN) + throw new Error('invalid int 32: ' + arg); } -function Ce(e) { - if (typeof e != 'number') throw new Error('invalid uint 32: ' + typeof e); - if (!Number.isInteger(e) || e > tp || e < 0) - throw new Error('invalid uint 32: ' + e); +function assertUInt32(arg) { + if (typeof arg !== 'number') + throw new Error('invalid uint 32: ' + typeof arg); + if (!Number.isInteger(arg) || arg > UINT32_MAX || arg < 0) + throw new Error('invalid uint 32: ' + arg); } -function va(e) { - if (typeof e != 'number') throw new Error('invalid float 32: ' + typeof e); - if (Number.isFinite(e) && (e > np || e < ep)) - throw new Error('invalid float 32: ' + e); +function assertFloat32(arg) { + if (typeof arg !== 'number') + throw new Error('invalid float 32: ' + typeof arg); + if (!Number.isFinite(arg)) return; + if (arg > FLOAT32_MAX || arg < FLOAT32_MIN) + throw new Error('invalid float 32: ' + arg); } -var rT = Symbol('@bufbuild/protobuf/enum-type'); -function sT(e) { - let n = e[rT]; - return (p(n, 'missing enum type on enum object'), n); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/enum.js +var enumTypeSymbol = /* @__PURE__ */ Symbol('@bufbuild/protobuf/enum-type'); +function getEnumType(enumObject) { + const t = enumObject[enumTypeSymbol]; + assert(t, 'missing enum type on enum object'); + return t; } -function Xo(e, n, t, i) { - e[rT] = Ko( - n, - t.map((s) => ({ no: s.no, name: s.name, localName: e[s.no] })), - i, +function setEnumType(enumObject, typeName, values, opt) { + enumObject[enumTypeSymbol] = makeEnumType( + typeName, + values.map((v) => ({ + no: v.no, + name: v.name, + localName: enumObject[v.no], + })), + opt, ); } -function Ko(e, n, t) { - let i = Object.create(null), - s = Object.create(null), - m = []; - for (let c of n) { - let u = oT(c); - (m.push(u), (i[c.name] = u), (s[c.no] = u)); +function makeEnumType(typeName, values, _opt) { + const names = /* @__PURE__ */ Object.create(null); + const numbers = /* @__PURE__ */ Object.create(null); + const normalValues = []; + for (const value of values) { + const n = normalizeEnumValue(value); + normalValues.push(n); + names[value.name] = n; + numbers[value.no] = n; } return { - typeName: e, - values: m, - findName(c) { - return i[c]; + typeName, + values: normalValues, + // We do not surface options at this time + // options: opt?.options ?? Object.create(null), + findName(name) { + return names[name]; }, - findNumber(c) { - return s[c]; + findNumber(no) { + return numbers[no]; }, }; } -function iT(e, n, t) { - let i = {}; - for (let s of n) { - let m = oT(s); - ((i[m.localName] = m.no), (i[m.no] = m.localName)); +function makeEnum(typeName, values, opt) { + const enumObject = {}; + for (const value of values) { + const n = normalizeEnumValue(value); + enumObject[n.localName] = n.no; + enumObject[n.no] = n.localName; } - return (Xo(i, e, n, t), i); + setEnumType(enumObject, typeName, values, opt); + return enumObject; } -function oT(e) { - return 'localName' in e - ? e - : Object.assign(Object.assign({}, e), { localName: e.name }); -} -var r = class { - equals(n) { - return this.getType().runtime.util.equals(this.getType(), this, n); +function normalizeEnumValue(value) { + if ('localName' in value) { + return value; } + return Object.assign(Object.assign({}, value), { localName: value.name }); +} + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/message.js +var Message = class { + /** + * Compare with a message of the same type. + * Note that this function disregards extensions and unknown fields. + */ + equals(other) { + return this.getType().runtime.util.equals(this.getType(), this, other); + } + /** + * Create a deep copy. + */ clone() { return this.getType().runtime.util.clone(this); } - fromBinary(n, t) { - let i = this.getType(), - s = i.runtime.bin, - m = s.makeReadOptions(t); - return (s.readMessage(this, m.readerFactory(n), n.byteLength, m), this); + /** + * Parse from binary data, merging fields. + * + * Repeated fields are appended. Map entries are added, overwriting + * existing keys. + * + * If a message field is already present, it will be merged with the + * new data. + */ + fromBinary(bytes, options) { + const type = this.getType(), + format = type.runtime.bin, + opt = format.makeReadOptions(options); + format.readMessage(this, opt.readerFactory(bytes), bytes.byteLength, opt); + return this; } - fromJson(n, t) { - let i = this.getType(), - s = i.runtime.json, - m = s.makeReadOptions(t); - return (s.readMessage(i, n, m, this), this); + /** + * Parse a message from a JSON value. + */ + fromJson(jsonValue, options) { + const type = this.getType(), + format = type.runtime.json, + opt = format.makeReadOptions(options); + format.readMessage(type, jsonValue, opt, this); + return this; } - fromJsonString(n, t) { - let i; + /** + * Parse a message from a JSON string. + */ + fromJsonString(jsonString, options) { + let json; try { - i = JSON.parse(n); - } catch (s) { + json = JSON.parse(jsonString); + } catch (e) { throw new Error( - `cannot decode ${this.getType().typeName} from JSON: ${s instanceof Error ? s.message : String(s)}`, + `cannot decode ${this.getType().typeName} from JSON: ${e instanceof Error ? e.message : String(e)}`, ); } - return this.fromJson(i, t); + return this.fromJson(json, options); } - toBinary(n) { - let t = this.getType(), - i = t.runtime.bin, - s = i.makeWriteOptions(n), - m = s.writerFactory(); - return (i.writeMessage(this, m, s), m.finish()); + /** + * Serialize the message to binary data. + */ + toBinary(options) { + const type = this.getType(), + bin = type.runtime.bin, + opt = bin.makeWriteOptions(options), + writer = opt.writerFactory(); + bin.writeMessage(this, writer, opt); + return writer.finish(); } - toJson(n) { - let t = this.getType(), - i = t.runtime.json, - s = i.makeWriteOptions(n); - return i.writeMessage(this, s); + /** + * Serialize the message to a JSON value, a JavaScript value that can be + * passed to JSON.stringify(). + */ + toJson(options) { + const type = this.getType(), + json = type.runtime.json, + opt = json.makeWriteOptions(options); + return json.writeMessage(this, opt); } - toJsonString(n) { - var t; - let i = this.toJson(n); + /** + * Serialize the message to a JSON string. + */ + toJsonString(options) { + var _a; + const value = this.toJson(options); return JSON.stringify( - i, + value, null, - (t = n?.prettySpaces) !== null && t !== void 0 ? t : 0, + (_a = + options === null || options === void 0 + ? void 0 + : options.prettySpaces) !== null && _a !== void 0 + ? _a + : 0, ); } + /** + * Override for serialization behavior. This will be invoked when calling + * JSON.stringify on this message (i.e. JSON.stringify(msg)). + * + * Note that this will not serialize google.protobuf.Any with a packed + * message because the protobuf JSON format specifies that it needs to be + * unpacked, and this is only possible with a type registry to look up the + * message type. As a result, attempting to serialize a message with this + * type will throw an Error. + * + * This method is protected because you should not need to invoke it + * directly -- instead use JSON.stringify or toJsonString for + * stringified JSON. Alternatively, if actual JSON is desired, you should + * use toJson. + */ toJSON() { - return this.toJson({ emitDefaultValues: !0 }); + return this.toJson({ + emitDefaultValues: true, + }); } + /** + * Retrieve the MessageType of this message - a singleton that represents + * the protobuf message declaration and provides metadata for reflection- + * based operations. + */ getType() { return Object.getPrototypeOf(this).constructor; } }; -function mT(e, n, t, i) { - var s; - let m = - (s = i?.localName) !== null && s !== void 0 - ? s - : n.substring(n.lastIndexOf('.') + 1), - c = { - [m]: function (u) { - (e.util.initFields(this), e.util.initPartial(u, this)); - }, - }[m]; - return ( - Object.setPrototypeOf(c.prototype, new r()), - Object.assign(c, { - runtime: e, - typeName: n, - fields: e.util.newFieldList(t), - fromBinary(u, E) { - return new c().fromBinary(u, E); - }, - fromJson(u, E) { - return new c().fromJson(u, E); - }, - fromJsonString(u, E) { - return new c().fromJsonString(u, E); - }, - equals(u, E) { - return e.util.equals(c, u, E); - }, - }), - c - ); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/message-type.js +function makeMessageType(runtime, typeName, fields, opt) { + var _a; + const localName = + (_a = opt === null || opt === void 0 ? void 0 : opt.localName) !== null && + _a !== void 0 + ? _a + : typeName.substring(typeName.lastIndexOf('.') + 1); + const type = { + [localName]: function (data) { + runtime.util.initFields(this); + runtime.util.initPartial(data, this); + }, + }[localName]; + Object.setPrototypeOf(type.prototype, new Message()); + Object.assign(type, { + runtime, + typeName, + fields: runtime.util.newFieldList(fields), + fromBinary(bytes, options) { + return new type().fromBinary(bytes, options); + }, + fromJson(jsonValue, options) { + return new type().fromJson(jsonValue, options); + }, + fromJsonString(jsonString, options) { + return new type().fromJsonString(jsonString, options); + }, + equals(a, b) { + return runtime.util.equals(type, a, b); + }, + }); + return type; } -function uT() { - let e = 0, - n = 0; - for (let i = 0; i < 28; i += 7) { - let s = this.buf[this.pos++]; - if (((e |= (s & 127) << i), !(s & 128))) - return (this.assertBounds(), [e, n]); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/google/varint.js +function varint64read() { + let lowBits = 0; + let highBits = 0; + for (let shift = 0; shift < 28; shift += 7) { + let b = this.buf[this.pos++]; + lowBits |= (b & 127) << shift; + if ((b & 128) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } } - let t = this.buf[this.pos++]; - if (((e |= (t & 15) << 28), (n = (t & 112) >> 4), !(t & 128))) - return (this.assertBounds(), [e, n]); - for (let i = 3; i <= 31; i += 7) { - let s = this.buf[this.pos++]; - if (((n |= (s & 127) << i), !(s & 128))) - return (this.assertBounds(), [e, n]); + let middleByte = this.buf[this.pos++]; + lowBits |= (middleByte & 15) << 28; + highBits = (middleByte & 112) >> 4; + if ((middleByte & 128) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } + for (let shift = 3; shift <= 31; shift += 7) { + let b = this.buf[this.pos++]; + highBits |= (b & 127) << shift; + if ((b & 128) == 0) { + this.assertBounds(); + return [lowBits, highBits]; + } } throw new Error('invalid varint'); } -function ja(e, n, t) { - for (let m = 0; m < 28; m = m + 7) { - let c = e >>> m, - u = !(!(c >>> 7) && n == 0), - E = (u ? c | 128 : c) & 255; - if ((t.push(E), !u)) return; - } - let i = ((e >>> 28) & 15) | ((n & 7) << 4), - s = !!(n >> 3); - if ((t.push((s ? i | 128 : i) & 255), !!s)) { - for (let m = 3; m < 31; m = m + 7) { - let c = n >>> m, - u = !!(c >>> 7), - E = (u ? c | 128 : c) & 255; - if ((t.push(E), !u)) return; +function varint64write(lo, hi, bytes) { + for (let i = 0; i < 28; i = i + 7) { + const shift = lo >>> i; + const hasNext = !(shift >>> 7 == 0 && hi == 0); + const byte = (hasNext ? shift | 128 : shift) & 255; + bytes.push(byte); + if (!hasNext) { + return; } - t.push((n >>> 31) & 1); } -} -var za = 4294967296; -function vo(e) { - let n = e[0] === '-'; - n && (e = e.slice(1)); - let t = 1e6, - i = 0, - s = 0; - function m(c, u) { - let E = Number(e.slice(c, u)); - ((s *= t), - (i = i * t + E), - i >= za && ((s = s + ((i / za) | 0)), (i = i % za))); + const splitBits = ((lo >>> 28) & 15) | ((hi & 7) << 4); + const hasMoreBits = !(hi >> 3 == 0); + bytes.push((hasMoreBits ? splitBits | 128 : splitBits) & 255); + if (!hasMoreBits) { + return; } - return (m(-24, -18), m(-18, -12), m(-12, -6), m(-6), n ? ET(i, s) : jo(i, s)); + for (let i = 3; i < 31; i = i + 7) { + const shift = hi >>> i; + const hasNext = !(shift >>> 7 == 0); + const byte = (hasNext ? shift | 128 : shift) & 255; + bytes.push(byte); + if (!hasNext) { + return; + } + } + bytes.push((hi >>> 31) & 1); } -function lT(e, n) { - let t = jo(e, n), - i = t.hi & 2147483648; - i && (t = ET(t.lo, t.hi)); - let s = zo(t.lo, t.hi); - return i ? '-' + s : s; +var TWO_PWR_32_DBL = 4294967296; +function int64FromString(dec) { + const minus = dec[0] === '-'; + if (minus) { + dec = dec.slice(1); + } + const base = 1e6; + let lowBits = 0; + let highBits = 0; + function add1e6digit(begin, end) { + const digit1e6 = Number(dec.slice(begin, end)); + highBits *= base; + lowBits = lowBits * base + digit1e6; + if (lowBits >= TWO_PWR_32_DBL) { + highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0); + lowBits = lowBits % TWO_PWR_32_DBL; + } + } + add1e6digit(-24, -18); + add1e6digit(-18, -12); + add1e6digit(-12, -6); + add1e6digit(-6); + return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits); } -function zo(e, n) { - if ((({ lo: e, hi: n } = sp(e, n)), n <= 2097151)) return String(za * n + e); - let t = e & 16777215, - i = ((e >>> 24) | (n << 8)) & 16777215, - s = (n >> 16) & 65535, - m = t + i * 6777216 + s * 6710656, - c = i + s * 8147497, - u = s * 2, - E = 1e7; +function int64ToString(lo, hi) { + let bits = newBits(lo, hi); + const negative = bits.hi & 2147483648; + if (negative) { + bits = negate(bits.lo, bits.hi); + } + const result = uInt64ToString(bits.lo, bits.hi); + return negative ? '-' + result : result; +} +function uInt64ToString(lo, hi) { + ({ lo, hi } = toUnsigned(lo, hi)); + if (hi <= 2097151) { + return String(TWO_PWR_32_DBL * hi + lo); + } + const low = lo & 16777215; + const mid = ((lo >>> 24) | (hi << 8)) & 16777215; + const high = (hi >> 16) & 65535; + let digitA = low + mid * 6777216 + high * 6710656; + let digitB = mid + high * 8147497; + let digitC = high * 2; + const base = 1e7; + if (digitA >= base) { + digitB += Math.floor(digitA / base); + digitA %= base; + } + if (digitB >= base) { + digitC += Math.floor(digitB / base); + digitB %= base; + } return ( - m >= E && ((c += Math.floor(m / E)), (m %= E)), - c >= E && ((u += Math.floor(c / E)), (c %= E)), - u.toString() + cT(c) + cT(m) + digitC.toString() + + decimalFrom1e7WithLeadingZeros(digitB) + + decimalFrom1e7WithLeadingZeros(digitA) ); } -function sp(e, n) { - return { lo: e >>> 0, hi: n >>> 0 }; +function toUnsigned(lo, hi) { + return { lo: lo >>> 0, hi: hi >>> 0 }; } -function jo(e, n) { - return { lo: e | 0, hi: n | 0 }; +function newBits(lo, hi) { + return { lo: lo | 0, hi: hi | 0 }; } -function ET(e, n) { - return ((n = ~n), e ? (e = ~e + 1) : (n += 1), jo(e, n)); -} -var cT = (e) => { - let n = String(e); - return '0000000'.slice(n.length) + n; -}; -function Qo(e, n) { - if (e >= 0) { - for (; e > 127; ) (n.push((e & 127) | 128), (e = e >>> 7)); - n.push(e); +function negate(lowBits, highBits) { + highBits = ~highBits; + if (lowBits) { + lowBits = ~lowBits + 1; } else { - for (let t = 0; t < 9; t++) (n.push((e & 127) | 128), (e = e >> 7)); - n.push(1); + highBits += 1; + } + return newBits(lowBits, highBits); +} +var decimalFrom1e7WithLeadingZeros = (digit1e7) => { + const partial = String(digit1e7); + return '0000000'.slice(partial.length) + partial; +}; +function varint32write(value, bytes) { + if (value >= 0) { + while (value > 127) { + bytes.push((value & 127) | 128); + value = value >>> 7; + } + bytes.push(value); + } else { + for (let i = 0; i < 9; i++) { + bytes.push((value & 127) | 128); + value = value >> 7; + } + bytes.push(1); } } -function _T() { - let e = this.buf[this.pos++], - n = e & 127; - if (!(e & 128)) return (this.assertBounds(), n); - if (((e = this.buf[this.pos++]), (n |= (e & 127) << 7), !(e & 128))) - return (this.assertBounds(), n); - if (((e = this.buf[this.pos++]), (n |= (e & 127) << 14), !(e & 128))) - return (this.assertBounds(), n); - if (((e = this.buf[this.pos++]), (n |= (e & 127) << 21), !(e & 128))) - return (this.assertBounds(), n); - ((e = this.buf[this.pos++]), (n |= (e & 15) << 28)); - for (let t = 5; e & 128 && t < 10; t++) e = this.buf[this.pos++]; - if (e & 128) throw new Error('invalid varint'); - return (this.assertBounds(), n >>> 0); +function varint32read() { + let b = this.buf[this.pos++]; + let result = b & 127; + if ((b & 128) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 127) << 7; + if ((b & 128) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 127) << 14; + if ((b & 128) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 127) << 21; + if ((b & 128) == 0) { + this.assertBounds(); + return result; + } + b = this.buf[this.pos++]; + result |= (b & 15) << 28; + for (let readBytes = 5; (b & 128) !== 0 && readBytes < 10; readBytes++) + b = this.buf[this.pos++]; + if ((b & 128) != 0) throw new Error('invalid varint'); + this.assertBounds(); + return result >>> 0; } -function ip() { - let e = new DataView(new ArrayBuffer(8)); - if ( - typeof BigInt == 'function' && - typeof e.getBigInt64 == 'function' && - typeof e.getBigUint64 == 'function' && - typeof e.setBigInt64 == 'function' && - typeof e.setBigUint64 == 'function' && + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +function makeInt64Support() { + const dv = new DataView(new ArrayBuffer(8)); + const ok = + typeof BigInt === 'function' && + typeof dv.getBigInt64 === 'function' && + typeof dv.getBigUint64 === 'function' && + typeof dv.setBigInt64 === 'function' && + typeof dv.setBigUint64 === 'function' && (typeof process != 'object' || typeof process.env != 'object' || - process.env.BUF_BIGINT_DISABLE !== '1') - ) { - let s = BigInt('-9223372036854775808'), - m = BigInt('9223372036854775807'), - c = BigInt('0'), - u = BigInt('18446744073709551615'); + process.env.BUF_BIGINT_DISABLE !== '1'); + if (ok) { + const MIN = BigInt('-9223372036854775808'), + MAX = BigInt('9223372036854775807'), + UMIN = BigInt('0'), + UMAX = BigInt('18446744073709551615'); return { zero: BigInt(0), - supported: !0, - parse(E) { - let T = typeof E == 'bigint' ? E : BigInt(E); - if (T > m || T < s) throw new Error(`int64 invalid: ${E}`); - return T; + supported: true, + parse(value) { + const bi = typeof value == 'bigint' ? value : BigInt(value); + if (bi > MAX || bi < MIN) { + throw new Error(`int64 invalid: ${value}`); + } + return bi; }, - uParse(E) { - let T = typeof E == 'bigint' ? E : BigInt(E); - if (T > u || T < c) throw new Error(`uint64 invalid: ${E}`); - return T; + uParse(value) { + const bi = typeof value == 'bigint' ? value : BigInt(value); + if (bi > UMAX || bi < UMIN) { + throw new Error(`uint64 invalid: ${value}`); + } + return bi; }, - enc(E) { - return ( - e.setBigInt64(0, this.parse(E), !0), - { lo: e.getInt32(0, !0), hi: e.getInt32(4, !0) } - ); + enc(value) { + dv.setBigInt64(0, this.parse(value), true); + return { + lo: dv.getInt32(0, true), + hi: dv.getInt32(4, true), + }; }, - uEnc(E) { - return ( - e.setBigInt64(0, this.uParse(E), !0), - { lo: e.getInt32(0, !0), hi: e.getInt32(4, !0) } - ); + uEnc(value) { + dv.setBigInt64(0, this.uParse(value), true); + return { + lo: dv.getInt32(0, true), + hi: dv.getInt32(4, true), + }; }, - dec(E, T) { - return ( - e.setInt32(0, E, !0), - e.setInt32(4, T, !0), - e.getBigInt64(0, !0) - ); + dec(lo, hi) { + dv.setInt32(0, lo, true); + dv.setInt32(4, hi, true); + return dv.getBigInt64(0, true); }, - uDec(E, T) { - return ( - e.setInt32(0, E, !0), - e.setInt32(4, T, !0), - e.getBigUint64(0, !0) - ); + uDec(lo, hi) { + dv.setInt32(0, lo, true); + dv.setInt32(4, hi, true); + return dv.getBigUint64(0, true); }, }; } - let t = (s) => p(/^-?[0-9]+$/.test(s), `int64 invalid: ${s}`), - i = (s) => p(/^[0-9]+$/.test(s), `uint64 invalid: ${s}`); + const assertInt64String = (value) => + assert(/^-?[0-9]+$/.test(value), `int64 invalid: ${value}`); + const assertUInt64String = (value) => + assert(/^[0-9]+$/.test(value), `uint64 invalid: ${value}`); return { zero: '0', - supported: !1, - parse(s) { - return (typeof s != 'string' && (s = s.toString()), t(s), s); + supported: false, + parse(value) { + if (typeof value != 'string') { + value = value.toString(); + } + assertInt64String(value); + return value; }, - uParse(s) { - return (typeof s != 'string' && (s = s.toString()), i(s), s); + uParse(value) { + if (typeof value != 'string') { + value = value.toString(); + } + assertUInt64String(value); + return value; }, - enc(s) { - return (typeof s != 'string' && (s = s.toString()), t(s), vo(s)); + enc(value) { + if (typeof value != 'string') { + value = value.toString(); + } + assertInt64String(value); + return int64FromString(value); }, - uEnc(s) { - return (typeof s != 'string' && (s = s.toString()), i(s), vo(s)); + uEnc(value) { + if (typeof value != 'string') { + value = value.toString(); + } + assertUInt64String(value); + return int64FromString(value); }, - dec(s, m) { - return lT(s, m); + dec(lo, hi) { + return int64ToString(lo, hi); }, - uDec(s, m) { - return zo(s, m); + uDec(lo, hi) { + return uInt64ToString(lo, hi); }, }; } -var o = ip(); -var l; -(function (e) { - ((e[(e.DOUBLE = 1)] = 'DOUBLE'), - (e[(e.FLOAT = 2)] = 'FLOAT'), - (e[(e.INT64 = 3)] = 'INT64'), - (e[(e.UINT64 = 4)] = 'UINT64'), - (e[(e.INT32 = 5)] = 'INT32'), - (e[(e.FIXED64 = 6)] = 'FIXED64'), - (e[(e.FIXED32 = 7)] = 'FIXED32'), - (e[(e.BOOL = 8)] = 'BOOL'), - (e[(e.STRING = 9)] = 'STRING'), - (e[(e.BYTES = 12)] = 'BYTES'), - (e[(e.UINT32 = 13)] = 'UINT32'), - (e[(e.SFIXED32 = 15)] = 'SFIXED32'), - (e[(e.SFIXED64 = 16)] = 'SFIXED64'), - (e[(e.SINT32 = 17)] = 'SINT32'), - (e[(e.SINT64 = 18)] = 'SINT64')); -})(l || (l = {})); -var M; -(function (e) { - ((e[(e.BIGINT = 0)] = 'BIGINT'), (e[(e.STRING = 1)] = 'STRING')); -})(M || (M = {})); -function Q(e, n, t) { - if (n === t) return !0; - if (e == l.BYTES) { - if ( - !(n instanceof Uint8Array) || - !(t instanceof Uint8Array) || - n.length !== t.length - ) - return !1; - for (let i = 0; i < n.length; i++) if (n[i] !== t[i]) return !1; - return !0; +var protoInt64 = makeInt64Support(); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/scalar.js +var ScalarType; +(function (ScalarType2) { + ScalarType2[(ScalarType2['DOUBLE'] = 1)] = 'DOUBLE'; + ScalarType2[(ScalarType2['FLOAT'] = 2)] = 'FLOAT'; + ScalarType2[(ScalarType2['INT64'] = 3)] = 'INT64'; + ScalarType2[(ScalarType2['UINT64'] = 4)] = 'UINT64'; + ScalarType2[(ScalarType2['INT32'] = 5)] = 'INT32'; + ScalarType2[(ScalarType2['FIXED64'] = 6)] = 'FIXED64'; + ScalarType2[(ScalarType2['FIXED32'] = 7)] = 'FIXED32'; + ScalarType2[(ScalarType2['BOOL'] = 8)] = 'BOOL'; + ScalarType2[(ScalarType2['STRING'] = 9)] = 'STRING'; + ScalarType2[(ScalarType2['BYTES'] = 12)] = 'BYTES'; + ScalarType2[(ScalarType2['UINT32'] = 13)] = 'UINT32'; + ScalarType2[(ScalarType2['SFIXED32'] = 15)] = 'SFIXED32'; + ScalarType2[(ScalarType2['SFIXED64'] = 16)] = 'SFIXED64'; + ScalarType2[(ScalarType2['SINT32'] = 17)] = 'SINT32'; + ScalarType2[(ScalarType2['SINT64'] = 18)] = 'SINT64'; +})(ScalarType || (ScalarType = {})); +var LongType; +(function (LongType2) { + LongType2[(LongType2['BIGINT'] = 0)] = 'BIGINT'; + LongType2[(LongType2['STRING'] = 1)] = 'STRING'; +})(LongType || (LongType = {})); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/scalars.js +function scalarEquals(type, a, b) { + if (a === b) { + return true; } - switch (e) { - case l.UINT64: - case l.FIXED64: - case l.INT64: - case l.SFIXED64: - case l.SINT64: - return n == t; + if (type == ScalarType.BYTES) { + if (!(a instanceof Uint8Array) || !(b instanceof Uint8Array)) { + return false; + } + if (a.length !== b.length) { + return false; + } + for (let i = 0; i < a.length; i++) { + if (a[i] !== b[i]) { + return false; + } + } + return true; } - return !1; + switch (type) { + case ScalarType.UINT64: + case ScalarType.FIXED64: + case ScalarType.INT64: + case ScalarType.SFIXED64: + case ScalarType.SINT64: + return a == b; + } + return false; } -function y(e, n) { - switch (e) { - case l.BOOL: - return !1; - case l.UINT64: - case l.FIXED64: - case l.INT64: - case l.SFIXED64: - case l.SINT64: - return n == 0 ? o.zero : '0'; - case l.DOUBLE: - case l.FLOAT: +function scalarZeroValue(type, longType) { + switch (type) { + case ScalarType.BOOL: + return false; + case ScalarType.UINT64: + case ScalarType.FIXED64: + case ScalarType.INT64: + case ScalarType.SFIXED64: + case ScalarType.SINT64: + return longType == 0 ? protoInt64.zero : '0'; + case ScalarType.DOUBLE: + case ScalarType.FLOAT: return 0; - case l.BYTES: + case ScalarType.BYTES: return new Uint8Array(0); - case l.STRING: + case ScalarType.STRING: return ''; default: return 0; } } -function Qa(e, n) { - switch (e) { - case l.BOOL: - return n === !1; - case l.STRING: - return n === ''; - case l.BYTES: - return n instanceof Uint8Array && !n.byteLength; +function isScalarZeroValue(type, value) { + switch (type) { + case ScalarType.BOOL: + return value === false; + case ScalarType.STRING: + return value === ''; + case ScalarType.BYTES: + return value instanceof Uint8Array && !value.byteLength; default: - return n == 0; + return value == 0; } } -var L; -(function (e) { - ((e[(e.Varint = 0)] = 'Varint'), - (e[(e.Bit64 = 1)] = 'Bit64'), - (e[(e.LengthDelimited = 2)] = 'LengthDelimited'), - (e[(e.StartGroup = 3)] = 'StartGroup'), - (e[(e.EndGroup = 4)] = 'EndGroup'), - (e[(e.Bit32 = 5)] = 'Bit32')); -})(L || (L = {})); -var Za = class { - constructor(n) { - ((this.stack = []), - (this.textEncoder = n ?? new TextEncoder()), - (this.chunks = []), - (this.buf = [])); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/binary-encoding.js +var WireType; +(function (WireType2) { + WireType2[(WireType2['Varint'] = 0)] = 'Varint'; + WireType2[(WireType2['Bit64'] = 1)] = 'Bit64'; + WireType2[(WireType2['LengthDelimited'] = 2)] = 'LengthDelimited'; + WireType2[(WireType2['StartGroup'] = 3)] = 'StartGroup'; + WireType2[(WireType2['EndGroup'] = 4)] = 'EndGroup'; + WireType2[(WireType2['Bit32'] = 5)] = 'Bit32'; +})(WireType || (WireType = {})); +var BinaryWriter = class { + constructor(textEncoder) { + this.stack = []; + this.textEncoder = + textEncoder !== null && textEncoder !== void 0 + ? textEncoder + : new TextEncoder(); + this.chunks = []; + this.buf = []; + } + /** + * Return all bytes written and reset this writer. + */ + finish() { + this.chunks.push(new Uint8Array(this.buf)); + let len = 0; + for (let i = 0; i < this.chunks.length; i++) len += this.chunks[i].length; + let bytes = new Uint8Array(len); + let offset = 0; + for (let i = 0; i < this.chunks.length; i++) { + bytes.set(this.chunks[i], offset); + offset += this.chunks[i].length; } - finish() { + this.chunks = []; + return bytes; + } + /** + * Start a new fork for length-delimited data like a message + * or a packed repeated field. + * + * Must be joined later with `join()`. + */ + fork() { + this.stack.push({ chunks: this.chunks, buf: this.buf }); + this.chunks = []; + this.buf = []; + return this; + } + /** + * Join the last fork. Write its length and bytes, then + * return to the previous state. + */ + join() { + let chunk = this.finish(); + let prev = this.stack.pop(); + if (!prev) throw new Error('invalid state, fork stack empty'); + this.chunks = prev.chunks; + this.buf = prev.buf; + this.uint32(chunk.byteLength); + return this.raw(chunk); + } + /** + * Writes a tag (field number and wire type). + * + * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`. + * + * Generated code should compute the tag ahead of time and call `uint32()`. + */ + tag(fieldNo, type) { + return this.uint32(((fieldNo << 3) | type) >>> 0); + } + /** + * Write a chunk of raw bytes. + */ + raw(chunk) { + if (this.buf.length) { this.chunks.push(new Uint8Array(this.buf)); - let n = 0; - for (let s = 0; s < this.chunks.length; s++) n += this.chunks[s].length; - let t = new Uint8Array(n), - i = 0; - for (let s = 0; s < this.chunks.length; s++) - (t.set(this.chunks[s], i), (i += this.chunks[s].length)); - return ((this.chunks = []), t); + this.buf = []; } - fork() { - return ( - this.stack.push({ chunks: this.chunks, buf: this.buf }), - (this.chunks = []), - (this.buf = []), - this + this.chunks.push(chunk); + return this; + } + /** + * Write a `uint32` value, an unsigned 32 bit varint. + */ + uint32(value) { + assertUInt32(value); + while (value > 127) { + this.buf.push((value & 127) | 128); + value = value >>> 7; + } + this.buf.push(value); + return this; + } + /** + * Write a `int32` value, a signed 32 bit varint. + */ + int32(value) { + assertInt32(value); + varint32write(value, this.buf); + return this; + } + /** + * Write a `bool` value, a variant. + */ + bool(value) { + this.buf.push(value ? 1 : 0); + return this; + } + /** + * Write a `bytes` value, length-delimited arbitrary data. + */ + bytes(value) { + this.uint32(value.byteLength); + return this.raw(value); + } + /** + * Write a `string` value, length-delimited data converted to UTF-8 text. + */ + string(value) { + let chunk = this.textEncoder.encode(value); + this.uint32(chunk.byteLength); + return this.raw(chunk); + } + /** + * Write a `float` value, 32-bit floating point number. + */ + float(value) { + assertFloat32(value); + let chunk = new Uint8Array(4); + new DataView(chunk.buffer).setFloat32(0, value, true); + return this.raw(chunk); + } + /** + * Write a `double` value, a 64-bit floating point number. + */ + double(value) { + let chunk = new Uint8Array(8); + new DataView(chunk.buffer).setFloat64(0, value, true); + return this.raw(chunk); + } + /** + * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer. + */ + fixed32(value) { + assertUInt32(value); + let chunk = new Uint8Array(4); + new DataView(chunk.buffer).setUint32(0, value, true); + return this.raw(chunk); + } + /** + * Write a `sfixed32` value, a signed, fixed-length 32-bit integer. + */ + sfixed32(value) { + assertInt32(value); + let chunk = new Uint8Array(4); + new DataView(chunk.buffer).setInt32(0, value, true); + return this.raw(chunk); + } + /** + * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint. + */ + sint32(value) { + assertInt32(value); + value = ((value << 1) ^ (value >> 31)) >>> 0; + varint32write(value, this.buf); + return this; + } + /** + * Write a `fixed64` value, a signed, fixed-length 64-bit integer. + */ + sfixed64(value) { + let chunk = new Uint8Array(8), + view = new DataView(chunk.buffer), + tc = protoInt64.enc(value); + view.setInt32(0, tc.lo, true); + view.setInt32(4, tc.hi, true); + return this.raw(chunk); + } + /** + * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer. + */ + fixed64(value) { + let chunk = new Uint8Array(8), + view = new DataView(chunk.buffer), + tc = protoInt64.uEnc(value); + view.setInt32(0, tc.lo, true); + view.setInt32(4, tc.hi, true); + return this.raw(chunk); + } + /** + * Write a `int64` value, a signed 64-bit varint. + */ + int64(value) { + let tc = protoInt64.enc(value); + varint64write(tc.lo, tc.hi, this.buf); + return this; + } + /** + * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint. + */ + sint64(value) { + let tc = protoInt64.enc(value), + sign = tc.hi >> 31, + lo = (tc.lo << 1) ^ sign, + hi = ((tc.hi << 1) | (tc.lo >>> 31)) ^ sign; + varint64write(lo, hi, this.buf); + return this; + } + /** + * Write a `uint64` value, an unsigned 64-bit varint. + */ + uint64(value) { + let tc = protoInt64.uEnc(value); + varint64write(tc.lo, tc.hi, this.buf); + return this; + } +}; +var BinaryReader = class { + constructor(buf, textDecoder) { + this.varint64 = varint64read; + this.uint32 = varint32read; + this.buf = buf; + this.len = buf.length; + this.pos = 0; + this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength); + this.textDecoder = + textDecoder !== null && textDecoder !== void 0 + ? textDecoder + : new TextDecoder(); + } + /** + * Reads a tag - field number and wire type. + */ + tag() { + let tag = this.uint32(), + fieldNo = tag >>> 3, + wireType = tag & 7; + if (fieldNo <= 0 || wireType < 0 || wireType > 5) + throw new Error( + 'illegal tag: field no ' + fieldNo + ' wire type ' + wireType, ); + return [fieldNo, wireType]; + } + /** + * Skip one element on the wire and return the skipped data. + * Supports WireType.StartGroup since v2.0.0-alpha.23. + */ + skip(wireType) { + let start = this.pos; + switch (wireType) { + case WireType.Varint: + while (this.buf[this.pos++] & 128) {} + break; + // eslint-disable-next-line + // @ts-ignore TS7029: Fallthrough case in switch + case WireType.Bit64: + this.pos += 4; + // eslint-disable-next-line + // @ts-ignore TS7029: Fallthrough case in switch + case WireType.Bit32: + this.pos += 4; + break; + case WireType.LengthDelimited: + let len = this.uint32(); + this.pos += len; + break; + case WireType.StartGroup: + let t; + while ((t = this.tag()[1]) !== WireType.EndGroup) { + this.skip(t); + } + break; + default: + throw new Error('cant skip wire type ' + wireType); } - join() { - let n = this.finish(), - t = this.stack.pop(); - if (!t) throw new Error('invalid state, fork stack empty'); - return ( - (this.chunks = t.chunks), - (this.buf = t.buf), - this.uint32(n.byteLength), - this.raw(n) - ); - } - tag(n, t) { - return this.uint32(((n << 3) | t) >>> 0); - } - raw(n) { - return ( - this.buf.length && - (this.chunks.push(new Uint8Array(this.buf)), (this.buf = [])), - this.chunks.push(n), - this - ); - } - uint32(n) { - for (Ce(n); n > 127; ) (this.buf.push((n & 127) | 128), (n = n >>> 7)); - return (this.buf.push(n), this); - } - int32(n) { - return (Vn(n), Qo(n, this.buf), this); - } - bool(n) { - return (this.buf.push(n ? 1 : 0), this); - } - bytes(n) { - return (this.uint32(n.byteLength), this.raw(n)); - } - string(n) { - let t = this.textEncoder.encode(n); - return (this.uint32(t.byteLength), this.raw(t)); - } - float(n) { - va(n); - let t = new Uint8Array(4); - return (new DataView(t.buffer).setFloat32(0, n, !0), this.raw(t)); - } - double(n) { - let t = new Uint8Array(8); - return (new DataView(t.buffer).setFloat64(0, n, !0), this.raw(t)); - } - fixed32(n) { - Ce(n); - let t = new Uint8Array(4); - return (new DataView(t.buffer).setUint32(0, n, !0), this.raw(t)); - } - sfixed32(n) { - Vn(n); - let t = new Uint8Array(4); - return (new DataView(t.buffer).setInt32(0, n, !0), this.raw(t)); - } - sint32(n) { - return (Vn(n), (n = ((n << 1) ^ (n >> 31)) >>> 0), Qo(n, this.buf), this); - } - sfixed64(n) { - let t = new Uint8Array(8), - i = new DataView(t.buffer), - s = o.enc(n); - return (i.setInt32(0, s.lo, !0), i.setInt32(4, s.hi, !0), this.raw(t)); - } - fixed64(n) { - let t = new Uint8Array(8), - i = new DataView(t.buffer), - s = o.uEnc(n); - return (i.setInt32(0, s.lo, !0), i.setInt32(4, s.hi, !0), this.raw(t)); - } - int64(n) { - let t = o.enc(n); - return (ja(t.lo, t.hi, this.buf), this); - } - sint64(n) { - let t = o.enc(n), - i = t.hi >> 31, - s = (t.lo << 1) ^ i, - m = ((t.hi << 1) | (t.lo >>> 31)) ^ i; - return (ja(s, m, this.buf), this); - } - uint64(n) { - let t = o.uEnc(n); - return (ja(t.lo, t.hi, this.buf), this); - } - }, - $a = class { - constructor(n, t) { - ((this.varint64 = uT), - (this.uint32 = _T), - (this.buf = n), - (this.len = n.length), - (this.pos = 0), - (this.view = new DataView(n.buffer, n.byteOffset, n.byteLength)), - (this.textDecoder = t ?? new TextDecoder())); - } - tag() { - let n = this.uint32(), - t = n >>> 3, - i = n & 7; - if (t <= 0 || i < 0 || i > 5) - throw new Error('illegal tag: field no ' + t + ' wire type ' + i); - return [t, i]; - } - skip(n) { - let t = this.pos; - switch (n) { - case L.Varint: - for (; this.buf[this.pos++] & 128; ); - break; - case L.Bit64: - this.pos += 4; - case L.Bit32: - this.pos += 4; - break; - case L.LengthDelimited: - let i = this.uint32(); - this.pos += i; - break; - case L.StartGroup: - let s; - for (; (s = this.tag()[1]) !== L.EndGroup; ) this.skip(s); - break; - default: - throw new Error('cant skip wire type ' + n); - } - return (this.assertBounds(), this.buf.subarray(t, this.pos)); - } - assertBounds() { - if (this.pos > this.len) throw new RangeError('premature EOF'); - } - int32() { - return this.uint32() | 0; - } - sint32() { - let n = this.uint32(); - return (n >>> 1) ^ -(n & 1); - } - int64() { - return o.dec(...this.varint64()); - } - uint64() { - return o.uDec(...this.varint64()); - } - sint64() { - let [n, t] = this.varint64(), - i = -(n & 1); - return ( - (n = ((n >>> 1) | ((t & 1) << 31)) ^ i), - (t = (t >>> 1) ^ i), - o.dec(n, t) - ); - } - bool() { - let [n, t] = this.varint64(); - return n !== 0 || t !== 0; - } - fixed32() { - return this.view.getUint32((this.pos += 4) - 4, !0); - } - sfixed32() { - return this.view.getInt32((this.pos += 4) - 4, !0); - } - fixed64() { - return o.uDec(this.sfixed32(), this.sfixed32()); - } - sfixed64() { - return o.dec(this.sfixed32(), this.sfixed32()); - } - float() { - return this.view.getFloat32((this.pos += 4) - 4, !0); - } - double() { - return this.view.getFloat64((this.pos += 8) - 8, !0); - } - bytes() { - let n = this.uint32(), - t = this.pos; - return ( - (this.pos += n), - this.assertBounds(), - this.buf.subarray(t, t + n) - ); - } - string() { - return this.textDecoder.decode(this.bytes()); - } - }; -function dT(e, n, t, i) { - let s; + this.assertBounds(); + return this.buf.subarray(start, this.pos); + } + /** + * Throws error if position in byte array is out of range. + */ + assertBounds() { + if (this.pos > this.len) throw new RangeError('premature EOF'); + } + /** + * Read a `int32` field, a signed 32 bit varint. + */ + int32() { + return this.uint32() | 0; + } + /** + * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint. + */ + sint32() { + let zze = this.uint32(); + return (zze >>> 1) ^ -(zze & 1); + } + /** + * Read a `int64` field, a signed 64-bit varint. + */ + int64() { + return protoInt64.dec(...this.varint64()); + } + /** + * Read a `uint64` field, an unsigned 64-bit varint. + */ + uint64() { + return protoInt64.uDec(...this.varint64()); + } + /** + * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint. + */ + sint64() { + let [lo, hi] = this.varint64(); + let s = -(lo & 1); + lo = ((lo >>> 1) | ((hi & 1) << 31)) ^ s; + hi = (hi >>> 1) ^ s; + return protoInt64.dec(lo, hi); + } + /** + * Read a `bool` field, a variant. + */ + bool() { + let [lo, hi] = this.varint64(); + return lo !== 0 || hi !== 0; + } + /** + * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer. + */ + fixed32() { + return this.view.getUint32((this.pos += 4) - 4, true); + } + /** + * Read a `sfixed32` field, a signed, fixed-length 32-bit integer. + */ + sfixed32() { + return this.view.getInt32((this.pos += 4) - 4, true); + } + /** + * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer. + */ + fixed64() { + return protoInt64.uDec(this.sfixed32(), this.sfixed32()); + } + /** + * Read a `fixed64` field, a signed, fixed-length 64-bit integer. + */ + sfixed64() { + return protoInt64.dec(this.sfixed32(), this.sfixed32()); + } + /** + * Read a `float` field, 32-bit floating point number. + */ + float() { + return this.view.getFloat32((this.pos += 4) - 4, true); + } + /** + * Read a `double` field, a 64-bit floating point number. + */ + double() { + return this.view.getFloat64((this.pos += 8) - 8, true); + } + /** + * Read a `bytes` field, length-delimited arbitrary data. + */ + bytes() { + let len = this.uint32(), + start = this.pos; + this.pos += len; + this.assertBounds(); + return this.buf.subarray(start, start + len); + } + /** + * Read a `string` field, length-delimited data converted to UTF-8 text. + */ + string() { + return this.textDecoder.decode(this.bytes()); + } +}; + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/extensions.js +function makeExtension(runtime, typeName, extendee, field) { + let fi; return { - typeName: n, - extendee: t, + typeName, + extendee, get field() { - if (!s) { - let m = typeof i == 'function' ? i() : i; - ((m.name = n.split('.').pop()), - (m.jsonName = `[${n}]`), - (s = e.util.newFieldList([m]).list()[0])); + if (!fi) { + const i = typeof field == 'function' ? field() : field; + i.name = typeName.split('.').pop(); + i.jsonName = `[${typeName}]`; + fi = runtime.util.newFieldList([i]).list()[0]; } - return s; + return fi; }, - runtime: e, + runtime, }; } -function nr(e) { - let n = e.field.localName, - t = Object.create(null); - return ((t[n] = op(e)), [t, () => t[n]]); +function createExtensionContainer(extension) { + const localName = extension.field.localName; + const container = /* @__PURE__ */ Object.create(null); + container[localName] = initExtensionField(extension); + return [container, () => container[localName]]; } -function op(e) { - let n = e.field; - if (n.repeated) return []; - if (n.default !== void 0) return n.default; - switch (n.kind) { +function initExtensionField(ext) { + const field = ext.field; + if (field.repeated) { + return []; + } + if (field.default !== void 0) { + return field.default; + } + switch (field.kind) { case 'enum': - return n.T.values[0].no; + return field.T.values[0].no; case 'scalar': - return y(n.T, n.L); + return scalarZeroValue(field.T, field.L); case 'message': - let t = n.T, - i = new t(); - return t.fieldWrapper ? t.fieldWrapper.unwrapField(i) : i; + const T = field.T, + value = new T(); + return T.fieldWrapper ? T.fieldWrapper.unwrapField(value) : value; case 'map': throw 'map fields are not allowed to be extensions'; } } -function TT(e, n) { - if (!n.repeated && (n.kind == 'enum' || n.kind == 'scalar')) { - for (let t = e.length - 1; t >= 0; --t) if (e[t].no == n.no) return [e[t]]; +function filterUnknownFields(unknownFields, field) { + if (!field.repeated && (field.kind == 'enum' || field.kind == 'scalar')) { + for (let i = unknownFields.length - 1; i >= 0; --i) { + if (unknownFields[i].no == field.no) { + return [unknownFields[i]]; + } + } return []; } - return e.filter((t) => t.no === n.no); + return unknownFields.filter((uf) => uf.no === field.no); } -var Z = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split( - '', - ), - er = []; -for (let e = 0; e < Z.length; e++) er[Z[e].charCodeAt(0)] = e; -er[45] = Z.indexOf('+'); -er[95] = Z.indexOf('/'); -var Zo = { - dec(e) { - let n = (e.length * 3) / 4; - e[e.length - 2] == '=' ? (n -= 2) : e[e.length - 1] == '=' && (n -= 1); - let t = new Uint8Array(n), - i = 0, - s = 0, - m, - c = 0; - for (let u = 0; u < e.length; u++) { - if (((m = er[e.charCodeAt(u)]), m === void 0)) - switch (e[u]) { + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/proto-base64.js +var encTable = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); +var decTable = []; +for (let i = 0; i < encTable.length; i++) + decTable[encTable[i].charCodeAt(0)] = i; +decTable['-'.charCodeAt(0)] = encTable.indexOf('+'); +decTable['_'.charCodeAt(0)] = encTable.indexOf('/'); +var protoBase64 = { + /** + * Decodes a base64 string to a byte array. + * + * - ignores white-space, including line breaks and tabs + * - allows inner padding (can decode concatenated base64 strings) + * - does not require padding + * - understands base64url encoding: + * "-" instead of "+", + * "_" instead of "/", + * no padding + */ + dec(base64Str) { + let es = (base64Str.length * 3) / 4; + if (base64Str[base64Str.length - 2] == '=') es -= 2; + else if (base64Str[base64Str.length - 1] == '=') es -= 1; + let bytes = new Uint8Array(es), + bytePos = 0, + groupPos = 0, + b, + p = 0; + for (let i = 0; i < base64Str.length; i++) { + b = decTable[base64Str.charCodeAt(i)]; + if (b === void 0) { + switch (base64Str[i]) { + // @ts-ignore TS7029: Fallthrough case in switch case '=': - s = 0; - case ` -`: + groupPos = 0; + // reset state when padding found + // @ts-ignore TS7029: Fallthrough case in switch + case '\n': case '\r': case ' ': case ' ': continue; + // skip white-space, and padding default: throw Error('invalid base64 string.'); } - switch (s) { + } + switch (groupPos) { case 0: - ((c = m), (s = 1)); + p = b; + groupPos = 1; break; case 1: - ((t[i++] = (c << 2) | ((m & 48) >> 4)), (c = m), (s = 2)); + bytes[bytePos++] = (p << 2) | ((b & 48) >> 4); + p = b; + groupPos = 2; break; case 2: - ((t[i++] = ((c & 15) << 4) | ((m & 60) >> 2)), (c = m), (s = 3)); + bytes[bytePos++] = ((p & 15) << 4) | ((b & 60) >> 2); + p = b; + groupPos = 3; break; case 3: - ((t[i++] = ((c & 3) << 6) | m), (s = 0)); + bytes[bytePos++] = ((p & 3) << 6) | b; + groupPos = 0; break; } } - if (s == 1) throw Error('invalid base64 string.'); - return t.subarray(0, i); + if (groupPos == 1) throw Error('invalid base64 string.'); + return bytes.subarray(0, bytePos); }, - enc(e) { - let n = '', - t = 0, - i, - s = 0; - for (let m = 0; m < e.length; m++) - switch (((i = e[m]), t)) { + /** + * Encode a byte array to a base64 string. + */ + enc(bytes) { + let base64 = '', + groupPos = 0, + b, + p = 0; + for (let i = 0; i < bytes.length; i++) { + b = bytes[i]; + switch (groupPos) { case 0: - ((n += Z[i >> 2]), (s = (i & 3) << 4), (t = 1)); + base64 += encTable[b >> 2]; + p = (b & 3) << 4; + groupPos = 1; break; case 1: - ((n += Z[s | (i >> 4)]), (s = (i & 15) << 2), (t = 2)); + base64 += encTable[p | (b >> 4)]; + p = (b & 15) << 2; + groupPos = 2; break; case 2: - ((n += Z[s | (i >> 6)]), (n += Z[i & 63]), (t = 0)); + base64 += encTable[p | (b >> 6)]; + base64 += encTable[b & 63]; + groupPos = 0; break; } - return (t && ((n += Z[s]), (n += '='), t == 1 && (n += '=')), n); + } + if (groupPos) { + base64 += encTable[p]; + base64 += '='; + if (groupPos == 1) base64 += '='; + } + return base64; }, }; -function fT(e, n, t) { - ST(n, e); - let i = n.runtime.bin.makeReadOptions(t), - s = TT(e.getType().runtime.bin.listUnknownFields(e), n.field), - [m, c] = nr(n); - for (let u of s) - n.runtime.bin.readField(m, i.readerFactory(u.data), n.field, u.wireType, i); - return c(); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/extension-accessor.js +function getExtension(message, extension, options) { + assertExtendee(extension, message); + const opt = extension.runtime.bin.makeReadOptions(options); + const ufs = filterUnknownFields( + message.getType().runtime.bin.listUnknownFields(message), + extension.field, + ); + const [container, get] = createExtensionContainer(extension); + for (const uf of ufs) { + extension.runtime.bin.readField( + container, + opt.readerFactory(uf.data), + extension.field, + uf.wireType, + opt, + ); + } + return get(); } -function NT(e, n, t, i) { - ST(n, e); - let s = n.runtime.bin.makeReadOptions(i), - m = n.runtime.bin.makeWriteOptions(i); - if ($o(e, n)) { - let T = e +function setExtension(message, extension, value, options) { + assertExtendee(extension, message); + const readOpt = extension.runtime.bin.makeReadOptions(options); + const writeOpt = extension.runtime.bin.makeWriteOptions(options); + if (hasExtension(message, extension)) { + const ufs = message .getType() - .runtime.bin.listUnknownFields(e) - .filter((d) => d.no != n.field.no); - e.getType().runtime.bin.discardUnknownFields(e); - for (let d of T) - e.getType().runtime.bin.onUnknownField(e, d.no, d.wireType, d.data); + .runtime.bin.listUnknownFields(message) + .filter((uf) => uf.no != extension.field.no); + message.getType().runtime.bin.discardUnknownFields(message); + for (const uf of ufs) { + message + .getType() + .runtime.bin.onUnknownField(message, uf.no, uf.wireType, uf.data); + } } - let c = m.writerFactory(), - u = n.field; - (!u.opt && - !u.repeated && - (u.kind == 'enum' || u.kind == 'scalar') && - (u = Object.assign(Object.assign({}, n.field), { opt: !0 })), - n.runtime.bin.writeField(u, t, c, m)); - let E = s.readerFactory(c.finish()); - for (; E.pos < E.len; ) { - let [T, d] = E.tag(), - S = E.skip(d); - e.getType().runtime.bin.onUnknownField(e, T, d, S); + const writer = writeOpt.writerFactory(); + let f = extension.field; + if (!f.opt && !f.repeated && (f.kind == 'enum' || f.kind == 'scalar')) { + f = Object.assign(Object.assign({}, extension.field), { opt: true }); + } + extension.runtime.bin.writeField(f, value, writer, writeOpt); + const reader = readOpt.readerFactory(writer.finish()); + while (reader.pos < reader.len) { + const [no, wireType] = reader.tag(); + const data = reader.skip(wireType); + message.getType().runtime.bin.onUnknownField(message, no, wireType, data); } } -function $o(e, n) { - let t = e.getType(); +function hasExtension(message, extension) { + const messageType = message.getType(); return ( - n.extendee.typeName === t.typeName && - !!t.runtime.bin.listUnknownFields(e).find((i) => i.no == n.field.no) + extension.extendee.typeName === messageType.typeName && + !!messageType.runtime.bin + .listUnknownFields(message) + .find((uf) => uf.no == extension.field.no) ); } -function ST(e, n) { - p( - e.extendee.typeName == n.getType().typeName, - `extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`, +function assertExtendee(extension, message) { + assert( + extension.extendee.typeName == message.getType().typeName, + `extension ${extension.typeName} can only be applied to message ${extension.extendee.typeName}`, ); } -function tr(e, n) { - let t = e.localName; - if (e.repeated) return n[t].length > 0; - if (e.oneof) return n[e.oneof.localName].case === t; - switch (e.kind) { + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/reflect.js +function isFieldSet(field, target) { + const localName = field.localName; + if (field.repeated) { + return target[localName].length > 0; + } + if (field.oneof) { + return target[field.oneof.localName].case === localName; + } + switch (field.kind) { case 'enum': case 'scalar': - return e.opt || e.req - ? n[t] !== void 0 - : e.kind == 'enum' - ? n[t] !== e.T.values[0].no - : !Qa(e.T, n[t]); + if (field.opt || field.req) { + return target[localName] !== void 0; + } + if (field.kind == 'enum') { + return target[localName] !== field.T.values[0].no; + } + return !isScalarZeroValue(field.T, target[localName]); case 'message': - return n[t] !== void 0; + return target[localName] !== void 0; case 'map': - return Object.keys(n[t]).length > 0; + return Object.keys(target[localName]).length > 0; } } -function nm(e, n) { - let t = e.localName, - i = !e.opt && !e.req; - if (e.repeated) n[t] = []; - else if (e.oneof) n[e.oneof.localName] = { case: void 0 }; - else - switch (e.kind) { +function clearField(field, target) { + const localName = field.localName; + const implicitPresence = !field.opt && !field.req; + if (field.repeated) { + target[localName] = []; + } else if (field.oneof) { + target[field.oneof.localName] = { case: void 0 }; + } else { + switch (field.kind) { case 'map': - n[t] = {}; + target[localName] = {}; break; case 'enum': - n[t] = i ? e.T.values[0].no : void 0; + target[localName] = implicitPresence ? field.T.values[0].no : void 0; break; case 'scalar': - n[t] = i ? y(e.T, e.L) : void 0; + target[localName] = implicitPresence + ? scalarZeroValue(field.T, field.L) + : void 0; break; case 'message': - n[t] = void 0; + target[localName] = void 0; break; } -} -function h(e, n) { - if ( - e === null || - typeof e != 'object' || - !Object.getOwnPropertyNames(r.prototype).every( - (i) => i in e && typeof e[i] == 'function', - ) - ) - return !1; - let t = e.getType(); - return t === null || - typeof t != 'function' || - !('typeName' in t) || - typeof t.typeName != 'string' - ? !1 - : n === void 0 - ? !0 - : t.typeName == n.typeName; -} -function ar(e, n) { - return h(n) || !e.fieldWrapper ? n : e.fieldWrapper.wrapField(n); -} -var eO = { - 'google.protobuf.DoubleValue': l.DOUBLE, - 'google.protobuf.FloatValue': l.FLOAT, - 'google.protobuf.Int64Value': l.INT64, - 'google.protobuf.UInt64Value': l.UINT64, - 'google.protobuf.Int32Value': l.INT32, - 'google.protobuf.UInt32Value': l.UINT32, - 'google.protobuf.BoolValue': l.BOOL, - 'google.protobuf.StringValue': l.STRING, - 'google.protobuf.BytesValue': l.BYTES, -}; -var IT = { ignoreUnknownFields: !1 }, - pT = { - emitDefaultValues: !1, - enumAsInteger: !1, - useProtoFieldName: !1, - prettySpaces: 0, - }; -function mp(e) { - return e ? Object.assign(Object.assign({}, IT), e) : IT; -} -function cp(e) { - return e ? Object.assign(Object.assign({}, pT), e) : pT; -} -var ir = Symbol(), - rr = Symbol(); -function CT() { - return { - makeReadOptions: mp, - makeWriteOptions: cp, - readMessage(e, n, t, i) { - if (n == null || Array.isArray(n) || typeof n != 'object') - throw new Error( - `cannot decode message ${e.typeName} from JSON: ${q(n)}`, - ); - i = i ?? new e(); - let s = new Map(), - m = t.typeRegistry; - for (let [c, u] of Object.entries(n)) { - let E = e.fields.findJsonName(c); - if (E) { - if (E.oneof) { - if (u === null && E.kind == 'scalar') continue; - let T = s.get(E.oneof); - if (T !== void 0) - throw new Error( - `cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${E.oneof.name}" present: "${T}", "${c}"`, - ); - s.set(E.oneof, c); - } - OT(i, u, E, t, e); - } else { - let T = !1; - if (m?.findExtension && c.startsWith('[') && c.endsWith(']')) { - let d = m.findExtension(c.substring(1, c.length - 1)); - if (d && d.extendee.typeName == e.typeName) { - T = !0; - let [S, R] = nr(d); - (OT(S, u, d.field, t, d), NT(i, d, R(), t)); - } - } - if (!T && !t.ignoreUnknownFields) - throw new Error( - `cannot decode message ${e.typeName} from JSON: key "${c}" is unknown`, - ); - } - } - return i; - }, - writeMessage(e, n) { - let t = e.getType(), - i = {}, - s; - try { - for (s of t.fields.byNumber()) { - if (!tr(s, e)) { - if (s.req) throw 'required field not set'; - if (!n.emitDefaultValues || !lp(s)) continue; - } - let c = s.oneof ? e[s.oneof.localName].value : e[s.localName], - u = AT(s, c, n); - u !== void 0 && (i[n.useProtoFieldName ? s.name : s.jsonName] = u); - } - let m = n.typeRegistry; - if (m?.findExtensionFor) - for (let c of t.runtime.bin.listUnknownFields(e)) { - let u = m.findExtensionFor(t.typeName, c.no); - if (u && $o(e, u)) { - let E = fT(e, u, n), - T = AT(u.field, E, n); - T !== void 0 && (i[u.field.jsonName] = T); - } - } - } catch (m) { - let c = s - ? `cannot encode field ${t.typeName}.${s.name} to JSON` - : `cannot encode message ${t.typeName} to JSON`, - u = m instanceof Error ? m.message : String(m); - throw new Error(c + (u.length > 0 ? `: ${u}` : '')); - } - return i; - }, - readScalar(e, n, t) { - return Re(e, n, t ?? M.BIGINT, !0); - }, - writeScalar(e, n, t) { - if (n !== void 0 && (t || Qa(e, n))) return sr(e, n); - }, - debug: q, - }; -} -function q(e) { - if (e === null) return 'null'; - switch (typeof e) { - case 'object': - return Array.isArray(e) ? 'array' : 'object'; - case 'string': - return e.length > 100 ? 'string' : `"${e.split('"').join('\\"')}"`; - default: - return String(e); } } -function OT(e, n, t, i, s) { - let m = t.localName; - if (t.repeated) { - if ((p(t.kind != 'map'), n === null)) return; - if (!Array.isArray(n)) - throw new Error( - `cannot decode field ${s.typeName}.${t.name} from JSON: ${q(n)}`, - ); - let c = e[m]; - for (let u of n) { - if (u === null) + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +function isMessage(arg, type) { + if (arg === null || typeof arg != 'object') { + return false; + } + if ( + !Object.getOwnPropertyNames(Message.prototype).every( + (m) => m in arg && typeof arg[m] == 'function', + ) + ) { + return false; + } + const actualType = arg.getType(); + if ( + actualType === null || + typeof actualType != 'function' || + !('typeName' in actualType) || + typeof actualType.typeName != 'string' + ) { + return false; + } + return type === void 0 ? true : actualType.typeName == type.typeName; +} + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/field-wrapper.js +function wrapField(type, value) { + if (isMessage(value) || !type.fieldWrapper) { + return value; + } + return type.fieldWrapper.wrapField(value); +} +var wktWrapperToScalarType = { + 'google.protobuf.DoubleValue': ScalarType.DOUBLE, + 'google.protobuf.FloatValue': ScalarType.FLOAT, + 'google.protobuf.Int64Value': ScalarType.INT64, + 'google.protobuf.UInt64Value': ScalarType.UINT64, + 'google.protobuf.Int32Value': ScalarType.INT32, + 'google.protobuf.UInt32Value': ScalarType.UINT32, + 'google.protobuf.BoolValue': ScalarType.BOOL, + 'google.protobuf.StringValue': ScalarType.STRING, + 'google.protobuf.BytesValue': ScalarType.BYTES, +}; + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/json-format.js +var jsonReadDefaults = { + ignoreUnknownFields: false, +}; +var jsonWriteDefaults = { + emitDefaultValues: false, + enumAsInteger: false, + useProtoFieldName: false, + prettySpaces: 0, +}; +function makeReadOptions(options) { + return options + ? Object.assign(Object.assign({}, jsonReadDefaults), options) + : jsonReadDefaults; +} +function makeWriteOptions(options) { + return options + ? Object.assign(Object.assign({}, jsonWriteDefaults), options) + : jsonWriteDefaults; +} +var tokenNull = /* @__PURE__ */ Symbol(); +var tokenIgnoredUnknownEnum = /* @__PURE__ */ Symbol(); +function makeJsonFormat() { + return { + makeReadOptions, + makeWriteOptions, + readMessage(type, json, options, message) { + if (json == null || Array.isArray(json) || typeof json != 'object') { throw new Error( - `cannot decode field ${s.typeName}.${t.name} from JSON: ${q(u)}`, + `cannot decode message ${type.typeName} from JSON: ${debugJsonValue(json)}`, ); - switch (t.kind) { - case 'message': - c.push(t.T.fromJson(u, i)); - break; - case 'enum': - let E = em(t.T, u, i.ignoreUnknownFields, !0); - E !== rr && c.push(E); - break; - case 'scalar': - try { - c.push(Re(t.T, u, t.L, !0)); - } catch (T) { - let d = `cannot decode field ${s.typeName}.${t.name} from JSON: ${q(u)}`; - throw ( - T instanceof Error && - T.message.length > 0 && - (d += `: ${T.message}`), - new Error(d) + } + message = message !== null && message !== void 0 ? message : new type(); + const oneofSeen = /* @__PURE__ */ new Map(); + const registry = options.typeRegistry; + for (const [jsonKey, jsonValue] of Object.entries(json)) { + const field = type.fields.findJsonName(jsonKey); + if (field) { + if (field.oneof) { + if (jsonValue === null && field.kind == 'scalar') { + continue; + } + const seen = oneofSeen.get(field.oneof); + if (seen !== void 0) { + throw new Error( + `cannot decode message ${type.typeName} from JSON: multiple keys for oneof "${field.oneof.name}" present: "${seen}", "${jsonKey}"`, + ); + } + oneofSeen.set(field.oneof, jsonKey); + } + readField(message, jsonValue, field, options, type); + } else { + let found = false; + if ( + (registry === null || registry === void 0 + ? void 0 + : registry.findExtension) && + jsonKey.startsWith('[') && + jsonKey.endsWith(']') + ) { + const ext = registry.findExtension( + jsonKey.substring(1, jsonKey.length - 1), + ); + if (ext && ext.extendee.typeName == type.typeName) { + found = true; + const [container, get] = createExtensionContainer(ext); + readField(container, jsonValue, ext.field, options, ext); + setExtension(message, ext, get(), options); + } + } + if (!found && !options.ignoreUnknownFields) { + throw new Error( + `cannot decode message ${type.typeName} from JSON: key "${jsonKey}" is unknown`, ); } - break; + } } - } - } else if (t.kind == 'map') { - if (n === null) return; - if (typeof n != 'object' || Array.isArray(n)) - throw new Error( - `cannot decode field ${s.typeName}.${t.name} from JSON: ${q(n)}`, - ); - let c = e[m]; - for (let [u, E] of Object.entries(n)) { - if (E === null) - throw new Error( - `cannot decode field ${s.typeName}.${t.name} from JSON: map value null`, - ); - let T; + return message; + }, + writeMessage(message, options) { + const type = message.getType(); + const json = {}; + let field; try { - T = up(t.K, u); - } catch (d) { - let S = `cannot decode map key for field ${s.typeName}.${t.name} from JSON: ${q(n)}`; - throw ( - d instanceof Error && d.message.length > 0 && (S += `: ${d.message}`), - new Error(S) + for (field of type.fields.byNumber()) { + if (!isFieldSet(field, message)) { + if (field.req) { + throw `required field not set`; + } + if (!options.emitDefaultValues) { + continue; + } + if (!canEmitFieldDefaultValue(field)) { + continue; + } + } + const value = field.oneof + ? message[field.oneof.localName].value + : message[field.localName]; + const jsonValue = writeField(field, value, options); + if (jsonValue !== void 0) { + json[options.useProtoFieldName ? field.name : field.jsonName] = + jsonValue; + } + } + const registry = options.typeRegistry; + if ( + registry === null || registry === void 0 + ? void 0 + : registry.findExtensionFor + ) { + for (const uf of type.runtime.bin.listUnknownFields(message)) { + const ext = registry.findExtensionFor(type.typeName, uf.no); + if (ext && hasExtension(message, ext)) { + const value = getExtension(message, ext, options); + const jsonValue = writeField(ext.field, value, options); + if (jsonValue !== void 0) { + json[ext.field.jsonName] = jsonValue; + } + } + } + } + } catch (e) { + const m = field + ? `cannot encode field ${type.typeName}.${field.name} to JSON` + : `cannot encode message ${type.typeName} to JSON`; + const r = e instanceof Error ? e.message : String(e); + throw new Error(m + (r.length > 0 ? `: ${r}` : '')); + } + return json; + }, + readScalar(type, json, longType) { + return readScalar( + type, + json, + longType !== null && longType !== void 0 ? longType : LongType.BIGINT, + true, + ); + }, + writeScalar(type, value, emitDefaultValues) { + if (value === void 0) { + return void 0; + } + if (emitDefaultValues || isScalarZeroValue(type, value)) { + return writeScalar(type, value); + } + return void 0; + }, + debug: debugJsonValue, + }; +} +function debugJsonValue(json) { + if (json === null) { + return 'null'; + } + switch (typeof json) { + case 'object': + return Array.isArray(json) ? 'array' : 'object'; + case 'string': + return json.length > 100 ? 'string' : `"${json.split('"').join('\\"')}"`; + default: + return String(json); + } +} +function readField(target, jsonValue, field, options, parentType) { + let localName = field.localName; + if (field.repeated) { + assert(field.kind != 'map'); + if (jsonValue === null) { + return; + } + if (!Array.isArray(jsonValue)) { + throw new Error( + `cannot decode field ${parentType.typeName}.${field.name} from JSON: ${debugJsonValue(jsonValue)}`, + ); + } + const targetArray = target[localName]; + for (const jsonItem of jsonValue) { + if (jsonItem === null) { + throw new Error( + `cannot decode field ${parentType.typeName}.${field.name} from JSON: ${debugJsonValue(jsonItem)}`, ); } - switch (t.V.kind) { + switch (field.kind) { case 'message': - c[T] = t.V.T.fromJson(E, i); + targetArray.push(field.T.fromJson(jsonItem, options)); break; case 'enum': - let d = em(t.V.T, E, i.ignoreUnknownFields, !0); - d !== rr && (c[T] = d); + const enumValue = readEnum( + field.T, + jsonItem, + options.ignoreUnknownFields, + true, + ); + if (enumValue !== tokenIgnoredUnknownEnum) { + targetArray.push(enumValue); + } break; case 'scalar': try { - c[T] = Re(t.V.T, E, M.BIGINT, !0); - } catch (S) { - let R = `cannot decode map value for field ${s.typeName}.${t.name} from JSON: ${q(n)}`; - throw ( - S instanceof Error && - S.message.length > 0 && - (R += `: ${S.message}`), - new Error(R) - ); + targetArray.push(readScalar(field.T, jsonItem, field.L, true)); + } catch (e) { + let m = `cannot decode field ${parentType.typeName}.${field.name} from JSON: ${debugJsonValue(jsonItem)}`; + if (e instanceof Error && e.message.length > 0) { + m += `: ${e.message}`; + } + throw new Error(m); } break; } } - } else - switch ( - (t.oneof && ((e = e[t.oneof.localName] = { case: m }), (m = 'value')), - t.kind) - ) { + } else if (field.kind == 'map') { + if (jsonValue === null) { + return; + } + if (typeof jsonValue != 'object' || Array.isArray(jsonValue)) { + throw new Error( + `cannot decode field ${parentType.typeName}.${field.name} from JSON: ${debugJsonValue(jsonValue)}`, + ); + } + const targetMap = target[localName]; + for (const [jsonMapKey, jsonMapValue] of Object.entries(jsonValue)) { + if (jsonMapValue === null) { + throw new Error( + `cannot decode field ${parentType.typeName}.${field.name} from JSON: map value null`, + ); + } + let key; + try { + key = readMapKey(field.K, jsonMapKey); + } catch (e) { + let m = `cannot decode map key for field ${parentType.typeName}.${field.name} from JSON: ${debugJsonValue(jsonValue)}`; + if (e instanceof Error && e.message.length > 0) { + m += `: ${e.message}`; + } + throw new Error(m); + } + switch (field.V.kind) { + case 'message': + targetMap[key] = field.V.T.fromJson(jsonMapValue, options); + break; + case 'enum': + const enumValue = readEnum( + field.V.T, + jsonMapValue, + options.ignoreUnknownFields, + true, + ); + if (enumValue !== tokenIgnoredUnknownEnum) { + targetMap[key] = enumValue; + } + break; + case 'scalar': + try { + targetMap[key] = readScalar( + field.V.T, + jsonMapValue, + LongType.BIGINT, + true, + ); + } catch (e) { + let m = `cannot decode map value for field ${parentType.typeName}.${field.name} from JSON: ${debugJsonValue(jsonValue)}`; + if (e instanceof Error && e.message.length > 0) { + m += `: ${e.message}`; + } + throw new Error(m); + } + break; + } + } + } else { + if (field.oneof) { + target = target[field.oneof.localName] = { case: localName }; + localName = 'value'; + } + switch (field.kind) { case 'message': - let c = t.T; - if (n === null && c.typeName != 'google.protobuf.Value') return; - let u = e[m]; - h(u) - ? u.fromJson(n, i) - : ((e[m] = u = c.fromJson(n, i)), - c.fieldWrapper && - !t.oneof && - (e[m] = c.fieldWrapper.unwrapField(u))); + const messageType = field.T; + if ( + jsonValue === null && + messageType.typeName != 'google.protobuf.Value' + ) { + return; + } + let currentValue = target[localName]; + if (isMessage(currentValue)) { + currentValue.fromJson(jsonValue, options); + } else { + target[localName] = currentValue = messageType.fromJson( + jsonValue, + options, + ); + if (messageType.fieldWrapper && !field.oneof) { + target[localName] = + messageType.fieldWrapper.unwrapField(currentValue); + } + } break; case 'enum': - let E = em(t.T, n, i.ignoreUnknownFields, !1); - switch (E) { - case ir: - nm(t, e); + const enumValue = readEnum( + field.T, + jsonValue, + options.ignoreUnknownFields, + false, + ); + switch (enumValue) { + case tokenNull: + clearField(field, target); break; - case rr: + case tokenIgnoredUnknownEnum: break; default: - e[m] = E; + target[localName] = enumValue; break; } break; case 'scalar': try { - let T = Re(t.T, n, t.L, !1); - switch (T) { - case ir: - nm(t, e); + const scalarValue = readScalar(field.T, jsonValue, field.L, false); + switch (scalarValue) { + case tokenNull: + clearField(field, target); break; default: - e[m] = T; + target[localName] = scalarValue; break; } - } catch (T) { - let d = `cannot decode field ${s.typeName}.${t.name} from JSON: ${q(n)}`; - throw ( - T instanceof Error && - T.message.length > 0 && - (d += `: ${T.message}`), - new Error(d) + } catch (e) { + let m = `cannot decode field ${parentType.typeName}.${field.name} from JSON: ${debugJsonValue(jsonValue)}`; + if (e instanceof Error && e.message.length > 0) { + m += `: ${e.message}`; + } + throw new Error(m); + } + break; + } + } +} +function readMapKey(type, json) { + if (type === ScalarType.BOOL) { + switch (json) { + case 'true': + json = true; + break; + case 'false': + json = false; + break; + } + } + return readScalar(type, json, LongType.BIGINT, true).toString(); +} +function readScalar(type, json, longType, nullAsZeroValue) { + if (json === null) { + if (nullAsZeroValue) { + return scalarZeroValue(type, longType); + } + return tokenNull; + } + switch (type) { + // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity". + // Either numbers or strings are accepted. Exponent notation is also accepted. + case ScalarType.DOUBLE: + case ScalarType.FLOAT: + if (json === 'NaN') return Number.NaN; + if (json === 'Infinity') return Number.POSITIVE_INFINITY; + if (json === '-Infinity') return Number.NEGATIVE_INFINITY; + if (json === '') { + break; + } + if (typeof json == 'string' && json.trim().length !== json.length) { + break; + } + if (typeof json != 'string' && typeof json != 'number') { + break; + } + const float = Number(json); + if (Number.isNaN(float)) { + break; + } + if (!Number.isFinite(float)) { + break; + } + if (type == ScalarType.FLOAT) assertFloat32(float); + return float; + // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted. + case ScalarType.INT32: + case ScalarType.FIXED32: + case ScalarType.SFIXED32: + case ScalarType.SINT32: + case ScalarType.UINT32: + let int32; + if (typeof json == 'number') int32 = json; + else if (typeof json == 'string' && json.length > 0) { + if (json.trim().length === json.length) int32 = Number(json); + } + if (int32 === void 0) break; + if (type == ScalarType.UINT32 || type == ScalarType.FIXED32) + assertUInt32(int32); + else assertInt32(int32); + return int32; + // int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted. + case ScalarType.INT64: + case ScalarType.SFIXED64: + case ScalarType.SINT64: + if (typeof json != 'number' && typeof json != 'string') break; + const long = protoInt64.parse(json); + return longType ? long.toString() : long; + case ScalarType.FIXED64: + case ScalarType.UINT64: + if (typeof json != 'number' && typeof json != 'string') break; + const uLong = protoInt64.uParse(json); + return longType ? uLong.toString() : uLong; + // bool: + case ScalarType.BOOL: + if (typeof json !== 'boolean') break; + return json; + // string: + case ScalarType.STRING: + if (typeof json !== 'string') { + break; + } + try { + encodeURIComponent(json); + } catch (e) { + throw new Error('invalid UTF8'); + } + return json; + // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings. + // Either standard or URL-safe base64 encoding with/without paddings are accepted. + case ScalarType.BYTES: + if (json === '') return new Uint8Array(0); + if (typeof json !== 'string') break; + return protoBase64.dec(json); + } + throw new Error(); +} +function readEnum(type, json, ignoreUnknownFields, nullAsZeroValue) { + if (json === null) { + if (type.typeName == 'google.protobuf.NullValue') { + return 0; + } + return nullAsZeroValue ? type.values[0].no : tokenNull; + } + switch (typeof json) { + case 'number': + if (Number.isInteger(json)) { + return json; + } + break; + case 'string': + const value = type.findName(json); + if (value !== void 0) { + return value.no; + } + if (ignoreUnknownFields) { + return tokenIgnoredUnknownEnum; + } + break; + } + throw new Error( + `cannot decode enum ${type.typeName} from JSON: ${debugJsonValue(json)}`, + ); +} +function canEmitFieldDefaultValue(field) { + if (field.repeated || field.kind == 'map') { + return true; + } + if (field.oneof) { + return false; + } + if (field.kind == 'message') { + return false; + } + if (field.opt || field.req) { + return false; + } + return true; +} +function writeField(field, value, options) { + if (field.kind == 'map') { + assert(typeof value == 'object' && value != null); + const jsonObj = {}; + const entries = Object.entries(value); + switch (field.V.kind) { + case 'scalar': + for (const [entryKey, entryValue] of entries) { + jsonObj[entryKey.toString()] = writeScalar(field.V.T, entryValue); + } + break; + case 'message': + for (const [entryKey, entryValue] of entries) { + jsonObj[entryKey.toString()] = entryValue.toJson(options); + } + break; + case 'enum': + const enumType = field.V.T; + for (const [entryKey, entryValue] of entries) { + jsonObj[entryKey.toString()] = writeEnum( + enumType, + entryValue, + options.enumAsInteger, ); } break; } -} -function up(e, n) { - if (e === l.BOOL) - switch (n) { - case 'true': - n = !0; - break; - case 'false': - n = !1; - break; - } - return Re(e, n, M.BIGINT, !0).toString(); -} -function Re(e, n, t, i) { - if (n === null) return i ? y(e, t) : ir; - switch (e) { - case l.DOUBLE: - case l.FLOAT: - if (n === 'NaN') return Number.NaN; - if (n === 'Infinity') return Number.POSITIVE_INFINITY; - if (n === '-Infinity') return Number.NEGATIVE_INFINITY; - if ( - n === '' || - (typeof n == 'string' && n.trim().length !== n.length) || - (typeof n != 'string' && typeof n != 'number') - ) - break; - let s = Number(n); - if (Number.isNaN(s) || !Number.isFinite(s)) break; - return (e == l.FLOAT && va(s), s); - case l.INT32: - case l.FIXED32: - case l.SFIXED32: - case l.SINT32: - case l.UINT32: - let m; - if ( - (typeof n == 'number' - ? (m = n) - : typeof n == 'string' && - n.length > 0 && - n.trim().length === n.length && - (m = Number(n)), - m === void 0) - ) - break; - return (e == l.UINT32 || e == l.FIXED32 ? Ce(m) : Vn(m), m); - case l.INT64: - case l.SFIXED64: - case l.SINT64: - if (typeof n != 'number' && typeof n != 'string') break; - let c = o.parse(n); - return t ? c.toString() : c; - case l.FIXED64: - case l.UINT64: - if (typeof n != 'number' && typeof n != 'string') break; - let u = o.uParse(n); - return t ? u.toString() : u; - case l.BOOL: - if (typeof n != 'boolean') break; - return n; - case l.STRING: - if (typeof n != 'string') break; - try { - encodeURIComponent(n); - } catch { - throw new Error('invalid UTF8'); - } - return n; - case l.BYTES: - if (n === '') return new Uint8Array(0); - if (typeof n != 'string') break; - return Zo.dec(n); + return options.emitDefaultValues || entries.length > 0 ? jsonObj : void 0; } - throw new Error(); -} -function em(e, n, t, i) { - if (n === null) - return e.typeName == 'google.protobuf.NullValue' - ? 0 - : i - ? e.values[0].no - : ir; - switch (typeof n) { - case 'number': - if (Number.isInteger(n)) return n; - break; - case 'string': - let s = e.findName(n); - if (s !== void 0) return s.no; - if (t) return rr; - break; - } - throw new Error(`cannot decode enum ${e.typeName} from JSON: ${q(n)}`); -} -function lp(e) { - return e.repeated || e.kind == 'map' - ? !0 - : !(e.oneof || e.kind == 'message' || e.opt || e.req); -} -function AT(e, n, t) { - if (e.kind == 'map') { - p(typeof n == 'object' && n != null); - let i = {}, - s = Object.entries(n); - switch (e.V.kind) { + if (field.repeated) { + assert(Array.isArray(value)); + const jsonArr = []; + switch (field.kind) { case 'scalar': - for (let [c, u] of s) i[c.toString()] = sr(e.V.T, u); - break; - case 'message': - for (let [c, u] of s) i[c.toString()] = u.toJson(t); + for (let i = 0; i < value.length; i++) { + jsonArr.push(writeScalar(field.T, value[i])); + } break; case 'enum': - let m = e.V.T; - for (let [c, u] of s) i[c.toString()] = tm(m, u, t.enumAsInteger); - break; - } - return t.emitDefaultValues || s.length > 0 ? i : void 0; - } - if (e.repeated) { - p(Array.isArray(n)); - let i = []; - switch (e.kind) { - case 'scalar': - for (let s = 0; s < n.length; s++) i.push(sr(e.T, n[s])); - break; - case 'enum': - for (let s = 0; s < n.length; s++) - i.push(tm(e.T, n[s], t.enumAsInteger)); + for (let i = 0; i < value.length; i++) { + jsonArr.push(writeEnum(field.T, value[i], options.enumAsInteger)); + } break; case 'message': - for (let s = 0; s < n.length; s++) i.push(n[s].toJson(t)); + for (let i = 0; i < value.length; i++) { + jsonArr.push(value[i].toJson(options)); + } break; } - return t.emitDefaultValues || i.length > 0 ? i : void 0; + return options.emitDefaultValues || jsonArr.length > 0 ? jsonArr : void 0; } - switch (e.kind) { + switch (field.kind) { case 'scalar': - return sr(e.T, n); + return writeScalar(field.T, value); case 'enum': - return tm(e.T, n, t.enumAsInteger); + return writeEnum(field.T, value, options.enumAsInteger); case 'message': - return ar(e.T, n).toJson(t); + return wrapField(field.T, value).toJson(options); } } -function tm(e, n, t) { - var i; - if ((p(typeof n == 'number'), e.typeName == 'google.protobuf.NullValue')) +function writeEnum(type, value, enumAsInteger) { + var _a; + assert(typeof value == 'number'); + if (type.typeName == 'google.protobuf.NullValue') { return null; - if (t) return n; - let s = e.findNumber(n); - return (i = s?.name) !== null && i !== void 0 ? i : n; + } + if (enumAsInteger) { + return value; + } + const val = type.findNumber(value); + return (_a = val === null || val === void 0 ? void 0 : val.name) !== null && + _a !== void 0 + ? _a + : value; } -function sr(e, n) { - switch (e) { - case l.INT32: - case l.SFIXED32: - case l.SINT32: - case l.FIXED32: - case l.UINT32: - return (p(typeof n == 'number'), n); - case l.FLOAT: - case l.DOUBLE: - return ( - p(typeof n == 'number'), - Number.isNaN(n) - ? 'NaN' - : n === Number.POSITIVE_INFINITY - ? 'Infinity' - : n === Number.NEGATIVE_INFINITY - ? '-Infinity' - : n +function writeScalar(type, value) { + switch (type) { + // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted. + case ScalarType.INT32: + case ScalarType.SFIXED32: + case ScalarType.SINT32: + case ScalarType.FIXED32: + case ScalarType.UINT32: + assert(typeof value == 'number'); + return value; + // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity". + // Either numbers or strings are accepted. Exponent notation is also accepted. + case ScalarType.FLOAT: + // assertFloat32(value); + case ScalarType.DOUBLE: + assert(typeof value == 'number'); + if (Number.isNaN(value)) return 'NaN'; + if (value === Number.POSITIVE_INFINITY) return 'Infinity'; + if (value === Number.NEGATIVE_INFINITY) return '-Infinity'; + return value; + // string: + case ScalarType.STRING: + assert(typeof value == 'string'); + return value; + // bool: + case ScalarType.BOOL: + assert(typeof value == 'boolean'); + return value; + // JSON value will be a decimal string. Either numbers or strings are accepted. + case ScalarType.UINT64: + case ScalarType.FIXED64: + case ScalarType.INT64: + case ScalarType.SFIXED64: + case ScalarType.SINT64: + assert( + typeof value == 'bigint' || + typeof value == 'string' || + typeof value == 'number', ); - case l.STRING: - return (p(typeof n == 'string'), n); - case l.BOOL: - return (p(typeof n == 'boolean'), n); - case l.UINT64: - case l.FIXED64: - case l.INT64: - case l.SFIXED64: - case l.SINT64: - return ( - p(typeof n == 'bigint' || typeof n == 'string' || typeof n == 'number'), - n.toString() - ); - case l.BYTES: - return (p(n instanceof Uint8Array), Zo.enc(n)); + return value.toString(); + // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings. + // Either standard or URL-safe base64 encoding with/without paddings are accepted. + case ScalarType.BYTES: + assert(value instanceof Uint8Array); + return protoBase64.enc(value); } } -var Xn = Symbol('@bufbuild/protobuf/unknown-fields'), - RT = { readUnknownFields: !0, readerFactory: (e) => new $a(e) }, - LT = { writeUnknownFields: !0, writerFactory: () => new Za() }; -function Ep(e) { - return e ? Object.assign(Object.assign({}, RT), e) : RT; + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/binary-format.js +var unknownFieldsSymbol = /* @__PURE__ */ Symbol( + '@bufbuild/protobuf/unknown-fields', +); +var readDefaults = { + readUnknownFields: true, + readerFactory: (bytes) => new BinaryReader(bytes), +}; +var writeDefaults = { + writeUnknownFields: true, + writerFactory: () => new BinaryWriter(), +}; +function makeReadOptions2(options) { + return options + ? Object.assign(Object.assign({}, readDefaults), options) + : readDefaults; } -function _p(e) { - return e ? Object.assign(Object.assign({}, LT), e) : LT; +function makeWriteOptions2(options) { + return options + ? Object.assign(Object.assign({}, writeDefaults), options) + : writeDefaults; } -function gT() { +function makeBinaryFormat() { return { - makeReadOptions: Ep, - makeWriteOptions: _p, - listUnknownFields(e) { - var n; - return (n = e[Xn]) !== null && n !== void 0 ? n : []; + makeReadOptions: makeReadOptions2, + makeWriteOptions: makeWriteOptions2, + listUnknownFields(message) { + var _a; + return (_a = message[unknownFieldsSymbol]) !== null && _a !== void 0 + ? _a + : []; }, - discardUnknownFields(e) { - delete e[Xn]; + discardUnknownFields(message) { + delete message[unknownFieldsSymbol]; }, - writeUnknownFields(e, n) { - let i = e[Xn]; - if (i) for (let s of i) n.tag(s.no, s.wireType).raw(s.data); + writeUnknownFields(message, writer) { + const m = message; + const c = m[unknownFieldsSymbol]; + if (c) { + for (const f of c) { + writer.tag(f.no, f.wireType).raw(f.data); + } + } }, - onUnknownField(e, n, t, i) { - let s = e; - (Array.isArray(s[Xn]) || (s[Xn] = []), - s[Xn].push({ no: n, wireType: t, data: i })); + onUnknownField(message, no, wireType, data) { + const m = message; + if (!Array.isArray(m[unknownFieldsSymbol])) { + m[unknownFieldsSymbol] = []; + } + m[unknownFieldsSymbol].push({ no, wireType, data }); }, - readMessage(e, n, t, i, s) { - let m = e.getType(), - c = s ? n.len : n.pos + t, - u, - E; - for (; n.pos < c && (([u, E] = n.tag()), E != L.EndGroup); ) { - let T = m.fields.find(u); - if (!T) { - let d = n.skip(E); - i.readUnknownFields && this.onUnknownField(e, u, E, d); + readMessage( + message, + reader, + lengthOrEndTagFieldNo, + options, + delimitedMessageEncoding, + ) { + const type = message.getType(); + const end = delimitedMessageEncoding + ? reader.len + : reader.pos + lengthOrEndTagFieldNo; + let fieldNo, wireType; + while (reader.pos < end) { + [fieldNo, wireType] = reader.tag(); + if (wireType == WireType.EndGroup) { + break; + } + const field = type.fields.find(fieldNo); + if (!field) { + const data = reader.skip(wireType); + if (options.readUnknownFields) { + this.onUnknownField(message, fieldNo, wireType, data); + } continue; } - PT(e, n, T, E, i); + readField2(message, reader, field, wireType, options); + } + if ( + delimitedMessageEncoding && // eslint-disable-line @typescript-eslint/strict-boolean-expressions + (wireType != WireType.EndGroup || fieldNo !== lengthOrEndTagFieldNo) + ) { + throw new Error(`invalid end group tag`); } - if (s && (E != L.EndGroup || u !== t)) - throw new Error('invalid end group tag'); }, - readField: PT, - writeMessage(e, n, t) { - let i = e.getType(); - for (let s of i.fields.byNumber()) { - if (!tr(s, e)) { - if (s.req) + readField: readField2, + writeMessage(message, writer, options) { + const type = message.getType(); + for (const field of type.fields.byNumber()) { + if (!isFieldSet(field, message)) { + if (field.req) { throw new Error( - `cannot encode field ${i.typeName}.${s.name} to binary: required field not set`, + `cannot encode field ${type.typeName}.${field.name} to binary: required field not set`, ); + } continue; } - let m = s.oneof ? e[s.oneof.localName].value : e[s.localName]; - DT(s, m, n, t); + const value = field.oneof + ? message[field.oneof.localName].value + : message[field.localName]; + writeField2(field, value, writer, options); } - return (t.writeUnknownFields && this.writeUnknownFields(e, n), n); + if (options.writeUnknownFields) { + this.writeUnknownFields(message, writer); + } + return writer; }, - writeField(e, n, t, i) { - n !== void 0 && DT(e, n, t, i); + writeField(field, value, writer, options) { + if (value === void 0) { + return void 0; + } + writeField2(field, value, writer, options); }, }; } -function PT(e, n, t, i, s) { - let { repeated: m, localName: c } = t; - switch ( - (t.oneof && - ((e = e[t.oneof.localName]), - e.case != c && delete e.value, - (e.case = c), - (c = 'value')), - t.kind) - ) { +function readField2(target, reader, field, wireType, options) { + let { repeated, localName } = field; + if (field.oneof) { + target = target[field.oneof.localName]; + if (target.case != localName) { + delete target.value; + } + target.case = localName; + localName = 'value'; + } + switch (field.kind) { case 'scalar': case 'enum': - let u = t.kind == 'enum' ? l.INT32 : t.T, - E = mr; - if ((t.kind == 'scalar' && t.L > 0 && (E = Tp), m)) { - let R = e[c]; - if (i == L.LengthDelimited && u != l.STRING && u != l.BYTES) { - let Cn = n.uint32() + n.pos; - for (; n.pos < Cn; ) R.push(E(n, u)); - } else R.push(E(n, u)); - } else e[c] = E(n, u); + const scalarType = field.kind == 'enum' ? ScalarType.INT32 : field.T; + let read = readScalar2; + if (field.kind == 'scalar' && field.L > 0) { + read = readScalarLTString; + } + if (repeated) { + let arr = target[localName]; + const isPacked = + wireType == WireType.LengthDelimited && + scalarType != ScalarType.STRING && + scalarType != ScalarType.BYTES; + if (isPacked) { + let e = reader.uint32() + reader.pos; + while (reader.pos < e) { + arr.push(read(reader, scalarType)); + } + } else { + arr.push(read(reader, scalarType)); + } + } else { + target[localName] = read(reader, scalarType); + } break; case 'message': - let T = t.T; - m - ? e[c].push(or(n, new T(), s, t)) - : h(e[c]) - ? or(n, e[c], s, t) - : ((e[c] = or(n, new T(), s, t)), - T.fieldWrapper && - !t.oneof && - !t.repeated && - (e[c] = T.fieldWrapper.unwrapField(e[c]))); + const messageType = field.T; + if (repeated) { + target[localName].push( + readMessageField(reader, new messageType(), options, field), + ); + } else { + if (isMessage(target[localName])) { + readMessageField(reader, target[localName], options, field); + } else { + target[localName] = readMessageField( + reader, + new messageType(), + options, + field, + ); + if (messageType.fieldWrapper && !field.oneof && !field.repeated) { + target[localName] = messageType.fieldWrapper.unwrapField( + target[localName], + ); + } + } + } break; case 'map': - let [d, S] = dp(t, n, s); - e[c][d] = S; + let [mapKey, mapVal] = readMapEntry(field, reader, options); + target[localName][mapKey] = mapVal; break; } } -function or(e, n, t, i) { - let s = n.getType().runtime.bin, - m = i?.delimited; - return (s.readMessage(n, e, m ? i.no : e.uint32(), t, m), n); +function readMessageField(reader, message, options, field) { + const format = message.getType().runtime.bin; + const delimited = + field === null || field === void 0 ? void 0 : field.delimited; + format.readMessage( + message, + reader, + delimited ? field.no : reader.uint32(), + // eslint-disable-line @typescript-eslint/strict-boolean-expressions + options, + delimited, + ); + return message; } -function dp(e, n, t) { - let i = n.uint32(), - s = n.pos + i, - m, - c; - for (; n.pos < s; ) { - let [u] = n.tag(); - switch (u) { +function readMapEntry(field, reader, options) { + const length = reader.uint32(), + end = reader.pos + length; + let key, val; + while (reader.pos < end) { + const [fieldNo] = reader.tag(); + switch (fieldNo) { case 1: - m = mr(n, e.K); + key = readScalar2(reader, field.K); break; case 2: - switch (e.V.kind) { + switch (field.V.kind) { case 'scalar': - c = mr(n, e.V.T); + val = readScalar2(reader, field.V.T); break; case 'enum': - c = n.int32(); + val = reader.int32(); break; case 'message': - c = or(n, new e.V.T(), t, void 0); + val = readMessageField(reader, new field.V.T(), options, void 0); break; } break; } } - if ( - (m === void 0 && (m = y(e.K, M.BIGINT)), - typeof m != 'string' && typeof m != 'number' && (m = m.toString()), - c === void 0) - ) - switch (e.V.kind) { + if (key === void 0) { + key = scalarZeroValue(field.K, LongType.BIGINT); + } + if (typeof key != 'string' && typeof key != 'number') { + key = key.toString(); + } + if (val === void 0) { + switch (field.V.kind) { case 'scalar': - c = y(e.V.T, M.BIGINT); + val = scalarZeroValue(field.V.T, LongType.BIGINT); break; case 'enum': - c = e.V.T.values[0].no; + val = field.V.T.values[0].no; break; case 'message': - c = new e.V.T(); + val = new field.V.T(); break; } - return [m, c]; + } + return [key, val]; } -function Tp(e, n) { - let t = mr(e, n); - return typeof t == 'bigint' ? t.toString() : t; +function readScalarLTString(reader, type) { + const v = readScalar2(reader, type); + return typeof v == 'bigint' ? v.toString() : v; } -function mr(e, n) { - switch (n) { - case l.STRING: - return e.string(); - case l.BOOL: - return e.bool(); - case l.DOUBLE: - return e.double(); - case l.FLOAT: - return e.float(); - case l.INT32: - return e.int32(); - case l.INT64: - return e.int64(); - case l.UINT64: - return e.uint64(); - case l.FIXED64: - return e.fixed64(); - case l.BYTES: - return e.bytes(); - case l.FIXED32: - return e.fixed32(); - case l.SFIXED32: - return e.sfixed32(); - case l.SFIXED64: - return e.sfixed64(); - case l.SINT64: - return e.sint64(); - case l.UINT32: - return e.uint32(); - case l.SINT32: - return e.sint32(); +function readScalar2(reader, type) { + switch (type) { + case ScalarType.STRING: + return reader.string(); + case ScalarType.BOOL: + return reader.bool(); + case ScalarType.DOUBLE: + return reader.double(); + case ScalarType.FLOAT: + return reader.float(); + case ScalarType.INT32: + return reader.int32(); + case ScalarType.INT64: + return reader.int64(); + case ScalarType.UINT64: + return reader.uint64(); + case ScalarType.FIXED64: + return reader.fixed64(); + case ScalarType.BYTES: + return reader.bytes(); + case ScalarType.FIXED32: + return reader.fixed32(); + case ScalarType.SFIXED32: + return reader.sfixed32(); + case ScalarType.SFIXED64: + return reader.sfixed64(); + case ScalarType.SINT64: + return reader.sint64(); + case ScalarType.UINT32: + return reader.uint32(); + case ScalarType.SINT32: + return reader.sint32(); } } -function DT(e, n, t, i) { - p(n !== void 0); - let s = e.repeated; - switch (e.kind) { +function writeField2(field, value, writer, options) { + assert(value !== void 0); + const repeated = field.repeated; + switch (field.kind) { case 'scalar': case 'enum': - let m = e.kind == 'enum' ? l.INT32 : e.T; - if (s) - if ((p(Array.isArray(n)), e.packed)) Np(t, m, e.no, n); - else for (let c of n) Le(t, m, e.no, c); - else Le(t, m, e.no, n); + let scalarType = field.kind == 'enum' ? ScalarType.INT32 : field.T; + if (repeated) { + assert(Array.isArray(value)); + if (field.packed) { + writePacked(writer, scalarType, field.no, value); + } else { + for (const item of value) { + writeScalar2(writer, scalarType, field.no, item); + } + } + } else { + writeScalar2(writer, scalarType, field.no, value); + } break; case 'message': - if (s) { - p(Array.isArray(n)); - for (let c of n) kT(t, i, e, c); - } else kT(t, i, e, n); + if (repeated) { + assert(Array.isArray(value)); + for (const item of value) { + writeMessageField(writer, options, field, item); + } + } else { + writeMessageField(writer, options, field, value); + } break; case 'map': - p(typeof n == 'object' && n != null); - for (let [c, u] of Object.entries(n)) fp(t, i, e, c, u); + assert(typeof value == 'object' && value != null); + for (const [key, val] of Object.entries(value)) { + writeMapEntry(writer, options, field, key, val); + } break; } } -function fp(e, n, t, i, s) { - (e.tag(t.no, L.LengthDelimited), e.fork()); - let m = i; - switch (t.K) { - case l.INT32: - case l.FIXED32: - case l.UINT32: - case l.SFIXED32: - case l.SINT32: - m = Number.parseInt(i); +function writeMapEntry(writer, options, field, key, value) { + writer.tag(field.no, WireType.LengthDelimited); + writer.fork(); + let keyValue = key; + switch (field.K) { + case ScalarType.INT32: + case ScalarType.FIXED32: + case ScalarType.UINT32: + case ScalarType.SFIXED32: + case ScalarType.SINT32: + keyValue = Number.parseInt(key); break; - case l.BOOL: - (p(i == 'true' || i == 'false'), (m = i == 'true')); + case ScalarType.BOOL: + assert(key == 'true' || key == 'false'); + keyValue = key == 'true'; break; } - switch ((Le(e, t.K, 1, m), t.V.kind)) { + writeScalar2(writer, field.K, 1, keyValue); + switch (field.V.kind) { case 'scalar': - Le(e, t.V.T, 2, s); + writeScalar2(writer, field.V.T, 2, value); break; case 'enum': - Le(e, l.INT32, 2, s); + writeScalar2(writer, ScalarType.INT32, 2, value); break; case 'message': - (p(s !== void 0), e.tag(2, L.LengthDelimited).bytes(s.toBinary(n))); + assert(value !== void 0); + writer.tag(2, WireType.LengthDelimited).bytes(value.toBinary(options)); break; } - e.join(); + writer.join(); } -function kT(e, n, t, i) { - let s = ar(t.T, i); - t.delimited - ? e.tag(t.no, L.StartGroup).raw(s.toBinary(n)).tag(t.no, L.EndGroup) - : e.tag(t.no, L.LengthDelimited).bytes(s.toBinary(n)); +function writeMessageField(writer, options, field, value) { + const message = wrapField(field.T, value); + if (field.delimited) + writer + .tag(field.no, WireType.StartGroup) + .raw(message.toBinary(options)) + .tag(field.no, WireType.EndGroup); + else + writer + .tag(field.no, WireType.LengthDelimited) + .bytes(message.toBinary(options)); } -function Le(e, n, t, i) { - p(i !== void 0); - let [s, m] = wT(n); - e.tag(t, s)[m](i); +function writeScalar2(writer, type, fieldNo, value) { + assert(value !== void 0); + let [wireType, method] = scalarTypeInfo(type); + writer.tag(fieldNo, wireType)[method](value); } -function Np(e, n, t, i) { - if (!i.length) return; - e.tag(t, L.LengthDelimited).fork(); - let [, s] = wT(n); - for (let m = 0; m < i.length; m++) e[s](i[m]); - e.join(); +function writePacked(writer, type, fieldNo, value) { + if (!value.length) { + return; + } + writer.tag(fieldNo, WireType.LengthDelimited).fork(); + let [, method] = scalarTypeInfo(type); + for (let i = 0; i < value.length; i++) { + writer[method](value[i]); + } + writer.join(); } -function wT(e) { - let n = L.Varint; - switch (e) { - case l.BYTES: - case l.STRING: - n = L.LengthDelimited; +function scalarTypeInfo(type) { + let wireType = WireType.Varint; + switch (type) { + case ScalarType.BYTES: + case ScalarType.STRING: + wireType = WireType.LengthDelimited; break; - case l.DOUBLE: - case l.FIXED64: - case l.SFIXED64: - n = L.Bit64; + case ScalarType.DOUBLE: + case ScalarType.FIXED64: + case ScalarType.SFIXED64: + wireType = WireType.Bit64; break; - case l.FIXED32: - case l.SFIXED32: - case l.FLOAT: - n = L.Bit32; + case ScalarType.FIXED32: + case ScalarType.SFIXED32: + case ScalarType.FLOAT: + wireType = WireType.Bit32; break; } - let t = l[e].toLowerCase(); - return [n, t]; + const method = ScalarType[type].toLowerCase(); + return [wireType, method]; } -function JT() { + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/util-common.js +function makeUtilCommon() { return { - setEnumType: Xo, - initPartial(e, n) { - if (e === void 0) return; - let t = n.getType(); - for (let i of t.fields.byMember()) { - let s = i.localName, - m = n, - c = e; - if (c[s] !== void 0) - switch (i.kind) { - case 'oneof': - let u = c[s].case; - if (u === void 0) continue; - let E = i.findField(u), - T = c[s].value; - (E && E.kind == 'message' && !h(T, E.T) - ? (T = new E.T(T)) - : E && E.kind === 'scalar' && E.T === l.BYTES && (T = Pe(T)), - (m[s] = { case: u, value: T })); - break; - case 'scalar': - case 'enum': - let d = c[s]; - (i.T === l.BYTES && (d = i.repeated ? d.map(Pe) : Pe(d)), - (m[s] = d)); - break; - case 'map': - switch (i.V.kind) { - case 'scalar': - case 'enum': - if (i.V.T === l.BYTES) - for (let [Ae, Cn] of Object.entries(c[s])) - m[s][Ae] = Pe(Cn); - else Object.assign(m[s], c[s]); - break; - case 'message': - let R = i.V.T; - for (let Ae of Object.keys(c[s])) { - let Cn = c[s][Ae]; - (R.fieldWrapper || (Cn = new R(Cn)), (m[s][Ae] = Cn)); - } - break; - } - break; - case 'message': - let S = i.T; - if (i.repeated) m[s] = c[s].map((R) => (h(R, S) ? R : new S(R))); - else { - let R = c[s]; - S.fieldWrapper - ? S.typeName === 'google.protobuf.BytesValue' - ? (m[s] = Pe(R)) - : (m[s] = R) - : (m[s] = h(R, S) ? R : new S(R)); - } - break; - } + setEnumType, + initPartial(source, target) { + if (source === void 0) { + return; } - }, - equals(e, n, t) { - return n === t - ? !0 - : !n || !t - ? !1 - : e.fields.byMember().every((i) => { - let s = n[i.localName], - m = t[i.localName]; - if (i.repeated) { - if (s.length !== m.length) return !1; - switch (i.kind) { - case 'message': - return s.every((c, u) => i.T.equals(c, m[u])); - case 'scalar': - return s.every((c, u) => Q(i.T, c, m[u])); - case 'enum': - return s.every((c, u) => Q(l.INT32, c, m[u])); + const type = target.getType(); + for (const member of type.fields.byMember()) { + const localName = member.localName, + t = target, + s = source; + if (s[localName] === void 0) { + continue; + } + switch (member.kind) { + case 'oneof': + const sk = s[localName].case; + if (sk === void 0) { + continue; + } + const sourceField = member.findField(sk); + let val = s[localName].value; + if ( + sourceField && + sourceField.kind == 'message' && + !isMessage(val, sourceField.T) + ) { + val = new sourceField.T(val); + } else if ( + sourceField && + sourceField.kind === 'scalar' && + sourceField.T === ScalarType.BYTES + ) { + val = toU8Arr(val); + } + t[localName] = { case: sk, value: val }; + break; + case 'scalar': + case 'enum': + let copy = s[localName]; + if (member.T === ScalarType.BYTES) { + copy = member.repeated ? copy.map(toU8Arr) : toU8Arr(copy); + } + t[localName] = copy; + break; + case 'map': + switch (member.V.kind) { + case 'scalar': + case 'enum': + if (member.V.T === ScalarType.BYTES) { + for (const [k, v] of Object.entries(s[localName])) { + t[localName][k] = toU8Arr(v); + } + } else { + Object.assign(t[localName], s[localName]); } - throw new Error(`repeated cannot contain ${i.kind}`); - } - switch (i.kind) { - case 'message': - return i.T.equals(s, m); - case 'enum': - return Q(l.INT32, s, m); - case 'scalar': - return Q(i.T, s, m); - case 'oneof': - if (s.case !== m.case) return !1; - let c = i.findField(s.case); - if (c === void 0) return !0; - switch (c.kind) { - case 'message': - return c.T.equals(s.value, m.value); - case 'enum': - return Q(l.INT32, s.value, m.value); - case 'scalar': - return Q(c.T, s.value, m.value); + break; + case 'message': + const messageType = member.V.T; + for (const k of Object.keys(s[localName])) { + let val2 = s[localName][k]; + if (!messageType.fieldWrapper) { + val2 = new messageType(val2); } - throw new Error(`oneof cannot contain ${c.kind}`); - case 'map': - let u = Object.keys(s).concat(Object.keys(m)); - switch (i.V.kind) { - case 'message': - let E = i.V.T; - return u.every((d) => E.equals(s[d], m[d])); - case 'enum': - return u.every((d) => Q(l.INT32, s[d], m[d])); - case 'scalar': - let T = i.V.T; - return u.every((d) => Q(T, s[d], m[d])); - } - break; + t[localName][k] = val2; + } + break; + } + break; + case 'message': + const mt = member.T; + if (member.repeated) { + t[localName] = s[localName].map((val2) => + isMessage(val2, mt) ? val2 : new mt(val2), + ); + } else { + const val2 = s[localName]; + if (mt.fieldWrapper) { + if ( + // We can't use BytesValue.typeName as that will create a circular import + mt.typeName === 'google.protobuf.BytesValue' + ) { + t[localName] = toU8Arr(val2); + } else { + t[localName] = val2; + } + } else { + t[localName] = isMessage(val2, mt) ? val2 : new mt(val2); } - }); - }, - clone(e) { - let n = e.getType(), - t = new n(), - i = t; - for (let s of n.fields.byMember()) { - let m = e[s.localName], - c; - if (s.repeated) c = m.map(cr); - else if (s.kind == 'map') { - c = i[s.localName]; - for (let [u, E] of Object.entries(m)) c[u] = cr(E); - } else - s.kind == 'oneof' - ? (c = s.findField(m.case) - ? { case: m.case, value: cr(m.value) } - : { case: void 0 }) - : (c = cr(m)); - i[s.localName] = c; + } + break; + } } - for (let s of n.runtime.bin.listUnknownFields(e)) - n.runtime.bin.onUnknownField(i, s.no, s.wireType, s.data); - return t; + }, + // TODO use isFieldSet() here to support future field presence + equals(type, a, b) { + if (a === b) { + return true; + } + if (!a || !b) { + return false; + } + return type.fields.byMember().every((m) => { + const va = a[m.localName]; + const vb = b[m.localName]; + if (m.repeated) { + if (va.length !== vb.length) { + return false; + } + switch (m.kind) { + case 'message': + return va.every((a2, i) => m.T.equals(a2, vb[i])); + case 'scalar': + return va.every((a2, i) => scalarEquals(m.T, a2, vb[i])); + case 'enum': + return va.every((a2, i) => + scalarEquals(ScalarType.INT32, a2, vb[i]), + ); + } + throw new Error(`repeated cannot contain ${m.kind}`); + } + switch (m.kind) { + case 'message': + return m.T.equals(va, vb); + case 'enum': + return scalarEquals(ScalarType.INT32, va, vb); + case 'scalar': + return scalarEquals(m.T, va, vb); + case 'oneof': + if (va.case !== vb.case) { + return false; + } + const s = m.findField(va.case); + if (s === void 0) { + return true; + } + switch (s.kind) { + case 'message': + return s.T.equals(va.value, vb.value); + case 'enum': + return scalarEquals(ScalarType.INT32, va.value, vb.value); + case 'scalar': + return scalarEquals(s.T, va.value, vb.value); + } + throw new Error(`oneof cannot contain ${s.kind}`); + case 'map': + const keys = Object.keys(va).concat(Object.keys(vb)); + switch (m.V.kind) { + case 'message': + const messageType = m.V.T; + return keys.every((k) => messageType.equals(va[k], vb[k])); + case 'enum': + return keys.every((k) => + scalarEquals(ScalarType.INT32, va[k], vb[k]), + ); + case 'scalar': + const scalarType = m.V.T; + return keys.every((k) => + scalarEquals(scalarType, va[k], vb[k]), + ); + } + break; + } + }); + }, + // TODO use isFieldSet() here to support future field presence + clone(message) { + const type = message.getType(), + target = new type(), + any = target; + for (const member of type.fields.byMember()) { + const source = message[member.localName]; + let copy; + if (member.repeated) { + copy = source.map(cloneSingularField); + } else if (member.kind == 'map') { + copy = any[member.localName]; + for (const [key, v] of Object.entries(source)) { + copy[key] = cloneSingularField(v); + } + } else if (member.kind == 'oneof') { + const f = member.findField(source.case); + copy = f + ? { case: source.case, value: cloneSingularField(source.value) } + : { case: void 0 }; + } else { + copy = cloneSingularField(source); + } + any[member.localName] = copy; + } + for (const uf of type.runtime.bin.listUnknownFields(message)) { + type.runtime.bin.onUnknownField(any, uf.no, uf.wireType, uf.data); + } + return target; }, }; } -function cr(e) { - if (e === void 0) return e; - if (h(e)) return e.clone(); - if (e instanceof Uint8Array) { - let n = new Uint8Array(e.byteLength); - return (n.set(e), n); +function cloneSingularField(value) { + if (value === void 0) { + return value; } - return e; + if (isMessage(value)) { + return value.clone(); + } + if (value instanceof Uint8Array) { + const c = new Uint8Array(value.byteLength); + c.set(value); + return c; + } + return value; } -function Pe(e) { - return e instanceof Uint8Array ? e : new Uint8Array(e); +function toU8Arr(input) { + return input instanceof Uint8Array ? input : new Uint8Array(input); } -function xT(e, n, t) { + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/proto-runtime.js +function makeProtoRuntime(syntax, newFieldList, initFields) { return { - syntax: e, - json: CT(), - bin: gT(), - util: Object.assign(Object.assign({}, JT()), { - newFieldList: n, - initFields: t, + syntax, + json: makeJsonFormat(), + bin: makeBinaryFormat(), + util: Object.assign(Object.assign({}, makeUtilCommon()), { + newFieldList, + initFields, }), - makeMessageType(i, s, m) { - return mT(this, i, s, m); + makeMessageType(typeName, fields, opt) { + return makeMessageType(this, typeName, fields, opt); }, - makeEnum: iT, - makeEnumType: Ko, - getEnumType: sT, - makeExtension(i, s, m) { - return dT(this, i, s, m); + makeEnum, + makeEnumType, + getEnumType, + makeExtension(typeName, extendee, field) { + return makeExtension(this, typeName, extendee, field); }, }; } -var ur = class { - constructor(n, t) { - ((this._fields = n), (this._normalizer = t)); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/field-list.js +var InternalFieldList = class { + constructor(fields, normalizer) { + this._fields = fields; + this._normalizer = normalizer; } - findJsonName(n) { + findJsonName(jsonName) { if (!this.jsonNames) { - let t = {}; - for (let i of this.list()) t[i.jsonName] = t[i.name] = i; + const t = {}; + for (const f of this.list()) { + t[f.jsonName] = t[f.name] = f; + } this.jsonNames = t; } - return this.jsonNames[n]; + return this.jsonNames[jsonName]; } - find(n) { + find(fieldNo) { if (!this.numbers) { - let t = {}; - for (let i of this.list()) t[i.no] = i; + const t = {}; + for (const f of this.list()) { + t[f.no] = f; + } this.numbers = t; } - return this.numbers[n]; + return this.numbers[fieldNo]; } list() { - return (this.all || (this.all = this._normalizer(this._fields)), this.all); + if (!this.all) { + this.all = this._normalizer(this._fields); + } + return this.all; } byNumber() { - return ( - this.numbersAsc || - (this.numbersAsc = this.list() - .concat() - .sort((n, t) => n.no - t.no)), - this.numbersAsc - ); + if (!this.numbersAsc) { + this.numbersAsc = this.list() + .concat() + .sort((a, b) => a.no - b.no); + } + return this.numbersAsc; } byMember() { if (!this.members) { this.members = []; - let n = this.members, - t; - for (let i of this.list()) - i.oneof ? i.oneof !== t && ((t = i.oneof), n.push(t)) : n.push(i); + const a = this.members; + let o; + for (const f of this.list()) { + if (f.oneof) { + if (f.oneof !== o) { + o = f.oneof; + a.push(o); + } + } else { + a.push(f); + } + } } return this.members; } }; -function am(e, n) { - let t = FT(e); - return n ? t : Op(pp(t)); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/names.js +function localFieldName(protoName, inOneof) { + const name = protoCamelCase(protoName); + if (inOneof) { + return name; + } + return safeObjectProperty(safeMessageProperty(name)); } -function UT(e) { - return am(e, !1); +function localOneofName(protoName) { + return localFieldName(protoName, false); } -var BT = FT; -function FT(e) { - let n = !1, - t = []; - for (let i = 0; i < e.length; i++) { - let s = e.charAt(i); - switch (s) { +var fieldJsonName = protoCamelCase; +function protoCamelCase(snakeCase) { + let capNext = false; + const b = []; + for (let i = 0; i < snakeCase.length; i++) { + let c = snakeCase.charAt(i); + switch (c) { case '_': - n = !0; + capNext = true; break; case '0': case '1': @@ -1853,110 +2660,161 @@ function FT(e) { case '7': case '8': case '9': - (t.push(s), (n = !1)); + b.push(c); + capNext = false; break; default: - (n && ((n = !1), (s = s.toUpperCase())), t.push(s)); + if (capNext) { + capNext = false; + c = c.toUpperCase(); + } + b.push(c); break; } } - return t.join(''); + return b.join(''); } -var Sp = new Set(['constructor', 'toString', 'toJSON', 'valueOf']), - Ip = new Set([ - 'getType', - 'clone', - 'equals', - 'fromBinary', - 'fromJson', - 'fromJsonString', - 'toBinary', - 'toJson', - 'toJsonString', - 'toObject', - ]), - MT = (e) => `${e}$`, - pp = (e) => (Ip.has(e) ? MT(e) : e), - Op = (e) => (Sp.has(e) ? MT(e) : e); -var lr = class { - constructor(n) { - ((this.kind = 'oneof'), - (this.repeated = !1), - (this.packed = !1), - (this.opt = !1), - (this.req = !1), - (this.default = void 0), - (this.fields = []), - (this.name = n), - (this.localName = UT(n))); +var reservedObjectProperties = /* @__PURE__ */ new Set([ + // names reserved by JavaScript + 'constructor', + 'toString', + 'toJSON', + 'valueOf', +]); +var reservedMessageProperties = /* @__PURE__ */ new Set([ + // names reserved by the runtime + 'getType', + 'clone', + 'equals', + 'fromBinary', + 'fromJson', + 'fromJsonString', + 'toBinary', + 'toJson', + 'toJsonString', + // names reserved by the runtime for the future + 'toObject', +]); +var fallback = (name) => `${name}$`; +var safeMessageProperty = (name) => { + if (reservedMessageProperties.has(name)) { + return fallback(name); } - addField(n) { - (p(n.oneof === this, `field ${n.name} not one of ${this.name}`), - this.fields.push(n)); + return name; +}; +var safeObjectProperty = (name) => { + if (reservedObjectProperties.has(name)) { + return fallback(name); } - findField(n) { + return name; +}; + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/field.js +var InternalOneofInfo = class { + constructor(name) { + this.kind = 'oneof'; + this.repeated = false; + this.packed = false; + this.opt = false; + this.req = false; + this.default = void 0; + this.fields = []; + this.name = name; + this.localName = localOneofName(name); + } + addField(field) { + assert(field.oneof === this, `field ${field.name} not one of ${this.name}`); + this.fields.push(field); + } + findField(localName) { if (!this._lookup) { - this._lookup = Object.create(null); - for (let t = 0; t < this.fields.length; t++) - this._lookup[this.fields[t].localName] = this.fields[t]; + this._lookup = /* @__PURE__ */ Object.create(null); + for (let i = 0; i < this.fields.length; i++) { + this._lookup[this.fields[i].localName] = this.fields[i]; + } } - return this._lookup[n]; + return this._lookup[localName]; } }; -function yT(e, n) { - var t, i, s, m, c, u; - let E = [], - T; - for (let d of typeof e == 'function' ? e() : e) { - let S = d; - if ( - ((S.localName = am(d.name, d.oneof !== void 0)), - (S.jsonName = (t = d.jsonName) !== null && t !== void 0 ? t : BT(d.name)), - (S.repeated = (i = d.repeated) !== null && i !== void 0 ? i : !1), - d.kind == 'scalar' && - (S.L = (s = d.L) !== null && s !== void 0 ? s : M.BIGINT), - (S.delimited = (m = d.delimited) !== null && m !== void 0 ? m : !1), - (S.req = (c = d.req) !== null && c !== void 0 ? c : !1), - (S.opt = (u = d.opt) !== null && u !== void 0 ? u : !1), - d.packed === void 0 && - (n - ? (S.packed = - d.kind == 'enum' || - (d.kind == 'scalar' && d.T != l.BYTES && d.T != l.STRING)) - : (S.packed = !1)), - d.oneof !== void 0) - ) { - let R = typeof d.oneof == 'string' ? d.oneof : d.oneof.name; - ((!T || T.name != R) && (T = new lr(R)), (S.oneof = T), T.addField(S)); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/private/field-normalize.js +function normalizeFieldInfos(fieldInfos, packedByDefault) { + var _a, _b, _c, _d, _e, _f; + const r = []; + let o; + for (const field of typeof fieldInfos == 'function' + ? fieldInfos() + : fieldInfos) { + const f = field; + f.localName = localFieldName(field.name, field.oneof !== void 0); + f.jsonName = + (_a = field.jsonName) !== null && _a !== void 0 + ? _a + : fieldJsonName(field.name); + f.repeated = (_b = field.repeated) !== null && _b !== void 0 ? _b : false; + if (field.kind == 'scalar') { + f.L = (_c = field.L) !== null && _c !== void 0 ? _c : LongType.BIGINT; } - E.push(S); + f.delimited = (_d = field.delimited) !== null && _d !== void 0 ? _d : false; + f.req = (_e = field.req) !== null && _e !== void 0 ? _e : false; + f.opt = (_f = field.opt) !== null && _f !== void 0 ? _f : false; + if (field.packed === void 0) { + if (packedByDefault) { + f.packed = + field.kind == 'enum' || + (field.kind == 'scalar' && + field.T != ScalarType.BYTES && + field.T != ScalarType.STRING); + } else { + f.packed = false; + } + } + if (field.oneof !== void 0) { + const ooname = + typeof field.oneof == 'string' ? field.oneof : field.oneof.name; + if (!o || o.name != ooname) { + o = new InternalOneofInfo(ooname); + } + f.oneof = o; + o.addField(f); + } + r.push(f); } - return E; + return r; } -var a = xT( + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/proto3.js +var proto3 = makeProtoRuntime( 'proto3', - (e) => new ur(e, (n) => yT(n, !0)), - (e) => { - for (let n of e.getType().fields.byMember()) { - if (n.opt) continue; - let t = n.localName, - i = e; - if (n.repeated) { - i[t] = []; + (fields) => { + return new InternalFieldList(fields, (source) => + normalizeFieldInfos(source, true), + ); + }, + // TODO merge with proto2 and initExtensionField, also see initPartial, equals, clone + (target) => { + for (const member of target.getType().fields.byMember()) { + if (member.opt) { continue; } - switch (n.kind) { + const name = member.localName, + t = target; + if (member.repeated) { + t[name] = []; + continue; + } + switch (member.kind) { case 'oneof': - i[t] = { case: void 0 }; + t[name] = { case: void 0 }; break; case 'enum': - i[t] = 0; + t[name] = 0; break; case 'map': - i[t] = {}; + t[name] = {}; break; case 'scalar': - i[t] = y(n.T, n.L); + t[name] = scalarZeroValue(member.T, member.L); break; case 'message': break; @@ -1964,334 +2822,495 @@ var a = xT( } }, ); -var _ = class e extends r { - constructor(n) { - (super(), - (this.seconds = o.zero), - (this.nanos = 0), - a.util.initPartial(n, this)); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/timestamp_pb.js +var Timestamp = class _Timestamp extends Message { + constructor(data) { + super(); + this.seconds = protoInt64.zero; + this.nanos = 0; + proto3.util.initPartial(data, this); } - fromJson(n, t) { - if (typeof n != 'string') + fromJson(json, options) { + if (typeof json !== 'string') { throw new Error( - `cannot decode google.protobuf.Timestamp from JSON: ${a.json.debug(n)}`, + `cannot decode google.protobuf.Timestamp from JSON: ${proto3.json.debug(json)}`, ); - let i = n.match( + } + const matches = json.match( /^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/, ); - if (!i) + if (!matches) { throw new Error( - 'cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string', + `cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string`, ); - let s = Date.parse( - i[1] + - '-' + - i[2] + - '-' + - i[3] + - 'T' + - i[4] + - ':' + - i[5] + - ':' + - i[6] + - (i[8] ? i[8] : 'Z'), - ); - if (Number.isNaN(s)) - throw new Error( - 'cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string', - ); - if ( - s < Date.parse('0001-01-01T00:00:00Z') || - s > Date.parse('9999-12-31T23:59:59Z') - ) - throw new Error( - 'cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive', - ); - return ( - (this.seconds = o.parse(s / 1e3)), - (this.nanos = 0), - i[7] && - (this.nanos = parseInt('1' + i[7] + '0'.repeat(9 - i[7].length)) - 1e9), - this - ); - } - toJson(n) { - let t = Number(this.seconds) * 1e3; - if ( - t < Date.parse('0001-01-01T00:00:00Z') || - t > Date.parse('9999-12-31T23:59:59Z') - ) - throw new Error( - 'cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive', - ); - if (this.nanos < 0) - throw new Error( - 'cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative', - ); - let i = 'Z'; - if (this.nanos > 0) { - let s = (this.nanos + 1e9).toString().substring(1); - s.substring(3) === '000000' - ? (i = '.' + s.substring(0, 3) + 'Z') - : s.substring(6) === '000' - ? (i = '.' + s.substring(0, 6) + 'Z') - : (i = '.' + s + 'Z'); } - return new Date(t).toISOString().replace('.000Z', i); + const ms = Date.parse( + matches[1] + + '-' + + matches[2] + + '-' + + matches[3] + + 'T' + + matches[4] + + ':' + + matches[5] + + ':' + + matches[6] + + (matches[8] ? matches[8] : 'Z'), + ); + if (Number.isNaN(ms)) { + throw new Error( + `cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string`, + ); + } + if ( + ms < Date.parse('0001-01-01T00:00:00Z') || + ms > Date.parse('9999-12-31T23:59:59Z') + ) { + throw new Error( + `cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`, + ); + } + this.seconds = protoInt64.parse(ms / 1e3); + this.nanos = 0; + if (matches[7]) { + this.nanos = + parseInt('1' + matches[7] + '0'.repeat(9 - matches[7].length)) - 1e9; + } + return this; + } + toJson(options) { + const ms = Number(this.seconds) * 1e3; + if ( + ms < Date.parse('0001-01-01T00:00:00Z') || + ms > Date.parse('9999-12-31T23:59:59Z') + ) { + throw new Error( + `cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`, + ); + } + if (this.nanos < 0) { + throw new Error( + `cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative`, + ); + } + let z = 'Z'; + if (this.nanos > 0) { + const nanosStr = (this.nanos + 1e9).toString().substring(1); + if (nanosStr.substring(3) === '000000') { + z = '.' + nanosStr.substring(0, 3) + 'Z'; + } else if (nanosStr.substring(6) === '000') { + z = '.' + nanosStr.substring(0, 6) + 'Z'; + } else { + z = '.' + nanosStr + 'Z'; + } + } + return new Date(ms).toISOString().replace('.000Z', z); } toDate() { return new Date(Number(this.seconds) * 1e3 + Math.ceil(this.nanos / 1e6)); } static now() { - return e.fromDate(new Date()); + return _Timestamp.fromDate(/* @__PURE__ */ new Date()); } - static fromDate(n) { - let t = n.getTime(); - return new e({ - seconds: o.parse(Math.floor(t / 1e3)), - nanos: (t % 1e3) * 1e6, + static fromDate(date) { + const ms = date.getTime(); + return new _Timestamp({ + seconds: protoInt64.parse(Math.floor(ms / 1e3)), + nanos: (ms % 1e3) * 1e6, }); } - static fromBinary(n, t) { - return new e().fromBinary(n, t); + static fromBinary(bytes, options) { + return new _Timestamp().fromBinary(bytes, options); } - static fromJson(n, t) { - return new e().fromJson(n, t); + static fromJson(jsonValue, options) { + return new _Timestamp().fromJson(jsonValue, options); } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); + static fromJsonString(jsonString, options) { + return new _Timestamp().fromJsonString(jsonString, options); } - static equals(n, t) { - return a.util.equals(e, n, t); + static equals(a, b) { + return proto3.util.equals(_Timestamp, a, b); } }; -_.runtime = a; -_.typeName = 'google.protobuf.Timestamp'; -_.fields = a.util.newFieldList(() => [ - { no: 1, name: 'seconds', kind: 'scalar', T: 3 }, - { no: 2, name: 'nanos', kind: 'scalar', T: 5 }, +Timestamp.runtime = proto3; +Timestamp.typeName = 'google.protobuf.Timestamp'; +Timestamp.fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'seconds', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 2, + name: 'nanos', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, ]); -var k = class e extends r { - constructor(n) { - (super(), - (this.seconds = o.zero), - (this.nanos = 0), - a.util.initPartial(n, this)); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/duration_pb.js +var Duration = class _Duration extends Message { + constructor(data) { + super(); + this.seconds = protoInt64.zero; + this.nanos = 0; + proto3.util.initPartial(data, this); } - fromJson(n, t) { - if (typeof n != 'string') + fromJson(json, options) { + if (typeof json !== 'string') { throw new Error( - `cannot decode google.protobuf.Duration from JSON: ${a.json.debug(n)}`, + `cannot decode google.protobuf.Duration from JSON: ${proto3.json.debug(json)}`, ); - let i = n.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/); - if (i === null) + } + const match = json.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/); + if (match === null) { throw new Error( - `cannot decode google.protobuf.Duration from JSON: ${a.json.debug(n)}`, + `cannot decode google.protobuf.Duration from JSON: ${proto3.json.debug(json)}`, ); - let s = Number(i[1]); - if (s > 315576e6 || s < -315576e6) + } + const longSeconds = Number(match[1]); + if (longSeconds > 315576e6 || longSeconds < -315576e6) { throw new Error( - `cannot decode google.protobuf.Duration from JSON: ${a.json.debug(n)}`, + `cannot decode google.protobuf.Duration from JSON: ${proto3.json.debug(json)}`, ); - if (((this.seconds = o.parse(s)), typeof i[2] == 'string')) { - let m = i[2] + '0'.repeat(9 - i[2].length); - ((this.nanos = parseInt(m)), - (s < 0 || Object.is(s, -0)) && (this.nanos = -this.nanos)); + } + this.seconds = protoInt64.parse(longSeconds); + if (typeof match[2] == 'string') { + const nanosStr = match[2] + '0'.repeat(9 - match[2].length); + this.nanos = parseInt(nanosStr); + if (longSeconds < 0 || Object.is(longSeconds, -0)) { + this.nanos = -this.nanos; + } } return this; } - toJson(n) { - if (Number(this.seconds) > 315576e6 || Number(this.seconds) < -315576e6) + toJson(options) { + if (Number(this.seconds) > 315576e6 || Number(this.seconds) < -315576e6) { throw new Error( - 'cannot encode google.protobuf.Duration to JSON: value out of range', + `cannot encode google.protobuf.Duration to JSON: value out of range`, ); - let t = this.seconds.toString(); + } + let text = this.seconds.toString(); if (this.nanos !== 0) { - let i = Math.abs(this.nanos).toString(); - ((i = '0'.repeat(9 - i.length) + i), - i.substring(3) === '000000' - ? (i = i.substring(0, 3)) - : i.substring(6) === '000' && (i = i.substring(0, 6)), - (t += '.' + i), - this.nanos < 0 && Number(this.seconds) == 0 && (t = '-' + t)); + let nanosStr = Math.abs(this.nanos).toString(); + nanosStr = '0'.repeat(9 - nanosStr.length) + nanosStr; + if (nanosStr.substring(3) === '000000') { + nanosStr = nanosStr.substring(0, 3); + } else if (nanosStr.substring(6) === '000') { + nanosStr = nanosStr.substring(0, 6); + } + text += '.' + nanosStr; + if (this.nanos < 0 && Number(this.seconds) == 0) { + text = '-' + text; + } } - return t + 's'; + return text + 's'; } - static fromBinary(n, t) { - return new e().fromBinary(n, t); + static fromBinary(bytes, options) { + return new _Duration().fromBinary(bytes, options); } - static fromJson(n, t) { - return new e().fromJson(n, t); + static fromJson(jsonValue, options) { + return new _Duration().fromJson(jsonValue, options); } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); + static fromJsonString(jsonString, options) { + return new _Duration().fromJsonString(jsonString, options); } - static equals(n, t) { - return a.util.equals(e, n, t); + static equals(a, b) { + return proto3.util.equals(_Duration, a, b); } }; -k.runtime = a; -k.typeName = 'google.protobuf.Duration'; -k.fields = a.util.newFieldList(() => [ - { no: 1, name: 'seconds', kind: 'scalar', T: 3 }, - { no: 2, name: 'nanos', kind: 'scalar', T: 5 }, -]); -var on = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } -}; -on.runtime = a; -on.typeName = 'google.protobuf.Empty'; -on.fields = a.util.newFieldList(() => []); -var Er = class e extends r { - creditType = De.CREDIT_TYPE_UNSPECIFIED; - creditAmount = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.Credits'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'credit_type', kind: 'enum', T: a.getEnumType(De) }, - { no: 2, name: 'credit_amount', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } +Duration.runtime = proto3; +Duration.typeName = 'google.protobuf.Duration'; +Duration.fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'seconds', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ }, - De; -(function (e) { - ((e[(e.CREDIT_TYPE_UNSPECIFIED = 0)] = 'CREDIT_TYPE_UNSPECIFIED'), - (e[(e.GOOGLE_ONE_AI = 1)] = 'GOOGLE_ONE_AI')); -})(De || (De = {})); -a.util.setEnumType( - De, + { + no: 2, + name: 'nanos', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, +]); + +// exa/proto_ts/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/empty_pb.js +var Empty = class _Empty extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static fromBinary(bytes, options) { + return new _Empty().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Empty().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Empty().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Empty, a, b); + } +}; +Empty.runtime = proto3; +Empty.typeName = 'google.protobuf.Empty'; +Empty.fields = proto3.util.newFieldList(() => []); + +// exa/proto_ts/dist/exa/google/internal/cloud/code/v1internal/credits_pb.js +var Credits = class _Credits extends Message { + /** + * The type of credit that was used to pay for LLM inferences. + * + * @generated from field: google.internal.cloud.code.v1internal.Credits.CreditType credit_type = 1; + */ + creditType = Credits_CreditType.CREDIT_TYPE_UNSPECIFIED; + /** + * The amount of credits. What this number represents depends on the context + * (i.e. credits consumed, credits remaining, etc.) + * + * @generated from field: int64 credit_amount = 2; + */ + creditAmount = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.Credits'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'credit_type', + kind: 'enum', + T: proto3.getEnumType(Credits_CreditType), + }, + { + no: 2, + name: 'credit_amount', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _Credits().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Credits().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Credits().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Credits, a, b); + } +}; +var Credits_CreditType; +(function (Credits_CreditType2) { + Credits_CreditType2[(Credits_CreditType2['CREDIT_TYPE_UNSPECIFIED'] = 0)] = + 'CREDIT_TYPE_UNSPECIFIED'; + Credits_CreditType2[(Credits_CreditType2['GOOGLE_ONE_AI'] = 1)] = + 'GOOGLE_ONE_AI'; +})(Credits_CreditType || (Credits_CreditType = {})); +proto3.util.setEnumType( + Credits_CreditType, 'google.internal.cloud.code.v1internal.Credits.CreditType', [ { no: 0, name: 'CREDIT_TYPE_UNSPECIFIED' }, { no: 1, name: 'GOOGLE_ONE_AI' }, ], ); -var hT = class e extends r { - tierId = ''; - cloudaicompanionProject; - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.OnboardUserRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'tier_id', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'cloudaicompanion_project', - kind: 'scalar', - T: 9, - opt: !0, - }, - { no: 3, name: 'metadata', kind: 'message', T: Tr }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - GT = class e extends r { - cloudaicompanionProject; - status; - releaseChannel; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.OnboardUserResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cloudaicompanion_project', kind: 'message', T: sm }, - { no: 4, name: 'status', kind: 'message', T: im, opt: !0 }, - { no: 5, name: 'release_channel', kind: 'message', T: _r, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _r = class e extends r { - type = ke.UNKNOWN; - name = ''; - description = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.ReleaseChannel'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'enum', T: a.getEnumType(ke) }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ke; -(function (e) { - ((e[(e.UNKNOWN = 0)] = 'UNKNOWN'), - (e[(e.STABLE = 1)] = 'STABLE'), - (e[(e.EXPERIMENTAL = 2)] = 'EXPERIMENTAL')); -})(ke || (ke = {})); -a.util.setEnumType( - ke, + +// exa/proto_ts/dist/exa/google/internal/cloud/code/v1internal/onboarding_pb.js +var OnboardUserRequest = class _OnboardUserRequest extends Message { + /** + * ID of the tier (see UserTier) that User is attempting to onboard to + * + * @generated from field: string tier_id = 1; + */ + tierId = ''; + /** + * Required if tier has user_defined_cloudaicompanion_project = true. + * + * @generated from field: optional string cloudaicompanion_project = 2; + */ + cloudaicompanionProject; + /** + * Optional metadata provided by clients for mendel diversion. + * + * @generated from field: google.internal.cloud.code.v1internal.ClientMetadata metadata = 3; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.OnboardUserRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'tier_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'cloudaicompanion_project', + kind: 'scalar', + T: 9, + opt: true, + }, + { no: 3, name: 'metadata', kind: 'message', T: ClientMetadata }, + ]); + static fromBinary(bytes, options) { + return new _OnboardUserRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _OnboardUserRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _OnboardUserRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_OnboardUserRequest, a, b); + } +}; +var OnboardUserResponse = class _OnboardUserResponse extends Message { + /** + * Project that User is onboarded with and should be used by the Client + * (e.g. IDE) + * + * @generated from field: google.internal.cloud.code.v1internal.Project cloudaicompanion_project = 1; + */ + cloudaicompanionProject; + /** + * Status of the OnboardUser call, filled only in case the IDE should + * display informational or warning message. + * + * @generated from field: optional google.internal.cloud.code.v1internal.OnboardUserStatus status = 4; + */ + status; + /** + * The release channel that the current user is opted into. + * + * @generated from field: optional google.internal.cloud.code.v1internal.ReleaseChannel release_channel = 5; + */ + releaseChannel; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.OnboardUserResponse'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'cloudaicompanion_project', kind: 'message', T: Project }, + { no: 4, name: 'status', kind: 'message', T: OnboardUserStatus, opt: true }, + { + no: 5, + name: 'release_channel', + kind: 'message', + T: ReleaseChannel, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _OnboardUserResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _OnboardUserResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _OnboardUserResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_OnboardUserResponse, a, b); + } +}; +var ReleaseChannel = class _ReleaseChannel extends Message { + /** + * The type of the release channel. + * + * @generated from field: google.internal.cloud.code.v1internal.ReleaseChannel.ChannelType type = 1; + */ + type = ReleaseChannel_ChannelType.UNKNOWN; + /** + * The name of the release channel. E.g. "Experimental Channel", "Stable + * Channel". + * + * @generated from field: string name = 2; + */ + name = ''; + /** + * A description message to show on-hover or focus. + * + * @generated from field: string description = 3; + */ + description = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.ReleaseChannel'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(ReleaseChannel_ChannelType), + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ReleaseChannel().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ReleaseChannel().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ReleaseChannel().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ReleaseChannel, a, b); + } +}; +var ReleaseChannel_ChannelType; +(function (ReleaseChannel_ChannelType2) { + ReleaseChannel_ChannelType2[(ReleaseChannel_ChannelType2['UNKNOWN'] = 0)] = + 'UNKNOWN'; + ReleaseChannel_ChannelType2[(ReleaseChannel_ChannelType2['STABLE'] = 1)] = + 'STABLE'; + ReleaseChannel_ChannelType2[ + (ReleaseChannel_ChannelType2['EXPERIMENTAL'] = 2) + ] = 'EXPERIMENTAL'; +})(ReleaseChannel_ChannelType || (ReleaseChannel_ChannelType = {})); +proto3.util.setEnumType( + ReleaseChannel_ChannelType, 'google.internal.cloud.code.v1internal.ReleaseChannel.ChannelType', [ { no: 0, name: 'UNKNOWN' }, @@ -2299,48 +3318,78 @@ a.util.setEnumType( { no: 2, name: 'EXPERIMENTAL' }, ], ); -var bT = class e extends r { - cloudaicompanionProject; - metadata; - mode; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.LoadCodeAssistRequest'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'cloudaicompanion_project', - kind: 'scalar', - T: 9, - opt: !0, - }, - { no: 2, name: 'metadata', kind: 'message', T: Tr }, - { no: 3, name: 'mode', kind: 'enum', T: a.getEnumType(dr), opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dr; -(function (e) { - ((e[(e.MODE_UNSPECIFIED = 0)] = 'MODE_UNSPECIFIED'), - (e[(e.FULL_ELIGIBILITY_CHECK = 1)] = 'FULL_ELIGIBILITY_CHECK'), - (e[(e.HEALTH_CHECK = 2)] = 'HEALTH_CHECK')); -})(dr || (dr = {})); -a.util.setEnumType( - dr, +var LoadCodeAssistRequest = class _LoadCodeAssistRequest extends Message { + /** + * project id saved on the client's side previously chosen by the user. + * + * @generated from field: optional string cloudaicompanion_project = 1; + */ + cloudaicompanionProject; + /** + * Optional metadata provided by clients for mendel diversion. + * + * @generated from field: google.internal.cloud.code.v1internal.ClientMetadata metadata = 2; + */ + metadata; + /** + * Mode of the request. This is used to differentiate between different + * requests. For example, health check requests from the IDE + * polling the server for tier status skip some of the checks. + * + * @generated from field: optional google.internal.cloud.code.v1internal.LoadCodeAssistRequest.Mode mode = 3; + */ + mode; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'google.internal.cloud.code.v1internal.LoadCodeAssistRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cloudaicompanion_project', + kind: 'scalar', + T: 9, + opt: true, + }, + { no: 2, name: 'metadata', kind: 'message', T: ClientMetadata }, + { + no: 3, + name: 'mode', + kind: 'enum', + T: proto3.getEnumType(LoadCodeAssistRequest_Mode), + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _LoadCodeAssistRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LoadCodeAssistRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LoadCodeAssistRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LoadCodeAssistRequest, a, b); + } +}; +var LoadCodeAssistRequest_Mode; +(function (LoadCodeAssistRequest_Mode2) { + LoadCodeAssistRequest_Mode2[ + (LoadCodeAssistRequest_Mode2['MODE_UNSPECIFIED'] = 0) + ] = 'MODE_UNSPECIFIED'; + LoadCodeAssistRequest_Mode2[ + (LoadCodeAssistRequest_Mode2['FULL_ELIGIBILITY_CHECK'] = 1) + ] = 'FULL_ELIGIBILITY_CHECK'; + LoadCodeAssistRequest_Mode2[ + (LoadCodeAssistRequest_Mode2['HEALTH_CHECK'] = 2) + ] = 'HEALTH_CHECK'; +})(LoadCodeAssistRequest_Mode || (LoadCodeAssistRequest_Mode = {})); +proto3.util.setEnumType( + LoadCodeAssistRequest_Mode, 'google.internal.cloud.code.v1internal.LoadCodeAssistRequest.Mode', [ { no: 0, name: 'MODE_UNSPECIFIED' }, @@ -2348,61 +3397,187 @@ a.util.setEnumType( { no: 2, name: 'HEALTH_CHECK' }, ], ); -var rm = class e extends r { - reasonCode = ge.UNKNOWN; - reasonMessage = ''; - tierId = ''; - tierName = ''; - validationErrorMessage = ''; - validationUrlLinkText = ''; - validationUrl = ''; - validationLearnMoreLinkText = ''; - validationLearnMoreUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.IneligibleTier'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'reason_code', kind: 'enum', T: a.getEnumType(ge) }, - { no: 2, name: 'reason_message', kind: 'scalar', T: 9 }, - { no: 3, name: 'tier_id', kind: 'scalar', T: 9 }, - { no: 4, name: 'tier_name', kind: 'scalar', T: 9 }, - { no: 5, name: 'validation_error_message', kind: 'scalar', T: 9 }, - { no: 6, name: 'validation_url_link_text', kind: 'scalar', T: 9 }, - { no: 7, name: 'validation_url', kind: 'scalar', T: 9 }, - { no: 8, name: 'validation_learn_more_link_text', kind: 'scalar', T: 9 }, - { no: 9, name: 'validation_learn_more_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ge; -(function (e) { - ((e[(e.UNKNOWN = 0)] = 'UNKNOWN'), - (e[(e.INELIGIBLE_ACCOUNT = 1)] = 'INELIGIBLE_ACCOUNT'), - (e[(e.UNKNOWN_LOCATION = 2)] = 'UNKNOWN_LOCATION'), - (e[(e.UNSUPPORTED_LOCATION = 3)] = 'UNSUPPORTED_LOCATION'), - (e[(e.RESTRICTED_NETWORK = 4)] = 'RESTRICTED_NETWORK'), - (e[(e.RESTRICTED_AGE = 5)] = 'RESTRICTED_AGE'), - (e[(e.NON_USER_ACCOUNT = 6)] = 'NON_USER_ACCOUNT'), - (e[(e.DASHER_USER = 7)] = 'DASHER_USER'), - (e[(e.BYOID_USER = 8)] = 'BYOID_USER'), - (e[(e.RESTRICTED_DASHER_USER = 9)] = 'RESTRICTED_DASHER_USER'), - (e[(e.VALIDATION_REQUIRED = 10)] = 'VALIDATION_REQUIRED')); -})(ge || (ge = {})); -a.util.setEnumType( - ge, +var IneligibleTier = class _IneligibleTier extends Message { + /** + * mnemonic code representing the reason for in-eligibility. + * + * @generated from field: google.internal.cloud.code.v1internal.IneligibleTier.IneligibleTierReasonCodes reason_code = 1; + */ + reasonCode = IneligibleTier_IneligibleTierReasonCodes.UNKNOWN; + /** + * text message representing the reason for in-eligibility. + * + * @generated from field: string reason_message = 2; + */ + reasonMessage = ''; + /** + * id of the tier. + * + * @generated from field: string tier_id = 3; + */ + tierId = ''; + /** + * human readable name of the tier. + * + * @generated from field: string tier_name = 4; + */ + tierName = ''; + /** + * the validation error message. It includes all descriptions and all urls. + * reason_message uses validation_error_message as a parameter in + * formatting its final message. + * + * @generated from field: string validation_error_message = 5; + */ + validationErrorMessage = ''; + /** + * text to display for the validation url link. + * + * @generated from field: string validation_url_link_text = 6; + */ + validationUrlLinkText = ''; + /** + * url to the validation page. + * + * @generated from field: string validation_url = 7; + */ + validationUrl = ''; + /** + * text to display for the learn more link. + * + * @generated from field: string validation_learn_more_link_text = 8; + */ + validationLearnMoreLinkText = ''; + /** + * url to the learn more page. + * + * @generated from field: string validation_learn_more_url = 9; + */ + validationLearnMoreUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.IneligibleTier'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'reason_code', + kind: 'enum', + T: proto3.getEnumType(IneligibleTier_IneligibleTierReasonCodes), + }, + { + no: 2, + name: 'reason_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'tier_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'tier_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'validation_error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'validation_url_link_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'validation_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'validation_learn_more_link_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'validation_learn_more_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IneligibleTier().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IneligibleTier().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IneligibleTier().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IneligibleTier, a, b); + } +}; +var IneligibleTier_IneligibleTierReasonCodes; +(function (IneligibleTier_IneligibleTierReasonCodes2) { + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['UNKNOWN'] = 0) + ] = 'UNKNOWN'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['INELIGIBLE_ACCOUNT'] = 1) + ] = 'INELIGIBLE_ACCOUNT'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['UNKNOWN_LOCATION'] = 2) + ] = 'UNKNOWN_LOCATION'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['UNSUPPORTED_LOCATION'] = 3) + ] = 'UNSUPPORTED_LOCATION'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['RESTRICTED_NETWORK'] = 4) + ] = 'RESTRICTED_NETWORK'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['RESTRICTED_AGE'] = 5) + ] = 'RESTRICTED_AGE'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['NON_USER_ACCOUNT'] = 6) + ] = 'NON_USER_ACCOUNT'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['DASHER_USER'] = 7) + ] = 'DASHER_USER'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['BYOID_USER'] = 8) + ] = 'BYOID_USER'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['RESTRICTED_DASHER_USER'] = 9) + ] = 'RESTRICTED_DASHER_USER'; + IneligibleTier_IneligibleTierReasonCodes2[ + (IneligibleTier_IneligibleTierReasonCodes2['VALIDATION_REQUIRED'] = 10) + ] = 'VALIDATION_REQUIRED'; +})( + IneligibleTier_IneligibleTierReasonCodes || + (IneligibleTier_IneligibleTierReasonCodes = {}), +); +proto3.util.setEnumType( + IneligibleTier_IneligibleTierReasonCodes, 'google.internal.cloud.code.v1internal.IneligibleTier.IneligibleTierReasonCodes', [ { no: 0, name: 'UNKNOWN' }, @@ -2418,63 +3593,162 @@ a.util.setEnumType( { no: 10, name: 'VALIDATION_REQUIRED' }, ], ); -var Tr = class e extends r { - ideType = we.IDE_UNSPECIFIED; - ideVersion = ''; - pluginVersion = ''; - platform = Je.PLATFORM_UNSPECIFIED; - updateChannel = ''; - duetProject = ''; - pluginType = xe.PLUGIN_UNSPECIFIED; - ideName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.ClientMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'ide_type', kind: 'enum', T: a.getEnumType(we) }, - { no: 2, name: 'ide_version', kind: 'scalar', T: 9 }, - { no: 3, name: 'plugin_version', kind: 'scalar', T: 9 }, - { no: 4, name: 'platform', kind: 'enum', T: a.getEnumType(Je) }, - { no: 5, name: 'update_channel', kind: 'scalar', T: 9 }, - { no: 6, name: 'duet_project', kind: 'scalar', T: 9 }, - { no: 7, name: 'plugin_type', kind: 'enum', T: a.getEnumType(xe) }, - { no: 8, name: 'ide_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - we; -(function (e) { - ((e[(e.IDE_UNSPECIFIED = 0)] = 'IDE_UNSPECIFIED'), - (e[(e.VSCODE = 1)] = 'VSCODE'), - (e[(e.INTELLIJ = 2)] = 'INTELLIJ'), - (e[(e.VSCODE_CLOUD_WORKSTATION = 3)] = 'VSCODE_CLOUD_WORKSTATION'), - (e[(e.INTELLIJ_CLOUD_WORKSTATION = 4)] = 'INTELLIJ_CLOUD_WORKSTATION'), - (e[(e.CLOUD_SHELL = 5)] = 'CLOUD_SHELL'), - (e[(e.CIDER = 6)] = 'CIDER'), - (e[(e.CLOUD_RUN = 7)] = 'CLOUD_RUN'), - (e[(e.ANDROID_STUDIO = 8)] = 'ANDROID_STUDIO'), - (e[(e.ANTIGRAVITY = 9)] = 'ANTIGRAVITY'), - (e[(e.JETSKI = 10)] = 'JETSKI'), - (e[(e.COLAB = 11)] = 'COLAB'), - (e[(e.FIREBASE = 12)] = 'FIREBASE'), - (e[(e.CHROME_DEVTOOLS = 13)] = 'CHROME_DEVTOOLS'), - (e[(e.GEMINI_CLI = 14)] = 'GEMINI_CLI')); -})(we || (we = {})); -a.util.setEnumType( - we, +var ClientMetadata = class _ClientMetadata extends Message { + /** + * Type of the IDE. This is less granular than ide_name. + * + * @generated from field: google.internal.cloud.code.v1internal.ClientMetadata.IdeType ide_type = 1; + */ + ideType = ClientMetadata_IdeType.IDE_UNSPECIFIED; + /** + * IDE version, format is different per IDE. + * + * @generated from field: string ide_version = 2; + */ + ideVersion = ''; + /** + * Plugin version, format is different per plugin. + * + * @generated from field: string plugin_version = 3; + */ + pluginVersion = ''; + /** + * The platform the client is running on. + * + * @generated from field: google.internal.cloud.code.v1internal.ClientMetadata.Platform platform = 4; + */ + platform = ClientMetadata_Platform.PLATFORM_UNSPECIFIED; + /** + * Update channel in use by the client. + * + * @generated from field: string update_channel = 5; + */ + updateChannel = ''; + /** + * Duet project ID or number. + * + * @generated from field: string duet_project = 6; + */ + duetProject = ''; + /** + * Type of the plugin. + * + * @generated from field: google.internal.cloud.code.v1internal.ClientMetadata.PluginType plugin_type = 7; + */ + pluginType = ClientMetadata_PluginType.PLUGIN_UNSPECIFIED; + /** + * IDE name. For example, "PyCharm" or "CLion". More granular than ide_type. + * + * @generated from field: string ide_name = 8; + */ + ideName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.ClientMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'ide_type', + kind: 'enum', + T: proto3.getEnumType(ClientMetadata_IdeType), + }, + { + no: 2, + name: 'ide_version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'plugin_version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'platform', + kind: 'enum', + T: proto3.getEnumType(ClientMetadata_Platform), + }, + { + no: 5, + name: 'update_channel', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'duet_project', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'plugin_type', + kind: 'enum', + T: proto3.getEnumType(ClientMetadata_PluginType), + }, + { + no: 8, + name: 'ide_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ClientMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClientMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClientMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ClientMetadata, a, b); + } +}; +var ClientMetadata_IdeType; +(function (ClientMetadata_IdeType2) { + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['IDE_UNSPECIFIED'] = 0)] = + 'IDE_UNSPECIFIED'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['VSCODE'] = 1)] = 'VSCODE'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['INTELLIJ'] = 2)] = + 'INTELLIJ'; + ClientMetadata_IdeType2[ + (ClientMetadata_IdeType2['VSCODE_CLOUD_WORKSTATION'] = 3) + ] = 'VSCODE_CLOUD_WORKSTATION'; + ClientMetadata_IdeType2[ + (ClientMetadata_IdeType2['INTELLIJ_CLOUD_WORKSTATION'] = 4) + ] = 'INTELLIJ_CLOUD_WORKSTATION'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['CLOUD_SHELL'] = 5)] = + 'CLOUD_SHELL'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['CIDER'] = 6)] = 'CIDER'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['CLOUD_RUN'] = 7)] = + 'CLOUD_RUN'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['ANDROID_STUDIO'] = 8)] = + 'ANDROID_STUDIO'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['ANTIGRAVITY'] = 9)] = + 'ANTIGRAVITY'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['JETSKI'] = 10)] = 'JETSKI'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['COLAB'] = 11)] = 'COLAB'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['FIREBASE'] = 12)] = + 'FIREBASE'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['CHROME_DEVTOOLS'] = 13)] = + 'CHROME_DEVTOOLS'; + ClientMetadata_IdeType2[(ClientMetadata_IdeType2['GEMINI_CLI'] = 14)] = + 'GEMINI_CLI'; +})(ClientMetadata_IdeType || (ClientMetadata_IdeType = {})); +proto3.util.setEnumType( + ClientMetadata_IdeType, 'google.internal.cloud.code.v1internal.ClientMetadata.IdeType', [ { no: 0, name: 'IDE_UNSPECIFIED' }, @@ -2494,17 +3768,24 @@ a.util.setEnumType( { no: 14, name: 'GEMINI_CLI' }, ], ); -var Je; -(function (e) { - ((e[(e.PLATFORM_UNSPECIFIED = 0)] = 'PLATFORM_UNSPECIFIED'), - (e[(e.DARWIN_AMD64 = 1)] = 'DARWIN_AMD64'), - (e[(e.DARWIN_ARM64 = 2)] = 'DARWIN_ARM64'), - (e[(e.LINUX_AMD64 = 3)] = 'LINUX_AMD64'), - (e[(e.LINUX_ARM64 = 4)] = 'LINUX_ARM64'), - (e[(e.WINDOWS_AMD64 = 5)] = 'WINDOWS_AMD64')); -})(Je || (Je = {})); -a.util.setEnumType( - Je, +var ClientMetadata_Platform; +(function (ClientMetadata_Platform2) { + ClientMetadata_Platform2[ + (ClientMetadata_Platform2['PLATFORM_UNSPECIFIED'] = 0) + ] = 'PLATFORM_UNSPECIFIED'; + ClientMetadata_Platform2[(ClientMetadata_Platform2['DARWIN_AMD64'] = 1)] = + 'DARWIN_AMD64'; + ClientMetadata_Platform2[(ClientMetadata_Platform2['DARWIN_ARM64'] = 2)] = + 'DARWIN_ARM64'; + ClientMetadata_Platform2[(ClientMetadata_Platform2['LINUX_AMD64'] = 3)] = + 'LINUX_AMD64'; + ClientMetadata_Platform2[(ClientMetadata_Platform2['LINUX_ARM64'] = 4)] = + 'LINUX_ARM64'; + ClientMetadata_Platform2[(ClientMetadata_Platform2['WINDOWS_AMD64'] = 5)] = + 'WINDOWS_AMD64'; +})(ClientMetadata_Platform || (ClientMetadata_Platform = {})); +proto3.util.setEnumType( + ClientMetadata_Platform, 'google.internal.cloud.code.v1internal.ClientMetadata.Platform', [ { no: 0, name: 'PLATFORM_UNSPECIFIED' }, @@ -2515,17 +3796,26 @@ a.util.setEnumType( { no: 5, name: 'WINDOWS_AMD64' }, ], ); -var xe; -(function (e) { - ((e[(e.PLUGIN_UNSPECIFIED = 0)] = 'PLUGIN_UNSPECIFIED'), - (e[(e.CLOUD_CODE = 1)] = 'CLOUD_CODE'), - (e[(e.GEMINI = 2)] = 'GEMINI'), - (e[(e.AIPLUGIN_INTELLIJ = 3)] = 'AIPLUGIN_INTELLIJ'), - (e[(e.AIPLUGIN_STUDIO = 4)] = 'AIPLUGIN_STUDIO'), - (e[(e.PANTHEON = 6)] = 'PANTHEON')); -})(xe || (xe = {})); -a.util.setEnumType( - xe, +var ClientMetadata_PluginType; +(function (ClientMetadata_PluginType2) { + ClientMetadata_PluginType2[ + (ClientMetadata_PluginType2['PLUGIN_UNSPECIFIED'] = 0) + ] = 'PLUGIN_UNSPECIFIED'; + ClientMetadata_PluginType2[(ClientMetadata_PluginType2['CLOUD_CODE'] = 1)] = + 'CLOUD_CODE'; + ClientMetadata_PluginType2[(ClientMetadata_PluginType2['GEMINI'] = 2)] = + 'GEMINI'; + ClientMetadata_PluginType2[ + (ClientMetadata_PluginType2['AIPLUGIN_INTELLIJ'] = 3) + ] = 'AIPLUGIN_INTELLIJ'; + ClientMetadata_PluginType2[ + (ClientMetadata_PluginType2['AIPLUGIN_STUDIO'] = 4) + ] = 'AIPLUGIN_STUDIO'; + ClientMetadata_PluginType2[(ClientMetadata_PluginType2['PANTHEON'] = 6)] = + 'PANTHEON'; +})(ClientMetadata_PluginType || (ClientMetadata_PluginType = {})); +proto3.util.setEnumType( + ClientMetadata_PluginType, 'google.internal.cloud.code.v1internal.ClientMetadata.PluginType', [ { no: 0, name: 'PLUGIN_UNSPECIFIED' }, @@ -2536,68 +3826,148 @@ a.util.setEnumType( { no: 6, name: 'PANTHEON' }, ], ); -var sm = class e extends r { - id = ''; - name = ''; - projectNumber = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.Project'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'project_number', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - im = class e extends r { - statusCode = Ue.DEFAULT; - displayMessage = ''; - messageTitle = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.OnboardUserStatus'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'status_code', kind: 'enum', T: a.getEnumType(Ue) }, - { no: 2, name: 'display_message', kind: 'scalar', T: 9 }, - { no: 4, name: 'message_title', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ue; -(function (e) { - ((e[(e.DEFAULT = 0)] = 'DEFAULT'), - (e[(e.NOTICE = 1)] = 'NOTICE'), - (e[(e.WARNING = 2)] = 'WARNING')); -})(Ue || (Ue = {})); -a.util.setEnumType( - Ue, +var Project = class _Project extends Message { + /** + * The unique, user-assigned ID of the Project. + * Example: `tokyo-rain-123` + * + * @generated from field: string id = 1; + */ + id = ''; + /** + * The optional user-assigned display name of the Project. + * When present it must be between 4 to 30 characters. + * Allowed characters are: lowercase and uppercase letters, numbers, + * hyphen, single-quote, double-quote, space, and exclamation point. + * + * Example: `My Project` + * + * Read-write. + * + * @generated from field: string name = 2; + */ + name = ''; + /** + * GCP project number of the project. + * + * @generated from field: int64 project_number = 3; + */ + projectNumber = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.Project'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'project_number', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _Project().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Project().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Project().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Project, a, b); + } +}; +var OnboardUserStatus = class _OnboardUserStatus extends Message { + /** + * Status code of the message. + * + * @generated from field: google.internal.cloud.code.v1internal.OnboardUserStatus.StatusCode status_code = 1; + */ + statusCode = OnboardUserStatus_StatusCode.DEFAULT; + /** + * The literal message to display on the IDE side. + * + * @generated from field: string display_message = 2; + */ + displayMessage = ''; + /** + * Title of the message to display on the IDE side. + * + * @generated from field: string message_title = 4; + */ + messageTitle = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.OnboardUserStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'status_code', + kind: 'enum', + T: proto3.getEnumType(OnboardUserStatus_StatusCode), + }, + { + no: 2, + name: 'display_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'message_title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _OnboardUserStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _OnboardUserStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _OnboardUserStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_OnboardUserStatus, a, b); + } +}; +var OnboardUserStatus_StatusCode; +(function (OnboardUserStatus_StatusCode2) { + OnboardUserStatus_StatusCode2[ + (OnboardUserStatus_StatusCode2['DEFAULT'] = 0) + ] = 'DEFAULT'; + OnboardUserStatus_StatusCode2[(OnboardUserStatus_StatusCode2['NOTICE'] = 1)] = + 'NOTICE'; + OnboardUserStatus_StatusCode2[ + (OnboardUserStatus_StatusCode2['WARNING'] = 2) + ] = 'WARNING'; +})(OnboardUserStatus_StatusCode || (OnboardUserStatus_StatusCode = {})); +proto3.util.setEnumType( + OnboardUserStatus_StatusCode, 'google.internal.cloud.code.v1internal.OnboardUserStatus.StatusCode', [ { no: 0, name: 'DEFAULT' }, @@ -2605,154 +3975,369 @@ a.util.setEnumType( { no: 2, name: 'WARNING' }, ], ); -var qT = class e extends r { - currentTier; - allowedTiers = []; - cloudaicompanionProject; - ineligibleTiers = []; - gcpManaged; - manageSubscriptionUri; - releaseChannel; - upgradeSubscriptionUri; - geminiCodeAssistSetting; - g1Tier; - paidTier; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.LoadCodeAssistResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'current_tier', kind: 'message', T: Rn }, - { no: 2, name: 'allowed_tiers', kind: 'message', T: Rn, repeated: !0 }, - { - no: 3, - name: 'cloudaicompanion_project', - kind: 'scalar', - T: 9, - opt: !0, - }, - { no: 5, name: 'ineligible_tiers', kind: 'message', T: rm, repeated: !0 }, - { no: 6, name: 'gcp_managed', kind: 'scalar', T: 8, opt: !0 }, - { no: 7, name: 'manage_subscription_uri', kind: 'scalar', T: 9, opt: !0 }, - { no: 8, name: 'release_channel', kind: 'message', T: _r, opt: !0 }, - { - no: 9, - name: 'upgrade_subscription_uri', - kind: 'scalar', - T: 9, - opt: !0, - }, - { - no: 10, - name: 'gemini_code_assist_setting', - kind: 'message', - T: mm, - opt: !0, - }, - { no: 11, name: 'g1_tier', kind: 'scalar', T: 9, opt: !0 }, - { no: 12, name: 'paid_tier', kind: 'message', T: Rn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Rn = class e extends r { - id = ''; - name = ''; - description = ''; - userDefinedCloudaicompanionProject = !1; - privacyNotice; - isDefault = !1; - upgradeSubscriptionUri; - upgradeSubscriptionText; - upgradeButtonText; - clientExperienceTag; - upgradeSubscriptionType; - usesGcpTos = !1; - availableCredits = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.UserTier'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - { - no: 4, - name: 'user_defined_cloudaicompanion_project', - kind: 'scalar', - T: 8, - }, - { no: 5, name: 'privacy_notice', kind: 'message', T: om }, - { no: 6, name: 'is_default', kind: 'scalar', T: 8 }, - { - no: 7, - name: 'upgrade_subscription_uri', - kind: 'scalar', - T: 9, - opt: !0, - }, - { - no: 8, - name: 'upgrade_subscription_text', - kind: 'scalar', - T: 9, - opt: !0, - }, - { no: 11, name: 'upgrade_button_text', kind: 'scalar', T: 9, opt: !0 }, - { no: 12, name: 'client_experience_tag', kind: 'scalar', T: 9, opt: !0 }, - { - no: 9, - name: 'upgrade_subscription_type', - kind: 'enum', - T: a.getEnumType(fr), - opt: !0, - }, - { no: 13, name: 'uses_gcp_tos', kind: 'scalar', T: 8 }, - { - no: 14, - name: 'available_credits', - kind: 'message', - T: Er, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fr; -(function (e) { - ((e[(e.UPGRADE_TYPE_UNSPECIFIED = 0)] = 'UPGRADE_TYPE_UNSPECIFIED'), - (e[(e.GDP = 1)] = 'GDP'), - (e[(e.GOOGLE_ONE = 2)] = 'GOOGLE_ONE'), - (e[(e.GDP_HELIUM = 3)] = 'GDP_HELIUM'), - (e[(e.GOOGLE_ONE_HELIUM = 4)] = 'GOOGLE_ONE_HELIUM')); -})(fr || (fr = {})); -a.util.setEnumType( - fr, +var LoadCodeAssistResponse = class _LoadCodeAssistResponse extends Message { + /** + * POST PUBLIC PREVIEW: User's current tier; not set if this is not a known + * user + * + * @generated from field: google.internal.cloud.code.v1internal.UserTier current_tier = 1; + */ + currentTier; + /** + * Allowed tiers for this user + * + * @generated from field: repeated google.internal.cloud.code.v1internal.UserTier allowed_tiers = 2; + */ + allowedTiers = []; + /** + * The project that client should pass in calls to Gemini Code Assist. This + * may be overridden by the user. + * This field is non-empty if either: + * 1. The user is already onboarded to free tier - then it contains the free + * tier project ID. + * 2. The LoadCodeAssistRequest contained cloudaicompanion_project and the + * user has all necessary permissions for that project - then it contains + * the project ID from the request. + * + * @generated from field: optional string cloudaicompanion_project = 3; + */ + cloudaicompanionProject; + /** + * List of tiers which user is not eligible for with reason text & reason + * code. + * + * @generated from field: repeated google.internal.cloud.code.v1internal.IneligibleTier ineligible_tiers = 5; + */ + ineligibleTiers = []; + /** + * Indicates whether the cloudaicompanion_project is a GCP project that is + * managed directly by the user, or if it is managed on their behalf, such as + * EasyGCP. IDE extensions may use this field to decide whether to direct + * users to Pantheon or to the GCA standalone web UI. + * + * @generated from field: optional bool gcp_managed = 6; + */ + gcpManaged; + /** + * URI for the user to manage their Gemini Code Assist subscription. + * If this field is not set, the user does not have a subscription or + * client should not show the manage subscription option. + * + * @generated from field: optional string manage_subscription_uri = 7; + */ + manageSubscriptionUri; + /** + * The release channel that the current user is opted into. This value is not + * available if current_tier is not set. + * + * @generated from field: optional google.internal.cloud.code.v1internal.ReleaseChannel release_channel = 8; + */ + releaseChannel; + /** + * URI for the user to upgrade subscription to one of the paid tiers. + * If this field is not set, the user does not have a subscription or + * client should not show the upgrade subscription option. + * + * @generated from field: optional string upgrade_subscription_uri = 9; + */ + upgradeSubscriptionUri; + /** + * Settings fetched from the backend. + * + * @generated from field: optional google.internal.cloud.code.v1internal.GeminiCodeAssistSetting gemini_code_assist_setting = 10; + */ + geminiCodeAssistSetting; + /** + * This is either empty, g1-pro-tier, or g1-ultra-tier. + * + * @generated from field: optional string g1_tier = 11; + */ + g1Tier; + /** + * Exact tier the user is on. This may be more accurate than `current_tier` + * which historically only supported two values: free and standard. + * + * @generated from field: google.internal.cloud.code.v1internal.UserTier paid_tier = 12; + */ + paidTier; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'google.internal.cloud.code.v1internal.LoadCodeAssistResponse'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'current_tier', kind: 'message', T: UserTier }, + { + no: 2, + name: 'allowed_tiers', + kind: 'message', + T: UserTier, + repeated: true, + }, + { + no: 3, + name: 'cloudaicompanion_project', + kind: 'scalar', + T: 9, + opt: true, + }, + { + no: 5, + name: 'ineligible_tiers', + kind: 'message', + T: IneligibleTier, + repeated: true, + }, + { no: 6, name: 'gcp_managed', kind: 'scalar', T: 8, opt: true }, + { no: 7, name: 'manage_subscription_uri', kind: 'scalar', T: 9, opt: true }, + { + no: 8, + name: 'release_channel', + kind: 'message', + T: ReleaseChannel, + opt: true, + }, + { + no: 9, + name: 'upgrade_subscription_uri', + kind: 'scalar', + T: 9, + opt: true, + }, + { + no: 10, + name: 'gemini_code_assist_setting', + kind: 'message', + T: GeminiCodeAssistSetting, + opt: true, + }, + { no: 11, name: 'g1_tier', kind: 'scalar', T: 9, opt: true }, + { no: 12, name: 'paid_tier', kind: 'message', T: UserTier }, + ]); + static fromBinary(bytes, options) { + return new _LoadCodeAssistResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LoadCodeAssistResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LoadCodeAssistResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LoadCodeAssistResponse, a, b); + } +}; +var UserTier = class _UserTier extends Message { + /** + * ID of this tier + * + * @generated from field: string id = 1; + */ + id = ''; + /** + * Short name for this tier; shown in the client UI + * + * @generated from field: string name = 2; + */ + name = ''; + /** + * Brief description of this tier; shown in the client UI + * + * @generated from field: string description = 3; + */ + description = ''; + /** + * Indicates for this tier type if a Gemini service-enabled project needs to + * be managed by the user. + * If set to false, the backend will handle the project creation, and details + * about the project need not be surfaced to the end user. + * If set to true, the IDE client needs users to select a project and provide + * it to the backend in their requests to the OnboardUser rpc. + * + * @generated from field: bool user_defined_cloudaicompanion_project = 4; + */ + userDefinedCloudaicompanionProject = false; + /** + * The privacy notice to be shown to the User + * + * @generated from field: google.internal.cloud.code.v1internal.UserTier.PrivacyNotice privacy_notice = 5; + */ + privacyNotice; + /** + * Indicates if this tier should be treated as default by the IDE + * Only 1 tier can be default. If auto-onboarding, this tier is the one to + * auto-onboard to. If User is presented with option to choose tiers, the one + * with the default flag is the preselected one. + * + * @generated from field: bool is_default = 6; + */ + isDefault = false; + /** + * URI for the user to upgrade subscription to one of the paid tiers. + * If this field is not set, the client should not show the upgrade + * subscription option. + * + * @generated from field: optional string upgrade_subscription_uri = 7; + */ + upgradeSubscriptionUri; + /** + * Text to display for the upgrade subscription notification. If this field is + * not set, the client should not show the upgrade subscription option. + * + * @generated from field: optional string upgrade_subscription_text = 8; + */ + upgradeSubscriptionText; + /** + * Text to display for the upgrade button. If this field is not set, the + * client will show the text "Upgrade". + * + * @generated from field: optional string upgrade_button_text = 11; + */ + upgradeButtonText; + /** + * Text to display client-side UI tag. For Antigravity, this is used + * to display "Preview" for Workspace users. + * + * @generated from field: optional string client_experience_tag = 12; + */ + clientExperienceTag; + /** + * The type of upgrade offered to the user. This is used to expand the events + * with the type of upgrade. + * + * @generated from field: optional google.internal.cloud.code.v1internal.UserTier.UpgradeType upgrade_subscription_type = 9; + */ + upgradeSubscriptionType; + /** + * Indicates if this tier uses the Google Cloud Platform Terms of Service. + * + * @generated from field: bool uses_gcp_tos = 13; + */ + usesGcpTos = false; + /** + * The credits available to the user for this tier. + * This is used to display the number of credits remaining to the user in the + * client UI. + * + * @generated from field: repeated google.internal.cloud.code.v1internal.Credits available_credits = 14; + */ + availableCredits = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.UserTier'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'user_defined_cloudaicompanion_project', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'privacy_notice', + kind: 'message', + T: UserTier_PrivacyNotice, + }, + { + no: 6, + name: 'is_default', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'upgrade_subscription_uri', + kind: 'scalar', + T: 9, + opt: true, + }, + { + no: 8, + name: 'upgrade_subscription_text', + kind: 'scalar', + T: 9, + opt: true, + }, + { no: 11, name: 'upgrade_button_text', kind: 'scalar', T: 9, opt: true }, + { no: 12, name: 'client_experience_tag', kind: 'scalar', T: 9, opt: true }, + { + no: 9, + name: 'upgrade_subscription_type', + kind: 'enum', + T: proto3.getEnumType(UserTier_UpgradeType), + opt: true, + }, + { + no: 13, + name: 'uses_gcp_tos', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'available_credits', + kind: 'message', + T: Credits, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _UserTier().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserTier().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserTier().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserTier, a, b); + } +}; +var UserTier_UpgradeType; +(function (UserTier_UpgradeType2) { + UserTier_UpgradeType2[ + (UserTier_UpgradeType2['UPGRADE_TYPE_UNSPECIFIED'] = 0) + ] = 'UPGRADE_TYPE_UNSPECIFIED'; + UserTier_UpgradeType2[(UserTier_UpgradeType2['GDP'] = 1)] = 'GDP'; + UserTier_UpgradeType2[(UserTier_UpgradeType2['GOOGLE_ONE'] = 2)] = + 'GOOGLE_ONE'; + UserTier_UpgradeType2[(UserTier_UpgradeType2['GDP_HELIUM'] = 3)] = + 'GDP_HELIUM'; + UserTier_UpgradeType2[(UserTier_UpgradeType2['GOOGLE_ONE_HELIUM'] = 4)] = + 'GOOGLE_ONE_HELIUM'; +})(UserTier_UpgradeType || (UserTier_UpgradeType = {})); +proto3.util.setEnumType( + UserTier_UpgradeType, 'google.internal.cloud.code.v1internal.UserTier.UpgradeType', [ { no: 0, name: 'UPGRADE_TYPE_UNSPECIFIED' }, @@ -2762,86 +4347,216 @@ a.util.setEnumType( { no: 4, name: 'GOOGLE_ONE_HELIUM' }, ], ); -var om = class e extends r { - showNotice = !1; - noticeText; - minorNotice = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.UserTier.PrivacyNotice'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'show_notice', kind: 'scalar', T: 8 }, - { no: 2, name: 'notice_text', kind: 'scalar', T: 9, opt: !0 }, - { no: 4, name: 'minor_notice', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mm = class e extends r { - disableTelemetry = !1; - disableFeedback = !1; - recitationPolicy; - groundingType = Be.GROUNDING_TYPE_UNSPECIFIED; - secureModeEnabled = !1; - mcpSetting; - turboModeSetting; - browserSetting; - previewFeatureSetting; - agentSetting; - cliFeatureSetting; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.GeminiCodeAssistSetting'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'disable_telemetry', kind: 'scalar', T: 8 }, - { no: 2, name: 'disable_feedback', kind: 'scalar', T: 8 }, - { no: 3, name: 'recitation_policy', kind: 'message', T: Nr }, - { no: 4, name: 'grounding_type', kind: 'enum', T: a.getEnumType(Be) }, - { no: 5, name: 'secure_mode_enabled', kind: 'scalar', T: 8 }, - { no: 6, name: 'mcp_setting', kind: 'message', T: Sr }, - { no: 7, name: 'turbo_mode_setting', kind: 'message', T: Ir }, - { no: 8, name: 'browser_setting', kind: 'message', T: pr }, - { no: 9, name: 'preview_feature_setting', kind: 'message', T: Or }, - { no: 10, name: 'agent_setting', kind: 'message', T: Ar }, - { no: 11, name: 'cli_feature_setting', kind: 'message', T: Cr }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Be; -(function (e) { - ((e[(e.GROUNDING_TYPE_UNSPECIFIED = 0)] = 'GROUNDING_TYPE_UNSPECIFIED'), - (e[(e.GROUNDING_WITH_GOOGLE_SEARCH = 1)] = 'GROUNDING_WITH_GOOGLE_SEARCH'), - (e[(e.WEB_GROUNDING_FOR_ENTERPRISE = 2)] = 'WEB_GROUNDING_FOR_ENTERPRISE')); -})(Be || (Be = {})); -a.util.setEnumType( - Be, +var UserTier_PrivacyNotice = class _UserTier_PrivacyNotice extends Message { + /** + * If true, the privacy notice should be shown to the user. + * + * @generated from field: bool show_notice = 1; + */ + showNotice = false; + /** + * The literal message to display on the IDE side. This is a markdown + * string. If `show_notice` is true, this field must be set. + * + * @generated from field: optional string notice_text = 2; + */ + noticeText; + /** + * If true, the privacy notice is for a minor user. + * + * @generated from field: bool minor_notice = 4; + */ + minorNotice = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'google.internal.cloud.code.v1internal.UserTier.PrivacyNotice'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'show_notice', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 2, name: 'notice_text', kind: 'scalar', T: 9, opt: true }, + { + no: 4, + name: 'minor_notice', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserTier_PrivacyNotice().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserTier_PrivacyNotice().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserTier_PrivacyNotice().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserTier_PrivacyNotice, a, b); + } +}; +var GeminiCodeAssistSetting = class _GeminiCodeAssistSetting extends Message { + /** + * Whether telemetry should be disabled. + * + * @generated from field: bool disable_telemetry = 1; + */ + disableTelemetry = false; + /** + * Whether feedback should be disabled. + * + * @generated from field: bool disable_feedback = 2; + */ + disableFeedback = false; + /** + * The policy used to handle recitation. + * + * @generated from field: google.internal.cloud.code.v1internal.RecitationPolicy recitation_policy = 3; + */ + recitationPolicy; + /** + * The grounding type used for the Gemini Code Assist. + * + * @generated from field: google.internal.cloud.code.v1internal.GeminiCodeAssistSetting.GroundingType grounding_type = 4; + */ + groundingType = + GeminiCodeAssistSetting_GroundingType.GROUNDING_TYPE_UNSPECIFIED; + /** + * Whether secure mode is enabled. + * If true, certain features (e.g. turbo/YOLO mode, browser features) will + * be disabled. + * + * @generated from field: bool secure_mode_enabled = 5; + */ + secureModeEnabled = false; + /** + * Controls MCP enablement and MCP server configurations. + * + * @generated from field: google.internal.cloud.code.v1internal.McpSetting mcp_setting = 6; + */ + mcpSetting; + /** + * Controls the turbo mode enablement and its behavior. + * + * @generated from field: google.internal.cloud.code.v1internal.TurboModeSetting turbo_mode_setting = 7; + */ + turboModeSetting; + /** + * Controls the browser feature enablement and its behavior. + * + * @generated from field: google.internal.cloud.code.v1internal.BrowserSetting browser_setting = 8; + */ + browserSetting; + /** + * Controls enablement and behavior of preview features. + * + * @generated from field: google.internal.cloud.code.v1internal.PreviewFeatureSetting preview_feature_setting = 9; + */ + previewFeatureSetting; + /** + * Controls the agentic workflows features and their behavior. + * + * @generated from field: google.internal.cloud.code.v1internal.AgentSetting agent_setting = 10; + */ + agentSetting; + /** + * Controls the CLI feature enablement and their behavior. + * + * @generated from field: google.internal.cloud.code.v1internal.CliFeatureSetting cli_feature_setting = 11; + */ + cliFeatureSetting; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'google.internal.cloud.code.v1internal.GeminiCodeAssistSetting'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'disable_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'disable_feedback', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 3, name: 'recitation_policy', kind: 'message', T: RecitationPolicy }, + { + no: 4, + name: 'grounding_type', + kind: 'enum', + T: proto3.getEnumType(GeminiCodeAssistSetting_GroundingType), + }, + { + no: 5, + name: 'secure_mode_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 6, name: 'mcp_setting', kind: 'message', T: McpSetting }, + { no: 7, name: 'turbo_mode_setting', kind: 'message', T: TurboModeSetting }, + { no: 8, name: 'browser_setting', kind: 'message', T: BrowserSetting }, + { + no: 9, + name: 'preview_feature_setting', + kind: 'message', + T: PreviewFeatureSetting, + }, + { no: 10, name: 'agent_setting', kind: 'message', T: AgentSetting }, + { + no: 11, + name: 'cli_feature_setting', + kind: 'message', + T: CliFeatureSetting, + }, + ]); + static fromBinary(bytes, options) { + return new _GeminiCodeAssistSetting().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GeminiCodeAssistSetting().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GeminiCodeAssistSetting().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GeminiCodeAssistSetting, a, b); + } +}; +var GeminiCodeAssistSetting_GroundingType; +(function (GeminiCodeAssistSetting_GroundingType2) { + GeminiCodeAssistSetting_GroundingType2[ + (GeminiCodeAssistSetting_GroundingType2['GROUNDING_TYPE_UNSPECIFIED'] = 0) + ] = 'GROUNDING_TYPE_UNSPECIFIED'; + GeminiCodeAssistSetting_GroundingType2[ + (GeminiCodeAssistSetting_GroundingType2['GROUNDING_WITH_GOOGLE_SEARCH'] = 1) + ] = 'GROUNDING_WITH_GOOGLE_SEARCH'; + GeminiCodeAssistSetting_GroundingType2[ + (GeminiCodeAssistSetting_GroundingType2['WEB_GROUNDING_FOR_ENTERPRISE'] = 2) + ] = 'WEB_GROUNDING_FOR_ENTERPRISE'; +})( + GeminiCodeAssistSetting_GroundingType || + (GeminiCodeAssistSetting_GroundingType = {}), +); +proto3.util.setEnumType( + GeminiCodeAssistSetting_GroundingType, 'google.internal.cloud.code.v1internal.GeminiCodeAssistSetting.GroundingType', [ { no: 0, name: 'GROUNDING_TYPE_UNSPECIFIED' }, @@ -2849,278 +4564,541 @@ a.util.setEnumType( { no: 2, name: 'WEB_GROUNDING_FOR_ENTERPRISE' }, ], ); -var Nr = class e extends r { - disableCitations = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.RecitationPolicy'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'disable_citations', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Sr = class e extends r { - mcpEnabled = !1; - overrideMcpConfigJson = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.McpSetting'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'mcp_enabled', kind: 'scalar', T: 8 }, - { no: 2, name: 'override_mcp_config_json', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ir = class e extends r { - terminalAutoExecutionEnabled = !1; - browserJsExecutionEnabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.TurboModeSetting'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'terminal_auto_execution_enabled', kind: 'scalar', T: 8 }, - { no: 2, name: 'browser_js_execution_enabled', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pr = class e extends r { - browserEnabled = !1; - allowedWebsites = []; - deniedWebsites = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.BrowserSetting'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'browser_enabled', kind: 'scalar', T: 8 }, - { no: 2, name: 'allowed_websites', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'denied_websites', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Or = class e extends r { - previewModelsEnabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.PreviewFeatureSetting'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'preview_models_enabled', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ar = class e extends r { - agyAllowedModels = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.AgentSetting'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'agy_allowed_models', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Cr = class e extends r { - extensionsSetting; - unmanagedCapabilitiesEnabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'google.internal.cloud.code.v1internal.CliFeatureSetting'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'extensions_setting', kind: 'message', T: cm }, - { no: 2, name: 'unmanaged_capabilities_enabled', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cm = class e extends r { - extensionsEnabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.CliFeatureSetting.ExtensionsSetting'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'extensions_enabled', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - HT = class e extends r { - project = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.FetchAdminControlsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'project', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - YT = class e extends r { - disableTelemetry = !1; - disableFeedback = !1; - recitationPolicy; - groundingType = Fe.GROUNDING_TYPE_UNSPECIFIED; - secureModeEnabled = !1; - mcpSetting; - turboModeSetting; - browserSetting; - previewFeatureSetting; - agentSetting; - cliFeatureSetting; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'google.internal.cloud.code.v1internal.FetchAdminControlsResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'disable_telemetry', kind: 'scalar', T: 8 }, - { no: 2, name: 'disable_feedback', kind: 'scalar', T: 8 }, - { no: 3, name: 'recitation_policy', kind: 'message', T: Nr }, - { no: 4, name: 'grounding_type', kind: 'enum', T: a.getEnumType(Fe) }, - { no: 5, name: 'secure_mode_enabled', kind: 'scalar', T: 8 }, - { no: 6, name: 'mcp_setting', kind: 'message', T: Sr }, - { no: 7, name: 'turbo_mode_setting', kind: 'message', T: Ir }, - { no: 8, name: 'browser_setting', kind: 'message', T: pr }, - { no: 9, name: 'preview_feature_setting', kind: 'message', T: Or }, - { no: 10, name: 'agent_setting', kind: 'message', T: Ar }, - { no: 11, name: 'cli_feature_setting', kind: 'message', T: Cr }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fe; -(function (e) { - ((e[(e.GROUNDING_TYPE_UNSPECIFIED = 0)] = 'GROUNDING_TYPE_UNSPECIFIED'), - (e[(e.GROUNDING_WITH_GOOGLE_SEARCH = 1)] = 'GROUNDING_WITH_GOOGLE_SEARCH'), - (e[(e.WEB_GROUNDING_FOR_ENTERPRISE = 2)] = 'WEB_GROUNDING_FOR_ENTERPRISE')); -})(Fe || (Fe = {})); -a.util.setEnumType( - Fe, +var RecitationPolicy = class _RecitationPolicy extends Message { + /** + * Whether citations should be disabled. + * + * @generated from field: bool disable_citations = 1; + */ + disableCitations = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.RecitationPolicy'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'disable_citations', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _RecitationPolicy().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RecitationPolicy().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RecitationPolicy().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RecitationPolicy, a, b); + } +}; +var McpSetting = class _McpSetting extends Message { + /** + * Whether MCP servers are enabled. + * + * @generated from field: bool mcp_enabled = 1; + */ + mcpEnabled = false; + /** + * MCP config in JSON format. + * + * @generated from field: string override_mcp_config_json = 2; + */ + overrideMcpConfigJson = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.McpSetting'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'mcp_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'override_mcp_config_json', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _McpSetting().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpSetting().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpSetting().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpSetting, a, b); + } +}; +var TurboModeSetting = class _TurboModeSetting extends Message { + /** + * Whether terminal auto execution is enabled. + * + * @generated from field: bool terminal_auto_execution_enabled = 1; + */ + terminalAutoExecutionEnabled = false; + /** + * Whether browser JS execution is enabled. + * + * @generated from field: bool browser_js_execution_enabled = 2; + */ + browserJsExecutionEnabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.TurboModeSetting'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'terminal_auto_execution_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'browser_js_execution_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _TurboModeSetting().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TurboModeSetting().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TurboModeSetting().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TurboModeSetting, a, b); + } +}; +var BrowserSetting = class _BrowserSetting extends Message { + /** + * Whether browser is enabled. + * + * @generated from field: bool browser_enabled = 1; + */ + browserEnabled = false; + /** + * The list of websites that are allowed to be accessed. + * + * @generated from field: repeated string allowed_websites = 2; + */ + allowedWebsites = []; + /** + * The list of websites that are denied to be accessed. + * + * @generated from field: repeated string denied_websites = 3; + */ + deniedWebsites = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.BrowserSetting'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'browser_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 2, name: 'allowed_websites', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'denied_websites', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _BrowserSetting().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserSetting().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserSetting().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserSetting, a, b); + } +}; +var PreviewFeatureSetting = class _PreviewFeatureSetting extends Message { + /** + * Whether preview models are enabled. + * + * @generated from field: bool preview_models_enabled = 1; + */ + previewModelsEnabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'google.internal.cloud.code.v1internal.PreviewFeatureSetting'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'preview_models_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _PreviewFeatureSetting().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PreviewFeatureSetting().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PreviewFeatureSetting().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PreviewFeatureSetting, a, b); + } +}; +var AgentSetting = class _AgentSetting extends Message { + /** + * The list of models that are allowed to be used by the agentic workflows in + * Antigravity. + * + * @generated from field: repeated string agy_allowed_models = 1; + */ + agyAllowedModels = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.AgentSetting'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'agy_allowed_models', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _AgentSetting().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AgentSetting().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AgentSetting().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AgentSetting, a, b); + } +}; +var CliFeatureSetting = class _CliFeatureSetting extends Message { + /** + * CLI extensions settings. + * + * @generated from field: google.internal.cloud.code.v1internal.CliFeatureSetting.ExtensionsSetting extensions_setting = 1; + */ + extensionsSetting; + /** + * Whether unmanaged capabilities are enabled. This is used to enable / + * disable features that don't have granular admin controls yet. + * + * @generated from field: bool unmanaged_capabilities_enabled = 2; + */ + unmanagedCapabilitiesEnabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'google.internal.cloud.code.v1internal.CliFeatureSetting'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'extensions_setting', + kind: 'message', + T: CliFeatureSetting_ExtensionsSetting, + }, + { + no: 2, + name: 'unmanaged_capabilities_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CliFeatureSetting().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CliFeatureSetting().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CliFeatureSetting().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CliFeatureSetting, a, b); + } +}; +var CliFeatureSetting_ExtensionsSetting = class _CliFeatureSetting_ExtensionsSetting extends Message { + /** + * Whether CLI extensions are enabled. + * + * @generated from field: bool extensions_enabled = 1; + */ + extensionsEnabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'google.internal.cloud.code.v1internal.CliFeatureSetting.ExtensionsSetting'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'extensions_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CliFeatureSetting_ExtensionsSetting().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CliFeatureSetting_ExtensionsSetting().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CliFeatureSetting_ExtensionsSetting().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CliFeatureSetting_ExtensionsSetting, a, b); + } +}; +var FetchAdminControlsRequest = class _FetchAdminControlsRequest extends Message { + /** + * Project id saved on the client's side previously chosen by the user. + * + * @generated from field: string project = 1; + */ + project = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'google.internal.cloud.code.v1internal.FetchAdminControlsRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'project', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _FetchAdminControlsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FetchAdminControlsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FetchAdminControlsRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FetchAdminControlsRequest, a, b); + } +}; +var FetchAdminControlsResponse = class _FetchAdminControlsResponse extends Message { + /** + * Effective settings values for the project. + * Whether telemetry should be disabled. + * + * @generated from field: bool disable_telemetry = 1; + */ + disableTelemetry = false; + /** + * Whether feedback should be disabled. + * + * @generated from field: bool disable_feedback = 2; + */ + disableFeedback = false; + /** + * The policy used to handle recitation. + * + * @generated from field: google.internal.cloud.code.v1internal.RecitationPolicy recitation_policy = 3; + */ + recitationPolicy; + /** + * The grounding type used for the Gemini Code Assist. + * + * @generated from field: google.internal.cloud.code.v1internal.FetchAdminControlsResponse.GroundingType grounding_type = 4; + */ + groundingType = + FetchAdminControlsResponse_GroundingType.GROUNDING_TYPE_UNSPECIFIED; + /** + * Whether secure mode is enabled. + * If true, certain features (e.g. turbo/YOLO mode, browser features) will + * be disabled. + * + * @generated from field: bool secure_mode_enabled = 5; + */ + secureModeEnabled = false; + /** + * Controls MCP enablement and MCP server configurations. + * + * @generated from field: google.internal.cloud.code.v1internal.McpSetting mcp_setting = 6; + */ + mcpSetting; + /** + * Controls the turbo mode enablement and its behavior. + * + * @generated from field: google.internal.cloud.code.v1internal.TurboModeSetting turbo_mode_setting = 7; + */ + turboModeSetting; + /** + * Controls the browser feature enablement and its behavior. + * + * @generated from field: google.internal.cloud.code.v1internal.BrowserSetting browser_setting = 8; + */ + browserSetting; + /** + * Controls enablement and behavior of preview features. + * + * @generated from field: google.internal.cloud.code.v1internal.PreviewFeatureSetting preview_feature_setting = 9; + */ + previewFeatureSetting; + /** + * Controls the agentic workflows features and their behavior. + * + * @generated from field: google.internal.cloud.code.v1internal.AgentSetting agent_setting = 10; + */ + agentSetting; + /** + * Controls the CLI feature enablement and their behavior. + * + * @generated from field: google.internal.cloud.code.v1internal.CliFeatureSetting cli_feature_setting = 11; + */ + cliFeatureSetting; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'google.internal.cloud.code.v1internal.FetchAdminControlsResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'disable_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'disable_feedback', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 3, name: 'recitation_policy', kind: 'message', T: RecitationPolicy }, + { + no: 4, + name: 'grounding_type', + kind: 'enum', + T: proto3.getEnumType(FetchAdminControlsResponse_GroundingType), + }, + { + no: 5, + name: 'secure_mode_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 6, name: 'mcp_setting', kind: 'message', T: McpSetting }, + { no: 7, name: 'turbo_mode_setting', kind: 'message', T: TurboModeSetting }, + { no: 8, name: 'browser_setting', kind: 'message', T: BrowserSetting }, + { + no: 9, + name: 'preview_feature_setting', + kind: 'message', + T: PreviewFeatureSetting, + }, + { no: 10, name: 'agent_setting', kind: 'message', T: AgentSetting }, + { + no: 11, + name: 'cli_feature_setting', + kind: 'message', + T: CliFeatureSetting, + }, + ]); + static fromBinary(bytes, options) { + return new _FetchAdminControlsResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FetchAdminControlsResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FetchAdminControlsResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_FetchAdminControlsResponse, a, b); + } +}; +var FetchAdminControlsResponse_GroundingType; +(function (FetchAdminControlsResponse_GroundingType2) { + FetchAdminControlsResponse_GroundingType2[ + (FetchAdminControlsResponse_GroundingType2['GROUNDING_TYPE_UNSPECIFIED'] = + 0) + ] = 'GROUNDING_TYPE_UNSPECIFIED'; + FetchAdminControlsResponse_GroundingType2[ + (FetchAdminControlsResponse_GroundingType2['GROUNDING_WITH_GOOGLE_SEARCH'] = + 1) + ] = 'GROUNDING_WITH_GOOGLE_SEARCH'; + FetchAdminControlsResponse_GroundingType2[ + (FetchAdminControlsResponse_GroundingType2['WEB_GROUNDING_FOR_ENTERPRISE'] = + 2) + ] = 'WEB_GROUNDING_FOR_ENTERPRISE'; +})( + FetchAdminControlsResponse_GroundingType || + (FetchAdminControlsResponse_GroundingType = {}), +); +proto3.util.setEnumType( + FetchAdminControlsResponse_GroundingType, 'google.internal.cloud.code.v1internal.FetchAdminControlsResponse.GroundingType', [ { no: 0, name: 'GROUNDING_TYPE_UNSPECIFIED' }, @@ -3128,361 +5106,507 @@ a.util.setEnumType( { no: 2, name: 'WEB_GROUNDING_FOR_ENTERPRISE' }, ], ); -var um; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.DEFAULT = 1)] = 'DEFAULT'), - (e[(e.PLAN = 7)] = 'PLAN'), - (e[(e.FAST_APPLY = 12)] = 'FAST_APPLY'), - (e[(e.TERMINAL = 13)] = 'TERMINAL'), - (e[(e.SUPERCOMPLETE = 10)] = 'SUPERCOMPLETE'), - (e[(e.TAB_JUMP = 14)] = 'TAB_JUMP'), - (e[(e.CASCADE_CHAT = 16)] = 'CASCADE_CHAT')); -})(um || (um = {})); -a.util.setEnumType(um, 'exa.codeium_common_pb.CommandRequestSource', [ - { no: 0, name: 'COMMAND_REQUEST_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'COMMAND_REQUEST_SOURCE_DEFAULT' }, - { no: 7, name: 'COMMAND_REQUEST_SOURCE_PLAN' }, - { no: 12, name: 'COMMAND_REQUEST_SOURCE_FAST_APPLY' }, - { no: 13, name: 'COMMAND_REQUEST_SOURCE_TERMINAL' }, - { no: 10, name: 'COMMAND_REQUEST_SOURCE_SUPERCOMPLETE' }, - { no: 14, name: 'COMMAND_REQUEST_SOURCE_TAB_JUMP' }, - { no: 16, name: 'COMMAND_REQUEST_SOURCE_CASCADE_CHAT' }, -]); -var lm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.AUTOCOMPLETE = 1)] = 'AUTOCOMPLETE'), - (e[(e.COMMAND_GENERATE = 4)] = 'COMMAND_GENERATE'), - (e[(e.COMMAND_EDIT = 5)] = 'COMMAND_EDIT'), - (e[(e.SUPERCOMPLETE = 6)] = 'SUPERCOMPLETE'), - (e[(e.COMMAND_PLAN = 7)] = 'COMMAND_PLAN'), - (e[(e.FAST_APPLY = 9)] = 'FAST_APPLY'), - (e[(e.COMMAND_TERMINAL = 10)] = 'COMMAND_TERMINAL'), - (e[(e.TAB_JUMP = 11)] = 'TAB_JUMP'), - (e[(e.CASCADE = 12)] = 'CASCADE')); -})(lm || (lm = {})); -a.util.setEnumType(lm, 'exa.codeium_common_pb.ProviderSource', [ - { no: 0, name: 'PROVIDER_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'PROVIDER_SOURCE_AUTOCOMPLETE' }, - { no: 4, name: 'PROVIDER_SOURCE_COMMAND_GENERATE' }, - { no: 5, name: 'PROVIDER_SOURCE_COMMAND_EDIT' }, - { no: 6, name: 'PROVIDER_SOURCE_SUPERCOMPLETE' }, - { no: 7, name: 'PROVIDER_SOURCE_COMMAND_PLAN' }, - { no: 9, name: 'PROVIDER_SOURCE_FAST_APPLY' }, - { no: 10, name: 'PROVIDER_SOURCE_COMMAND_TERMINAL' }, - { no: 11, name: 'PROVIDER_SOURCE_TAB_JUMP' }, - { no: 12, name: 'PROVIDER_SOURCE_CASCADE' }, -]); -var Ln; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.FILE_MARKER = 2)] = 'FILE_MARKER'), - (e[(e.OTHER_DOCUMENT = 4)] = 'OTHER_DOCUMENT'), - (e[(e.BEFORE_CURSOR = 5)] = 'BEFORE_CURSOR'), - (e[(e.AFTER_CURSOR = 7)] = 'AFTER_CURSOR'), - (e[(e.FIM = 8)] = 'FIM'), - (e[(e.SOT = 9)] = 'SOT'), - (e[(e.EOT = 10)] = 'EOT'), - (e[(e.CODE_CONTEXT_ITEM = 13)] = 'CODE_CONTEXT_ITEM'), - (e[(e.INSTRUCTION = 14)] = 'INSTRUCTION'), - (e[(e.SELECTION = 15)] = 'SELECTION'), - (e[(e.TRAJECTORY_STEP = 16)] = 'TRAJECTORY_STEP'), - (e[(e.ACTIVE_DOCUMENT = 17)] = 'ACTIVE_DOCUMENT'), - (e[(e.CACHED_MESSAGE = 18)] = 'CACHED_MESSAGE')); -})(Ln || (Ln = {})); -a.util.setEnumType(Ln, 'exa.codeium_common_pb.PromptElementKind', [ - { no: 0, name: 'PROMPT_ELEMENT_KIND_UNSPECIFIED' }, - { no: 2, name: 'PROMPT_ELEMENT_KIND_FILE_MARKER' }, - { no: 4, name: 'PROMPT_ELEMENT_KIND_OTHER_DOCUMENT' }, - { no: 5, name: 'PROMPT_ELEMENT_KIND_BEFORE_CURSOR' }, - { no: 7, name: 'PROMPT_ELEMENT_KIND_AFTER_CURSOR' }, - { no: 8, name: 'PROMPT_ELEMENT_KIND_FIM' }, - { no: 9, name: 'PROMPT_ELEMENT_KIND_SOT' }, - { no: 10, name: 'PROMPT_ELEMENT_KIND_EOT' }, - { no: 13, name: 'PROMPT_ELEMENT_KIND_CODE_CONTEXT_ITEM' }, - { no: 14, name: 'PROMPT_ELEMENT_KIND_INSTRUCTION' }, - { no: 15, name: 'PROMPT_ELEMENT_KIND_SELECTION' }, - { no: 16, name: 'PROMPT_ELEMENT_KIND_TRAJECTORY_STEP' }, - { no: 17, name: 'PROMPT_ELEMENT_KIND_ACTIVE_DOCUMENT' }, - { no: 18, name: 'PROMPT_ELEMENT_KIND_CACHED_MESSAGE' }, -]); -var Me; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.COPY = 1)] = 'COPY'), - (e[(e.PROMPT_CACHE = 2)] = 'PROMPT_CACHE')); -})(Me || (Me = {})); -a.util.setEnumType(Me, 'exa.codeium_common_pb.PromptAnnotationKind', [ - { no: 0, name: 'PROMPT_ANNOTATION_KIND_UNSPECIFIED' }, - { no: 1, name: 'PROMPT_ANNOTATION_KIND_COPY' }, - { no: 2, name: 'PROMPT_ANNOTATION_KIND_PROMPT_CACHE' }, -]); -var B; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.USE_INTERNAL_CHAT_MODEL = 36)] = 'USE_INTERNAL_CHAT_MODEL'), - (e[(e.RECORD_FILES = 47)] = 'RECORD_FILES'), - (e[(e.NO_SAMPLER_EARLY_STOP = 48)] = 'NO_SAMPLER_EARLY_STOP'), - (e[(e.CM_MEMORY_TELEMETRY = 53)] = 'CM_MEMORY_TELEMETRY'), - (e[(e.LANGUAGE_SERVER_VERSION = 55)] = 'LANGUAGE_SERVER_VERSION'), - (e[(e.LANGUAGE_SERVER_AUTO_RELOAD = 56)] = 'LANGUAGE_SERVER_AUTO_RELOAD'), - (e[(e.ONLY_MULTILINE = 60)] = 'ONLY_MULTILINE'), - (e[(e.USE_ATTRIBUTION_FOR_INDIVIDUAL_TIER = 68)] = - 'USE_ATTRIBUTION_FOR_INDIVIDUAL_TIER'), - (e[(e.CHAT_MODEL_CONFIG = 78)] = 'CHAT_MODEL_CONFIG'), - (e[(e.COMMAND_MODEL_CONFIG = 79)] = 'COMMAND_MODEL_CONFIG'), - (e[(e.MIN_IDE_VERSION = 81)] = 'MIN_IDE_VERSION'), - (e[(e.API_SERVER_VERBOSE_ERRORS = 84)] = 'API_SERVER_VERBOSE_ERRORS'), - (e[(e.DEFAULT_ENABLE_SEARCH = 86)] = 'DEFAULT_ENABLE_SEARCH'), - (e[(e.COLLECT_ONBOARDING_EVENTS = 87)] = 'COLLECT_ONBOARDING_EVENTS'), - (e[(e.COLLECT_EXAMPLE_COMPLETIONS = 88)] = 'COLLECT_EXAMPLE_COMPLETIONS'), - (e[(e.USE_MULTILINE_MODEL = 89)] = 'USE_MULTILINE_MODEL'), - (e[(e.ATTRIBUTION_KILL_SWITCH = 92)] = 'ATTRIBUTION_KILL_SWITCH'), - (e[(e.FAST_MULTILINE = 94)] = 'FAST_MULTILINE'), - (e[(e.SINGLE_COMPLETION = 95)] = 'SINGLE_COMPLETION'), - (e[(e.STOP_FIRST_NON_WHITESPACE_LINE = 96)] = - 'STOP_FIRST_NON_WHITESPACE_LINE'), - (e[(e.CORTEX_CONFIG = 102)] = 'CORTEX_CONFIG'), - (e[(e.MODEL_CHAT_11121_VARIANTS = 103)] = 'MODEL_CHAT_11121_VARIANTS'), - (e[(e.INCLUDE_PROMPT_COMPONENTS = 105)] = 'INCLUDE_PROMPT_COMPONENTS'), - (e[(e.PERSIST_CODE_TRACKER = 108)] = 'PERSIST_CODE_TRACKER'), - (e[(e.API_SERVER_LIVENESS_PROBE = 112)] = 'API_SERVER_LIVENESS_PROBE'), - (e[(e.CHAT_COMPLETION_TOKENS_SOFT_LIMIT = 114)] = - 'CHAT_COMPLETION_TOKENS_SOFT_LIMIT'), - (e[(e.CHAT_TOKENS_SOFT_LIMIT = 115)] = 'CHAT_TOKENS_SOFT_LIMIT'), - (e[(e.DISABLE_COMPLETIONS_CACHE = 118)] = 'DISABLE_COMPLETIONS_CACHE'), - (e[(e.LLAMA3_405B_KILL_SWITCH = 119)] = 'LLAMA3_405B_KILL_SWITCH'), - (e[(e.USE_COMMAND_DOCSTRING_GENERATION = 121)] = - 'USE_COMMAND_DOCSTRING_GENERATION'), - (e[(e.SENTRY = 136)] = 'SENTRY'), - (e[(e.FAST_SINGLELINE = 144)] = 'FAST_SINGLELINE'), - (e[(e.R2_LANGUAGE_SERVER_DOWNLOAD = 147)] = 'R2_LANGUAGE_SERVER_DOWNLOAD'), - (e[(e.SPLIT_MODEL = 152)] = 'SPLIT_MODEL'), - (e[(e.ANTIGRAVITY_SENTRY_SAMPLE_RATE = 198)] = - 'ANTIGRAVITY_SENTRY_SAMPLE_RATE'), - (e[(e.API_SERVER_CUTOFF = 158)] = 'API_SERVER_CUTOFF'), - (e[(e.FAST_SPEED_KILL_SWITCH = 159)] = 'FAST_SPEED_KILL_SWITCH'), - (e[(e.PREDICTIVE_MULTILINE = 160)] = 'PREDICTIVE_MULTILINE'), - (e[(e.SUPERCOMPLETE_FILTER_REVERT = 125)] = 'SUPERCOMPLETE_FILTER_REVERT'), - (e[(e.SUPERCOMPLETE_FILTER_PREFIX_MATCH = 126)] = - 'SUPERCOMPLETE_FILTER_PREFIX_MATCH'), - (e[(e.SUPERCOMPLETE_FILTER_SCORE_THRESHOLD = 127)] = - 'SUPERCOMPLETE_FILTER_SCORE_THRESHOLD'), - (e[(e.SUPERCOMPLETE_FILTER_INSERTION_CAP = 128)] = - 'SUPERCOMPLETE_FILTER_INSERTION_CAP'), - (e[(e.SUPERCOMPLETE_FILTER_DELETION_CAP = 133)] = - 'SUPERCOMPLETE_FILTER_DELETION_CAP'), - (e[(e.SUPERCOMPLETE_FILTER_WHITESPACE_ONLY = 156)] = - 'SUPERCOMPLETE_FILTER_WHITESPACE_ONLY'), - (e[(e.SUPERCOMPLETE_FILTER_NO_OP = 170)] = 'SUPERCOMPLETE_FILTER_NO_OP'), - (e[(e.SUPERCOMPLETE_FILTER_SUFFIX_MATCH = 176)] = - 'SUPERCOMPLETE_FILTER_SUFFIX_MATCH'), - (e[(e.SUPERCOMPLETE_FILTER_PREVIOUSLY_SHOWN = 182)] = - 'SUPERCOMPLETE_FILTER_PREVIOUSLY_SHOWN'), - (e[(e.SUPERCOMPLETE_MIN_SCORE = 129)] = 'SUPERCOMPLETE_MIN_SCORE'), - (e[(e.SUPERCOMPLETE_MAX_INSERTIONS = 130)] = - 'SUPERCOMPLETE_MAX_INSERTIONS'), - (e[(e.SUPERCOMPLETE_LINE_RADIUS = 131)] = 'SUPERCOMPLETE_LINE_RADIUS'), - (e[(e.SUPERCOMPLETE_MAX_DELETIONS = 132)] = 'SUPERCOMPLETE_MAX_DELETIONS'), - (e[(e.SUPERCOMPLETE_USE_CURRENT_LINE = 135)] = - 'SUPERCOMPLETE_USE_CURRENT_LINE'), - (e[(e.SUPERCOMPLETE_RECENT_STEPS_DURATION = 138)] = - 'SUPERCOMPLETE_RECENT_STEPS_DURATION'), - (e[(e.SUPERCOMPLETE_USE_CODE_DIAGNOSTICS = 143)] = - 'SUPERCOMPLETE_USE_CODE_DIAGNOSTICS'), - (e[(e.SUPERCOMPLETE_DIAGNOSTIC_SEVERITY_THRESHOLD = 223)] = - 'SUPERCOMPLETE_DIAGNOSTIC_SEVERITY_THRESHOLD'), - (e[(e.SUPERCOMPLETE_CODE_DIAGNOSTICS_TOP_K = 232)] = - 'SUPERCOMPLETE_CODE_DIAGNOSTICS_TOP_K'), - (e[(e.SUPERCOMPLETE_MAX_TRAJECTORY_STEPS = 154)] = - 'SUPERCOMPLETE_MAX_TRAJECTORY_STEPS'), - (e[(e.SUPERCOMPLETE_ON_ACCEPT_ONLY = 157)] = - 'SUPERCOMPLETE_ON_ACCEPT_ONLY'), - (e[(e.SUPERCOMPLETE_TEMPERATURE = 183)] = 'SUPERCOMPLETE_TEMPERATURE'), - (e[(e.SUPERCOMPLETE_MAX_TRAJECTORY_STEP_SIZE = 203)] = - 'SUPERCOMPLETE_MAX_TRAJECTORY_STEP_SIZE'), - (e[(e.SUPERCOMPLETE_DISABLE_TYPING_CACHE = 231)] = - 'SUPERCOMPLETE_DISABLE_TYPING_CACHE'), - (e[(e.SUPERCOMPLETE_ALWAYS_USE_CACHE_ON_EQUAL_STATE = 293)] = - 'SUPERCOMPLETE_ALWAYS_USE_CACHE_ON_EQUAL_STATE'), - (e[(e.SUPERCOMPLETE_CACHE_ON_PARENT_ID_KILL_SWITCH = 297)] = - 'SUPERCOMPLETE_CACHE_ON_PARENT_ID_KILL_SWITCH'), - (e[(e.SUPERCOMPLETE_PRUNE_RESPONSE = 140)] = - 'SUPERCOMPLETE_PRUNE_RESPONSE'), - (e[(e.SUPERCOMPLETE_PRUNE_MAX_INSERT_DELETE_LINE_DELTA = 141)] = - 'SUPERCOMPLETE_PRUNE_MAX_INSERT_DELETE_LINE_DELTA'), - (e[(e.SUPERCOMPLETE_MODEL_CONFIG = 145)] = 'SUPERCOMPLETE_MODEL_CONFIG'), - (e[(e.SUPERCOMPLETE_ON_TAB = 151)] = 'SUPERCOMPLETE_ON_TAB'), - (e[(e.SUPERCOMPLETE_INLINE_PURE_DELETE = 171)] = - 'SUPERCOMPLETE_INLINE_PURE_DELETE'), - (e[(e.SUPERCOMPLETE_INLINE_RICH_GHOST_TEXT_INSERTIONS = 218)] = - 'SUPERCOMPLETE_INLINE_RICH_GHOST_TEXT_INSERTIONS'), - (e[(e.MODEL_CHAT_19821_VARIANTS = 308)] = 'MODEL_CHAT_19821_VARIANTS'), - (e[(e.SUPERCOMPLETE_MAX_CONCURRENT_REQUESTS = 284)] = - 'SUPERCOMPLETE_MAX_CONCURRENT_REQUESTS'), - (e[(e.COMMAND_PROMPT_CACHE_CONFIG = 255)] = 'COMMAND_PROMPT_CACHE_CONFIG'), - (e[(e.CUMULATIVE_PROMPT_CONFIG = 256)] = 'CUMULATIVE_PROMPT_CONFIG'), - (e[(e.CUMULATIVE_PROMPT_CASCADE_CONFIG = 279)] = - 'CUMULATIVE_PROMPT_CASCADE_CONFIG'), - (e[(e.TAB_JUMP_CUMULATIVE_PROMPT_CONFIG = 301)] = - 'TAB_JUMP_CUMULATIVE_PROMPT_CONFIG'), - (e[(e.COMPLETION_SPEED_SUPERCOMPLETE_CACHE = 207)] = - 'COMPLETION_SPEED_SUPERCOMPLETE_CACHE'), - (e[(e.COMPLETION_SPEED_PREDICTIVE_SUPERCOMPLETE = 208)] = - 'COMPLETION_SPEED_PREDICTIVE_SUPERCOMPLETE'), - (e[(e.COMPLETION_SPEED_TAB_JUMP_CACHE = 209)] = - 'COMPLETION_SPEED_TAB_JUMP_CACHE'), - (e[(e.COMPLETION_SPEED_PREDICTIVE_TAB_JUMP = 210)] = - 'COMPLETION_SPEED_PREDICTIVE_TAB_JUMP'), - (e[(e.COMPLETION_SPEED_BLOCK_TAB_JUMP_ON_PREDICTIVE_SUPERCOMPLETE = 294)] = - 'COMPLETION_SPEED_BLOCK_TAB_JUMP_ON_PREDICTIVE_SUPERCOMPLETE'), - (e[(e.JETBRAINS_ENABLE_ONBOARDING = 137)] = 'JETBRAINS_ENABLE_ONBOARDING'), - (e[(e.ENABLE_AUTOCOMPLETE_DURING_INTELLISENSE = 146)] = - 'ENABLE_AUTOCOMPLETE_DURING_INTELLISENSE'), - (e[(e.COMMAND_BOX_ON_TOP = 155)] = 'COMMAND_BOX_ON_TOP'), - (e[(e.CONTEXT_ACTIVE_DOCUMENT_FRACTION = 149)] = - 'CONTEXT_ACTIVE_DOCUMENT_FRACTION'), - (e[(e.CONTEXT_COMMAND_TRAJECTORY_PROMPT_CONFIG = 150)] = - 'CONTEXT_COMMAND_TRAJECTORY_PROMPT_CONFIG'), - (e[(e.CONTEXT_FORCE_LOCAL_CONTEXT = 178)] = 'CONTEXT_FORCE_LOCAL_CONTEXT'), - (e[(e.CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY = 220)] = - 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY'), - (e[(e.MODEL_LLAMA_3_1_70B_INSTRUCT_LONG_CONTEXT_VARIANTS = 295)] = - 'MODEL_LLAMA_3_1_70B_INSTRUCT_LONG_CONTEXT_VARIANTS'), - (e[(e.SUPERCOMPLETE_NO_ACTIVE_NODE = 166)] = - 'SUPERCOMPLETE_NO_ACTIVE_NODE'), - (e[(e.TAB_JUMP_ENABLED = 168)] = 'TAB_JUMP_ENABLED'), - (e[(e.TAB_JUMP_LINE_RADIUS = 177)] = 'TAB_JUMP_LINE_RADIUS'), - (e[(e.TAB_JUMP_MIN_FILTER_RADIUS = 197)] = 'TAB_JUMP_MIN_FILTER_RADIUS'), - (e[(e.TAB_JUMP_ON_ACCEPT_ONLY = 205)] = 'TAB_JUMP_ON_ACCEPT_ONLY'), - (e[(e.TAB_JUMP_FILTER_IN_SELECTION = 215)] = - 'TAB_JUMP_FILTER_IN_SELECTION'), - (e[(e.TAB_JUMP_MODEL_CONFIG = 237)] = 'TAB_JUMP_MODEL_CONFIG'), - (e[(e.TAB_JUMP_FILTER_NO_OP = 238)] = 'TAB_JUMP_FILTER_NO_OP'), - (e[(e.TAB_JUMP_FILTER_REVERT = 239)] = 'TAB_JUMP_FILTER_REVERT'), - (e[(e.TAB_JUMP_FILTER_SCORE_THRESHOLD = 240)] = - 'TAB_JUMP_FILTER_SCORE_THRESHOLD'), - (e[(e.TAB_JUMP_FILTER_WHITESPACE_ONLY = 241)] = - 'TAB_JUMP_FILTER_WHITESPACE_ONLY'), - (e[(e.TAB_JUMP_FILTER_INSERTION_CAP = 242)] = - 'TAB_JUMP_FILTER_INSERTION_CAP'), - (e[(e.TAB_JUMP_FILTER_DELETION_CAP = 243)] = - 'TAB_JUMP_FILTER_DELETION_CAP'), - (e[(e.TAB_JUMP_PRUNE_RESPONSE = 260)] = 'TAB_JUMP_PRUNE_RESPONSE'), - (e[(e.TAB_JUMP_PRUNE_MAX_INSERT_DELETE_LINE_DELTA = 261)] = - 'TAB_JUMP_PRUNE_MAX_INSERT_DELETE_LINE_DELTA'), - (e[(e.TAB_JUMP_STOP_TOKEN_MIDSTREAM = 317)] = - 'TAB_JUMP_STOP_TOKEN_MIDSTREAM'), - (e[(e.VIEWED_FILE_TRACKER_CONFIG = 211)] = 'VIEWED_FILE_TRACKER_CONFIG'), - (e[(e.SNAPSHOT_TO_STEP_OPTIONS_OVERRIDE = 305)] = - 'SNAPSHOT_TO_STEP_OPTIONS_OVERRIDE'), - (e[(e.STREAMING_EXTERNAL_COMMAND = 172)] = 'STREAMING_EXTERNAL_COMMAND'), - (e[(e.USE_SPECIAL_EDIT_CODE_BLOCK = 179)] = 'USE_SPECIAL_EDIT_CODE_BLOCK'), - (e[(e.ENABLE_SUGGESTED_RESPONSES = 187)] = 'ENABLE_SUGGESTED_RESPONSES'), - (e[(e.CASCADE_BASE_MODEL_ID = 190)] = 'CASCADE_BASE_MODEL_ID'), - (e[(e.CASCADE_PLAN_BASED_CONFIG_OVERRIDE = 266)] = - 'CASCADE_PLAN_BASED_CONFIG_OVERRIDE'), - (e[(e.CASCADE_GLOBAL_CONFIG_OVERRIDE = 212)] = - 'CASCADE_GLOBAL_CONFIG_OVERRIDE'), - (e[(e.CASCADE_BACKGROUND_RESEARCH_CONFIG_OVERRIDE = 193)] = - 'CASCADE_BACKGROUND_RESEARCH_CONFIG_OVERRIDE'), - (e[(e.CASCADE_ENFORCE_QUOTA = 204)] = 'CASCADE_ENFORCE_QUOTA'), - (e[(e.CASCADE_ENABLE_AUTOMATED_MEMORIES = 224)] = - 'CASCADE_ENABLE_AUTOMATED_MEMORIES'), - (e[(e.CASCADE_MEMORY_CONFIG_OVERRIDE = 314)] = - 'CASCADE_MEMORY_CONFIG_OVERRIDE'), - (e[(e.CASCADE_USE_REPLACE_CONTENT_EDIT_TOOL = 228)] = - 'CASCADE_USE_REPLACE_CONTENT_EDIT_TOOL'), - (e[(e.CASCADE_VIEW_FILE_TOOL_CONFIG_OVERRIDE = 258)] = - 'CASCADE_VIEW_FILE_TOOL_CONFIG_OVERRIDE'), - (e[(e.CASCADE_USE_EXPERIMENT_CHECKPOINTER = 247)] = - 'CASCADE_USE_EXPERIMENT_CHECKPOINTER'), - (e[(e.CASCADE_ENABLE_MCP_TOOLS = 245)] = 'CASCADE_ENABLE_MCP_TOOLS'), - (e[(e.CASCADE_AUTO_FIX_LINTS = 275)] = 'CASCADE_AUTO_FIX_LINTS'), - (e[(e.USE_ANTHROPIC_TOKEN_EFFICIENT_TOOLS_BETA = 296)] = - 'USE_ANTHROPIC_TOKEN_EFFICIENT_TOOLS_BETA'), - (e[(e.CASCADE_USER_MEMORIES_IN_SYS_PROMPT = 289)] = - 'CASCADE_USER_MEMORIES_IN_SYS_PROMPT'), - (e[(e.COLLAPSE_ASSISTANT_MESSAGES = 312)] = 'COLLAPSE_ASSISTANT_MESSAGES'), - (e[(e.CASCADE_DEFAULT_MODEL_OVERRIDE = 321)] = - 'CASCADE_DEFAULT_MODEL_OVERRIDE'), - (e[(e.ENABLE_SMART_COPY = 181)] = 'ENABLE_SMART_COPY'), - (e[(e.ENABLE_COMMIT_MESSAGE_GENERATION = 185)] = - 'ENABLE_COMMIT_MESSAGE_GENERATION'), - (e[(e.FIREWORKS_ON_DEMAND_DEPLOYMENT = 276)] = - 'FIREWORKS_ON_DEMAND_DEPLOYMENT'), - (e[(e.API_SERVER_CLIENT_USE_HTTP_2 = 202)] = - 'API_SERVER_CLIENT_USE_HTTP_2'), - (e[(e.AUTOCOMPLETE_DEFAULT_DEBOUNCE_MS = 213)] = - 'AUTOCOMPLETE_DEFAULT_DEBOUNCE_MS'), - (e[(e.AUTOCOMPLETE_FAST_DEBOUNCE_MS = 214)] = - 'AUTOCOMPLETE_FAST_DEBOUNCE_MS'), - (e[(e.PROFILING_TELEMETRY_SAMPLE_RATE = 219)] = - 'PROFILING_TELEMETRY_SAMPLE_RATE'), - (e[(e.STREAM_USER_SHELL_COMMANDS = 225)] = 'STREAM_USER_SHELL_COMMANDS'), - (e[(e.API_SERVER_PROMPT_CACHE_REPLICAS = 307)] = - 'API_SERVER_PROMPT_CACHE_REPLICAS'), - (e[(e.API_SERVER_ENABLE_MORE_LOGGING = 272)] = - 'API_SERVER_ENABLE_MORE_LOGGING'), - (e[(e.COMMAND_INJECT_USER_MEMORIES = 233)] = - 'COMMAND_INJECT_USER_MEMORIES'), - (e[(e.AUTOCOMPLETE_HIDDEN_ERROR_REGEX = 234)] = - 'AUTOCOMPLETE_HIDDEN_ERROR_REGEX'), - (e[(e.DISABLE_IDE_COMPLETIONS_DEBOUNCE = 278)] = - 'DISABLE_IDE_COMPLETIONS_DEBOUNCE'), - (e[(e.COMBINED_MODEL_USE_FULL_INSTRUCTION_FOR_RETRIEVAL = 264)] = - 'COMBINED_MODEL_USE_FULL_INSTRUCTION_FOR_RETRIEVAL'), - (e[(e.MAX_PAST_TRAJECTORY_TOKENS_FOR_RETRIEVAL = 265)] = - 'MAX_PAST_TRAJECTORY_TOKENS_FOR_RETRIEVAL'), - (e[(e.ENABLE_QUICK_ACTIONS = 250)] = 'ENABLE_QUICK_ACTIONS'), - (e[(e.QUICK_ACTIONS_WHITELIST_REGEX = 251)] = - 'QUICK_ACTIONS_WHITELIST_REGEX'), - (e[(e.CASCADE_NEW_MODELS_NUX = 259)] = 'CASCADE_NEW_MODELS_NUX'), - (e[(e.CASCADE_NEW_WAVE_2_MODELS_NUX = 270)] = - 'CASCADE_NEW_WAVE_2_MODELS_NUX'), - (e[(e.SUPERCOMPLETE_FAST_DEBOUNCE = 262)] = 'SUPERCOMPLETE_FAST_DEBOUNCE'), - (e[(e.SUPERCOMPLETE_REGULAR_DEBOUNCE = 263)] = - 'SUPERCOMPLETE_REGULAR_DEBOUNCE'), - (e[(e.XML_TOOL_PARSING_MODELS = 268)] = 'XML_TOOL_PARSING_MODELS'), - (e[(e.SUPERCOMPLETE_DONT_FILTER_MID_STREAMED = 269)] = - 'SUPERCOMPLETE_DONT_FILTER_MID_STREAMED'), - (e[(e.ANNOYANCE_MANAGER_MAX_NAVIGATION_RENDERS = 285)] = - 'ANNOYANCE_MANAGER_MAX_NAVIGATION_RENDERS'), - (e[(e.ANNOYANCE_MANAGER_INLINE_PREVENTION_THRESHOLD_MS = 286)] = - 'ANNOYANCE_MANAGER_INLINE_PREVENTION_THRESHOLD_MS'), - (e[ - (e.ANNOYANCE_MANAGER_INLINE_PREVENTION_MAX_INTENTIONAL_REJECTIONS = 287) - ] = 'ANNOYANCE_MANAGER_INLINE_PREVENTION_MAX_INTENTIONAL_REJECTIONS'), - (e[(e.ANNOYANCE_MANAGER_INLINE_PREVENTION_MAX_AUTO_REJECTIONS = 288)] = - 'ANNOYANCE_MANAGER_INLINE_PREVENTION_MAX_AUTO_REJECTIONS'), - (e[(e.USE_CUSTOM_CHARACTER_DIFF = 292)] = 'USE_CUSTOM_CHARACTER_DIFF'), - (e[(e.FORCE_NON_OPTIMIZED_DIFF = 298)] = 'FORCE_NON_OPTIMIZED_DIFF'), - (e[(e.CASCADE_RECIPES_AT_MENTION_VISIBILITY = 316)] = - 'CASCADE_RECIPES_AT_MENTION_VISIBILITY'), - (e[(e.IMPLICIT_USES_CLIPBOARD = 310)] = 'IMPLICIT_USES_CLIPBOARD'), - (e[(e.DISABLE_SUPERCOMPLETE_PCW = 303)] = 'DISABLE_SUPERCOMPLETE_PCW'), - (e[(e.BLOCK_TAB_ON_SHOWN_AUTOCOMPLETE = 304)] = - 'BLOCK_TAB_ON_SHOWN_AUTOCOMPLETE'), - (e[(e.CASCADE_WEB_SEARCH_NUX = 311)] = 'CASCADE_WEB_SEARCH_NUX'), - (e[(e.MODEL_NOTIFICATIONS = 319)] = 'MODEL_NOTIFICATIONS'), - (e[(e.MODEL_SELECTOR_NUX_COPY = 320)] = 'MODEL_SELECTOR_NUX_COPY'), - (e[(e.CASCADE_TOOL_CALL_PRICING_NUX = 322)] = - 'CASCADE_TOOL_CALL_PRICING_NUX'), - (e[(e.CASCADE_PLUGINS_TAB = 323)] = 'CASCADE_PLUGINS_TAB'), - (e[(e.WAVE_8_RULES_ENABLED = 324)] = 'WAVE_8_RULES_ENABLED'), - (e[(e.WAVE_8_KNOWLEDGE_ENABLED = 325)] = 'WAVE_8_KNOWLEDGE_ENABLED'), - (e[(e.CASCADE_ONBOARDING = 326)] = 'CASCADE_ONBOARDING'), - (e[(e.CASCADE_ONBOARDING_REVERT = 327)] = 'CASCADE_ONBOARDING_REVERT'), - (e[(e.CASCADE_ANTIGRAVITY_BROWSER_TOOLS_ENABLED = 328)] = - 'CASCADE_ANTIGRAVITY_BROWSER_TOOLS_ENABLED'), - (e[(e.CASCADE_MODEL_HEADER_WARNING = 329)] = - 'CASCADE_MODEL_HEADER_WARNING'), - (e[(e.LOG_CASCADE_CHAT_PANEL_ERROR = 331)] = - 'LOG_CASCADE_CHAT_PANEL_ERROR'), - (e[(e.TEST_ONLY = 999)] = 'TEST_ONLY')); -})(B || (B = {})); -a.util.setEnumType(B, 'exa.codeium_common_pb.ExperimentKey', [ + +// exa/proto_ts/dist/exa/codeium_common_pb/codeium_common_pb.js +var CommandRequestSource; +(function (CommandRequestSource2) { + CommandRequestSource2[(CommandRequestSource2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CommandRequestSource2[(CommandRequestSource2['DEFAULT'] = 1)] = 'DEFAULT'; + CommandRequestSource2[(CommandRequestSource2['PLAN'] = 7)] = 'PLAN'; + CommandRequestSource2[(CommandRequestSource2['FAST_APPLY'] = 12)] = + 'FAST_APPLY'; + CommandRequestSource2[(CommandRequestSource2['TERMINAL'] = 13)] = 'TERMINAL'; + CommandRequestSource2[(CommandRequestSource2['SUPERCOMPLETE'] = 10)] = + 'SUPERCOMPLETE'; + CommandRequestSource2[(CommandRequestSource2['TAB_JUMP'] = 14)] = 'TAB_JUMP'; + CommandRequestSource2[(CommandRequestSource2['CASCADE_CHAT'] = 16)] = + 'CASCADE_CHAT'; +})(CommandRequestSource || (CommandRequestSource = {})); +proto3.util.setEnumType( + CommandRequestSource, + 'exa.codeium_common_pb.CommandRequestSource', + [ + { no: 0, name: 'COMMAND_REQUEST_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'COMMAND_REQUEST_SOURCE_DEFAULT' }, + { no: 7, name: 'COMMAND_REQUEST_SOURCE_PLAN' }, + { no: 12, name: 'COMMAND_REQUEST_SOURCE_FAST_APPLY' }, + { no: 13, name: 'COMMAND_REQUEST_SOURCE_TERMINAL' }, + { no: 10, name: 'COMMAND_REQUEST_SOURCE_SUPERCOMPLETE' }, + { no: 14, name: 'COMMAND_REQUEST_SOURCE_TAB_JUMP' }, + { no: 16, name: 'COMMAND_REQUEST_SOURCE_CASCADE_CHAT' }, + ], +); +var ProviderSource; +(function (ProviderSource2) { + ProviderSource2[(ProviderSource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ProviderSource2[(ProviderSource2['AUTOCOMPLETE'] = 1)] = 'AUTOCOMPLETE'; + ProviderSource2[(ProviderSource2['COMMAND_GENERATE'] = 4)] = + 'COMMAND_GENERATE'; + ProviderSource2[(ProviderSource2['COMMAND_EDIT'] = 5)] = 'COMMAND_EDIT'; + ProviderSource2[(ProviderSource2['SUPERCOMPLETE'] = 6)] = 'SUPERCOMPLETE'; + ProviderSource2[(ProviderSource2['COMMAND_PLAN'] = 7)] = 'COMMAND_PLAN'; + ProviderSource2[(ProviderSource2['FAST_APPLY'] = 9)] = 'FAST_APPLY'; + ProviderSource2[(ProviderSource2['COMMAND_TERMINAL'] = 10)] = + 'COMMAND_TERMINAL'; + ProviderSource2[(ProviderSource2['TAB_JUMP'] = 11)] = 'TAB_JUMP'; + ProviderSource2[(ProviderSource2['CASCADE'] = 12)] = 'CASCADE'; +})(ProviderSource || (ProviderSource = {})); +proto3.util.setEnumType( + ProviderSource, + 'exa.codeium_common_pb.ProviderSource', + [ + { no: 0, name: 'PROVIDER_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'PROVIDER_SOURCE_AUTOCOMPLETE' }, + { no: 4, name: 'PROVIDER_SOURCE_COMMAND_GENERATE' }, + { no: 5, name: 'PROVIDER_SOURCE_COMMAND_EDIT' }, + { no: 6, name: 'PROVIDER_SOURCE_SUPERCOMPLETE' }, + { no: 7, name: 'PROVIDER_SOURCE_COMMAND_PLAN' }, + { no: 9, name: 'PROVIDER_SOURCE_FAST_APPLY' }, + { no: 10, name: 'PROVIDER_SOURCE_COMMAND_TERMINAL' }, + { no: 11, name: 'PROVIDER_SOURCE_TAB_JUMP' }, + { no: 12, name: 'PROVIDER_SOURCE_CASCADE' }, + ], +); +var PromptElementKind; +(function (PromptElementKind2) { + PromptElementKind2[(PromptElementKind2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + PromptElementKind2[(PromptElementKind2['FILE_MARKER'] = 2)] = 'FILE_MARKER'; + PromptElementKind2[(PromptElementKind2['OTHER_DOCUMENT'] = 4)] = + 'OTHER_DOCUMENT'; + PromptElementKind2[(PromptElementKind2['BEFORE_CURSOR'] = 5)] = + 'BEFORE_CURSOR'; + PromptElementKind2[(PromptElementKind2['AFTER_CURSOR'] = 7)] = 'AFTER_CURSOR'; + PromptElementKind2[(PromptElementKind2['FIM'] = 8)] = 'FIM'; + PromptElementKind2[(PromptElementKind2['SOT'] = 9)] = 'SOT'; + PromptElementKind2[(PromptElementKind2['EOT'] = 10)] = 'EOT'; + PromptElementKind2[(PromptElementKind2['CODE_CONTEXT_ITEM'] = 13)] = + 'CODE_CONTEXT_ITEM'; + PromptElementKind2[(PromptElementKind2['INSTRUCTION'] = 14)] = 'INSTRUCTION'; + PromptElementKind2[(PromptElementKind2['SELECTION'] = 15)] = 'SELECTION'; + PromptElementKind2[(PromptElementKind2['TRAJECTORY_STEP'] = 16)] = + 'TRAJECTORY_STEP'; + PromptElementKind2[(PromptElementKind2['ACTIVE_DOCUMENT'] = 17)] = + 'ACTIVE_DOCUMENT'; + PromptElementKind2[(PromptElementKind2['CACHED_MESSAGE'] = 18)] = + 'CACHED_MESSAGE'; +})(PromptElementKind || (PromptElementKind = {})); +proto3.util.setEnumType( + PromptElementKind, + 'exa.codeium_common_pb.PromptElementKind', + [ + { no: 0, name: 'PROMPT_ELEMENT_KIND_UNSPECIFIED' }, + { no: 2, name: 'PROMPT_ELEMENT_KIND_FILE_MARKER' }, + { no: 4, name: 'PROMPT_ELEMENT_KIND_OTHER_DOCUMENT' }, + { no: 5, name: 'PROMPT_ELEMENT_KIND_BEFORE_CURSOR' }, + { no: 7, name: 'PROMPT_ELEMENT_KIND_AFTER_CURSOR' }, + { no: 8, name: 'PROMPT_ELEMENT_KIND_FIM' }, + { no: 9, name: 'PROMPT_ELEMENT_KIND_SOT' }, + { no: 10, name: 'PROMPT_ELEMENT_KIND_EOT' }, + { no: 13, name: 'PROMPT_ELEMENT_KIND_CODE_CONTEXT_ITEM' }, + { no: 14, name: 'PROMPT_ELEMENT_KIND_INSTRUCTION' }, + { no: 15, name: 'PROMPT_ELEMENT_KIND_SELECTION' }, + { no: 16, name: 'PROMPT_ELEMENT_KIND_TRAJECTORY_STEP' }, + { no: 17, name: 'PROMPT_ELEMENT_KIND_ACTIVE_DOCUMENT' }, + { no: 18, name: 'PROMPT_ELEMENT_KIND_CACHED_MESSAGE' }, + ], +); +var PromptAnnotationKind; +(function (PromptAnnotationKind2) { + PromptAnnotationKind2[(PromptAnnotationKind2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + PromptAnnotationKind2[(PromptAnnotationKind2['COPY'] = 1)] = 'COPY'; + PromptAnnotationKind2[(PromptAnnotationKind2['PROMPT_CACHE'] = 2)] = + 'PROMPT_CACHE'; +})(PromptAnnotationKind || (PromptAnnotationKind = {})); +proto3.util.setEnumType( + PromptAnnotationKind, + 'exa.codeium_common_pb.PromptAnnotationKind', + [ + { no: 0, name: 'PROMPT_ANNOTATION_KIND_UNSPECIFIED' }, + { no: 1, name: 'PROMPT_ANNOTATION_KIND_COPY' }, + { no: 2, name: 'PROMPT_ANNOTATION_KIND_PROMPT_CACHE' }, + ], +); +var ExperimentKey; +(function (ExperimentKey2) { + ExperimentKey2[(ExperimentKey2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ExperimentKey2[(ExperimentKey2['USE_INTERNAL_CHAT_MODEL'] = 36)] = + 'USE_INTERNAL_CHAT_MODEL'; + ExperimentKey2[(ExperimentKey2['RECORD_FILES'] = 47)] = 'RECORD_FILES'; + ExperimentKey2[(ExperimentKey2['NO_SAMPLER_EARLY_STOP'] = 48)] = + 'NO_SAMPLER_EARLY_STOP'; + ExperimentKey2[(ExperimentKey2['CM_MEMORY_TELEMETRY'] = 53)] = + 'CM_MEMORY_TELEMETRY'; + ExperimentKey2[(ExperimentKey2['LANGUAGE_SERVER_VERSION'] = 55)] = + 'LANGUAGE_SERVER_VERSION'; + ExperimentKey2[(ExperimentKey2['LANGUAGE_SERVER_AUTO_RELOAD'] = 56)] = + 'LANGUAGE_SERVER_AUTO_RELOAD'; + ExperimentKey2[(ExperimentKey2['ONLY_MULTILINE'] = 60)] = 'ONLY_MULTILINE'; + ExperimentKey2[(ExperimentKey2['USE_ATTRIBUTION_FOR_INDIVIDUAL_TIER'] = 68)] = + 'USE_ATTRIBUTION_FOR_INDIVIDUAL_TIER'; + ExperimentKey2[(ExperimentKey2['CHAT_MODEL_CONFIG'] = 78)] = + 'CHAT_MODEL_CONFIG'; + ExperimentKey2[(ExperimentKey2['COMMAND_MODEL_CONFIG'] = 79)] = + 'COMMAND_MODEL_CONFIG'; + ExperimentKey2[(ExperimentKey2['MIN_IDE_VERSION'] = 81)] = 'MIN_IDE_VERSION'; + ExperimentKey2[(ExperimentKey2['API_SERVER_VERBOSE_ERRORS'] = 84)] = + 'API_SERVER_VERBOSE_ERRORS'; + ExperimentKey2[(ExperimentKey2['DEFAULT_ENABLE_SEARCH'] = 86)] = + 'DEFAULT_ENABLE_SEARCH'; + ExperimentKey2[(ExperimentKey2['COLLECT_ONBOARDING_EVENTS'] = 87)] = + 'COLLECT_ONBOARDING_EVENTS'; + ExperimentKey2[(ExperimentKey2['COLLECT_EXAMPLE_COMPLETIONS'] = 88)] = + 'COLLECT_EXAMPLE_COMPLETIONS'; + ExperimentKey2[(ExperimentKey2['USE_MULTILINE_MODEL'] = 89)] = + 'USE_MULTILINE_MODEL'; + ExperimentKey2[(ExperimentKey2['ATTRIBUTION_KILL_SWITCH'] = 92)] = + 'ATTRIBUTION_KILL_SWITCH'; + ExperimentKey2[(ExperimentKey2['FAST_MULTILINE'] = 94)] = 'FAST_MULTILINE'; + ExperimentKey2[(ExperimentKey2['SINGLE_COMPLETION'] = 95)] = + 'SINGLE_COMPLETION'; + ExperimentKey2[(ExperimentKey2['STOP_FIRST_NON_WHITESPACE_LINE'] = 96)] = + 'STOP_FIRST_NON_WHITESPACE_LINE'; + ExperimentKey2[(ExperimentKey2['CORTEX_CONFIG'] = 102)] = 'CORTEX_CONFIG'; + ExperimentKey2[(ExperimentKey2['MODEL_CHAT_11121_VARIANTS'] = 103)] = + 'MODEL_CHAT_11121_VARIANTS'; + ExperimentKey2[(ExperimentKey2['INCLUDE_PROMPT_COMPONENTS'] = 105)] = + 'INCLUDE_PROMPT_COMPONENTS'; + ExperimentKey2[(ExperimentKey2['PERSIST_CODE_TRACKER'] = 108)] = + 'PERSIST_CODE_TRACKER'; + ExperimentKey2[(ExperimentKey2['API_SERVER_LIVENESS_PROBE'] = 112)] = + 'API_SERVER_LIVENESS_PROBE'; + ExperimentKey2[(ExperimentKey2['CHAT_COMPLETION_TOKENS_SOFT_LIMIT'] = 114)] = + 'CHAT_COMPLETION_TOKENS_SOFT_LIMIT'; + ExperimentKey2[(ExperimentKey2['CHAT_TOKENS_SOFT_LIMIT'] = 115)] = + 'CHAT_TOKENS_SOFT_LIMIT'; + ExperimentKey2[(ExperimentKey2['DISABLE_COMPLETIONS_CACHE'] = 118)] = + 'DISABLE_COMPLETIONS_CACHE'; + ExperimentKey2[(ExperimentKey2['LLAMA3_405B_KILL_SWITCH'] = 119)] = + 'LLAMA3_405B_KILL_SWITCH'; + ExperimentKey2[(ExperimentKey2['USE_COMMAND_DOCSTRING_GENERATION'] = 121)] = + 'USE_COMMAND_DOCSTRING_GENERATION'; + ExperimentKey2[(ExperimentKey2['SENTRY'] = 136)] = 'SENTRY'; + ExperimentKey2[(ExperimentKey2['FAST_SINGLELINE'] = 144)] = 'FAST_SINGLELINE'; + ExperimentKey2[(ExperimentKey2['R2_LANGUAGE_SERVER_DOWNLOAD'] = 147)] = + 'R2_LANGUAGE_SERVER_DOWNLOAD'; + ExperimentKey2[(ExperimentKey2['SPLIT_MODEL'] = 152)] = 'SPLIT_MODEL'; + ExperimentKey2[(ExperimentKey2['ANTIGRAVITY_SENTRY_SAMPLE_RATE'] = 198)] = + 'ANTIGRAVITY_SENTRY_SAMPLE_RATE'; + ExperimentKey2[(ExperimentKey2['API_SERVER_CUTOFF'] = 158)] = + 'API_SERVER_CUTOFF'; + ExperimentKey2[(ExperimentKey2['FAST_SPEED_KILL_SWITCH'] = 159)] = + 'FAST_SPEED_KILL_SWITCH'; + ExperimentKey2[(ExperimentKey2['PREDICTIVE_MULTILINE'] = 160)] = + 'PREDICTIVE_MULTILINE'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_FILTER_REVERT'] = 125)] = + 'SUPERCOMPLETE_FILTER_REVERT'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_FILTER_PREFIX_MATCH'] = 126)] = + 'SUPERCOMPLETE_FILTER_PREFIX_MATCH'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_FILTER_SCORE_THRESHOLD'] = 127) + ] = 'SUPERCOMPLETE_FILTER_SCORE_THRESHOLD'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_FILTER_INSERTION_CAP'] = 128)] = + 'SUPERCOMPLETE_FILTER_INSERTION_CAP'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_FILTER_DELETION_CAP'] = 133)] = + 'SUPERCOMPLETE_FILTER_DELETION_CAP'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_FILTER_WHITESPACE_ONLY'] = 156) + ] = 'SUPERCOMPLETE_FILTER_WHITESPACE_ONLY'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_FILTER_NO_OP'] = 170)] = + 'SUPERCOMPLETE_FILTER_NO_OP'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_FILTER_SUFFIX_MATCH'] = 176)] = + 'SUPERCOMPLETE_FILTER_SUFFIX_MATCH'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_FILTER_PREVIOUSLY_SHOWN'] = 182) + ] = 'SUPERCOMPLETE_FILTER_PREVIOUSLY_SHOWN'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_MIN_SCORE'] = 129)] = + 'SUPERCOMPLETE_MIN_SCORE'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_MAX_INSERTIONS'] = 130)] = + 'SUPERCOMPLETE_MAX_INSERTIONS'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_LINE_RADIUS'] = 131)] = + 'SUPERCOMPLETE_LINE_RADIUS'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_MAX_DELETIONS'] = 132)] = + 'SUPERCOMPLETE_MAX_DELETIONS'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_USE_CURRENT_LINE'] = 135)] = + 'SUPERCOMPLETE_USE_CURRENT_LINE'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_RECENT_STEPS_DURATION'] = 138) + ] = 'SUPERCOMPLETE_RECENT_STEPS_DURATION'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_USE_CODE_DIAGNOSTICS'] = 143)] = + 'SUPERCOMPLETE_USE_CODE_DIAGNOSTICS'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_DIAGNOSTIC_SEVERITY_THRESHOLD'] = 223) + ] = 'SUPERCOMPLETE_DIAGNOSTIC_SEVERITY_THRESHOLD'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_CODE_DIAGNOSTICS_TOP_K'] = 232) + ] = 'SUPERCOMPLETE_CODE_DIAGNOSTICS_TOP_K'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_MAX_TRAJECTORY_STEPS'] = 154)] = + 'SUPERCOMPLETE_MAX_TRAJECTORY_STEPS'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_ON_ACCEPT_ONLY'] = 157)] = + 'SUPERCOMPLETE_ON_ACCEPT_ONLY'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_TEMPERATURE'] = 183)] = + 'SUPERCOMPLETE_TEMPERATURE'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_MAX_TRAJECTORY_STEP_SIZE'] = 203) + ] = 'SUPERCOMPLETE_MAX_TRAJECTORY_STEP_SIZE'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_DISABLE_TYPING_CACHE'] = 231)] = + 'SUPERCOMPLETE_DISABLE_TYPING_CACHE'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_ALWAYS_USE_CACHE_ON_EQUAL_STATE'] = 293) + ] = 'SUPERCOMPLETE_ALWAYS_USE_CACHE_ON_EQUAL_STATE'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_CACHE_ON_PARENT_ID_KILL_SWITCH'] = 297) + ] = 'SUPERCOMPLETE_CACHE_ON_PARENT_ID_KILL_SWITCH'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_PRUNE_RESPONSE'] = 140)] = + 'SUPERCOMPLETE_PRUNE_RESPONSE'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_PRUNE_MAX_INSERT_DELETE_LINE_DELTA'] = 141) + ] = 'SUPERCOMPLETE_PRUNE_MAX_INSERT_DELETE_LINE_DELTA'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_MODEL_CONFIG'] = 145)] = + 'SUPERCOMPLETE_MODEL_CONFIG'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_ON_TAB'] = 151)] = + 'SUPERCOMPLETE_ON_TAB'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_INLINE_PURE_DELETE'] = 171)] = + 'SUPERCOMPLETE_INLINE_PURE_DELETE'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_INLINE_RICH_GHOST_TEXT_INSERTIONS'] = 218) + ] = 'SUPERCOMPLETE_INLINE_RICH_GHOST_TEXT_INSERTIONS'; + ExperimentKey2[(ExperimentKey2['MODEL_CHAT_19821_VARIANTS'] = 308)] = + 'MODEL_CHAT_19821_VARIANTS'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_MAX_CONCURRENT_REQUESTS'] = 284) + ] = 'SUPERCOMPLETE_MAX_CONCURRENT_REQUESTS'; + ExperimentKey2[(ExperimentKey2['COMMAND_PROMPT_CACHE_CONFIG'] = 255)] = + 'COMMAND_PROMPT_CACHE_CONFIG'; + ExperimentKey2[(ExperimentKey2['CUMULATIVE_PROMPT_CONFIG'] = 256)] = + 'CUMULATIVE_PROMPT_CONFIG'; + ExperimentKey2[(ExperimentKey2['CUMULATIVE_PROMPT_CASCADE_CONFIG'] = 279)] = + 'CUMULATIVE_PROMPT_CASCADE_CONFIG'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_CUMULATIVE_PROMPT_CONFIG'] = 301)] = + 'TAB_JUMP_CUMULATIVE_PROMPT_CONFIG'; + ExperimentKey2[ + (ExperimentKey2['COMPLETION_SPEED_SUPERCOMPLETE_CACHE'] = 207) + ] = 'COMPLETION_SPEED_SUPERCOMPLETE_CACHE'; + ExperimentKey2[ + (ExperimentKey2['COMPLETION_SPEED_PREDICTIVE_SUPERCOMPLETE'] = 208) + ] = 'COMPLETION_SPEED_PREDICTIVE_SUPERCOMPLETE'; + ExperimentKey2[(ExperimentKey2['COMPLETION_SPEED_TAB_JUMP_CACHE'] = 209)] = + 'COMPLETION_SPEED_TAB_JUMP_CACHE'; + ExperimentKey2[ + (ExperimentKey2['COMPLETION_SPEED_PREDICTIVE_TAB_JUMP'] = 210) + ] = 'COMPLETION_SPEED_PREDICTIVE_TAB_JUMP'; + ExperimentKey2[ + (ExperimentKey2[ + 'COMPLETION_SPEED_BLOCK_TAB_JUMP_ON_PREDICTIVE_SUPERCOMPLETE' + ] = 294) + ] = 'COMPLETION_SPEED_BLOCK_TAB_JUMP_ON_PREDICTIVE_SUPERCOMPLETE'; + ExperimentKey2[(ExperimentKey2['JETBRAINS_ENABLE_ONBOARDING'] = 137)] = + 'JETBRAINS_ENABLE_ONBOARDING'; + ExperimentKey2[ + (ExperimentKey2['ENABLE_AUTOCOMPLETE_DURING_INTELLISENSE'] = 146) + ] = 'ENABLE_AUTOCOMPLETE_DURING_INTELLISENSE'; + ExperimentKey2[(ExperimentKey2['COMMAND_BOX_ON_TOP'] = 155)] = + 'COMMAND_BOX_ON_TOP'; + ExperimentKey2[(ExperimentKey2['CONTEXT_ACTIVE_DOCUMENT_FRACTION'] = 149)] = + 'CONTEXT_ACTIVE_DOCUMENT_FRACTION'; + ExperimentKey2[ + (ExperimentKey2['CONTEXT_COMMAND_TRAJECTORY_PROMPT_CONFIG'] = 150) + ] = 'CONTEXT_COMMAND_TRAJECTORY_PROMPT_CONFIG'; + ExperimentKey2[(ExperimentKey2['CONTEXT_FORCE_LOCAL_CONTEXT'] = 178)] = + 'CONTEXT_FORCE_LOCAL_CONTEXT'; + ExperimentKey2[ + (ExperimentKey2['CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY'] = 220) + ] = 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY'; + ExperimentKey2[ + (ExperimentKey2['MODEL_LLAMA_3_1_70B_INSTRUCT_LONG_CONTEXT_VARIANTS'] = 295) + ] = 'MODEL_LLAMA_3_1_70B_INSTRUCT_LONG_CONTEXT_VARIANTS'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_NO_ACTIVE_NODE'] = 166)] = + 'SUPERCOMPLETE_NO_ACTIVE_NODE'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_ENABLED'] = 168)] = + 'TAB_JUMP_ENABLED'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_LINE_RADIUS'] = 177)] = + 'TAB_JUMP_LINE_RADIUS'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_MIN_FILTER_RADIUS'] = 197)] = + 'TAB_JUMP_MIN_FILTER_RADIUS'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_ON_ACCEPT_ONLY'] = 205)] = + 'TAB_JUMP_ON_ACCEPT_ONLY'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_FILTER_IN_SELECTION'] = 215)] = + 'TAB_JUMP_FILTER_IN_SELECTION'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_MODEL_CONFIG'] = 237)] = + 'TAB_JUMP_MODEL_CONFIG'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_FILTER_NO_OP'] = 238)] = + 'TAB_JUMP_FILTER_NO_OP'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_FILTER_REVERT'] = 239)] = + 'TAB_JUMP_FILTER_REVERT'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_FILTER_SCORE_THRESHOLD'] = 240)] = + 'TAB_JUMP_FILTER_SCORE_THRESHOLD'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_FILTER_WHITESPACE_ONLY'] = 241)] = + 'TAB_JUMP_FILTER_WHITESPACE_ONLY'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_FILTER_INSERTION_CAP'] = 242)] = + 'TAB_JUMP_FILTER_INSERTION_CAP'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_FILTER_DELETION_CAP'] = 243)] = + 'TAB_JUMP_FILTER_DELETION_CAP'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_PRUNE_RESPONSE'] = 260)] = + 'TAB_JUMP_PRUNE_RESPONSE'; + ExperimentKey2[ + (ExperimentKey2['TAB_JUMP_PRUNE_MAX_INSERT_DELETE_LINE_DELTA'] = 261) + ] = 'TAB_JUMP_PRUNE_MAX_INSERT_DELETE_LINE_DELTA'; + ExperimentKey2[(ExperimentKey2['TAB_JUMP_STOP_TOKEN_MIDSTREAM'] = 317)] = + 'TAB_JUMP_STOP_TOKEN_MIDSTREAM'; + ExperimentKey2[(ExperimentKey2['VIEWED_FILE_TRACKER_CONFIG'] = 211)] = + 'VIEWED_FILE_TRACKER_CONFIG'; + ExperimentKey2[(ExperimentKey2['SNAPSHOT_TO_STEP_OPTIONS_OVERRIDE'] = 305)] = + 'SNAPSHOT_TO_STEP_OPTIONS_OVERRIDE'; + ExperimentKey2[(ExperimentKey2['STREAMING_EXTERNAL_COMMAND'] = 172)] = + 'STREAMING_EXTERNAL_COMMAND'; + ExperimentKey2[(ExperimentKey2['USE_SPECIAL_EDIT_CODE_BLOCK'] = 179)] = + 'USE_SPECIAL_EDIT_CODE_BLOCK'; + ExperimentKey2[(ExperimentKey2['ENABLE_SUGGESTED_RESPONSES'] = 187)] = + 'ENABLE_SUGGESTED_RESPONSES'; + ExperimentKey2[(ExperimentKey2['CASCADE_BASE_MODEL_ID'] = 190)] = + 'CASCADE_BASE_MODEL_ID'; + ExperimentKey2[(ExperimentKey2['CASCADE_PLAN_BASED_CONFIG_OVERRIDE'] = 266)] = + 'CASCADE_PLAN_BASED_CONFIG_OVERRIDE'; + ExperimentKey2[(ExperimentKey2['CASCADE_GLOBAL_CONFIG_OVERRIDE'] = 212)] = + 'CASCADE_GLOBAL_CONFIG_OVERRIDE'; + ExperimentKey2[ + (ExperimentKey2['CASCADE_BACKGROUND_RESEARCH_CONFIG_OVERRIDE'] = 193) + ] = 'CASCADE_BACKGROUND_RESEARCH_CONFIG_OVERRIDE'; + ExperimentKey2[(ExperimentKey2['CASCADE_ENFORCE_QUOTA'] = 204)] = + 'CASCADE_ENFORCE_QUOTA'; + ExperimentKey2[(ExperimentKey2['CASCADE_ENABLE_AUTOMATED_MEMORIES'] = 224)] = + 'CASCADE_ENABLE_AUTOMATED_MEMORIES'; + ExperimentKey2[(ExperimentKey2['CASCADE_MEMORY_CONFIG_OVERRIDE'] = 314)] = + 'CASCADE_MEMORY_CONFIG_OVERRIDE'; + ExperimentKey2[ + (ExperimentKey2['CASCADE_USE_REPLACE_CONTENT_EDIT_TOOL'] = 228) + ] = 'CASCADE_USE_REPLACE_CONTENT_EDIT_TOOL'; + ExperimentKey2[ + (ExperimentKey2['CASCADE_VIEW_FILE_TOOL_CONFIG_OVERRIDE'] = 258) + ] = 'CASCADE_VIEW_FILE_TOOL_CONFIG_OVERRIDE'; + ExperimentKey2[ + (ExperimentKey2['CASCADE_USE_EXPERIMENT_CHECKPOINTER'] = 247) + ] = 'CASCADE_USE_EXPERIMENT_CHECKPOINTER'; + ExperimentKey2[(ExperimentKey2['CASCADE_ENABLE_MCP_TOOLS'] = 245)] = + 'CASCADE_ENABLE_MCP_TOOLS'; + ExperimentKey2[(ExperimentKey2['CASCADE_AUTO_FIX_LINTS'] = 275)] = + 'CASCADE_AUTO_FIX_LINTS'; + ExperimentKey2[ + (ExperimentKey2['USE_ANTHROPIC_TOKEN_EFFICIENT_TOOLS_BETA'] = 296) + ] = 'USE_ANTHROPIC_TOKEN_EFFICIENT_TOOLS_BETA'; + ExperimentKey2[ + (ExperimentKey2['CASCADE_USER_MEMORIES_IN_SYS_PROMPT'] = 289) + ] = 'CASCADE_USER_MEMORIES_IN_SYS_PROMPT'; + ExperimentKey2[(ExperimentKey2['COLLAPSE_ASSISTANT_MESSAGES'] = 312)] = + 'COLLAPSE_ASSISTANT_MESSAGES'; + ExperimentKey2[(ExperimentKey2['CASCADE_DEFAULT_MODEL_OVERRIDE'] = 321)] = + 'CASCADE_DEFAULT_MODEL_OVERRIDE'; + ExperimentKey2[(ExperimentKey2['ENABLE_SMART_COPY'] = 181)] = + 'ENABLE_SMART_COPY'; + ExperimentKey2[(ExperimentKey2['ENABLE_COMMIT_MESSAGE_GENERATION'] = 185)] = + 'ENABLE_COMMIT_MESSAGE_GENERATION'; + ExperimentKey2[(ExperimentKey2['FIREWORKS_ON_DEMAND_DEPLOYMENT'] = 276)] = + 'FIREWORKS_ON_DEMAND_DEPLOYMENT'; + ExperimentKey2[(ExperimentKey2['API_SERVER_CLIENT_USE_HTTP_2'] = 202)] = + 'API_SERVER_CLIENT_USE_HTTP_2'; + ExperimentKey2[(ExperimentKey2['AUTOCOMPLETE_DEFAULT_DEBOUNCE_MS'] = 213)] = + 'AUTOCOMPLETE_DEFAULT_DEBOUNCE_MS'; + ExperimentKey2[(ExperimentKey2['AUTOCOMPLETE_FAST_DEBOUNCE_MS'] = 214)] = + 'AUTOCOMPLETE_FAST_DEBOUNCE_MS'; + ExperimentKey2[(ExperimentKey2['PROFILING_TELEMETRY_SAMPLE_RATE'] = 219)] = + 'PROFILING_TELEMETRY_SAMPLE_RATE'; + ExperimentKey2[(ExperimentKey2['STREAM_USER_SHELL_COMMANDS'] = 225)] = + 'STREAM_USER_SHELL_COMMANDS'; + ExperimentKey2[(ExperimentKey2['API_SERVER_PROMPT_CACHE_REPLICAS'] = 307)] = + 'API_SERVER_PROMPT_CACHE_REPLICAS'; + ExperimentKey2[(ExperimentKey2['API_SERVER_ENABLE_MORE_LOGGING'] = 272)] = + 'API_SERVER_ENABLE_MORE_LOGGING'; + ExperimentKey2[(ExperimentKey2['COMMAND_INJECT_USER_MEMORIES'] = 233)] = + 'COMMAND_INJECT_USER_MEMORIES'; + ExperimentKey2[(ExperimentKey2['AUTOCOMPLETE_HIDDEN_ERROR_REGEX'] = 234)] = + 'AUTOCOMPLETE_HIDDEN_ERROR_REGEX'; + ExperimentKey2[(ExperimentKey2['DISABLE_IDE_COMPLETIONS_DEBOUNCE'] = 278)] = + 'DISABLE_IDE_COMPLETIONS_DEBOUNCE'; + ExperimentKey2[ + (ExperimentKey2['COMBINED_MODEL_USE_FULL_INSTRUCTION_FOR_RETRIEVAL'] = 264) + ] = 'COMBINED_MODEL_USE_FULL_INSTRUCTION_FOR_RETRIEVAL'; + ExperimentKey2[ + (ExperimentKey2['MAX_PAST_TRAJECTORY_TOKENS_FOR_RETRIEVAL'] = 265) + ] = 'MAX_PAST_TRAJECTORY_TOKENS_FOR_RETRIEVAL'; + ExperimentKey2[(ExperimentKey2['ENABLE_QUICK_ACTIONS'] = 250)] = + 'ENABLE_QUICK_ACTIONS'; + ExperimentKey2[(ExperimentKey2['QUICK_ACTIONS_WHITELIST_REGEX'] = 251)] = + 'QUICK_ACTIONS_WHITELIST_REGEX'; + ExperimentKey2[(ExperimentKey2['CASCADE_NEW_MODELS_NUX'] = 259)] = + 'CASCADE_NEW_MODELS_NUX'; + ExperimentKey2[(ExperimentKey2['CASCADE_NEW_WAVE_2_MODELS_NUX'] = 270)] = + 'CASCADE_NEW_WAVE_2_MODELS_NUX'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_FAST_DEBOUNCE'] = 262)] = + 'SUPERCOMPLETE_FAST_DEBOUNCE'; + ExperimentKey2[(ExperimentKey2['SUPERCOMPLETE_REGULAR_DEBOUNCE'] = 263)] = + 'SUPERCOMPLETE_REGULAR_DEBOUNCE'; + ExperimentKey2[(ExperimentKey2['XML_TOOL_PARSING_MODELS'] = 268)] = + 'XML_TOOL_PARSING_MODELS'; + ExperimentKey2[ + (ExperimentKey2['SUPERCOMPLETE_DONT_FILTER_MID_STREAMED'] = 269) + ] = 'SUPERCOMPLETE_DONT_FILTER_MID_STREAMED'; + ExperimentKey2[ + (ExperimentKey2['ANNOYANCE_MANAGER_MAX_NAVIGATION_RENDERS'] = 285) + ] = 'ANNOYANCE_MANAGER_MAX_NAVIGATION_RENDERS'; + ExperimentKey2[ + (ExperimentKey2['ANNOYANCE_MANAGER_INLINE_PREVENTION_THRESHOLD_MS'] = 286) + ] = 'ANNOYANCE_MANAGER_INLINE_PREVENTION_THRESHOLD_MS'; + ExperimentKey2[ + (ExperimentKey2[ + 'ANNOYANCE_MANAGER_INLINE_PREVENTION_MAX_INTENTIONAL_REJECTIONS' + ] = 287) + ] = 'ANNOYANCE_MANAGER_INLINE_PREVENTION_MAX_INTENTIONAL_REJECTIONS'; + ExperimentKey2[ + (ExperimentKey2['ANNOYANCE_MANAGER_INLINE_PREVENTION_MAX_AUTO_REJECTIONS'] = + 288) + ] = 'ANNOYANCE_MANAGER_INLINE_PREVENTION_MAX_AUTO_REJECTIONS'; + ExperimentKey2[(ExperimentKey2['USE_CUSTOM_CHARACTER_DIFF'] = 292)] = + 'USE_CUSTOM_CHARACTER_DIFF'; + ExperimentKey2[(ExperimentKey2['FORCE_NON_OPTIMIZED_DIFF'] = 298)] = + 'FORCE_NON_OPTIMIZED_DIFF'; + ExperimentKey2[ + (ExperimentKey2['CASCADE_RECIPES_AT_MENTION_VISIBILITY'] = 316) + ] = 'CASCADE_RECIPES_AT_MENTION_VISIBILITY'; + ExperimentKey2[(ExperimentKey2['IMPLICIT_USES_CLIPBOARD'] = 310)] = + 'IMPLICIT_USES_CLIPBOARD'; + ExperimentKey2[(ExperimentKey2['DISABLE_SUPERCOMPLETE_PCW'] = 303)] = + 'DISABLE_SUPERCOMPLETE_PCW'; + ExperimentKey2[(ExperimentKey2['BLOCK_TAB_ON_SHOWN_AUTOCOMPLETE'] = 304)] = + 'BLOCK_TAB_ON_SHOWN_AUTOCOMPLETE'; + ExperimentKey2[(ExperimentKey2['CASCADE_WEB_SEARCH_NUX'] = 311)] = + 'CASCADE_WEB_SEARCH_NUX'; + ExperimentKey2[(ExperimentKey2['MODEL_NOTIFICATIONS'] = 319)] = + 'MODEL_NOTIFICATIONS'; + ExperimentKey2[(ExperimentKey2['MODEL_SELECTOR_NUX_COPY'] = 320)] = + 'MODEL_SELECTOR_NUX_COPY'; + ExperimentKey2[(ExperimentKey2['CASCADE_TOOL_CALL_PRICING_NUX'] = 322)] = + 'CASCADE_TOOL_CALL_PRICING_NUX'; + ExperimentKey2[(ExperimentKey2['CASCADE_PLUGINS_TAB'] = 323)] = + 'CASCADE_PLUGINS_TAB'; + ExperimentKey2[(ExperimentKey2['WAVE_8_RULES_ENABLED'] = 324)] = + 'WAVE_8_RULES_ENABLED'; + ExperimentKey2[(ExperimentKey2['WAVE_8_KNOWLEDGE_ENABLED'] = 325)] = + 'WAVE_8_KNOWLEDGE_ENABLED'; + ExperimentKey2[(ExperimentKey2['CASCADE_ONBOARDING'] = 326)] = + 'CASCADE_ONBOARDING'; + ExperimentKey2[(ExperimentKey2['CASCADE_ONBOARDING_REVERT'] = 327)] = + 'CASCADE_ONBOARDING_REVERT'; + ExperimentKey2[ + (ExperimentKey2['CASCADE_ANTIGRAVITY_BROWSER_TOOLS_ENABLED'] = 328) + ] = 'CASCADE_ANTIGRAVITY_BROWSER_TOOLS_ENABLED'; + ExperimentKey2[(ExperimentKey2['CASCADE_MODEL_HEADER_WARNING'] = 329)] = + 'CASCADE_MODEL_HEADER_WARNING'; + ExperimentKey2[(ExperimentKey2['LOG_CASCADE_CHAT_PANEL_ERROR'] = 331)] = + 'LOG_CASCADE_CHAT_PANEL_ERROR'; + ExperimentKey2[(ExperimentKey2['TEST_ONLY'] = 999)] = 'TEST_ONLY'; +})(ExperimentKey || (ExperimentKey = {})); +proto3.util.setEnumType(ExperimentKey, 'exa.codeium_common_pb.ExperimentKey', [ { no: 0, name: 'UNSPECIFIED' }, { no: 36, name: 'USE_INTERNAL_CHAT_MODEL' }, { no: 47, name: 'RECORD_FILES' }, @@ -3662,31 +5786,36 @@ a.util.setEnumType(B, 'exa.codeium_common_pb.ExperimentKey', [ { no: 331, name: 'LOG_CASCADE_CHAT_PANEL_ERROR' }, { no: 999, name: 'TEST_ONLY' }, ]); -var ye; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.EXTENSION = 1)] = 'EXTENSION'), - (e[(e.LANGUAGE_SERVER = 2)] = 'LANGUAGE_SERVER'), - (e[(e.API_SERVER = 3)] = 'API_SERVER')); -})(ye || (ye = {})); -a.util.setEnumType(ye, 'exa.codeium_common_pb.ExperimentSource', [ - { no: 0, name: 'EXPERIMENT_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'EXPERIMENT_SOURCE_EXTENSION' }, - { no: 2, name: 'EXPERIMENT_SOURCE_LANGUAGE_SERVER' }, - { no: 3, name: 'EXPERIMENT_SOURCE_API_SERVER' }, -]); -var Rr; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CASCADE_BASE = 1)] = 'CASCADE_BASE'), - (e[(e.VISTA = 3)] = 'VISTA'), - (e[(e.SHAMU = 4)] = 'SHAMU'), - (e[(e.SWE_1 = 5)] = 'SWE_1'), - (e[(e.SWE_1_LITE = 6)] = 'SWE_1_LITE'), - (e[(e.AUTO = 7)] = 'AUTO'), - (e[(e.RECOMMENDED = 8)] = 'RECOMMENDED')); -})(Rr || (Rr = {})); -a.util.setEnumType(Rr, 'exa.codeium_common_pb.ModelAlias', [ +var ExperimentSource; +(function (ExperimentSource2) { + ExperimentSource2[(ExperimentSource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ExperimentSource2[(ExperimentSource2['EXTENSION'] = 1)] = 'EXTENSION'; + ExperimentSource2[(ExperimentSource2['LANGUAGE_SERVER'] = 2)] = + 'LANGUAGE_SERVER'; + ExperimentSource2[(ExperimentSource2['API_SERVER'] = 3)] = 'API_SERVER'; +})(ExperimentSource || (ExperimentSource = {})); +proto3.util.setEnumType( + ExperimentSource, + 'exa.codeium_common_pb.ExperimentSource', + [ + { no: 0, name: 'EXPERIMENT_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'EXPERIMENT_SOURCE_EXTENSION' }, + { no: 2, name: 'EXPERIMENT_SOURCE_LANGUAGE_SERVER' }, + { no: 3, name: 'EXPERIMENT_SOURCE_API_SERVER' }, + ], +); +var ModelAlias; +(function (ModelAlias2) { + ModelAlias2[(ModelAlias2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ModelAlias2[(ModelAlias2['CASCADE_BASE'] = 1)] = 'CASCADE_BASE'; + ModelAlias2[(ModelAlias2['VISTA'] = 3)] = 'VISTA'; + ModelAlias2[(ModelAlias2['SHAMU'] = 4)] = 'SHAMU'; + ModelAlias2[(ModelAlias2['SWE_1'] = 5)] = 'SWE_1'; + ModelAlias2[(ModelAlias2['SWE_1_LITE'] = 6)] = 'SWE_1_LITE'; + ModelAlias2[(ModelAlias2['AUTO'] = 7)] = 'AUTO'; + ModelAlias2[(ModelAlias2['RECOMMENDED'] = 8)] = 'RECOMMENDED'; +})(ModelAlias || (ModelAlias = {})); +proto3.util.setEnumType(ModelAlias, 'exa.codeium_common_pb.ModelAlias', [ { no: 0, name: 'MODEL_ALIAS_UNSPECIFIED' }, { no: 1, name: 'MODEL_ALIAS_CASCADE_BASE' }, { no: 3, name: 'MODEL_ALIAS_VISTA' }, @@ -3696,111 +5825,123 @@ a.util.setEnumType(Rr, 'exa.codeium_common_pb.ModelAlias', [ { no: 7, name: 'MODEL_ALIAS_AUTO' }, { no: 8, name: 'MODEL_ALIAS_RECOMMENDED' }, ]); -var f; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CHAT_20706 = 235)] = 'CHAT_20706'), - (e[(e.CHAT_23310 = 269)] = 'CHAT_23310'), - (e[(e.GOOGLE_GEMINI_2_5_FLASH = 312)] = 'GOOGLE_GEMINI_2_5_FLASH'), - (e[(e.GOOGLE_GEMINI_2_5_FLASH_THINKING = 313)] = - 'GOOGLE_GEMINI_2_5_FLASH_THINKING'), - (e[(e.GOOGLE_GEMINI_2_5_FLASH_THINKING_TOOLS = 329)] = - 'GOOGLE_GEMINI_2_5_FLASH_THINKING_TOOLS'), - (e[(e.GOOGLE_GEMINI_2_5_FLASH_LITE = 330)] = - 'GOOGLE_GEMINI_2_5_FLASH_LITE'), - (e[(e.GOOGLE_GEMINI_2_5_PRO = 246)] = 'GOOGLE_GEMINI_2_5_PRO'), - (e[(e.GOOGLE_GEMINI_2_5_PRO_EVAL = 331)] = 'GOOGLE_GEMINI_2_5_PRO_EVAL'), - (e[(e.GOOGLE_GEMINI_FOR_GOOGLE_2_5_PRO = 327)] = - 'GOOGLE_GEMINI_FOR_GOOGLE_2_5_PRO'), - (e[(e.GOOGLE_GEMINI_NEMOSREEF = 328)] = 'GOOGLE_GEMINI_NEMOSREEF'), - (e[(e.GOOGLE_GEMINI_2_5_FLASH_IMAGE_PREVIEW = 332)] = - 'GOOGLE_GEMINI_2_5_FLASH_IMAGE_PREVIEW'), - (e[(e.GOOGLE_GEMINI_COMPUTER_USE_EXPERIMENTAL = 335)] = - 'GOOGLE_GEMINI_COMPUTER_USE_EXPERIMENTAL'), - (e[(e.GOOGLE_GEMINI_RAINSONG = 339)] = 'GOOGLE_GEMINI_RAINSONG'), - (e[(e.GOOGLE_JARVIS_PROXY = 346)] = 'GOOGLE_JARVIS_PROXY'), - (e[(e.GOOGLE_JARVIS_V4S = 349)] = 'GOOGLE_JARVIS_V4S'), - (e[(e.GOOGLE_GEMINI_TRAINING_POLICY = 323)] = - 'GOOGLE_GEMINI_TRAINING_POLICY'), - (e[(e.GOOGLE_GEMINI_INTERNAL_BYOM = 326)] = 'GOOGLE_GEMINI_INTERNAL_BYOM'), - (e[(e.GOOGLE_GEMINI_INTERNAL_TAB_FLASH_LITE = 344)] = - 'GOOGLE_GEMINI_INTERNAL_TAB_FLASH_LITE'), - (e[(e.GOOGLE_GEMINI_INTERNAL_TAB_JUMP_FLASH_LITE = 345)] = - 'GOOGLE_GEMINI_INTERNAL_TAB_JUMP_FLASH_LITE'), - (e[(e.GOOGLE_GEMINI_HORIZONDAWN = 336)] = 'GOOGLE_GEMINI_HORIZONDAWN'), - (e[(e.GOOGLE_GEMINI_PUREPRISM = 337)] = 'GOOGLE_GEMINI_PUREPRISM'), - (e[(e.GOOGLE_GEMINI_GENTLEISLAND = 338)] = 'GOOGLE_GEMINI_GENTLEISLAND'), - (e[(e.GOOGLE_GEMINI_ORIONFIRE = 343)] = 'GOOGLE_GEMINI_ORIONFIRE'), - (e[(e.GOOGLE_GEMINI_COSMICFORGE = 347)] = 'GOOGLE_GEMINI_COSMICFORGE'), - (e[(e.GOOGLE_GEMINI_RIFTRUNNER = 348)] = 'GOOGLE_GEMINI_RIFTRUNNER'), - (e[(e.GOOGLE_GEMINI_RIFTRUNNER_THINKING_LOW = 352)] = - 'GOOGLE_GEMINI_RIFTRUNNER_THINKING_LOW'), - (e[(e.GOOGLE_GEMINI_RIFTRUNNER_THINKING_HIGH = 353)] = - 'GOOGLE_GEMINI_RIFTRUNNER_THINKING_HIGH'), - (e[(e.GOOGLE_GEMINI_INFINITYJET = 350)] = 'GOOGLE_GEMINI_INFINITYJET'), - (e[(e.GOOGLE_GEMINI_INFINITYBLOOM = 351)] = 'GOOGLE_GEMINI_INFINITYBLOOM'), - (e[(e.CLAUDE_4_SONNET = 281)] = 'CLAUDE_4_SONNET'), - (e[(e.CLAUDE_4_SONNET_THINKING = 282)] = 'CLAUDE_4_SONNET_THINKING'), - (e[(e.CLAUDE_4_OPUS = 290)] = 'CLAUDE_4_OPUS'), - (e[(e.CLAUDE_4_OPUS_THINKING = 291)] = 'CLAUDE_4_OPUS_THINKING'), - (e[(e.CLAUDE_4_5_SONNET = 333)] = 'CLAUDE_4_5_SONNET'), - (e[(e.CLAUDE_4_5_SONNET_THINKING = 334)] = 'CLAUDE_4_5_SONNET_THINKING'), - (e[(e.CLAUDE_4_5_HAIKU = 340)] = 'CLAUDE_4_5_HAIKU'), - (e[(e.CLAUDE_4_5_HAIKU_THINKING = 341)] = 'CLAUDE_4_5_HAIKU_THINKING'), - (e[(e.OPENAI_GPT_OSS_120B_MEDIUM = 342)] = 'OPENAI_GPT_OSS_120B_MEDIUM'), - (e[(e.PLACEHOLDER_M0 = 1e3)] = 'PLACEHOLDER_M0'), - (e[(e.PLACEHOLDER_M1 = 1001)] = 'PLACEHOLDER_M1'), - (e[(e.PLACEHOLDER_M2 = 1002)] = 'PLACEHOLDER_M2'), - (e[(e.PLACEHOLDER_M3 = 1003)] = 'PLACEHOLDER_M3'), - (e[(e.PLACEHOLDER_M4 = 1004)] = 'PLACEHOLDER_M4'), - (e[(e.PLACEHOLDER_M5 = 1005)] = 'PLACEHOLDER_M5'), - (e[(e.PLACEHOLDER_M6 = 1006)] = 'PLACEHOLDER_M6'), - (e[(e.PLACEHOLDER_M7 = 1007)] = 'PLACEHOLDER_M7'), - (e[(e.PLACEHOLDER_M8 = 1008)] = 'PLACEHOLDER_M8'), - (e[(e.PLACEHOLDER_M9 = 1009)] = 'PLACEHOLDER_M9'), - (e[(e.PLACEHOLDER_M10 = 1010)] = 'PLACEHOLDER_M10'), - (e[(e.PLACEHOLDER_M11 = 1011)] = 'PLACEHOLDER_M11'), - (e[(e.PLACEHOLDER_M12 = 1012)] = 'PLACEHOLDER_M12'), - (e[(e.PLACEHOLDER_M13 = 1013)] = 'PLACEHOLDER_M13'), - (e[(e.PLACEHOLDER_M14 = 1014)] = 'PLACEHOLDER_M14'), - (e[(e.PLACEHOLDER_M15 = 1015)] = 'PLACEHOLDER_M15'), - (e[(e.PLACEHOLDER_M16 = 1016)] = 'PLACEHOLDER_M16'), - (e[(e.PLACEHOLDER_M17 = 1017)] = 'PLACEHOLDER_M17'), - (e[(e.PLACEHOLDER_M18 = 1018)] = 'PLACEHOLDER_M18'), - (e[(e.PLACEHOLDER_M19 = 1019)] = 'PLACEHOLDER_M19'), - (e[(e.PLACEHOLDER_M20 = 1020)] = 'PLACEHOLDER_M20'), - (e[(e.PLACEHOLDER_M21 = 1021)] = 'PLACEHOLDER_M21'), - (e[(e.PLACEHOLDER_M22 = 1022)] = 'PLACEHOLDER_M22'), - (e[(e.PLACEHOLDER_M23 = 1023)] = 'PLACEHOLDER_M23'), - (e[(e.PLACEHOLDER_M24 = 1024)] = 'PLACEHOLDER_M24'), - (e[(e.PLACEHOLDER_M25 = 1025)] = 'PLACEHOLDER_M25'), - (e[(e.PLACEHOLDER_M26 = 1026)] = 'PLACEHOLDER_M26'), - (e[(e.PLACEHOLDER_M27 = 1027)] = 'PLACEHOLDER_M27'), - (e[(e.PLACEHOLDER_M28 = 1028)] = 'PLACEHOLDER_M28'), - (e[(e.PLACEHOLDER_M29 = 1029)] = 'PLACEHOLDER_M29'), - (e[(e.PLACEHOLDER_M30 = 1030)] = 'PLACEHOLDER_M30'), - (e[(e.PLACEHOLDER_M31 = 1031)] = 'PLACEHOLDER_M31'), - (e[(e.PLACEHOLDER_M32 = 1032)] = 'PLACEHOLDER_M32'), - (e[(e.PLACEHOLDER_M33 = 1033)] = 'PLACEHOLDER_M33'), - (e[(e.PLACEHOLDER_M34 = 1034)] = 'PLACEHOLDER_M34'), - (e[(e.PLACEHOLDER_M35 = 1035)] = 'PLACEHOLDER_M35'), - (e[(e.PLACEHOLDER_M36 = 1036)] = 'PLACEHOLDER_M36'), - (e[(e.PLACEHOLDER_M37 = 1037)] = 'PLACEHOLDER_M37'), - (e[(e.PLACEHOLDER_M38 = 1038)] = 'PLACEHOLDER_M38'), - (e[(e.PLACEHOLDER_M39 = 1039)] = 'PLACEHOLDER_M39'), - (e[(e.PLACEHOLDER_M40 = 1040)] = 'PLACEHOLDER_M40'), - (e[(e.PLACEHOLDER_M41 = 1041)] = 'PLACEHOLDER_M41'), - (e[(e.PLACEHOLDER_M42 = 1042)] = 'PLACEHOLDER_M42'), - (e[(e.PLACEHOLDER_M43 = 1043)] = 'PLACEHOLDER_M43'), - (e[(e.PLACEHOLDER_M44 = 1044)] = 'PLACEHOLDER_M44'), - (e[(e.PLACEHOLDER_M45 = 1045)] = 'PLACEHOLDER_M45'), - (e[(e.PLACEHOLDER_M46 = 1046)] = 'PLACEHOLDER_M46'), - (e[(e.PLACEHOLDER_M47 = 1047)] = 'PLACEHOLDER_M47'), - (e[(e.PLACEHOLDER_M48 = 1048)] = 'PLACEHOLDER_M48'), - (e[(e.PLACEHOLDER_M49 = 1049)] = 'PLACEHOLDER_M49'), - (e[(e.PLACEHOLDER_M50 = 1050)] = 'PLACEHOLDER_M50')); -})(f || (f = {})); -a.util.setEnumType(f, 'exa.codeium_common_pb.Model', [ +var Model; +(function (Model2) { + Model2[(Model2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + Model2[(Model2['CHAT_20706'] = 235)] = 'CHAT_20706'; + Model2[(Model2['CHAT_23310'] = 269)] = 'CHAT_23310'; + Model2[(Model2['GOOGLE_GEMINI_2_5_FLASH'] = 312)] = 'GOOGLE_GEMINI_2_5_FLASH'; + Model2[(Model2['GOOGLE_GEMINI_2_5_FLASH_THINKING'] = 313)] = + 'GOOGLE_GEMINI_2_5_FLASH_THINKING'; + Model2[(Model2['GOOGLE_GEMINI_2_5_FLASH_THINKING_TOOLS'] = 329)] = + 'GOOGLE_GEMINI_2_5_FLASH_THINKING_TOOLS'; + Model2[(Model2['GOOGLE_GEMINI_2_5_FLASH_LITE'] = 330)] = + 'GOOGLE_GEMINI_2_5_FLASH_LITE'; + Model2[(Model2['GOOGLE_GEMINI_2_5_PRO'] = 246)] = 'GOOGLE_GEMINI_2_5_PRO'; + Model2[(Model2['GOOGLE_GEMINI_2_5_PRO_EVAL'] = 331)] = + 'GOOGLE_GEMINI_2_5_PRO_EVAL'; + Model2[(Model2['GOOGLE_GEMINI_FOR_GOOGLE_2_5_PRO'] = 327)] = + 'GOOGLE_GEMINI_FOR_GOOGLE_2_5_PRO'; + Model2[(Model2['GOOGLE_GEMINI_NEMOSREEF'] = 328)] = 'GOOGLE_GEMINI_NEMOSREEF'; + Model2[(Model2['GOOGLE_GEMINI_2_5_FLASH_IMAGE_PREVIEW'] = 332)] = + 'GOOGLE_GEMINI_2_5_FLASH_IMAGE_PREVIEW'; + Model2[(Model2['GOOGLE_GEMINI_COMPUTER_USE_EXPERIMENTAL'] = 335)] = + 'GOOGLE_GEMINI_COMPUTER_USE_EXPERIMENTAL'; + Model2[(Model2['GOOGLE_GEMINI_RAINSONG'] = 339)] = 'GOOGLE_GEMINI_RAINSONG'; + Model2[(Model2['GOOGLE_JARVIS_PROXY'] = 346)] = 'GOOGLE_JARVIS_PROXY'; + Model2[(Model2['GOOGLE_JARVIS_V4S'] = 349)] = 'GOOGLE_JARVIS_V4S'; + Model2[(Model2['GOOGLE_GEMINI_TRAINING_POLICY'] = 323)] = + 'GOOGLE_GEMINI_TRAINING_POLICY'; + Model2[(Model2['GOOGLE_GEMINI_INTERNAL_BYOM'] = 326)] = + 'GOOGLE_GEMINI_INTERNAL_BYOM'; + Model2[(Model2['GOOGLE_GEMINI_INTERNAL_TAB_FLASH_LITE'] = 344)] = + 'GOOGLE_GEMINI_INTERNAL_TAB_FLASH_LITE'; + Model2[(Model2['GOOGLE_GEMINI_INTERNAL_TAB_JUMP_FLASH_LITE'] = 345)] = + 'GOOGLE_GEMINI_INTERNAL_TAB_JUMP_FLASH_LITE'; + Model2[(Model2['GOOGLE_GEMINI_HORIZONDAWN'] = 336)] = + 'GOOGLE_GEMINI_HORIZONDAWN'; + Model2[(Model2['GOOGLE_GEMINI_PUREPRISM'] = 337)] = 'GOOGLE_GEMINI_PUREPRISM'; + Model2[(Model2['GOOGLE_GEMINI_GENTLEISLAND'] = 338)] = + 'GOOGLE_GEMINI_GENTLEISLAND'; + Model2[(Model2['GOOGLE_GEMINI_ORIONFIRE'] = 343)] = 'GOOGLE_GEMINI_ORIONFIRE'; + Model2[(Model2['GOOGLE_GEMINI_COSMICFORGE'] = 347)] = + 'GOOGLE_GEMINI_COSMICFORGE'; + Model2[(Model2['GOOGLE_GEMINI_RIFTRUNNER'] = 348)] = + 'GOOGLE_GEMINI_RIFTRUNNER'; + Model2[(Model2['GOOGLE_GEMINI_RIFTRUNNER_THINKING_LOW'] = 352)] = + 'GOOGLE_GEMINI_RIFTRUNNER_THINKING_LOW'; + Model2[(Model2['GOOGLE_GEMINI_RIFTRUNNER_THINKING_HIGH'] = 353)] = + 'GOOGLE_GEMINI_RIFTRUNNER_THINKING_HIGH'; + Model2[(Model2['GOOGLE_GEMINI_INFINITYJET'] = 350)] = + 'GOOGLE_GEMINI_INFINITYJET'; + Model2[(Model2['GOOGLE_GEMINI_INFINITYBLOOM'] = 351)] = + 'GOOGLE_GEMINI_INFINITYBLOOM'; + Model2[(Model2['CLAUDE_4_SONNET'] = 281)] = 'CLAUDE_4_SONNET'; + Model2[(Model2['CLAUDE_4_SONNET_THINKING'] = 282)] = + 'CLAUDE_4_SONNET_THINKING'; + Model2[(Model2['CLAUDE_4_OPUS'] = 290)] = 'CLAUDE_4_OPUS'; + Model2[(Model2['CLAUDE_4_OPUS_THINKING'] = 291)] = 'CLAUDE_4_OPUS_THINKING'; + Model2[(Model2['CLAUDE_4_5_SONNET'] = 333)] = 'CLAUDE_4_5_SONNET'; + Model2[(Model2['CLAUDE_4_5_SONNET_THINKING'] = 334)] = + 'CLAUDE_4_5_SONNET_THINKING'; + Model2[(Model2['CLAUDE_4_5_HAIKU'] = 340)] = 'CLAUDE_4_5_HAIKU'; + Model2[(Model2['CLAUDE_4_5_HAIKU_THINKING'] = 341)] = + 'CLAUDE_4_5_HAIKU_THINKING'; + Model2[(Model2['OPENAI_GPT_OSS_120B_MEDIUM'] = 342)] = + 'OPENAI_GPT_OSS_120B_MEDIUM'; + Model2[(Model2['PLACEHOLDER_M0'] = 1e3)] = 'PLACEHOLDER_M0'; + Model2[(Model2['PLACEHOLDER_M1'] = 1001)] = 'PLACEHOLDER_M1'; + Model2[(Model2['PLACEHOLDER_M2'] = 1002)] = 'PLACEHOLDER_M2'; + Model2[(Model2['PLACEHOLDER_M3'] = 1003)] = 'PLACEHOLDER_M3'; + Model2[(Model2['PLACEHOLDER_M4'] = 1004)] = 'PLACEHOLDER_M4'; + Model2[(Model2['PLACEHOLDER_M5'] = 1005)] = 'PLACEHOLDER_M5'; + Model2[(Model2['PLACEHOLDER_M6'] = 1006)] = 'PLACEHOLDER_M6'; + Model2[(Model2['PLACEHOLDER_M7'] = 1007)] = 'PLACEHOLDER_M7'; + Model2[(Model2['PLACEHOLDER_M8'] = 1008)] = 'PLACEHOLDER_M8'; + Model2[(Model2['PLACEHOLDER_M9'] = 1009)] = 'PLACEHOLDER_M9'; + Model2[(Model2['PLACEHOLDER_M10'] = 1010)] = 'PLACEHOLDER_M10'; + Model2[(Model2['PLACEHOLDER_M11'] = 1011)] = 'PLACEHOLDER_M11'; + Model2[(Model2['PLACEHOLDER_M12'] = 1012)] = 'PLACEHOLDER_M12'; + Model2[(Model2['PLACEHOLDER_M13'] = 1013)] = 'PLACEHOLDER_M13'; + Model2[(Model2['PLACEHOLDER_M14'] = 1014)] = 'PLACEHOLDER_M14'; + Model2[(Model2['PLACEHOLDER_M15'] = 1015)] = 'PLACEHOLDER_M15'; + Model2[(Model2['PLACEHOLDER_M16'] = 1016)] = 'PLACEHOLDER_M16'; + Model2[(Model2['PLACEHOLDER_M17'] = 1017)] = 'PLACEHOLDER_M17'; + Model2[(Model2['PLACEHOLDER_M18'] = 1018)] = 'PLACEHOLDER_M18'; + Model2[(Model2['PLACEHOLDER_M19'] = 1019)] = 'PLACEHOLDER_M19'; + Model2[(Model2['PLACEHOLDER_M20'] = 1020)] = 'PLACEHOLDER_M20'; + Model2[(Model2['PLACEHOLDER_M21'] = 1021)] = 'PLACEHOLDER_M21'; + Model2[(Model2['PLACEHOLDER_M22'] = 1022)] = 'PLACEHOLDER_M22'; + Model2[(Model2['PLACEHOLDER_M23'] = 1023)] = 'PLACEHOLDER_M23'; + Model2[(Model2['PLACEHOLDER_M24'] = 1024)] = 'PLACEHOLDER_M24'; + Model2[(Model2['PLACEHOLDER_M25'] = 1025)] = 'PLACEHOLDER_M25'; + Model2[(Model2['PLACEHOLDER_M26'] = 1026)] = 'PLACEHOLDER_M26'; + Model2[(Model2['PLACEHOLDER_M27'] = 1027)] = 'PLACEHOLDER_M27'; + Model2[(Model2['PLACEHOLDER_M28'] = 1028)] = 'PLACEHOLDER_M28'; + Model2[(Model2['PLACEHOLDER_M29'] = 1029)] = 'PLACEHOLDER_M29'; + Model2[(Model2['PLACEHOLDER_M30'] = 1030)] = 'PLACEHOLDER_M30'; + Model2[(Model2['PLACEHOLDER_M31'] = 1031)] = 'PLACEHOLDER_M31'; + Model2[(Model2['PLACEHOLDER_M32'] = 1032)] = 'PLACEHOLDER_M32'; + Model2[(Model2['PLACEHOLDER_M33'] = 1033)] = 'PLACEHOLDER_M33'; + Model2[(Model2['PLACEHOLDER_M34'] = 1034)] = 'PLACEHOLDER_M34'; + Model2[(Model2['PLACEHOLDER_M35'] = 1035)] = 'PLACEHOLDER_M35'; + Model2[(Model2['PLACEHOLDER_M36'] = 1036)] = 'PLACEHOLDER_M36'; + Model2[(Model2['PLACEHOLDER_M37'] = 1037)] = 'PLACEHOLDER_M37'; + Model2[(Model2['PLACEHOLDER_M38'] = 1038)] = 'PLACEHOLDER_M38'; + Model2[(Model2['PLACEHOLDER_M39'] = 1039)] = 'PLACEHOLDER_M39'; + Model2[(Model2['PLACEHOLDER_M40'] = 1040)] = 'PLACEHOLDER_M40'; + Model2[(Model2['PLACEHOLDER_M41'] = 1041)] = 'PLACEHOLDER_M41'; + Model2[(Model2['PLACEHOLDER_M42'] = 1042)] = 'PLACEHOLDER_M42'; + Model2[(Model2['PLACEHOLDER_M43'] = 1043)] = 'PLACEHOLDER_M43'; + Model2[(Model2['PLACEHOLDER_M44'] = 1044)] = 'PLACEHOLDER_M44'; + Model2[(Model2['PLACEHOLDER_M45'] = 1045)] = 'PLACEHOLDER_M45'; + Model2[(Model2['PLACEHOLDER_M46'] = 1046)] = 'PLACEHOLDER_M46'; + Model2[(Model2['PLACEHOLDER_M47'] = 1047)] = 'PLACEHOLDER_M47'; + Model2[(Model2['PLACEHOLDER_M48'] = 1048)] = 'PLACEHOLDER_M48'; + Model2[(Model2['PLACEHOLDER_M49'] = 1049)] = 'PLACEHOLDER_M49'; + Model2[(Model2['PLACEHOLDER_M50'] = 1050)] = 'PLACEHOLDER_M50'; +})(Model || (Model = {})); +proto3.util.setEnumType(Model, 'exa.codeium_common_pb.Model', [ { no: 0, name: 'MODEL_UNSPECIFIED' }, { no: 235, name: 'MODEL_CHAT_20706' }, { no: 269, name: 'MODEL_CHAT_23310' }, @@ -3892,49 +6033,65 @@ a.util.setEnumType(f, 'exa.codeium_common_pb.Model', [ { no: 1049, name: 'MODEL_PLACEHOLDER_M49' }, { no: 1050, name: 'MODEL_PLACEHOLDER_M50' }, ]); -var he; -(function (e) { - ((e[(e.EXCLUSION_UNSPECIFIED = 0)] = 'EXCLUSION_UNSPECIFIED'), - (e[(e.EXCLUSION_ELEMENT_KIND_DISABLED = 1)] = - 'EXCLUSION_ELEMENT_KIND_DISABLED'), - (e[(e.EXCLUSION_ELEMENT_MISSING_DEPENDENCY = 2)] = - 'EXCLUSION_ELEMENT_MISSING_DEPENDENCY'), - (e[(e.EXCLUSION_TOKEN_BUDGET = 3)] = 'EXCLUSION_TOKEN_BUDGET'), - (e[(e.EXCLUSION_ACTIVE_SOURCE_OVERLAP = 4)] = - 'EXCLUSION_ACTIVE_SOURCE_OVERLAP')); -})(he || (he = {})); -a.util.setEnumType(he, 'exa.codeium_common_pb.PromptElementExclusionReason', [ - { no: 0, name: 'EXCLUSION_UNSPECIFIED' }, - { no: 1, name: 'EXCLUSION_ELEMENT_KIND_DISABLED' }, - { no: 2, name: 'EXCLUSION_ELEMENT_MISSING_DEPENDENCY' }, - { no: 3, name: 'EXCLUSION_TOKEN_BUDGET' }, - { no: 4, name: 'EXCLUSION_ACTIVE_SOURCE_OVERLAP' }, -]); -var F; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.INCOMPLETE = 1)] = 'INCOMPLETE'), - (e[(e.STOP_PATTERN = 2)] = 'STOP_PATTERN'), - (e[(e.MAX_TOKENS = 3)] = 'MAX_TOKENS'), - (e[(e.FUNCTION_CALL = 10)] = 'FUNCTION_CALL'), - (e[(e.CONTENT_FILTER = 11)] = 'CONTENT_FILTER'), - (e[(e.NON_INSERTION = 12)] = 'NON_INSERTION'), - (e[(e.ERROR = 13)] = 'ERROR'), - (e[(e.IMPROPER_FORMAT = 14)] = 'IMPROPER_FORMAT'), - (e[(e.OTHER = 15)] = 'OTHER'), - (e[(e.CLIENT_CANCELED = 16)] = 'CLIENT_CANCELED'), - (e[(e.CLIENT_TOOL_PARSE_ERROR = 17)] = 'CLIENT_TOOL_PARSE_ERROR'), - (e[(e.CLIENT_STREAM_ERROR = 18)] = 'CLIENT_STREAM_ERROR'), - (e[(e.CLIENT_LOOPING = 19)] = 'CLIENT_LOOPING'), - (e[(e.CLIENT_INVALID_MESSAGE_ORDER = 20)] = 'CLIENT_INVALID_MESSAGE_ORDER'), - (e[(e.MIN_LOG_PROB = 4)] = 'MIN_LOG_PROB'), - (e[(e.MAX_NEWLINES = 5)] = 'MAX_NEWLINES'), - (e[(e.EXIT_SCOPE = 6)] = 'EXIT_SCOPE'), - (e[(e.NONFINITE_LOGIT_OR_PROB = 7)] = 'NONFINITE_LOGIT_OR_PROB'), - (e[(e.FIRST_NON_WHITESPACE_LINE = 8)] = 'FIRST_NON_WHITESPACE_LINE'), - (e[(e.PARTIAL = 9)] = 'PARTIAL')); -})(F || (F = {})); -a.util.setEnumType(F, 'exa.codeium_common_pb.StopReason', [ +var PromptElementExclusionReason; +(function (PromptElementExclusionReason2) { + PromptElementExclusionReason2[ + (PromptElementExclusionReason2['EXCLUSION_UNSPECIFIED'] = 0) + ] = 'EXCLUSION_UNSPECIFIED'; + PromptElementExclusionReason2[ + (PromptElementExclusionReason2['EXCLUSION_ELEMENT_KIND_DISABLED'] = 1) + ] = 'EXCLUSION_ELEMENT_KIND_DISABLED'; + PromptElementExclusionReason2[ + (PromptElementExclusionReason2['EXCLUSION_ELEMENT_MISSING_DEPENDENCY'] = 2) + ] = 'EXCLUSION_ELEMENT_MISSING_DEPENDENCY'; + PromptElementExclusionReason2[ + (PromptElementExclusionReason2['EXCLUSION_TOKEN_BUDGET'] = 3) + ] = 'EXCLUSION_TOKEN_BUDGET'; + PromptElementExclusionReason2[ + (PromptElementExclusionReason2['EXCLUSION_ACTIVE_SOURCE_OVERLAP'] = 4) + ] = 'EXCLUSION_ACTIVE_SOURCE_OVERLAP'; +})(PromptElementExclusionReason || (PromptElementExclusionReason = {})); +proto3.util.setEnumType( + PromptElementExclusionReason, + 'exa.codeium_common_pb.PromptElementExclusionReason', + [ + { no: 0, name: 'EXCLUSION_UNSPECIFIED' }, + { no: 1, name: 'EXCLUSION_ELEMENT_KIND_DISABLED' }, + { no: 2, name: 'EXCLUSION_ELEMENT_MISSING_DEPENDENCY' }, + { no: 3, name: 'EXCLUSION_TOKEN_BUDGET' }, + { no: 4, name: 'EXCLUSION_ACTIVE_SOURCE_OVERLAP' }, + ], +); +var StopReason; +(function (StopReason2) { + StopReason2[(StopReason2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + StopReason2[(StopReason2['INCOMPLETE'] = 1)] = 'INCOMPLETE'; + StopReason2[(StopReason2['STOP_PATTERN'] = 2)] = 'STOP_PATTERN'; + StopReason2[(StopReason2['MAX_TOKENS'] = 3)] = 'MAX_TOKENS'; + StopReason2[(StopReason2['FUNCTION_CALL'] = 10)] = 'FUNCTION_CALL'; + StopReason2[(StopReason2['CONTENT_FILTER'] = 11)] = 'CONTENT_FILTER'; + StopReason2[(StopReason2['NON_INSERTION'] = 12)] = 'NON_INSERTION'; + StopReason2[(StopReason2['ERROR'] = 13)] = 'ERROR'; + StopReason2[(StopReason2['IMPROPER_FORMAT'] = 14)] = 'IMPROPER_FORMAT'; + StopReason2[(StopReason2['OTHER'] = 15)] = 'OTHER'; + StopReason2[(StopReason2['CLIENT_CANCELED'] = 16)] = 'CLIENT_CANCELED'; + StopReason2[(StopReason2['CLIENT_TOOL_PARSE_ERROR'] = 17)] = + 'CLIENT_TOOL_PARSE_ERROR'; + StopReason2[(StopReason2['CLIENT_STREAM_ERROR'] = 18)] = + 'CLIENT_STREAM_ERROR'; + StopReason2[(StopReason2['CLIENT_LOOPING'] = 19)] = 'CLIENT_LOOPING'; + StopReason2[(StopReason2['CLIENT_INVALID_MESSAGE_ORDER'] = 20)] = + 'CLIENT_INVALID_MESSAGE_ORDER'; + StopReason2[(StopReason2['MIN_LOG_PROB'] = 4)] = 'MIN_LOG_PROB'; + StopReason2[(StopReason2['MAX_NEWLINES'] = 5)] = 'MAX_NEWLINES'; + StopReason2[(StopReason2['EXIT_SCOPE'] = 6)] = 'EXIT_SCOPE'; + StopReason2[(StopReason2['NONFINITE_LOGIT_OR_PROB'] = 7)] = + 'NONFINITE_LOGIT_OR_PROB'; + StopReason2[(StopReason2['FIRST_NON_WHITESPACE_LINE'] = 8)] = + 'FIRST_NON_WHITESPACE_LINE'; + StopReason2[(StopReason2['PARTIAL'] = 9)] = 'PARTIAL'; +})(StopReason || (StopReason = {})); +proto3.util.setEnumType(StopReason, 'exa.codeium_common_pb.StopReason', [ { no: 0, name: 'STOP_REASON_UNSPECIFIED' }, { no: 1, name: 'STOP_REASON_INCOMPLETE' }, { no: 2, name: 'STOP_REASON_STOP_PATTERN' }, @@ -3957,20 +6114,21 @@ a.util.setEnumType(F, 'exa.codeium_common_pb.StopReason', [ { no: 8, name: 'STOP_REASON_FIRST_NON_WHITESPACE_LINE' }, { no: 9, name: 'STOP_REASON_PARTIAL' }, ]); -var Lr; -(function (e) { - ((e[(e.NONE = 0)] = 'NONE'), - (e[(e.INCOMPLETE = 1)] = 'INCOMPLETE'), - (e[(e.EMPTY = 2)] = 'EMPTY'), - (e[(e.REPETITIVE = 3)] = 'REPETITIVE'), - (e[(e.DUPLICATE = 4)] = 'DUPLICATE'), - (e[(e.LONG_LINE = 5)] = 'LONG_LINE'), - (e[(e.COMPLETIONS_CUTOFF = 6)] = 'COMPLETIONS_CUTOFF'), - (e[(e.ATTRIBUTION = 7)] = 'ATTRIBUTION'), - (e[(e.NON_MATCHING = 8)] = 'NON_MATCHING'), - (e[(e.NON_INSERTION = 9)] = 'NON_INSERTION')); -})(Lr || (Lr = {})); -a.util.setEnumType(Lr, 'exa.codeium_common_pb.FilterReason', [ +var FilterReason; +(function (FilterReason2) { + FilterReason2[(FilterReason2['NONE'] = 0)] = 'NONE'; + FilterReason2[(FilterReason2['INCOMPLETE'] = 1)] = 'INCOMPLETE'; + FilterReason2[(FilterReason2['EMPTY'] = 2)] = 'EMPTY'; + FilterReason2[(FilterReason2['REPETITIVE'] = 3)] = 'REPETITIVE'; + FilterReason2[(FilterReason2['DUPLICATE'] = 4)] = 'DUPLICATE'; + FilterReason2[(FilterReason2['LONG_LINE'] = 5)] = 'LONG_LINE'; + FilterReason2[(FilterReason2['COMPLETIONS_CUTOFF'] = 6)] = + 'COMPLETIONS_CUTOFF'; + FilterReason2[(FilterReason2['ATTRIBUTION'] = 7)] = 'ATTRIBUTION'; + FilterReason2[(FilterReason2['NON_MATCHING'] = 8)] = 'NON_MATCHING'; + FilterReason2[(FilterReason2['NON_INSERTION'] = 9)] = 'NON_INSERTION'; +})(FilterReason || (FilterReason = {})); +proto3.util.setEnumType(FilterReason, 'exa.codeium_common_pb.FilterReason', [ { no: 0, name: 'FILTER_REASON_NONE' }, { no: 1, name: 'FILTER_REASON_INCOMPLETE' }, { no: 2, name: 'FILTER_REASON_EMPTY' }, @@ -3982,78 +6140,104 @@ a.util.setEnumType(Lr, 'exa.codeium_common_pb.FilterReason', [ { no: 8, name: 'FILTER_REASON_NON_MATCHING' }, { no: 9, name: 'FILTER_REASON_NON_INSERTION' }, ]); -var Pr; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.NEW_CODE = 1)] = 'NEW_CODE'), - (e[(e.NO_LICENSE = 2)] = 'NO_LICENSE'), - (e[(e.NONPERMISSIVE = 3)] = 'NONPERMISSIVE'), - (e[(e.PERMISSIVE = 4)] = 'PERMISSIVE'), - (e[(e.PERMISSIVE_BLOCKED = 5)] = 'PERMISSIVE_BLOCKED')); -})(Pr || (Pr = {})); -a.util.setEnumType(Pr, 'exa.codeium_common_pb.AttributionStatus', [ - { no: 0, name: 'ATTRIBUTION_STATUS_UNSPECIFIED' }, - { no: 1, name: 'ATTRIBUTION_STATUS_NEW_CODE' }, - { no: 2, name: 'ATTRIBUTION_STATUS_NO_LICENSE' }, - { no: 3, name: 'ATTRIBUTION_STATUS_NONPERMISSIVE' }, - { no: 4, name: 'ATTRIBUTION_STATUS_PERMISSIVE' }, - { no: 5, name: 'ATTRIBUTION_STATUS_PERMISSIVE_BLOCKED' }, -]); -var Ge; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.HIGH = 1)] = 'HIGH'), - (e[(e.LOW = 2)] = 'LOW')); -})(Ge || (Ge = {})); -a.util.setEnumType(Ge, 'exa.codeium_common_pb.EmbeddingPriority', [ - { no: 0, name: 'EMBEDDING_PRIORITY_UNSPECIFIED' }, - { no: 1, name: 'EMBEDDING_PRIORITY_HIGH' }, - { no: 2, name: 'EMBEDDING_PRIORITY_LOW' }, -]); -var be; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.NOMIC_DOCUMENT = 1)] = 'NOMIC_DOCUMENT'), - (e[(e.NOMIC_SEARCH = 2)] = 'NOMIC_SEARCH'), - (e[(e.NOMIC_CLASSIFICATION = 3)] = 'NOMIC_CLASSIFICATION'), - (e[(e.NOMIC_CLUSTERING = 4)] = 'NOMIC_CLUSTERING')); -})(be || (be = {})); -a.util.setEnumType(be, 'exa.codeium_common_pb.EmbeddingPrefix', [ - { no: 0, name: 'EMBEDDING_PREFIX_UNSPECIFIED' }, - { no: 1, name: 'EMBEDDING_PREFIX_NOMIC_DOCUMENT' }, - { no: 2, name: 'EMBEDDING_PREFIX_NOMIC_SEARCH' }, - { no: 3, name: 'EMBEDDING_PREFIX_NOMIC_CLASSIFICATION' }, - { no: 4, name: 'EMBEDDING_PREFIX_NOMIC_CLUSTERING' }, -]); -var qe; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CODE_CONTEXT_ITEM = 1)] = 'CODE_CONTEXT_ITEM'), - (e[(e.COMMIT_INTENT = 2)] = 'COMMIT_INTENT')); -})(qe || (qe = {})); -a.util.setEnumType(qe, 'exa.codeium_common_pb.EmbeddingSource', [ - { no: 0, name: 'EMBEDDING_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'EMBEDDING_SOURCE_CODE_CONTEXT_ITEM' }, - { no: 2, name: 'EMBEDDING_SOURCE_COMMIT_INTENT' }, -]); -var He; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLE_CODEIUM = 1)] = 'ENABLE_CODEIUM'), - (e[(e.DISABLE_CODEIUM = 2)] = 'DISABLE_CODEIUM'), - (e[(e.SHOW_PREVIOUS_COMPLETION = 3)] = 'SHOW_PREVIOUS_COMPLETION'), - (e[(e.SHOW_NEXT_COMPLETION = 4)] = 'SHOW_NEXT_COMPLETION'), - (e[(e.COPILOT_STATUS = 5)] = 'COPILOT_STATUS'), - (e[(e.COMPLETION_SUPPRESSED = 6)] = 'COMPLETION_SUPPRESSED'), - (e[(e.MEMORY_STATS = 8)] = 'MEMORY_STATS'), - (e[(e.LOCAL_CONTEXT_RELEVANCE_CHECK = 9)] = - 'LOCAL_CONTEXT_RELEVANCE_CHECK'), - (e[(e.ACTIVE_EDITOR_CHANGED = 10)] = 'ACTIVE_EDITOR_CHANGED'), - (e[(e.SHOW_PREVIOUS_CORTEX_STEP = 11)] = 'SHOW_PREVIOUS_CORTEX_STEP'), - (e[(e.SHOW_NEXT_CORTEX_STEP = 12)] = 'SHOW_NEXT_CORTEX_STEP'), - (e[(e.INDEXER_STATS = 13)] = 'INDEXER_STATS')); -})(He || (He = {})); -a.util.setEnumType(He, 'exa.codeium_common_pb.EventType', [ +var AttributionStatus; +(function (AttributionStatus2) { + AttributionStatus2[(AttributionStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + AttributionStatus2[(AttributionStatus2['NEW_CODE'] = 1)] = 'NEW_CODE'; + AttributionStatus2[(AttributionStatus2['NO_LICENSE'] = 2)] = 'NO_LICENSE'; + AttributionStatus2[(AttributionStatus2['NONPERMISSIVE'] = 3)] = + 'NONPERMISSIVE'; + AttributionStatus2[(AttributionStatus2['PERMISSIVE'] = 4)] = 'PERMISSIVE'; + AttributionStatus2[(AttributionStatus2['PERMISSIVE_BLOCKED'] = 5)] = + 'PERMISSIVE_BLOCKED'; +})(AttributionStatus || (AttributionStatus = {})); +proto3.util.setEnumType( + AttributionStatus, + 'exa.codeium_common_pb.AttributionStatus', + [ + { no: 0, name: 'ATTRIBUTION_STATUS_UNSPECIFIED' }, + { no: 1, name: 'ATTRIBUTION_STATUS_NEW_CODE' }, + { no: 2, name: 'ATTRIBUTION_STATUS_NO_LICENSE' }, + { no: 3, name: 'ATTRIBUTION_STATUS_NONPERMISSIVE' }, + { no: 4, name: 'ATTRIBUTION_STATUS_PERMISSIVE' }, + { no: 5, name: 'ATTRIBUTION_STATUS_PERMISSIVE_BLOCKED' }, + ], +); +var EmbeddingPriority; +(function (EmbeddingPriority2) { + EmbeddingPriority2[(EmbeddingPriority2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + EmbeddingPriority2[(EmbeddingPriority2['HIGH'] = 1)] = 'HIGH'; + EmbeddingPriority2[(EmbeddingPriority2['LOW'] = 2)] = 'LOW'; +})(EmbeddingPriority || (EmbeddingPriority = {})); +proto3.util.setEnumType( + EmbeddingPriority, + 'exa.codeium_common_pb.EmbeddingPriority', + [ + { no: 0, name: 'EMBEDDING_PRIORITY_UNSPECIFIED' }, + { no: 1, name: 'EMBEDDING_PRIORITY_HIGH' }, + { no: 2, name: 'EMBEDDING_PRIORITY_LOW' }, + ], +); +var EmbeddingPrefix; +(function (EmbeddingPrefix2) { + EmbeddingPrefix2[(EmbeddingPrefix2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + EmbeddingPrefix2[(EmbeddingPrefix2['NOMIC_DOCUMENT'] = 1)] = 'NOMIC_DOCUMENT'; + EmbeddingPrefix2[(EmbeddingPrefix2['NOMIC_SEARCH'] = 2)] = 'NOMIC_SEARCH'; + EmbeddingPrefix2[(EmbeddingPrefix2['NOMIC_CLASSIFICATION'] = 3)] = + 'NOMIC_CLASSIFICATION'; + EmbeddingPrefix2[(EmbeddingPrefix2['NOMIC_CLUSTERING'] = 4)] = + 'NOMIC_CLUSTERING'; +})(EmbeddingPrefix || (EmbeddingPrefix = {})); +proto3.util.setEnumType( + EmbeddingPrefix, + 'exa.codeium_common_pb.EmbeddingPrefix', + [ + { no: 0, name: 'EMBEDDING_PREFIX_UNSPECIFIED' }, + { no: 1, name: 'EMBEDDING_PREFIX_NOMIC_DOCUMENT' }, + { no: 2, name: 'EMBEDDING_PREFIX_NOMIC_SEARCH' }, + { no: 3, name: 'EMBEDDING_PREFIX_NOMIC_CLASSIFICATION' }, + { no: 4, name: 'EMBEDDING_PREFIX_NOMIC_CLUSTERING' }, + ], +); +var EmbeddingSource; +(function (EmbeddingSource2) { + EmbeddingSource2[(EmbeddingSource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + EmbeddingSource2[(EmbeddingSource2['CODE_CONTEXT_ITEM'] = 1)] = + 'CODE_CONTEXT_ITEM'; + EmbeddingSource2[(EmbeddingSource2['COMMIT_INTENT'] = 2)] = 'COMMIT_INTENT'; +})(EmbeddingSource || (EmbeddingSource = {})); +proto3.util.setEnumType( + EmbeddingSource, + 'exa.codeium_common_pb.EmbeddingSource', + [ + { no: 0, name: 'EMBEDDING_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'EMBEDDING_SOURCE_CODE_CONTEXT_ITEM' }, + { no: 2, name: 'EMBEDDING_SOURCE_COMMIT_INTENT' }, + ], +); +var EventType; +(function (EventType2) { + EventType2[(EventType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + EventType2[(EventType2['ENABLE_CODEIUM'] = 1)] = 'ENABLE_CODEIUM'; + EventType2[(EventType2['DISABLE_CODEIUM'] = 2)] = 'DISABLE_CODEIUM'; + EventType2[(EventType2['SHOW_PREVIOUS_COMPLETION'] = 3)] = + 'SHOW_PREVIOUS_COMPLETION'; + EventType2[(EventType2['SHOW_NEXT_COMPLETION'] = 4)] = 'SHOW_NEXT_COMPLETION'; + EventType2[(EventType2['COPILOT_STATUS'] = 5)] = 'COPILOT_STATUS'; + EventType2[(EventType2['COMPLETION_SUPPRESSED'] = 6)] = + 'COMPLETION_SUPPRESSED'; + EventType2[(EventType2['MEMORY_STATS'] = 8)] = 'MEMORY_STATS'; + EventType2[(EventType2['LOCAL_CONTEXT_RELEVANCE_CHECK'] = 9)] = + 'LOCAL_CONTEXT_RELEVANCE_CHECK'; + EventType2[(EventType2['ACTIVE_EDITOR_CHANGED'] = 10)] = + 'ACTIVE_EDITOR_CHANGED'; + EventType2[(EventType2['SHOW_PREVIOUS_CORTEX_STEP'] = 11)] = + 'SHOW_PREVIOUS_CORTEX_STEP'; + EventType2[(EventType2['SHOW_NEXT_CORTEX_STEP'] = 12)] = + 'SHOW_NEXT_CORTEX_STEP'; + EventType2[(EventType2['INDEXER_STATS'] = 13)] = 'INDEXER_STATS'; +})(EventType || (EventType = {})); +proto3.util.setEnumType(EventType, 'exa.codeium_common_pb.EventType', [ { no: 0, name: 'EVENT_TYPE_UNSPECIFIED' }, { no: 1, name: 'EVENT_TYPE_ENABLE_CODEIUM' }, { no: 2, name: 'EVENT_TYPE_DISABLE_CODEIUM' }, @@ -4068,29 +6252,33 @@ a.util.setEnumType(He, 'exa.codeium_common_pb.EventType', [ { no: 12, name: 'EVENT_TYPE_SHOW_NEXT_CORTEX_STEP' }, { no: 13, name: 'EVENT_TYPE_INDEXER_STATS' }, ]); -var Ye; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CLUSTER = 1)] = 'CLUSTER'), - (e[(e.EXACT = 2)] = 'EXACT')); -})(Ye || (Ye = {})); -a.util.setEnumType(Ye, 'exa.codeium_common_pb.SearchResultType', [ - { no: 0, name: 'SEARCH_RESULT_TYPE_UNSPECIFIED' }, - { no: 1, name: 'SEARCH_RESULT_TYPE_CLUSTER' }, - { no: 2, name: 'SEARCH_RESULT_TYPE_EXACT' }, -]); -var We; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.RAW_SOURCE = 1)] = 'RAW_SOURCE'), - (e[(e.DOCSTRING = 2)] = 'DOCSTRING'), - (e[(e.FUNCTION = 3)] = 'FUNCTION'), - (e[(e.NODEPATH = 4)] = 'NODEPATH'), - (e[(e.DECLARATION = 5)] = 'DECLARATION'), - (e[(e.NAIVE_CHUNK = 6)] = 'NAIVE_CHUNK'), - (e[(e.SIGNATURE = 7)] = 'SIGNATURE')); -})(We || (We = {})); -a.util.setEnumType(We, 'exa.codeium_common_pb.EmbedType', [ +var SearchResultType; +(function (SearchResultType2) { + SearchResultType2[(SearchResultType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + SearchResultType2[(SearchResultType2['CLUSTER'] = 1)] = 'CLUSTER'; + SearchResultType2[(SearchResultType2['EXACT'] = 2)] = 'EXACT'; +})(SearchResultType || (SearchResultType = {})); +proto3.util.setEnumType( + SearchResultType, + 'exa.codeium_common_pb.SearchResultType', + [ + { no: 0, name: 'SEARCH_RESULT_TYPE_UNSPECIFIED' }, + { no: 1, name: 'SEARCH_RESULT_TYPE_CLUSTER' }, + { no: 2, name: 'SEARCH_RESULT_TYPE_EXACT' }, + ], +); +var EmbedType; +(function (EmbedType2) { + EmbedType2[(EmbedType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + EmbedType2[(EmbedType2['RAW_SOURCE'] = 1)] = 'RAW_SOURCE'; + EmbedType2[(EmbedType2['DOCSTRING'] = 2)] = 'DOCSTRING'; + EmbedType2[(EmbedType2['FUNCTION'] = 3)] = 'FUNCTION'; + EmbedType2[(EmbedType2['NODEPATH'] = 4)] = 'NODEPATH'; + EmbedType2[(EmbedType2['DECLARATION'] = 5)] = 'DECLARATION'; + EmbedType2[(EmbedType2['NAIVE_CHUNK'] = 6)] = 'NAIVE_CHUNK'; + EmbedType2[(EmbedType2['SIGNATURE'] = 7)] = 'SIGNATURE'; +})(EmbedType || (EmbedType = {})); +proto3.util.setEnumType(EmbedType, 'exa.codeium_common_pb.EmbedType', [ { no: 0, name: 'EMBED_TYPE_UNSPECIFIED' }, { no: 1, name: 'EMBED_TYPE_RAW_SOURCE' }, { no: 2, name: 'EMBED_TYPE_DOCSTRING' }, @@ -4100,130 +6288,139 @@ a.util.setEnumType(We, 'exa.codeium_common_pb.EmbedType', [ { no: 6, name: 'EMBED_TYPE_NAIVE_CHUNK' }, { no: 7, name: 'EMBED_TYPE_SIGNATURE' }, ]); -var Em; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.TYPING_AS_SUGGESTED = 1)] = 'TYPING_AS_SUGGESTED'), - (e[(e.CACHE = 2)] = 'CACHE'), - (e[(e.NETWORK = 3)] = 'NETWORK')); -})(Em || (Em = {})); -a.util.setEnumType(Em, 'exa.codeium_common_pb.CompletionSource', [ - { no: 0, name: 'COMPLETION_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'COMPLETION_SOURCE_TYPING_AS_SUGGESTED' }, - { no: 2, name: 'COMPLETION_SOURCE_CACHE' }, - { no: 3, name: 'COMPLETION_SOURCE_NETWORK' }, -]); -var _m; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.SINGLE = 1)] = 'SINGLE'), - (e[(e.MULTI = 2)] = 'MULTI'), - (e[(e.INLINE_FIM = 3)] = 'INLINE_FIM'), - (e[(e.CASCADE = 4)] = 'CASCADE')); -})(_m || (_m = {})); -a.util.setEnumType(_m, 'exa.codeium_common_pb.CompletionType', [ - { no: 0, name: 'COMPLETION_TYPE_UNSPECIFIED' }, - { no: 1, name: 'COMPLETION_TYPE_SINGLE' }, - { no: 2, name: 'COMPLETION_TYPE_MULTI' }, - { no: 3, name: 'COMPLETION_TYPE_INLINE_FIM' }, - { no: 4, name: 'COMPLETION_TYPE_CASCADE' }, -]); -var O; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.C = 1)] = 'C'), - (e[(e.CLOJURE = 2)] = 'CLOJURE'), - (e[(e.COFFEESCRIPT = 3)] = 'COFFEESCRIPT'), - (e[(e.CPP = 4)] = 'CPP'), - (e[(e.CSHARP = 5)] = 'CSHARP'), - (e[(e.CSS = 6)] = 'CSS'), - (e[(e.CUDACPP = 7)] = 'CUDACPP'), - (e[(e.DOCKERFILE = 8)] = 'DOCKERFILE'), - (e[(e.GO = 9)] = 'GO'), - (e[(e.GROOVY = 10)] = 'GROOVY'), - (e[(e.HANDLEBARS = 11)] = 'HANDLEBARS'), - (e[(e.HASKELL = 12)] = 'HASKELL'), - (e[(e.HCL = 13)] = 'HCL'), - (e[(e.HTML = 14)] = 'HTML'), - (e[(e.INI = 15)] = 'INI'), - (e[(e.JAVA = 16)] = 'JAVA'), - (e[(e.JAVASCRIPT = 17)] = 'JAVASCRIPT'), - (e[(e.JSON = 18)] = 'JSON'), - (e[(e.JULIA = 19)] = 'JULIA'), - (e[(e.KOTLIN = 20)] = 'KOTLIN'), - (e[(e.LATEX = 21)] = 'LATEX'), - (e[(e.LESS = 22)] = 'LESS'), - (e[(e.LUA = 23)] = 'LUA'), - (e[(e.MAKEFILE = 24)] = 'MAKEFILE'), - (e[(e.MARKDOWN = 25)] = 'MARKDOWN'), - (e[(e.OBJECTIVEC = 26)] = 'OBJECTIVEC'), - (e[(e.OBJECTIVECPP = 27)] = 'OBJECTIVECPP'), - (e[(e.PERL = 28)] = 'PERL'), - (e[(e.PHP = 29)] = 'PHP'), - (e[(e.PLAINTEXT = 30)] = 'PLAINTEXT'), - (e[(e.PROTOBUF = 31)] = 'PROTOBUF'), - (e[(e.PBTXT = 32)] = 'PBTXT'), - (e[(e.PYTHON = 33)] = 'PYTHON'), - (e[(e.R = 34)] = 'R'), - (e[(e.RUBY = 35)] = 'RUBY'), - (e[(e.RUST = 36)] = 'RUST'), - (e[(e.SASS = 37)] = 'SASS'), - (e[(e.SCALA = 38)] = 'SCALA'), - (e[(e.SCSS = 39)] = 'SCSS'), - (e[(e.SHELL = 40)] = 'SHELL'), - (e[(e.SQL = 41)] = 'SQL'), - (e[(e.STARLARK = 42)] = 'STARLARK'), - (e[(e.SWIFT = 43)] = 'SWIFT'), - (e[(e.TSX = 44)] = 'TSX'), - (e[(e.TYPESCRIPT = 45)] = 'TYPESCRIPT'), - (e[(e.VISUALBASIC = 46)] = 'VISUALBASIC'), - (e[(e.VUE = 47)] = 'VUE'), - (e[(e.XML = 48)] = 'XML'), - (e[(e.XSL = 49)] = 'XSL'), - (e[(e.YAML = 50)] = 'YAML'), - (e[(e.SVELTE = 51)] = 'SVELTE'), - (e[(e.TOML = 52)] = 'TOML'), - (e[(e.DART = 53)] = 'DART'), - (e[(e.RST = 54)] = 'RST'), - (e[(e.OCAML = 55)] = 'OCAML'), - (e[(e.CMAKE = 56)] = 'CMAKE'), - (e[(e.PASCAL = 57)] = 'PASCAL'), - (e[(e.ELIXIR = 58)] = 'ELIXIR'), - (e[(e.FSHARP = 59)] = 'FSHARP'), - (e[(e.LISP = 60)] = 'LISP'), - (e[(e.MATLAB = 61)] = 'MATLAB'), - (e[(e.POWERSHELL = 62)] = 'POWERSHELL'), - (e[(e.SOLIDITY = 63)] = 'SOLIDITY'), - (e[(e.ADA = 64)] = 'ADA'), - (e[(e.OCAML_INTERFACE = 65)] = 'OCAML_INTERFACE'), - (e[(e.TREE_SITTER_QUERY = 66)] = 'TREE_SITTER_QUERY'), - (e[(e.APL = 67)] = 'APL'), - (e[(e.ASSEMBLY = 68)] = 'ASSEMBLY'), - (e[(e.COBOL = 69)] = 'COBOL'), - (e[(e.CRYSTAL = 70)] = 'CRYSTAL'), - (e[(e.EMACS_LISP = 71)] = 'EMACS_LISP'), - (e[(e.ERLANG = 72)] = 'ERLANG'), - (e[(e.FORTRAN = 73)] = 'FORTRAN'), - (e[(e.FREEFORM = 74)] = 'FREEFORM'), - (e[(e.GRADLE = 75)] = 'GRADLE'), - (e[(e.HACK = 76)] = 'HACK'), - (e[(e.MAVEN = 77)] = 'MAVEN'), - (e[(e.M68KASSEMBLY = 78)] = 'M68KASSEMBLY'), - (e[(e.SAS = 79)] = 'SAS'), - (e[(e.UNIXASSEMBLY = 80)] = 'UNIXASSEMBLY'), - (e[(e.VBA = 81)] = 'VBA'), - (e[(e.VIMSCRIPT = 82)] = 'VIMSCRIPT'), - (e[(e.WEBASSEMBLY = 83)] = 'WEBASSEMBLY'), - (e[(e.BLADE = 84)] = 'BLADE'), - (e[(e.ASTRO = 85)] = 'ASTRO'), - (e[(e.MUMPS = 86)] = 'MUMPS'), - (e[(e.GDSCRIPT = 87)] = 'GDSCRIPT'), - (e[(e.NIM = 88)] = 'NIM'), - (e[(e.PROLOG = 89)] = 'PROLOG'), - (e[(e.MARKDOWN_INLINE = 90)] = 'MARKDOWN_INLINE'), - (e[(e.APEX = 91)] = 'APEX')); -})(O || (O = {})); -a.util.setEnumType(O, 'exa.codeium_common_pb.Language', [ +var CompletionSource; +(function (CompletionSource2) { + CompletionSource2[(CompletionSource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CompletionSource2[(CompletionSource2['TYPING_AS_SUGGESTED'] = 1)] = + 'TYPING_AS_SUGGESTED'; + CompletionSource2[(CompletionSource2['CACHE'] = 2)] = 'CACHE'; + CompletionSource2[(CompletionSource2['NETWORK'] = 3)] = 'NETWORK'; +})(CompletionSource || (CompletionSource = {})); +proto3.util.setEnumType( + CompletionSource, + 'exa.codeium_common_pb.CompletionSource', + [ + { no: 0, name: 'COMPLETION_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'COMPLETION_SOURCE_TYPING_AS_SUGGESTED' }, + { no: 2, name: 'COMPLETION_SOURCE_CACHE' }, + { no: 3, name: 'COMPLETION_SOURCE_NETWORK' }, + ], +); +var CompletionType; +(function (CompletionType2) { + CompletionType2[(CompletionType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CompletionType2[(CompletionType2['SINGLE'] = 1)] = 'SINGLE'; + CompletionType2[(CompletionType2['MULTI'] = 2)] = 'MULTI'; + CompletionType2[(CompletionType2['INLINE_FIM'] = 3)] = 'INLINE_FIM'; + CompletionType2[(CompletionType2['CASCADE'] = 4)] = 'CASCADE'; +})(CompletionType || (CompletionType = {})); +proto3.util.setEnumType( + CompletionType, + 'exa.codeium_common_pb.CompletionType', + [ + { no: 0, name: 'COMPLETION_TYPE_UNSPECIFIED' }, + { no: 1, name: 'COMPLETION_TYPE_SINGLE' }, + { no: 2, name: 'COMPLETION_TYPE_MULTI' }, + { no: 3, name: 'COMPLETION_TYPE_INLINE_FIM' }, + { no: 4, name: 'COMPLETION_TYPE_CASCADE' }, + ], +); +var Language; +(function (Language2) { + Language2[(Language2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + Language2[(Language2['C'] = 1)] = 'C'; + Language2[(Language2['CLOJURE'] = 2)] = 'CLOJURE'; + Language2[(Language2['COFFEESCRIPT'] = 3)] = 'COFFEESCRIPT'; + Language2[(Language2['CPP'] = 4)] = 'CPP'; + Language2[(Language2['CSHARP'] = 5)] = 'CSHARP'; + Language2[(Language2['CSS'] = 6)] = 'CSS'; + Language2[(Language2['CUDACPP'] = 7)] = 'CUDACPP'; + Language2[(Language2['DOCKERFILE'] = 8)] = 'DOCKERFILE'; + Language2[(Language2['GO'] = 9)] = 'GO'; + Language2[(Language2['GROOVY'] = 10)] = 'GROOVY'; + Language2[(Language2['HANDLEBARS'] = 11)] = 'HANDLEBARS'; + Language2[(Language2['HASKELL'] = 12)] = 'HASKELL'; + Language2[(Language2['HCL'] = 13)] = 'HCL'; + Language2[(Language2['HTML'] = 14)] = 'HTML'; + Language2[(Language2['INI'] = 15)] = 'INI'; + Language2[(Language2['JAVA'] = 16)] = 'JAVA'; + Language2[(Language2['JAVASCRIPT'] = 17)] = 'JAVASCRIPT'; + Language2[(Language2['JSON'] = 18)] = 'JSON'; + Language2[(Language2['JULIA'] = 19)] = 'JULIA'; + Language2[(Language2['KOTLIN'] = 20)] = 'KOTLIN'; + Language2[(Language2['LATEX'] = 21)] = 'LATEX'; + Language2[(Language2['LESS'] = 22)] = 'LESS'; + Language2[(Language2['LUA'] = 23)] = 'LUA'; + Language2[(Language2['MAKEFILE'] = 24)] = 'MAKEFILE'; + Language2[(Language2['MARKDOWN'] = 25)] = 'MARKDOWN'; + Language2[(Language2['OBJECTIVEC'] = 26)] = 'OBJECTIVEC'; + Language2[(Language2['OBJECTIVECPP'] = 27)] = 'OBJECTIVECPP'; + Language2[(Language2['PERL'] = 28)] = 'PERL'; + Language2[(Language2['PHP'] = 29)] = 'PHP'; + Language2[(Language2['PLAINTEXT'] = 30)] = 'PLAINTEXT'; + Language2[(Language2['PROTOBUF'] = 31)] = 'PROTOBUF'; + Language2[(Language2['PBTXT'] = 32)] = 'PBTXT'; + Language2[(Language2['PYTHON'] = 33)] = 'PYTHON'; + Language2[(Language2['R'] = 34)] = 'R'; + Language2[(Language2['RUBY'] = 35)] = 'RUBY'; + Language2[(Language2['RUST'] = 36)] = 'RUST'; + Language2[(Language2['SASS'] = 37)] = 'SASS'; + Language2[(Language2['SCALA'] = 38)] = 'SCALA'; + Language2[(Language2['SCSS'] = 39)] = 'SCSS'; + Language2[(Language2['SHELL'] = 40)] = 'SHELL'; + Language2[(Language2['SQL'] = 41)] = 'SQL'; + Language2[(Language2['STARLARK'] = 42)] = 'STARLARK'; + Language2[(Language2['SWIFT'] = 43)] = 'SWIFT'; + Language2[(Language2['TSX'] = 44)] = 'TSX'; + Language2[(Language2['TYPESCRIPT'] = 45)] = 'TYPESCRIPT'; + Language2[(Language2['VISUALBASIC'] = 46)] = 'VISUALBASIC'; + Language2[(Language2['VUE'] = 47)] = 'VUE'; + Language2[(Language2['XML'] = 48)] = 'XML'; + Language2[(Language2['XSL'] = 49)] = 'XSL'; + Language2[(Language2['YAML'] = 50)] = 'YAML'; + Language2[(Language2['SVELTE'] = 51)] = 'SVELTE'; + Language2[(Language2['TOML'] = 52)] = 'TOML'; + Language2[(Language2['DART'] = 53)] = 'DART'; + Language2[(Language2['RST'] = 54)] = 'RST'; + Language2[(Language2['OCAML'] = 55)] = 'OCAML'; + Language2[(Language2['CMAKE'] = 56)] = 'CMAKE'; + Language2[(Language2['PASCAL'] = 57)] = 'PASCAL'; + Language2[(Language2['ELIXIR'] = 58)] = 'ELIXIR'; + Language2[(Language2['FSHARP'] = 59)] = 'FSHARP'; + Language2[(Language2['LISP'] = 60)] = 'LISP'; + Language2[(Language2['MATLAB'] = 61)] = 'MATLAB'; + Language2[(Language2['POWERSHELL'] = 62)] = 'POWERSHELL'; + Language2[(Language2['SOLIDITY'] = 63)] = 'SOLIDITY'; + Language2[(Language2['ADA'] = 64)] = 'ADA'; + Language2[(Language2['OCAML_INTERFACE'] = 65)] = 'OCAML_INTERFACE'; + Language2[(Language2['TREE_SITTER_QUERY'] = 66)] = 'TREE_SITTER_QUERY'; + Language2[(Language2['APL'] = 67)] = 'APL'; + Language2[(Language2['ASSEMBLY'] = 68)] = 'ASSEMBLY'; + Language2[(Language2['COBOL'] = 69)] = 'COBOL'; + Language2[(Language2['CRYSTAL'] = 70)] = 'CRYSTAL'; + Language2[(Language2['EMACS_LISP'] = 71)] = 'EMACS_LISP'; + Language2[(Language2['ERLANG'] = 72)] = 'ERLANG'; + Language2[(Language2['FORTRAN'] = 73)] = 'FORTRAN'; + Language2[(Language2['FREEFORM'] = 74)] = 'FREEFORM'; + Language2[(Language2['GRADLE'] = 75)] = 'GRADLE'; + Language2[(Language2['HACK'] = 76)] = 'HACK'; + Language2[(Language2['MAVEN'] = 77)] = 'MAVEN'; + Language2[(Language2['M68KASSEMBLY'] = 78)] = 'M68KASSEMBLY'; + Language2[(Language2['SAS'] = 79)] = 'SAS'; + Language2[(Language2['UNIXASSEMBLY'] = 80)] = 'UNIXASSEMBLY'; + Language2[(Language2['VBA'] = 81)] = 'VBA'; + Language2[(Language2['VIMSCRIPT'] = 82)] = 'VIMSCRIPT'; + Language2[(Language2['WEBASSEMBLY'] = 83)] = 'WEBASSEMBLY'; + Language2[(Language2['BLADE'] = 84)] = 'BLADE'; + Language2[(Language2['ASTRO'] = 85)] = 'ASTRO'; + Language2[(Language2['MUMPS'] = 86)] = 'MUMPS'; + Language2[(Language2['GDSCRIPT'] = 87)] = 'GDSCRIPT'; + Language2[(Language2['NIM'] = 88)] = 'NIM'; + Language2[(Language2['PROLOG'] = 89)] = 'PROLOG'; + Language2[(Language2['MARKDOWN_INLINE'] = 90)] = 'MARKDOWN_INLINE'; + Language2[(Language2['APEX'] = 91)] = 'APEX'; +})(Language || (Language = {})); +proto3.util.setEnumType(Language, 'exa.codeium_common_pb.Language', [ { no: 0, name: 'LANGUAGE_UNSPECIFIED' }, { no: 1, name: 'LANGUAGE_C' }, { no: 2, name: 'LANGUAGE_CLOJURE' }, @@ -4317,48 +6514,58 @@ a.util.setEnumType(O, 'exa.codeium_common_pb.Language', [ { no: 90, name: 'LANGUAGE_MARKDOWN_INLINE' }, { no: 91, name: 'LANGUAGE_APEX' }, ]); -var Y; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.USER = 1)] = 'USER'), - (e[(e.SYSTEM = 2)] = 'SYSTEM'), - (e[(e.UNKNOWN = 3)] = 'UNKNOWN'), - (e[(e.TOOL = 4)] = 'TOOL'), - (e[(e.SYSTEM_PROMPT = 5)] = 'SYSTEM_PROMPT')); -})(Y || (Y = {})); -a.util.setEnumType(Y, 'exa.codeium_common_pb.ChatMessageSource', [ - { no: 0, name: 'CHAT_MESSAGE_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'CHAT_MESSAGE_SOURCE_USER' }, - { no: 2, name: 'CHAT_MESSAGE_SOURCE_SYSTEM' }, - { no: 3, name: 'CHAT_MESSAGE_SOURCE_UNKNOWN' }, - { no: 4, name: 'CHAT_MESSAGE_SOURCE_TOOL' }, - { no: 5, name: 'CHAT_MESSAGE_SOURCE_SYSTEM_PROMPT' }, -]); -var Ve; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PENDING = 1)] = 'PENDING'), - (e[(e.APPROVED = 2)] = 'APPROVED'), - (e[(e.REJECTED = 3)] = 'REJECTED')); -})(Ve || (Ve = {})); -a.util.setEnumType(Ve, 'exa.codeium_common_pb.UserTeamStatus', [ - { no: 0, name: 'USER_TEAM_STATUS_UNSPECIFIED' }, - { no: 1, name: 'USER_TEAM_STATUS_PENDING' }, - { no: 2, name: 'USER_TEAM_STATUS_APPROVED' }, - { no: 3, name: 'USER_TEAM_STATUS_REJECTED' }, -]); -var Dr; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.SSO = 1)] = 'SSO'), - (e[(e.ATTRIBUTION = 2)] = 'ATTRIBUTION'), - (e[(e.PHI = 3)] = 'PHI'), - (e[(e.CORTEX = 4)] = 'CORTEX'), - (e[(e.OPENAI_DISABLED = 5)] = 'OPENAI_DISABLED'), - (e[(e.REMOTE_INDEXING_DISABLED = 6)] = 'REMOTE_INDEXING_DISABLED'), - (e[(e.API_KEY_ENABLED = 7)] = 'API_KEY_ENABLED')); -})(Dr || (Dr = {})); -a.util.setEnumType(Dr, 'exa.codeium_common_pb.TeamsFeatures', [ +var ChatMessageSource; +(function (ChatMessageSource2) { + ChatMessageSource2[(ChatMessageSource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ChatMessageSource2[(ChatMessageSource2['USER'] = 1)] = 'USER'; + ChatMessageSource2[(ChatMessageSource2['SYSTEM'] = 2)] = 'SYSTEM'; + ChatMessageSource2[(ChatMessageSource2['UNKNOWN'] = 3)] = 'UNKNOWN'; + ChatMessageSource2[(ChatMessageSource2['TOOL'] = 4)] = 'TOOL'; + ChatMessageSource2[(ChatMessageSource2['SYSTEM_PROMPT'] = 5)] = + 'SYSTEM_PROMPT'; +})(ChatMessageSource || (ChatMessageSource = {})); +proto3.util.setEnumType( + ChatMessageSource, + 'exa.codeium_common_pb.ChatMessageSource', + [ + { no: 0, name: 'CHAT_MESSAGE_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'CHAT_MESSAGE_SOURCE_USER' }, + { no: 2, name: 'CHAT_MESSAGE_SOURCE_SYSTEM' }, + { no: 3, name: 'CHAT_MESSAGE_SOURCE_UNKNOWN' }, + { no: 4, name: 'CHAT_MESSAGE_SOURCE_TOOL' }, + { no: 5, name: 'CHAT_MESSAGE_SOURCE_SYSTEM_PROMPT' }, + ], +); +var UserTeamStatus; +(function (UserTeamStatus2) { + UserTeamStatus2[(UserTeamStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + UserTeamStatus2[(UserTeamStatus2['PENDING'] = 1)] = 'PENDING'; + UserTeamStatus2[(UserTeamStatus2['APPROVED'] = 2)] = 'APPROVED'; + UserTeamStatus2[(UserTeamStatus2['REJECTED'] = 3)] = 'REJECTED'; +})(UserTeamStatus || (UserTeamStatus = {})); +proto3.util.setEnumType( + UserTeamStatus, + 'exa.codeium_common_pb.UserTeamStatus', + [ + { no: 0, name: 'USER_TEAM_STATUS_UNSPECIFIED' }, + { no: 1, name: 'USER_TEAM_STATUS_PENDING' }, + { no: 2, name: 'USER_TEAM_STATUS_APPROVED' }, + { no: 3, name: 'USER_TEAM_STATUS_REJECTED' }, + ], +); +var TeamsFeatures; +(function (TeamsFeatures2) { + TeamsFeatures2[(TeamsFeatures2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TeamsFeatures2[(TeamsFeatures2['SSO'] = 1)] = 'SSO'; + TeamsFeatures2[(TeamsFeatures2['ATTRIBUTION'] = 2)] = 'ATTRIBUTION'; + TeamsFeatures2[(TeamsFeatures2['PHI'] = 3)] = 'PHI'; + TeamsFeatures2[(TeamsFeatures2['CORTEX'] = 4)] = 'CORTEX'; + TeamsFeatures2[(TeamsFeatures2['OPENAI_DISABLED'] = 5)] = 'OPENAI_DISABLED'; + TeamsFeatures2[(TeamsFeatures2['REMOTE_INDEXING_DISABLED'] = 6)] = + 'REMOTE_INDEXING_DISABLED'; + TeamsFeatures2[(TeamsFeatures2['API_KEY_ENABLED'] = 7)] = 'API_KEY_ENABLED'; +})(TeamsFeatures || (TeamsFeatures = {})); +proto3.util.setEnumType(TeamsFeatures, 'exa.codeium_common_pb.TeamsFeatures', [ { no: 0, name: 'TEAMS_FEATURES_UNSPECIFIED' }, { no: 1, name: 'TEAMS_FEATURES_SSO' }, { no: 2, name: 'TEAMS_FEATURES_ATTRIBUTION' }, @@ -4368,53 +6575,56 @@ a.util.setEnumType(Dr, 'exa.codeium_common_pb.TeamsFeatures', [ { no: 6, name: 'TEAMS_FEATURES_REMOTE_INDEXING_DISABLED' }, { no: 7, name: 'TEAMS_FEATURES_API_KEY_ENABLED' }, ]); -var kr; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CORTEX = 1)] = 'CORTEX'), - (e[(e.CORTEX_TEST = 2)] = 'CORTEX_TEST')); -})(kr || (kr = {})); -a.util.setEnumType(kr, 'exa.codeium_common_pb.UserFeatures', [ +var UserFeatures; +(function (UserFeatures2) { + UserFeatures2[(UserFeatures2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + UserFeatures2[(UserFeatures2['CORTEX'] = 1)] = 'CORTEX'; + UserFeatures2[(UserFeatures2['CORTEX_TEST'] = 2)] = 'CORTEX_TEST'; +})(UserFeatures || (UserFeatures = {})); +proto3.util.setEnumType(UserFeatures, 'exa.codeium_common_pb.UserFeatures', [ { no: 0, name: 'USER_FEATURES_UNSPECIFIED' }, { no: 1, name: 'USER_FEATURES_CORTEX' }, { no: 2, name: 'USER_FEATURES_CORTEX_TEST' }, ]); -var gr; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ATTRIBUTION_READ = 1)] = 'ATTRIBUTION_READ'), - (e[(e.ANALYTICS_READ = 2)] = 'ANALYTICS_READ'), - (e[(e.LICENSE_READ = 3)] = 'LICENSE_READ'), - (e[(e.TEAM_USER_READ = 4)] = 'TEAM_USER_READ'), - (e[(e.TEAM_USER_UPDATE = 5)] = 'TEAM_USER_UPDATE'), - (e[(e.TEAM_USER_DELETE = 6)] = 'TEAM_USER_DELETE'), - (e[(e.TEAM_USER_INVITE = 17)] = 'TEAM_USER_INVITE'), - (e[(e.INDEXING_READ = 7)] = 'INDEXING_READ'), - (e[(e.INDEXING_CREATE = 8)] = 'INDEXING_CREATE'), - (e[(e.INDEXING_UPDATE = 9)] = 'INDEXING_UPDATE'), - (e[(e.INDEXING_DELETE = 10)] = 'INDEXING_DELETE'), - (e[(e.INDEXING_MANAGEMENT = 27)] = 'INDEXING_MANAGEMENT'), - (e[(e.FINETUNING_READ = 19)] = 'FINETUNING_READ'), - (e[(e.FINETUNING_CREATE = 20)] = 'FINETUNING_CREATE'), - (e[(e.FINETUNING_UPDATE = 21)] = 'FINETUNING_UPDATE'), - (e[(e.FINETUNING_DELETE = 22)] = 'FINETUNING_DELETE'), - (e[(e.SSO_READ = 11)] = 'SSO_READ'), - (e[(e.SSO_WRITE = 12)] = 'SSO_WRITE'), - (e[(e.SERVICE_KEY_READ = 13)] = 'SERVICE_KEY_READ'), - (e[(e.SERVICE_KEY_CREATE = 14)] = 'SERVICE_KEY_CREATE'), - (e[(e.SERVICE_KEY_UPDATE = 28)] = 'SERVICE_KEY_UPDATE'), - (e[(e.SERVICE_KEY_DELETE = 15)] = 'SERVICE_KEY_DELETE'), - (e[(e.ROLE_READ = 23)] = 'ROLE_READ'), - (e[(e.ROLE_CREATE = 24)] = 'ROLE_CREATE'), - (e[(e.ROLE_UPDATE = 25)] = 'ROLE_UPDATE'), - (e[(e.ROLE_DELETE = 26)] = 'ROLE_DELETE'), - (e[(e.BILLING_READ = 16)] = 'BILLING_READ'), - (e[(e.BILLING_WRITE = 18)] = 'BILLING_WRITE'), - (e[(e.EXTERNAL_CHAT_UPDATE = 29)] = 'EXTERNAL_CHAT_UPDATE'), - (e[(e.TEAM_SETTINGS_READ = 30)] = 'TEAM_SETTINGS_READ'), - (e[(e.TEAM_SETTINGS_UPDATE = 31)] = 'TEAM_SETTINGS_UPDATE')); -})(gr || (gr = {})); -a.util.setEnumType(gr, 'exa.codeium_common_pb.Permission', [ +var Permission; +(function (Permission2) { + Permission2[(Permission2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + Permission2[(Permission2['ATTRIBUTION_READ'] = 1)] = 'ATTRIBUTION_READ'; + Permission2[(Permission2['ANALYTICS_READ'] = 2)] = 'ANALYTICS_READ'; + Permission2[(Permission2['LICENSE_READ'] = 3)] = 'LICENSE_READ'; + Permission2[(Permission2['TEAM_USER_READ'] = 4)] = 'TEAM_USER_READ'; + Permission2[(Permission2['TEAM_USER_UPDATE'] = 5)] = 'TEAM_USER_UPDATE'; + Permission2[(Permission2['TEAM_USER_DELETE'] = 6)] = 'TEAM_USER_DELETE'; + Permission2[(Permission2['TEAM_USER_INVITE'] = 17)] = 'TEAM_USER_INVITE'; + Permission2[(Permission2['INDEXING_READ'] = 7)] = 'INDEXING_READ'; + Permission2[(Permission2['INDEXING_CREATE'] = 8)] = 'INDEXING_CREATE'; + Permission2[(Permission2['INDEXING_UPDATE'] = 9)] = 'INDEXING_UPDATE'; + Permission2[(Permission2['INDEXING_DELETE'] = 10)] = 'INDEXING_DELETE'; + Permission2[(Permission2['INDEXING_MANAGEMENT'] = 27)] = + 'INDEXING_MANAGEMENT'; + Permission2[(Permission2['FINETUNING_READ'] = 19)] = 'FINETUNING_READ'; + Permission2[(Permission2['FINETUNING_CREATE'] = 20)] = 'FINETUNING_CREATE'; + Permission2[(Permission2['FINETUNING_UPDATE'] = 21)] = 'FINETUNING_UPDATE'; + Permission2[(Permission2['FINETUNING_DELETE'] = 22)] = 'FINETUNING_DELETE'; + Permission2[(Permission2['SSO_READ'] = 11)] = 'SSO_READ'; + Permission2[(Permission2['SSO_WRITE'] = 12)] = 'SSO_WRITE'; + Permission2[(Permission2['SERVICE_KEY_READ'] = 13)] = 'SERVICE_KEY_READ'; + Permission2[(Permission2['SERVICE_KEY_CREATE'] = 14)] = 'SERVICE_KEY_CREATE'; + Permission2[(Permission2['SERVICE_KEY_UPDATE'] = 28)] = 'SERVICE_KEY_UPDATE'; + Permission2[(Permission2['SERVICE_KEY_DELETE'] = 15)] = 'SERVICE_KEY_DELETE'; + Permission2[(Permission2['ROLE_READ'] = 23)] = 'ROLE_READ'; + Permission2[(Permission2['ROLE_CREATE'] = 24)] = 'ROLE_CREATE'; + Permission2[(Permission2['ROLE_UPDATE'] = 25)] = 'ROLE_UPDATE'; + Permission2[(Permission2['ROLE_DELETE'] = 26)] = 'ROLE_DELETE'; + Permission2[(Permission2['BILLING_READ'] = 16)] = 'BILLING_READ'; + Permission2[(Permission2['BILLING_WRITE'] = 18)] = 'BILLING_WRITE'; + Permission2[(Permission2['EXTERNAL_CHAT_UPDATE'] = 29)] = + 'EXTERNAL_CHAT_UPDATE'; + Permission2[(Permission2['TEAM_SETTINGS_READ'] = 30)] = 'TEAM_SETTINGS_READ'; + Permission2[(Permission2['TEAM_SETTINGS_UPDATE'] = 31)] = + 'TEAM_SETTINGS_UPDATE'; +})(Permission || (Permission = {})); +proto3.util.setEnumType(Permission, 'exa.codeium_common_pb.Permission', [ { no: 0, name: 'PERMISSION_UNSPECIFIED' }, { no: 1, name: 'PERMISSION_ATTRIBUTION_READ' }, { no: 2, name: 'PERMISSION_ANALYTICS_READ' }, @@ -4448,21 +6658,23 @@ a.util.setEnumType(gr, 'exa.codeium_common_pb.Permission', [ { no: 30, name: 'PERMISSION_TEAM_SETTINGS_READ' }, { no: 31, name: 'PERMISSION_TEAM_SETTINGS_UPDATE' }, ]); -var Kn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.TEAMS = 1)] = 'TEAMS'), - (e[(e.PRO = 2)] = 'PRO'), - (e[(e.TRIAL = 9)] = 'TRIAL'), - (e[(e.ENTERPRISE_SAAS = 3)] = 'ENTERPRISE_SAAS'), - (e[(e.HYBRID = 4)] = 'HYBRID'), - (e[(e.ENTERPRISE_SELF_HOSTED = 5)] = 'ENTERPRISE_SELF_HOSTED'), - (e[(e.ENTERPRISE_SELF_SERVE = 10)] = 'ENTERPRISE_SELF_SERVE'), - (e[(e.WAITLIST_PRO = 6)] = 'WAITLIST_PRO'), - (e[(e.TEAMS_ULTIMATE = 7)] = 'TEAMS_ULTIMATE'), - (e[(e.PRO_ULTIMATE = 8)] = 'PRO_ULTIMATE')); -})(Kn || (Kn = {})); -a.util.setEnumType(Kn, 'exa.codeium_common_pb.TeamsTier', [ +var TeamsTier; +(function (TeamsTier2) { + TeamsTier2[(TeamsTier2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TeamsTier2[(TeamsTier2['TEAMS'] = 1)] = 'TEAMS'; + TeamsTier2[(TeamsTier2['PRO'] = 2)] = 'PRO'; + TeamsTier2[(TeamsTier2['TRIAL'] = 9)] = 'TRIAL'; + TeamsTier2[(TeamsTier2['ENTERPRISE_SAAS'] = 3)] = 'ENTERPRISE_SAAS'; + TeamsTier2[(TeamsTier2['HYBRID'] = 4)] = 'HYBRID'; + TeamsTier2[(TeamsTier2['ENTERPRISE_SELF_HOSTED'] = 5)] = + 'ENTERPRISE_SELF_HOSTED'; + TeamsTier2[(TeamsTier2['ENTERPRISE_SELF_SERVE'] = 10)] = + 'ENTERPRISE_SELF_SERVE'; + TeamsTier2[(TeamsTier2['WAITLIST_PRO'] = 6)] = 'WAITLIST_PRO'; + TeamsTier2[(TeamsTier2['TEAMS_ULTIMATE'] = 7)] = 'TEAMS_ULTIMATE'; + TeamsTier2[(TeamsTier2['PRO_ULTIMATE'] = 8)] = 'PRO_ULTIMATE'; +})(TeamsTier || (TeamsTier = {})); +proto3.util.setEnumType(TeamsTier, 'exa.codeium_common_pb.TeamsTier', [ { no: 0, name: 'TEAMS_TIER_UNSPECIFIED' }, { no: 1, name: 'TEAMS_TIER_TEAMS' }, { no: 2, name: 'TEAMS_TIER_PRO' }, @@ -4475,17 +6687,17 @@ a.util.setEnumType(Kn, 'exa.codeium_common_pb.TeamsTier', [ { no: 7, name: 'TEAMS_TIER_TEAMS_ULTIMATE' }, { no: 8, name: 'TEAMS_TIER_PRO_ULTIMATE' }, ]); -var Xe; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ANTIGRAVITY = 1)] = 'ANTIGRAVITY'), - (e[(e.OPENAI = 2)] = 'OPENAI'), - (e[(e.ANTHROPIC = 3)] = 'ANTHROPIC'), - (e[(e.GOOGLE = 4)] = 'GOOGLE'), - (e[(e.XAI = 5)] = 'XAI'), - (e[(e.DEEPSEEK = 6)] = 'DEEPSEEK')); -})(Xe || (Xe = {})); -a.util.setEnumType(Xe, 'exa.codeium_common_pb.ModelProvider', [ +var ModelProvider; +(function (ModelProvider2) { + ModelProvider2[(ModelProvider2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ModelProvider2[(ModelProvider2['ANTIGRAVITY'] = 1)] = 'ANTIGRAVITY'; + ModelProvider2[(ModelProvider2['OPENAI'] = 2)] = 'OPENAI'; + ModelProvider2[(ModelProvider2['ANTHROPIC'] = 3)] = 'ANTHROPIC'; + ModelProvider2[(ModelProvider2['GOOGLE'] = 4)] = 'GOOGLE'; + ModelProvider2[(ModelProvider2['XAI'] = 5)] = 'XAI'; + ModelProvider2[(ModelProvider2['DEEPSEEK'] = 6)] = 'DEEPSEEK'; +})(ModelProvider || (ModelProvider = {})); +proto3.util.setEnumType(ModelProvider, 'exa.codeium_common_pb.ModelProvider', [ { no: 0, name: 'MODEL_PROVIDER_UNSPECIFIED' }, { no: 1, name: 'MODEL_PROVIDER_ANTIGRAVITY' }, { no: 2, name: 'MODEL_PROVIDER_OPENAI' }, @@ -4494,143 +6706,178 @@ a.util.setEnumType(Xe, 'exa.codeium_common_pb.ModelProvider', [ { no: 5, name: 'MODEL_PROVIDER_XAI' }, { no: 6, name: 'MODEL_PROVIDER_DEEPSEEK' }, ]); -var Ke; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.STATIC_CREDIT = 1)] = 'STATIC_CREDIT'), - (e[(e.API = 2)] = 'API'), - (e[(e.BYOK = 3)] = 'BYOK')); -})(Ke || (Ke = {})); -a.util.setEnumType(Ke, 'exa.codeium_common_pb.ModelPricingType', [ - { no: 0, name: 'MODEL_PRICING_TYPE_UNSPECIFIED' }, - { no: 1, name: 'MODEL_PRICING_TYPE_STATIC_CREDIT' }, - { no: 2, name: 'MODEL_PRICING_TYPE_API' }, - { no: 3, name: 'MODEL_PRICING_TYPE_BYOK' }, -]); -var ve; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.SUCCEEDED = 1)] = 'SUCCEEDED'), - (e[(e.PROCESSING = 2)] = 'PROCESSING'), - (e[(e.FAILED = 3)] = 'FAILED'), - (e[(e.NO_ACTIVE = 4)] = 'NO_ACTIVE')); -})(ve || (ve = {})); -a.util.setEnumType(ve, 'exa.codeium_common_pb.TransactionStatus', [ - { no: 0, name: 'TRANSACTION_STATUS_UNSPECIFIED' }, - { no: 1, name: 'TRANSACTION_STATUS_SUCCEEDED' }, - { no: 2, name: 'TRANSACTION_STATUS_PROCESSING' }, - { no: 3, name: 'TRANSACTION_STATUS_FAILED' }, - { no: 4, name: 'TRANSACTION_STATUS_NO_ACTIVE' }, -]); -var mn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.GITHUB = 1)] = 'GITHUB'), - (e[(e.GITLAB = 2)] = 'GITLAB'), - (e[(e.BITBUCKET = 3)] = 'BITBUCKET'), - (e[(e.AZURE_DEVOPS = 4)] = 'AZURE_DEVOPS')); -})(mn || (mn = {})); -a.util.setEnumType(mn, 'exa.codeium_common_pb.ScmProvider', [ +var ModelPricingType; +(function (ModelPricingType2) { + ModelPricingType2[(ModelPricingType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ModelPricingType2[(ModelPricingType2['STATIC_CREDIT'] = 1)] = 'STATIC_CREDIT'; + ModelPricingType2[(ModelPricingType2['API'] = 2)] = 'API'; + ModelPricingType2[(ModelPricingType2['BYOK'] = 3)] = 'BYOK'; +})(ModelPricingType || (ModelPricingType = {})); +proto3.util.setEnumType( + ModelPricingType, + 'exa.codeium_common_pb.ModelPricingType', + [ + { no: 0, name: 'MODEL_PRICING_TYPE_UNSPECIFIED' }, + { no: 1, name: 'MODEL_PRICING_TYPE_STATIC_CREDIT' }, + { no: 2, name: 'MODEL_PRICING_TYPE_API' }, + { no: 3, name: 'MODEL_PRICING_TYPE_BYOK' }, + ], +); +var TransactionStatus; +(function (TransactionStatus2) { + TransactionStatus2[(TransactionStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TransactionStatus2[(TransactionStatus2['SUCCEEDED'] = 1)] = 'SUCCEEDED'; + TransactionStatus2[(TransactionStatus2['PROCESSING'] = 2)] = 'PROCESSING'; + TransactionStatus2[(TransactionStatus2['FAILED'] = 3)] = 'FAILED'; + TransactionStatus2[(TransactionStatus2['NO_ACTIVE'] = 4)] = 'NO_ACTIVE'; +})(TransactionStatus || (TransactionStatus = {})); +proto3.util.setEnumType( + TransactionStatus, + 'exa.codeium_common_pb.TransactionStatus', + [ + { no: 0, name: 'TRANSACTION_STATUS_UNSPECIFIED' }, + { no: 1, name: 'TRANSACTION_STATUS_SUCCEEDED' }, + { no: 2, name: 'TRANSACTION_STATUS_PROCESSING' }, + { no: 3, name: 'TRANSACTION_STATUS_FAILED' }, + { no: 4, name: 'TRANSACTION_STATUS_NO_ACTIVE' }, + ], +); +var ScmProvider; +(function (ScmProvider2) { + ScmProvider2[(ScmProvider2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ScmProvider2[(ScmProvider2['GITHUB'] = 1)] = 'GITHUB'; + ScmProvider2[(ScmProvider2['GITLAB'] = 2)] = 'GITLAB'; + ScmProvider2[(ScmProvider2['BITBUCKET'] = 3)] = 'BITBUCKET'; + ScmProvider2[(ScmProvider2['AZURE_DEVOPS'] = 4)] = 'AZURE_DEVOPS'; +})(ScmProvider || (ScmProvider = {})); +proto3.util.setEnumType(ScmProvider, 'exa.codeium_common_pb.ScmProvider', [ { no: 0, name: 'SCM_PROVIDER_UNSPECIFIED' }, { no: 1, name: 'SCM_PROVIDER_GITHUB' }, { no: 2, name: 'SCM_PROVIDER_GITLAB' }, { no: 3, name: 'SCM_PROVIDER_BITBUCKET' }, { no: 4, name: 'SCM_PROVIDER_AZURE_DEVOPS' }, ]); -var dm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.GIT = 1)] = 'GIT'), - (e[(e.PERFORCE = 2)] = 'PERFORCE')); -})(dm || (dm = {})); -a.util.setEnumType(dm, 'exa.codeium_common_pb.ScmType', [ +var ScmType; +(function (ScmType2) { + ScmType2[(ScmType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ScmType2[(ScmType2['GIT'] = 1)] = 'GIT'; + ScmType2[(ScmType2['PERFORCE'] = 2)] = 'PERFORCE'; +})(ScmType || (ScmType = {})); +proto3.util.setEnumType(ScmType, 'exa.codeium_common_pb.ScmType', [ { no: 0, name: 'SCM_TYPE_UNSPECIFIED' }, { no: 1, name: 'SCM_TYPE_GIT' }, { no: 2, name: 'SCM_TYPE_PERFORCE' }, ]); -var W; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.FUNCTION = 1)] = 'FUNCTION'), - (e[(e.CLASS = 2)] = 'CLASS'), - (e[(e.IMPORT = 3)] = 'IMPORT'), - (e[(e.NAIVE_LINECHUNK = 4)] = 'NAIVE_LINECHUNK'), - (e[(e.REFERENCE_FUNCTION = 5)] = 'REFERENCE_FUNCTION'), - (e[(e.REFERENCE_CLASS = 6)] = 'REFERENCE_CLASS'), - (e[(e.FILE = 7)] = 'FILE'), - (e[(e.TERMINAL = 8)] = 'TERMINAL')); -})(W || (W = {})); -a.util.setEnumType(W, 'exa.codeium_common_pb.CodeContextType', [ - { no: 0, name: 'CODE_CONTEXT_TYPE_UNSPECIFIED' }, - { no: 1, name: 'CODE_CONTEXT_TYPE_FUNCTION' }, - { no: 2, name: 'CODE_CONTEXT_TYPE_CLASS' }, - { no: 3, name: 'CODE_CONTEXT_TYPE_IMPORT' }, - { no: 4, name: 'CODE_CONTEXT_TYPE_NAIVE_LINECHUNK' }, - { no: 5, name: 'CODE_CONTEXT_TYPE_REFERENCE_FUNCTION' }, - { no: 6, name: 'CODE_CONTEXT_TYPE_REFERENCE_CLASS' }, - { no: 7, name: 'CODE_CONTEXT_TYPE_FILE' }, - { no: 8, name: 'CODE_CONTEXT_TYPE_TERMINAL' }, -]); -var ze; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.OPEN_DOCS = 1)] = 'OPEN_DOCS'), - (e[(e.SEARCH_RESULT = 2)] = 'SEARCH_RESULT'), - (e[(e.IMPORT = 3)] = 'IMPORT'), - (e[(e.LOCAL_DIRECTORY = 4)] = 'LOCAL_DIRECTORY'), - (e[(e.LAST_ACTIVE_DOC = 5)] = 'LAST_ACTIVE_DOC'), - (e[(e.ORACLE_ITEMS = 6)] = 'ORACLE_ITEMS'), - (e[(e.PINNED_CONTEXT = 7)] = 'PINNED_CONTEXT'), - (e[(e.RESEARCH_STATE = 8)] = 'RESEARCH_STATE'), - (e[(e.GROUND_TRUTH_PLAN_EDIT = 9)] = 'GROUND_TRUTH_PLAN_EDIT'), - (e[(e.COMMIT_GRAPH = 10)] = 'COMMIT_GRAPH')); -})(ze || (ze = {})); -a.util.setEnumType(ze, 'exa.codeium_common_pb.CodeContextSource', [ - { no: 0, name: 'CODE_CONTEXT_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'CODE_CONTEXT_SOURCE_OPEN_DOCS' }, - { no: 2, name: 'CODE_CONTEXT_SOURCE_SEARCH_RESULT' }, - { no: 3, name: 'CODE_CONTEXT_SOURCE_IMPORT' }, - { no: 4, name: 'CODE_CONTEXT_SOURCE_LOCAL_DIRECTORY' }, - { no: 5, name: 'CODE_CONTEXT_SOURCE_LAST_ACTIVE_DOC' }, - { no: 6, name: 'CODE_CONTEXT_SOURCE_ORACLE_ITEMS' }, - { no: 7, name: 'CODE_CONTEXT_SOURCE_PINNED_CONTEXT' }, - { no: 8, name: 'CODE_CONTEXT_SOURCE_RESEARCH_STATE' }, - { no: 9, name: 'CODE_CONTEXT_SOURCE_GROUND_TRUTH_PLAN_EDIT' }, - { no: 10, name: 'CODE_CONTEXT_SOURCE_COMMIT_GRAPH' }, -]); -var cn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.RAW_SOURCE = 1)] = 'RAW_SOURCE'), - (e[(e.SIGNATURE = 2)] = 'SIGNATURE'), - (e[(e.NODEPATH = 3)] = 'NODEPATH')); -})(cn || (cn = {})); -a.util.setEnumType(cn, 'exa.codeium_common_pb.ContextSnippetType', [ - { no: 0, name: 'CONTEXT_SNIPPET_TYPE_UNSPECIFIED' }, - { no: 1, name: 'CONTEXT_SNIPPET_TYPE_RAW_SOURCE' }, - { no: 2, name: 'CONTEXT_SNIPPET_TYPE_SIGNATURE' }, - { no: 3, name: 'CONTEXT_SNIPPET_TYPE_NODEPATH' }, -]); -var Tm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.COMMIT_MESSAGE = 1)] = 'COMMIT_MESSAGE')); -})(Tm || (Tm = {})); -a.util.setEnumType(Tm, 'exa.codeium_common_pb.CommitIntentType', [ - { no: 0, name: 'COMMIT_INTENT_TYPE_UNSPECIFIED' }, - { no: 1, name: 'COMMIT_INTENT_TYPE_COMMIT_MESSAGE' }, -]); -var fm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.L4 = 1)] = 'L4'), - (e[(e.T4 = 2)] = 'T4'), - (e[(e.A10 = 3)] = 'A10'), - (e[(e.A100 = 4)] = 'A100'), - (e[(e.V100 = 5)] = 'V100'), - (e[(e.A5000 = 6)] = 'A5000')); -})(fm || (fm = {})); -a.util.setEnumType(fm, 'exa.codeium_common_pb.GpuType', [ +var CodeContextType; +(function (CodeContextType2) { + CodeContextType2[(CodeContextType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CodeContextType2[(CodeContextType2['FUNCTION'] = 1)] = 'FUNCTION'; + CodeContextType2[(CodeContextType2['CLASS'] = 2)] = 'CLASS'; + CodeContextType2[(CodeContextType2['IMPORT'] = 3)] = 'IMPORT'; + CodeContextType2[(CodeContextType2['NAIVE_LINECHUNK'] = 4)] = + 'NAIVE_LINECHUNK'; + CodeContextType2[(CodeContextType2['REFERENCE_FUNCTION'] = 5)] = + 'REFERENCE_FUNCTION'; + CodeContextType2[(CodeContextType2['REFERENCE_CLASS'] = 6)] = + 'REFERENCE_CLASS'; + CodeContextType2[(CodeContextType2['FILE'] = 7)] = 'FILE'; + CodeContextType2[(CodeContextType2['TERMINAL'] = 8)] = 'TERMINAL'; +})(CodeContextType || (CodeContextType = {})); +proto3.util.setEnumType( + CodeContextType, + 'exa.codeium_common_pb.CodeContextType', + [ + { no: 0, name: 'CODE_CONTEXT_TYPE_UNSPECIFIED' }, + { no: 1, name: 'CODE_CONTEXT_TYPE_FUNCTION' }, + { no: 2, name: 'CODE_CONTEXT_TYPE_CLASS' }, + { no: 3, name: 'CODE_CONTEXT_TYPE_IMPORT' }, + { no: 4, name: 'CODE_CONTEXT_TYPE_NAIVE_LINECHUNK' }, + { no: 5, name: 'CODE_CONTEXT_TYPE_REFERENCE_FUNCTION' }, + { no: 6, name: 'CODE_CONTEXT_TYPE_REFERENCE_CLASS' }, + { no: 7, name: 'CODE_CONTEXT_TYPE_FILE' }, + { no: 8, name: 'CODE_CONTEXT_TYPE_TERMINAL' }, + ], +); +var CodeContextSource; +(function (CodeContextSource2) { + CodeContextSource2[(CodeContextSource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CodeContextSource2[(CodeContextSource2['OPEN_DOCS'] = 1)] = 'OPEN_DOCS'; + CodeContextSource2[(CodeContextSource2['SEARCH_RESULT'] = 2)] = + 'SEARCH_RESULT'; + CodeContextSource2[(CodeContextSource2['IMPORT'] = 3)] = 'IMPORT'; + CodeContextSource2[(CodeContextSource2['LOCAL_DIRECTORY'] = 4)] = + 'LOCAL_DIRECTORY'; + CodeContextSource2[(CodeContextSource2['LAST_ACTIVE_DOC'] = 5)] = + 'LAST_ACTIVE_DOC'; + CodeContextSource2[(CodeContextSource2['ORACLE_ITEMS'] = 6)] = 'ORACLE_ITEMS'; + CodeContextSource2[(CodeContextSource2['PINNED_CONTEXT'] = 7)] = + 'PINNED_CONTEXT'; + CodeContextSource2[(CodeContextSource2['RESEARCH_STATE'] = 8)] = + 'RESEARCH_STATE'; + CodeContextSource2[(CodeContextSource2['GROUND_TRUTH_PLAN_EDIT'] = 9)] = + 'GROUND_TRUTH_PLAN_EDIT'; + CodeContextSource2[(CodeContextSource2['COMMIT_GRAPH'] = 10)] = + 'COMMIT_GRAPH'; +})(CodeContextSource || (CodeContextSource = {})); +proto3.util.setEnumType( + CodeContextSource, + 'exa.codeium_common_pb.CodeContextSource', + [ + { no: 0, name: 'CODE_CONTEXT_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'CODE_CONTEXT_SOURCE_OPEN_DOCS' }, + { no: 2, name: 'CODE_CONTEXT_SOURCE_SEARCH_RESULT' }, + { no: 3, name: 'CODE_CONTEXT_SOURCE_IMPORT' }, + { no: 4, name: 'CODE_CONTEXT_SOURCE_LOCAL_DIRECTORY' }, + { no: 5, name: 'CODE_CONTEXT_SOURCE_LAST_ACTIVE_DOC' }, + { no: 6, name: 'CODE_CONTEXT_SOURCE_ORACLE_ITEMS' }, + { no: 7, name: 'CODE_CONTEXT_SOURCE_PINNED_CONTEXT' }, + { no: 8, name: 'CODE_CONTEXT_SOURCE_RESEARCH_STATE' }, + { no: 9, name: 'CODE_CONTEXT_SOURCE_GROUND_TRUTH_PLAN_EDIT' }, + { no: 10, name: 'CODE_CONTEXT_SOURCE_COMMIT_GRAPH' }, + ], +); +var ContextSnippetType; +(function (ContextSnippetType2) { + ContextSnippetType2[(ContextSnippetType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ContextSnippetType2[(ContextSnippetType2['RAW_SOURCE'] = 1)] = 'RAW_SOURCE'; + ContextSnippetType2[(ContextSnippetType2['SIGNATURE'] = 2)] = 'SIGNATURE'; + ContextSnippetType2[(ContextSnippetType2['NODEPATH'] = 3)] = 'NODEPATH'; +})(ContextSnippetType || (ContextSnippetType = {})); +proto3.util.setEnumType( + ContextSnippetType, + 'exa.codeium_common_pb.ContextSnippetType', + [ + { no: 0, name: 'CONTEXT_SNIPPET_TYPE_UNSPECIFIED' }, + { no: 1, name: 'CONTEXT_SNIPPET_TYPE_RAW_SOURCE' }, + { no: 2, name: 'CONTEXT_SNIPPET_TYPE_SIGNATURE' }, + { no: 3, name: 'CONTEXT_SNIPPET_TYPE_NODEPATH' }, + ], +); +var CommitIntentType; +(function (CommitIntentType2) { + CommitIntentType2[(CommitIntentType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CommitIntentType2[(CommitIntentType2['COMMIT_MESSAGE'] = 1)] = + 'COMMIT_MESSAGE'; +})(CommitIntentType || (CommitIntentType = {})); +proto3.util.setEnumType( + CommitIntentType, + 'exa.codeium_common_pb.CommitIntentType', + [ + { no: 0, name: 'COMMIT_INTENT_TYPE_UNSPECIFIED' }, + { no: 1, name: 'COMMIT_INTENT_TYPE_COMMIT_MESSAGE' }, + ], +); +var GpuType; +(function (GpuType2) { + GpuType2[(GpuType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + GpuType2[(GpuType2['L4'] = 1)] = 'L4'; + GpuType2[(GpuType2['T4'] = 2)] = 'T4'; + GpuType2[(GpuType2['A10'] = 3)] = 'A10'; + GpuType2[(GpuType2['A100'] = 4)] = 'A100'; + GpuType2[(GpuType2['V100'] = 5)] = 'V100'; + GpuType2[(GpuType2['A5000'] = 6)] = 'A5000'; +})(GpuType || (GpuType = {})); +proto3.util.setEnumType(GpuType, 'exa.codeium_common_pb.GpuType', [ { no: 0, name: 'GPU_TYPE_UNSPECIFIED' }, { no: 1, name: 'GPU_TYPE_L4' }, { no: 2, name: 'GPU_TYPE_T4' }, @@ -4639,293 +6886,409 @@ a.util.setEnumType(fm, 'exa.codeium_common_pb.GpuType', [ { no: 5, name: 'GPU_TYPE_V100' }, { no: 6, name: 'GPU_TYPE_A5000' }, ]); -var vn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.INCLUDE = 1)] = 'INCLUDE'), - (e[(e.EXCLUDE = 2)] = 'EXCLUDE')); -})(vn || (vn = {})); -a.util.setEnumType(vn, 'exa.codeium_common_pb.ContextInclusionType', [ - { no: 0, name: 'CONTEXT_INCLUSION_TYPE_UNSPECIFIED' }, - { no: 1, name: 'CONTEXT_INCLUSION_TYPE_INCLUDE' }, - { no: 2, name: 'CONTEXT_INCLUSION_TYPE_EXCLUDE' }, -]); -var je; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.AUTO = 1)] = 'AUTO'), - (e[(e.LIGHT = 2)] = 'LIGHT'), - (e[(e.DARK = 3)] = 'DARK')); -})(je || (je = {})); -a.util.setEnumType(je, 'exa.codeium_common_pb.ThemePreference', [ - { no: 0, name: 'THEME_PREFERENCE_UNSPECIFIED' }, - { no: 1, name: 'THEME_PREFERENCE_AUTO' }, - { no: 2, name: 'THEME_PREFERENCE_LIGHT' }, - { no: 3, name: 'THEME_PREFERENCE_DARK' }, -]); -var Qe; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.SLOW = 1)] = 'SLOW'), - (e[(e.DEFAULT = 2)] = 'DEFAULT'), - (e[(e.FAST = 3)] = 'FAST')); -})(Qe || (Qe = {})); -a.util.setEnumType(Qe, 'exa.codeium_common_pb.AutocompleteSpeed', [ - { no: 0, name: 'AUTOCOMPLETE_SPEED_UNSPECIFIED' }, - { no: 1, name: 'AUTOCOMPLETE_SPEED_SLOW' }, - { no: 2, name: 'AUTOCOMPLETE_SPEED_DEFAULT' }, - { no: 3, name: 'AUTOCOMPLETE_SPEED_FAST' }, -]); -var Ze; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.OFF = 1)] = 'OFF'), - (e[(e.ON = 2)] = 'ON')); -})(Ze || (Ze = {})); -a.util.setEnumType(Ze, 'exa.codeium_common_pb.TabEnabled', [ +var ContextInclusionType; +(function (ContextInclusionType2) { + ContextInclusionType2[(ContextInclusionType2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + ContextInclusionType2[(ContextInclusionType2['INCLUDE'] = 1)] = 'INCLUDE'; + ContextInclusionType2[(ContextInclusionType2['EXCLUDE'] = 2)] = 'EXCLUDE'; +})(ContextInclusionType || (ContextInclusionType = {})); +proto3.util.setEnumType( + ContextInclusionType, + 'exa.codeium_common_pb.ContextInclusionType', + [ + { no: 0, name: 'CONTEXT_INCLUSION_TYPE_UNSPECIFIED' }, + { no: 1, name: 'CONTEXT_INCLUSION_TYPE_INCLUDE' }, + { no: 2, name: 'CONTEXT_INCLUSION_TYPE_EXCLUDE' }, + ], +); +var ThemePreference; +(function (ThemePreference2) { + ThemePreference2[(ThemePreference2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ThemePreference2[(ThemePreference2['AUTO'] = 1)] = 'AUTO'; + ThemePreference2[(ThemePreference2['LIGHT'] = 2)] = 'LIGHT'; + ThemePreference2[(ThemePreference2['DARK'] = 3)] = 'DARK'; +})(ThemePreference || (ThemePreference = {})); +proto3.util.setEnumType( + ThemePreference, + 'exa.codeium_common_pb.ThemePreference', + [ + { no: 0, name: 'THEME_PREFERENCE_UNSPECIFIED' }, + { no: 1, name: 'THEME_PREFERENCE_AUTO' }, + { no: 2, name: 'THEME_PREFERENCE_LIGHT' }, + { no: 3, name: 'THEME_PREFERENCE_DARK' }, + ], +); +var AutocompleteSpeed; +(function (AutocompleteSpeed2) { + AutocompleteSpeed2[(AutocompleteSpeed2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + AutocompleteSpeed2[(AutocompleteSpeed2['SLOW'] = 1)] = 'SLOW'; + AutocompleteSpeed2[(AutocompleteSpeed2['DEFAULT'] = 2)] = 'DEFAULT'; + AutocompleteSpeed2[(AutocompleteSpeed2['FAST'] = 3)] = 'FAST'; +})(AutocompleteSpeed || (AutocompleteSpeed = {})); +proto3.util.setEnumType( + AutocompleteSpeed, + 'exa.codeium_common_pb.AutocompleteSpeed', + [ + { no: 0, name: 'AUTOCOMPLETE_SPEED_UNSPECIFIED' }, + { no: 1, name: 'AUTOCOMPLETE_SPEED_SLOW' }, + { no: 2, name: 'AUTOCOMPLETE_SPEED_DEFAULT' }, + { no: 3, name: 'AUTOCOMPLETE_SPEED_FAST' }, + ], +); +var TabEnabled; +(function (TabEnabled2) { + TabEnabled2[(TabEnabled2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TabEnabled2[(TabEnabled2['OFF'] = 1)] = 'OFF'; + TabEnabled2[(TabEnabled2['ON'] = 2)] = 'ON'; +})(TabEnabled || (TabEnabled = {})); +proto3.util.setEnumType(TabEnabled, 'exa.codeium_common_pb.TabEnabled', [ { no: 0, name: 'TAB_ENABLED_UNSPECIFIED' }, { no: 1, name: 'TAB_ENABLED_OFF' }, { no: 2, name: 'TAB_ENABLED_ON' }, ]); -var un; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.OFF = 1)] = 'OFF'), - (e[(e.AUTO = 2)] = 'AUTO'), - (e[(e.EAGER = 3)] = 'EAGER')); -})(un || (un = {})); -a.util.setEnumType(un, 'exa.codeium_common_pb.CascadeCommandsAutoExecution', [ - { no: 0, name: 'CASCADE_COMMANDS_AUTO_EXECUTION_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_COMMANDS_AUTO_EXECUTION_OFF' }, - { no: 2, name: 'CASCADE_COMMANDS_AUTO_EXECUTION_AUTO' }, - { no: 3, name: 'CASCADE_COMMANDS_AUTO_EXECUTION_EAGER' }, -]); -var ln; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ALWAYS = 1)] = 'ALWAYS'), - (e[(e.TURBO = 2)] = 'TURBO'), - (e[(e.AUTO = 3)] = 'AUTO')); -})(ln || (ln = {})); -a.util.setEnumType(ln, 'exa.codeium_common_pb.ArtifactReviewMode', [ - { no: 0, name: 'ARTIFACT_REVIEW_MODE_UNSPECIFIED' }, - { no: 1, name: 'ARTIFACT_REVIEW_MODE_ALWAYS' }, - { no: 2, name: 'ARTIFACT_REVIEW_MODE_TURBO' }, - { no: 3, name: 'ARTIFACT_REVIEW_MODE_AUTO' }, -]); -var Nm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CHAT = 1)] = 'CHAT'), - (e[(e.PROFILE = 2)] = 'PROFILE'), - (e[(e.BRAIN = 4)] = 'BRAIN'), - (e[(e.COMMAND = 5)] = 'COMMAND'), - (e[(e.CORTEX = 6)] = 'CORTEX'), - (e[(e.DEBUG = 7)] = 'DEBUG')); -})(Nm || (Nm = {})); -a.util.setEnumType(Nm, 'exa.codeium_common_pb.ExtensionPanelTab', [ - { no: 0, name: 'EXTENSION_PANEL_TAB_UNSPECIFIED' }, - { no: 1, name: 'EXTENSION_PANEL_TAB_CHAT' }, - { no: 2, name: 'EXTENSION_PANEL_TAB_PROFILE' }, - { no: 4, name: 'EXTENSION_PANEL_TAB_BRAIN' }, - { no: 5, name: 'EXTENSION_PANEL_TAB_COMMAND' }, - { no: 6, name: 'EXTENSION_PANEL_TAB_CORTEX' }, - { no: 7, name: 'EXTENSION_PANEL_TAB_DEBUG' }, -]); -var $e; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED')); -})($e || ($e = {})); -a.util.setEnumType($e, 'exa.codeium_common_pb.RememberLastModelSelection', [ - { no: 0, name: 'REMEMBER_LAST_MODEL_SELECTION_UNSPECIFIED' }, - { no: 1, name: 'REMEMBER_LAST_MODEL_SELECTION_ENABLED' }, - { no: 2, name: 'REMEMBER_LAST_MODEL_SELECTION_DISABLED' }, -]); -var nt; -(function (e) { - ((e[(e.CASCADE_NUX_EVENT_UNSPECIFIED = 0)] = 'CASCADE_NUX_EVENT_UNSPECIFIED'), - (e[(e.CASCADE_NUX_EVENT_DIFF_OVERVIEW = 1)] = - 'CASCADE_NUX_EVENT_DIFF_OVERVIEW'), - (e[(e.CASCADE_NUX_EVENT_WEB_SEARCH = 2)] = 'CASCADE_NUX_EVENT_WEB_SEARCH'), - (e[(e.CASCADE_NUX_EVENT_NEW_MODELS_WAVE2 = 3)] = - 'CASCADE_NUX_EVENT_NEW_MODELS_WAVE2'), - (e[(e.CASCADE_NUX_EVENT_TOOL_CALL = 4)] = 'CASCADE_NUX_EVENT_TOOL_CALL'), - (e[(e.CASCADE_NUX_EVENT_MODEL_SELECTOR_NUX = 5)] = - 'CASCADE_NUX_EVENT_MODEL_SELECTOR_NUX'), - (e[(e.CASCADE_NUX_EVENT_TOOL_CALL_PRICING_NUX = 6)] = - 'CASCADE_NUX_EVENT_TOOL_CALL_PRICING_NUX'), - (e[(e.CASCADE_NUX_EVENT_WRITE_CHAT_MODE = 7)] = - 'CASCADE_NUX_EVENT_WRITE_CHAT_MODE'), - (e[(e.CASCADE_NUX_EVENT_REVERT_STEP = 8)] = - 'CASCADE_NUX_EVENT_REVERT_STEP'), - (e[(e.CASCADE_NUX_EVENT_RULES = 9)] = 'CASCADE_NUX_EVENT_RULES'), - (e[(e.CASCADE_NUX_EVENT_WEB_MENTION = 10)] = - 'CASCADE_NUX_EVENT_WEB_MENTION'), - (e[(e.CASCADE_NUX_EVENT_BACKGROUND_CASCADE = 11)] = - 'CASCADE_NUX_EVENT_BACKGROUND_CASCADE'), - (e[(e.CASCADE_NUX_EVENT_ANTHROPIC_API_PRICING = 12)] = - 'CASCADE_NUX_EVENT_ANTHROPIC_API_PRICING'), - (e[(e.CASCADE_NUX_EVENT_PLAN_MODE = 13)] = 'CASCADE_NUX_EVENT_PLAN_MODE'), - (e[(e.CASCADE_NUX_EVENT_OPEN_BROWSER_URL = 14)] = - 'CASCADE_NUX_EVENT_OPEN_BROWSER_URL')); -})(nt || (nt = {})); -a.util.setEnumType(nt, 'exa.codeium_common_pb.CascadeNUXEvent', [ - { no: 0, name: 'CASCADE_NUX_EVENT_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_NUX_EVENT_DIFF_OVERVIEW' }, - { no: 2, name: 'CASCADE_NUX_EVENT_WEB_SEARCH' }, - { no: 3, name: 'CASCADE_NUX_EVENT_NEW_MODELS_WAVE2' }, - { no: 4, name: 'CASCADE_NUX_EVENT_TOOL_CALL' }, - { no: 5, name: 'CASCADE_NUX_EVENT_MODEL_SELECTOR_NUX' }, - { no: 6, name: 'CASCADE_NUX_EVENT_TOOL_CALL_PRICING_NUX' }, - { no: 7, name: 'CASCADE_NUX_EVENT_WRITE_CHAT_MODE' }, - { no: 8, name: 'CASCADE_NUX_EVENT_REVERT_STEP' }, - { no: 9, name: 'CASCADE_NUX_EVENT_RULES' }, - { no: 10, name: 'CASCADE_NUX_EVENT_WEB_MENTION' }, - { no: 11, name: 'CASCADE_NUX_EVENT_BACKGROUND_CASCADE' }, - { no: 12, name: 'CASCADE_NUX_EVENT_ANTHROPIC_API_PRICING' }, - { no: 13, name: 'CASCADE_NUX_EVENT_PLAN_MODE' }, - { no: 14, name: 'CASCADE_NUX_EVENT_OPEN_BROWSER_URL' }, -]); -var et; -(function (e) { - ((e[(e.USER_NUX_EVENT_UNSPECIFIED = 0)] = 'USER_NUX_EVENT_UNSPECIFIED'), - (e[(e.USER_NUX_EVENT_DISMISS_ANTIGRAVITY_CROSS_SELL = 1)] = - 'USER_NUX_EVENT_DISMISS_ANTIGRAVITY_CROSS_SELL')); -})(et || (et = {})); -a.util.setEnumType(et, 'exa.codeium_common_pb.UserNUXEvent', [ +var CascadeCommandsAutoExecution; +(function (CascadeCommandsAutoExecution2) { + CascadeCommandsAutoExecution2[ + (CascadeCommandsAutoExecution2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + CascadeCommandsAutoExecution2[(CascadeCommandsAutoExecution2['OFF'] = 1)] = + 'OFF'; + CascadeCommandsAutoExecution2[(CascadeCommandsAutoExecution2['AUTO'] = 2)] = + 'AUTO'; + CascadeCommandsAutoExecution2[(CascadeCommandsAutoExecution2['EAGER'] = 3)] = + 'EAGER'; +})(CascadeCommandsAutoExecution || (CascadeCommandsAutoExecution = {})); +proto3.util.setEnumType( + CascadeCommandsAutoExecution, + 'exa.codeium_common_pb.CascadeCommandsAutoExecution', + [ + { no: 0, name: 'CASCADE_COMMANDS_AUTO_EXECUTION_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_COMMANDS_AUTO_EXECUTION_OFF' }, + { no: 2, name: 'CASCADE_COMMANDS_AUTO_EXECUTION_AUTO' }, + { no: 3, name: 'CASCADE_COMMANDS_AUTO_EXECUTION_EAGER' }, + ], +); +var ArtifactReviewMode; +(function (ArtifactReviewMode2) { + ArtifactReviewMode2[(ArtifactReviewMode2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ArtifactReviewMode2[(ArtifactReviewMode2['ALWAYS'] = 1)] = 'ALWAYS'; + ArtifactReviewMode2[(ArtifactReviewMode2['TURBO'] = 2)] = 'TURBO'; + ArtifactReviewMode2[(ArtifactReviewMode2['AUTO'] = 3)] = 'AUTO'; +})(ArtifactReviewMode || (ArtifactReviewMode = {})); +proto3.util.setEnumType( + ArtifactReviewMode, + 'exa.codeium_common_pb.ArtifactReviewMode', + [ + { no: 0, name: 'ARTIFACT_REVIEW_MODE_UNSPECIFIED' }, + { no: 1, name: 'ARTIFACT_REVIEW_MODE_ALWAYS' }, + { no: 2, name: 'ARTIFACT_REVIEW_MODE_TURBO' }, + { no: 3, name: 'ARTIFACT_REVIEW_MODE_AUTO' }, + ], +); +var ExtensionPanelTab; +(function (ExtensionPanelTab2) { + ExtensionPanelTab2[(ExtensionPanelTab2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ExtensionPanelTab2[(ExtensionPanelTab2['CHAT'] = 1)] = 'CHAT'; + ExtensionPanelTab2[(ExtensionPanelTab2['PROFILE'] = 2)] = 'PROFILE'; + ExtensionPanelTab2[(ExtensionPanelTab2['BRAIN'] = 4)] = 'BRAIN'; + ExtensionPanelTab2[(ExtensionPanelTab2['COMMAND'] = 5)] = 'COMMAND'; + ExtensionPanelTab2[(ExtensionPanelTab2['CORTEX'] = 6)] = 'CORTEX'; + ExtensionPanelTab2[(ExtensionPanelTab2['DEBUG'] = 7)] = 'DEBUG'; +})(ExtensionPanelTab || (ExtensionPanelTab = {})); +proto3.util.setEnumType( + ExtensionPanelTab, + 'exa.codeium_common_pb.ExtensionPanelTab', + [ + { no: 0, name: 'EXTENSION_PANEL_TAB_UNSPECIFIED' }, + { no: 1, name: 'EXTENSION_PANEL_TAB_CHAT' }, + { no: 2, name: 'EXTENSION_PANEL_TAB_PROFILE' }, + { no: 4, name: 'EXTENSION_PANEL_TAB_BRAIN' }, + { no: 5, name: 'EXTENSION_PANEL_TAB_COMMAND' }, + { no: 6, name: 'EXTENSION_PANEL_TAB_CORTEX' }, + { no: 7, name: 'EXTENSION_PANEL_TAB_DEBUG' }, + ], +); +var RememberLastModelSelection; +(function (RememberLastModelSelection2) { + RememberLastModelSelection2[ + (RememberLastModelSelection2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + RememberLastModelSelection2[(RememberLastModelSelection2['ENABLED'] = 1)] = + 'ENABLED'; + RememberLastModelSelection2[(RememberLastModelSelection2['DISABLED'] = 2)] = + 'DISABLED'; +})(RememberLastModelSelection || (RememberLastModelSelection = {})); +proto3.util.setEnumType( + RememberLastModelSelection, + 'exa.codeium_common_pb.RememberLastModelSelection', + [ + { no: 0, name: 'REMEMBER_LAST_MODEL_SELECTION_UNSPECIFIED' }, + { no: 1, name: 'REMEMBER_LAST_MODEL_SELECTION_ENABLED' }, + { no: 2, name: 'REMEMBER_LAST_MODEL_SELECTION_DISABLED' }, + ], +); +var CascadeNUXEvent; +(function (CascadeNUXEvent2) { + CascadeNUXEvent2[(CascadeNUXEvent2['CASCADE_NUX_EVENT_UNSPECIFIED'] = 0)] = + 'CASCADE_NUX_EVENT_UNSPECIFIED'; + CascadeNUXEvent2[(CascadeNUXEvent2['CASCADE_NUX_EVENT_DIFF_OVERVIEW'] = 1)] = + 'CASCADE_NUX_EVENT_DIFF_OVERVIEW'; + CascadeNUXEvent2[(CascadeNUXEvent2['CASCADE_NUX_EVENT_WEB_SEARCH'] = 2)] = + 'CASCADE_NUX_EVENT_WEB_SEARCH'; + CascadeNUXEvent2[ + (CascadeNUXEvent2['CASCADE_NUX_EVENT_NEW_MODELS_WAVE2'] = 3) + ] = 'CASCADE_NUX_EVENT_NEW_MODELS_WAVE2'; + CascadeNUXEvent2[(CascadeNUXEvent2['CASCADE_NUX_EVENT_TOOL_CALL'] = 4)] = + 'CASCADE_NUX_EVENT_TOOL_CALL'; + CascadeNUXEvent2[ + (CascadeNUXEvent2['CASCADE_NUX_EVENT_MODEL_SELECTOR_NUX'] = 5) + ] = 'CASCADE_NUX_EVENT_MODEL_SELECTOR_NUX'; + CascadeNUXEvent2[ + (CascadeNUXEvent2['CASCADE_NUX_EVENT_TOOL_CALL_PRICING_NUX'] = 6) + ] = 'CASCADE_NUX_EVENT_TOOL_CALL_PRICING_NUX'; + CascadeNUXEvent2[ + (CascadeNUXEvent2['CASCADE_NUX_EVENT_WRITE_CHAT_MODE'] = 7) + ] = 'CASCADE_NUX_EVENT_WRITE_CHAT_MODE'; + CascadeNUXEvent2[(CascadeNUXEvent2['CASCADE_NUX_EVENT_REVERT_STEP'] = 8)] = + 'CASCADE_NUX_EVENT_REVERT_STEP'; + CascadeNUXEvent2[(CascadeNUXEvent2['CASCADE_NUX_EVENT_RULES'] = 9)] = + 'CASCADE_NUX_EVENT_RULES'; + CascadeNUXEvent2[(CascadeNUXEvent2['CASCADE_NUX_EVENT_WEB_MENTION'] = 10)] = + 'CASCADE_NUX_EVENT_WEB_MENTION'; + CascadeNUXEvent2[ + (CascadeNUXEvent2['CASCADE_NUX_EVENT_BACKGROUND_CASCADE'] = 11) + ] = 'CASCADE_NUX_EVENT_BACKGROUND_CASCADE'; + CascadeNUXEvent2[ + (CascadeNUXEvent2['CASCADE_NUX_EVENT_ANTHROPIC_API_PRICING'] = 12) + ] = 'CASCADE_NUX_EVENT_ANTHROPIC_API_PRICING'; + CascadeNUXEvent2[(CascadeNUXEvent2['CASCADE_NUX_EVENT_PLAN_MODE'] = 13)] = + 'CASCADE_NUX_EVENT_PLAN_MODE'; + CascadeNUXEvent2[ + (CascadeNUXEvent2['CASCADE_NUX_EVENT_OPEN_BROWSER_URL'] = 14) + ] = 'CASCADE_NUX_EVENT_OPEN_BROWSER_URL'; +})(CascadeNUXEvent || (CascadeNUXEvent = {})); +proto3.util.setEnumType( + CascadeNUXEvent, + 'exa.codeium_common_pb.CascadeNUXEvent', + [ + { no: 0, name: 'CASCADE_NUX_EVENT_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_NUX_EVENT_DIFF_OVERVIEW' }, + { no: 2, name: 'CASCADE_NUX_EVENT_WEB_SEARCH' }, + { no: 3, name: 'CASCADE_NUX_EVENT_NEW_MODELS_WAVE2' }, + { no: 4, name: 'CASCADE_NUX_EVENT_TOOL_CALL' }, + { no: 5, name: 'CASCADE_NUX_EVENT_MODEL_SELECTOR_NUX' }, + { no: 6, name: 'CASCADE_NUX_EVENT_TOOL_CALL_PRICING_NUX' }, + { no: 7, name: 'CASCADE_NUX_EVENT_WRITE_CHAT_MODE' }, + { no: 8, name: 'CASCADE_NUX_EVENT_REVERT_STEP' }, + { no: 9, name: 'CASCADE_NUX_EVENT_RULES' }, + { no: 10, name: 'CASCADE_NUX_EVENT_WEB_MENTION' }, + { no: 11, name: 'CASCADE_NUX_EVENT_BACKGROUND_CASCADE' }, + { no: 12, name: 'CASCADE_NUX_EVENT_ANTHROPIC_API_PRICING' }, + { no: 13, name: 'CASCADE_NUX_EVENT_PLAN_MODE' }, + { no: 14, name: 'CASCADE_NUX_EVENT_OPEN_BROWSER_URL' }, + ], +); +var UserNUXEvent; +(function (UserNUXEvent2) { + UserNUXEvent2[(UserNUXEvent2['USER_NUX_EVENT_UNSPECIFIED'] = 0)] = + 'USER_NUX_EVENT_UNSPECIFIED'; + UserNUXEvent2[ + (UserNUXEvent2['USER_NUX_EVENT_DISMISS_ANTIGRAVITY_CROSS_SELL'] = 1) + ] = 'USER_NUX_EVENT_DISMISS_ANTIGRAVITY_CROSS_SELL'; +})(UserNUXEvent || (UserNUXEvent = {})); +proto3.util.setEnumType(UserNUXEvent, 'exa.codeium_common_pb.UserNUXEvent', [ { no: 0, name: 'USER_NUX_EVENT_UNSPECIFIED' }, { no: 1, name: 'USER_NUX_EVENT_DISMISS_ANTIGRAVITY_CROSS_SELL' }, ]); -var Pn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.DEFAULT = 1)] = 'DEFAULT'), - (e[(e.READ_ONLY = 2)] = 'READ_ONLY')); -})(Pn || (Pn = {})); -a.util.setEnumType(Pn, 'exa.codeium_common_pb.ConversationalPlannerMode', [ - { no: 0, name: 'CONVERSATIONAL_PLANNER_MODE_UNSPECIFIED' }, - { no: 1, name: 'CONVERSATIONAL_PLANNER_MODE_DEFAULT' }, - { no: 2, name: 'CONVERSATIONAL_PLANNER_MODE_READ_ONLY' }, -]); -var tt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.OFF = 1)] = 'OFF'), - (e[(e.ON = 2)] = 'ON')); -})(tt || (tt = {})); -a.util.setEnumType(tt, 'exa.codeium_common_pb.PlanningMode', [ +var ConversationalPlannerMode; +(function (ConversationalPlannerMode2) { + ConversationalPlannerMode2[(ConversationalPlannerMode2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + ConversationalPlannerMode2[(ConversationalPlannerMode2['DEFAULT'] = 1)] = + 'DEFAULT'; + ConversationalPlannerMode2[(ConversationalPlannerMode2['READ_ONLY'] = 2)] = + 'READ_ONLY'; +})(ConversationalPlannerMode || (ConversationalPlannerMode = {})); +proto3.util.setEnumType( + ConversationalPlannerMode, + 'exa.codeium_common_pb.ConversationalPlannerMode', + [ + { no: 0, name: 'CONVERSATIONAL_PLANNER_MODE_UNSPECIFIED' }, + { no: 1, name: 'CONVERSATIONAL_PLANNER_MODE_DEFAULT' }, + { no: 2, name: 'CONVERSATIONAL_PLANNER_MODE_READ_ONLY' }, + ], +); +var PlanningMode; +(function (PlanningMode2) { + PlanningMode2[(PlanningMode2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + PlanningMode2[(PlanningMode2['OFF'] = 1)] = 'OFF'; + PlanningMode2[(PlanningMode2['ON'] = 2)] = 'ON'; +})(PlanningMode || (PlanningMode = {})); +proto3.util.setEnumType(PlanningMode, 'exa.codeium_common_pb.PlanningMode', [ { no: 0, name: 'PLANNING_MODE_UNSPECIFIED' }, { no: 1, name: 'PLANNING_MODE_OFF' }, { no: 2, name: 'PLANNING_MODE_ON' }, ]); -var at; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED')); -})(at || (at = {})); -a.util.setEnumType(at, 'exa.codeium_common_pb.TabToJump', [ +var TabToJump; +(function (TabToJump2) { + TabToJump2[(TabToJump2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TabToJump2[(TabToJump2['ENABLED'] = 1)] = 'ENABLED'; + TabToJump2[(TabToJump2['DISABLED'] = 2)] = 'DISABLED'; +})(TabToJump || (TabToJump = {})); +proto3.util.setEnumType(TabToJump, 'exa.codeium_common_pb.TabToJump', [ { no: 0, name: 'TAB_TO_JUMP_UNSPECIFIED' }, { no: 1, name: 'TAB_TO_JUMP_ENABLED' }, { no: 2, name: 'TAB_TO_JUMP_DISABLED' }, ]); -var rt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED')); -})(rt || (rt = {})); -a.util.setEnumType(rt, 'exa.codeium_common_pb.CascadeWebSearchTool', [ - { no: 0, name: 'CASCADE_WEB_SEARCH_TOOL_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_WEB_SEARCH_TOOL_ENABLED' }, - { no: 2, name: 'CASCADE_WEB_SEARCH_TOOL_DISABLED' }, -]); -var st; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED'), - (e[(e.ONLY = 3)] = 'ONLY')); -})(st || (st = {})); -a.util.setEnumType(st, 'exa.codeium_common_pb.CascadeRunExtensionCode', [ - { no: 0, name: 'CASCADE_RUN_EXTENSION_CODE_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_RUN_EXTENSION_CODE_ENABLED' }, - { no: 2, name: 'CASCADE_RUN_EXTENSION_CODE_DISABLED' }, - { no: 3, name: 'CASCADE_RUN_EXTENSION_CODE_ONLY' }, -]); -var it; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED')); -})(it || (it = {})); -a.util.setEnumType(it, 'exa.codeium_common_pb.CascadeInputAutocomplete', [ - { no: 0, name: 'CASCADE_INPUT_AUTOCOMPLETE_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_INPUT_AUTOCOMPLETE_ENABLED' }, - { no: 2, name: 'CASCADE_INPUT_AUTOCOMPLETE_DISABLED' }, -]); -var ot; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED'), - (e[(e.MODEL_DECIDES = 3)] = 'MODEL_DECIDES')); -})(ot || (ot = {})); -a.util.setEnumType(ot, 'exa.codeium_common_pb.CascadeRunExtensionCodeAutoRun', [ - { no: 0, name: 'CASCADE_RUN_EXTENSION_CODE_AUTO_RUN_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_RUN_EXTENSION_CODE_AUTO_RUN_ENABLED' }, - { no: 2, name: 'CASCADE_RUN_EXTENSION_CODE_AUTO_RUN_DISABLED' }, - { no: 3, name: 'CASCADE_RUN_EXTENSION_CODE_AUTO_RUN_MODEL_DECIDES' }, -]); -var mt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED')); -})(mt || (mt = {})); -a.util.setEnumType(mt, 'exa.codeium_common_pb.AgentBrowserTools', [ - { no: 0, name: 'AGENT_BROWSER_TOOLS_UNSPECIFIED' }, - { no: 1, name: 'AGENT_BROWSER_TOOLS_ENABLED' }, - { no: 2, name: 'AGENT_BROWSER_TOOLS_DISABLED' }, -]); -var Sm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CASCADE_BROWSER = 1)] = 'CASCADE_BROWSER'), - (e[(e.CASCADE_WEB_AT_MENTION = 2)] = 'CASCADE_WEB_AT_MENTION'), - (e[(e.CASCADE_REVERT_TO_STEP = 3)] = 'CASCADE_REVERT_TO_STEP'), - (e[(e.CASCADE_CLICK_MODEL_SELECTOR = 4)] = 'CASCADE_CLICK_MODEL_SELECTOR'), - (e[(e.CASCADE_MESSAGE_FEEDBACK = 5)] = 'CASCADE_MESSAGE_FEEDBACK')); -})(Sm || (Sm = {})); -a.util.setEnumType(Sm, 'exa.codeium_common_pb.FeatureUsageType', [ - { no: 0, name: 'FEATURE_USAGE_TYPE_UNSPECIFIED' }, - { no: 1, name: 'FEATURE_USAGE_TYPE_CASCADE_BROWSER' }, - { no: 2, name: 'FEATURE_USAGE_TYPE_CASCADE_WEB_AT_MENTION' }, - { no: 3, name: 'FEATURE_USAGE_TYPE_CASCADE_REVERT_TO_STEP' }, - { no: 4, name: 'FEATURE_USAGE_TYPE_CASCADE_CLICK_MODEL_SELECTOR' }, - { no: 5, name: 'FEATURE_USAGE_TYPE_CASCADE_MESSAGE_FEEDBACK' }, -]); -var Dn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ON = 1)] = 'ON'), - (e[(e.OFF = 2)] = 'OFF')); -})(Dn || (Dn = {})); -a.util.setEnumType(Dn, 'exa.codeium_common_pb.PlanMode', [ +var CascadeWebSearchTool; +(function (CascadeWebSearchTool2) { + CascadeWebSearchTool2[(CascadeWebSearchTool2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CascadeWebSearchTool2[(CascadeWebSearchTool2['ENABLED'] = 1)] = 'ENABLED'; + CascadeWebSearchTool2[(CascadeWebSearchTool2['DISABLED'] = 2)] = 'DISABLED'; +})(CascadeWebSearchTool || (CascadeWebSearchTool = {})); +proto3.util.setEnumType( + CascadeWebSearchTool, + 'exa.codeium_common_pb.CascadeWebSearchTool', + [ + { no: 0, name: 'CASCADE_WEB_SEARCH_TOOL_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_WEB_SEARCH_TOOL_ENABLED' }, + { no: 2, name: 'CASCADE_WEB_SEARCH_TOOL_DISABLED' }, + ], +); +var CascadeRunExtensionCode; +(function (CascadeRunExtensionCode2) { + CascadeRunExtensionCode2[(CascadeRunExtensionCode2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CascadeRunExtensionCode2[(CascadeRunExtensionCode2['ENABLED'] = 1)] = + 'ENABLED'; + CascadeRunExtensionCode2[(CascadeRunExtensionCode2['DISABLED'] = 2)] = + 'DISABLED'; + CascadeRunExtensionCode2[(CascadeRunExtensionCode2['ONLY'] = 3)] = 'ONLY'; +})(CascadeRunExtensionCode || (CascadeRunExtensionCode = {})); +proto3.util.setEnumType( + CascadeRunExtensionCode, + 'exa.codeium_common_pb.CascadeRunExtensionCode', + [ + { no: 0, name: 'CASCADE_RUN_EXTENSION_CODE_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_RUN_EXTENSION_CODE_ENABLED' }, + { no: 2, name: 'CASCADE_RUN_EXTENSION_CODE_DISABLED' }, + { no: 3, name: 'CASCADE_RUN_EXTENSION_CODE_ONLY' }, + ], +); +var CascadeInputAutocomplete; +(function (CascadeInputAutocomplete2) { + CascadeInputAutocomplete2[(CascadeInputAutocomplete2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CascadeInputAutocomplete2[(CascadeInputAutocomplete2['ENABLED'] = 1)] = + 'ENABLED'; + CascadeInputAutocomplete2[(CascadeInputAutocomplete2['DISABLED'] = 2)] = + 'DISABLED'; +})(CascadeInputAutocomplete || (CascadeInputAutocomplete = {})); +proto3.util.setEnumType( + CascadeInputAutocomplete, + 'exa.codeium_common_pb.CascadeInputAutocomplete', + [ + { no: 0, name: 'CASCADE_INPUT_AUTOCOMPLETE_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_INPUT_AUTOCOMPLETE_ENABLED' }, + { no: 2, name: 'CASCADE_INPUT_AUTOCOMPLETE_DISABLED' }, + ], +); +var CascadeRunExtensionCodeAutoRun; +(function (CascadeRunExtensionCodeAutoRun2) { + CascadeRunExtensionCodeAutoRun2[ + (CascadeRunExtensionCodeAutoRun2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + CascadeRunExtensionCodeAutoRun2[ + (CascadeRunExtensionCodeAutoRun2['ENABLED'] = 1) + ] = 'ENABLED'; + CascadeRunExtensionCodeAutoRun2[ + (CascadeRunExtensionCodeAutoRun2['DISABLED'] = 2) + ] = 'DISABLED'; + CascadeRunExtensionCodeAutoRun2[ + (CascadeRunExtensionCodeAutoRun2['MODEL_DECIDES'] = 3) + ] = 'MODEL_DECIDES'; +})(CascadeRunExtensionCodeAutoRun || (CascadeRunExtensionCodeAutoRun = {})); +proto3.util.setEnumType( + CascadeRunExtensionCodeAutoRun, + 'exa.codeium_common_pb.CascadeRunExtensionCodeAutoRun', + [ + { no: 0, name: 'CASCADE_RUN_EXTENSION_CODE_AUTO_RUN_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_RUN_EXTENSION_CODE_AUTO_RUN_ENABLED' }, + { no: 2, name: 'CASCADE_RUN_EXTENSION_CODE_AUTO_RUN_DISABLED' }, + { no: 3, name: 'CASCADE_RUN_EXTENSION_CODE_AUTO_RUN_MODEL_DECIDES' }, + ], +); +var AgentBrowserTools; +(function (AgentBrowserTools2) { + AgentBrowserTools2[(AgentBrowserTools2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + AgentBrowserTools2[(AgentBrowserTools2['ENABLED'] = 1)] = 'ENABLED'; + AgentBrowserTools2[(AgentBrowserTools2['DISABLED'] = 2)] = 'DISABLED'; +})(AgentBrowserTools || (AgentBrowserTools = {})); +proto3.util.setEnumType( + AgentBrowserTools, + 'exa.codeium_common_pb.AgentBrowserTools', + [ + { no: 0, name: 'AGENT_BROWSER_TOOLS_UNSPECIFIED' }, + { no: 1, name: 'AGENT_BROWSER_TOOLS_ENABLED' }, + { no: 2, name: 'AGENT_BROWSER_TOOLS_DISABLED' }, + ], +); +var FeatureUsageType; +(function (FeatureUsageType2) { + FeatureUsageType2[(FeatureUsageType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + FeatureUsageType2[(FeatureUsageType2['CASCADE_BROWSER'] = 1)] = + 'CASCADE_BROWSER'; + FeatureUsageType2[(FeatureUsageType2['CASCADE_WEB_AT_MENTION'] = 2)] = + 'CASCADE_WEB_AT_MENTION'; + FeatureUsageType2[(FeatureUsageType2['CASCADE_REVERT_TO_STEP'] = 3)] = + 'CASCADE_REVERT_TO_STEP'; + FeatureUsageType2[(FeatureUsageType2['CASCADE_CLICK_MODEL_SELECTOR'] = 4)] = + 'CASCADE_CLICK_MODEL_SELECTOR'; + FeatureUsageType2[(FeatureUsageType2['CASCADE_MESSAGE_FEEDBACK'] = 5)] = + 'CASCADE_MESSAGE_FEEDBACK'; +})(FeatureUsageType || (FeatureUsageType = {})); +proto3.util.setEnumType( + FeatureUsageType, + 'exa.codeium_common_pb.FeatureUsageType', + [ + { no: 0, name: 'FEATURE_USAGE_TYPE_UNSPECIFIED' }, + { no: 1, name: 'FEATURE_USAGE_TYPE_CASCADE_BROWSER' }, + { no: 2, name: 'FEATURE_USAGE_TYPE_CASCADE_WEB_AT_MENTION' }, + { no: 3, name: 'FEATURE_USAGE_TYPE_CASCADE_REVERT_TO_STEP' }, + { no: 4, name: 'FEATURE_USAGE_TYPE_CASCADE_CLICK_MODEL_SELECTOR' }, + { no: 5, name: 'FEATURE_USAGE_TYPE_CASCADE_MESSAGE_FEEDBACK' }, + ], +); +var PlanMode; +(function (PlanMode2) { + PlanMode2[(PlanMode2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + PlanMode2[(PlanMode2['ON'] = 1)] = 'ON'; + PlanMode2[(PlanMode2['OFF'] = 2)] = 'OFF'; +})(PlanMode || (PlanMode = {})); +proto3.util.setEnumType(PlanMode, 'exa.codeium_common_pb.PlanMode', [ { no: 0, name: 'PLAN_MODE_UNSPECIFIED' }, { no: 1, name: 'PLAN_MODE_ON' }, { no: 2, name: 'PLAN_MODE_OFF' }, ]); -var ct; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED')); -})(ct || (ct = {})); -a.util.setEnumType( - ct, +var AutoContinueOnMaxGeneratorInvocations; +(function (AutoContinueOnMaxGeneratorInvocations2) { + AutoContinueOnMaxGeneratorInvocations2[ + (AutoContinueOnMaxGeneratorInvocations2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + AutoContinueOnMaxGeneratorInvocations2[ + (AutoContinueOnMaxGeneratorInvocations2['ENABLED'] = 1) + ] = 'ENABLED'; + AutoContinueOnMaxGeneratorInvocations2[ + (AutoContinueOnMaxGeneratorInvocations2['DISABLED'] = 2) + ] = 'DISABLED'; +})( + AutoContinueOnMaxGeneratorInvocations || + (AutoContinueOnMaxGeneratorInvocations = {}), +); +proto3.util.setEnumType( + AutoContinueOnMaxGeneratorInvocations, 'exa.codeium_common_pb.AutoContinueOnMaxGeneratorInvocations', [ { no: 0, name: 'AUTO_CONTINUE_ON_MAX_GENERATOR_INVOCATIONS_UNSPECIFIED' }, @@ -4933,149 +7296,207 @@ a.util.setEnumType( { no: 2, name: 'AUTO_CONTINUE_ON_MAX_GENERATOR_INVOCATIONS_DISABLED' }, ], ); -var ut; -(function (e) { - ((e[(e.CASCADE_NUX_LOCATION_UNSPECIFIED = 0)] = - 'CASCADE_NUX_LOCATION_UNSPECIFIED'), - (e[(e.CASCADE_NUX_LOCATION_CASCADE_INPUT = 1)] = - 'CASCADE_NUX_LOCATION_CASCADE_INPUT'), - (e[(e.CASCADE_NUX_LOCATION_MODEL_SELECTOR = 2)] = - 'CASCADE_NUX_LOCATION_MODEL_SELECTOR'), - (e[(e.CASCADE_NUX_LOCATION_RULES_TAB = 4)] = - 'CASCADE_NUX_LOCATION_RULES_TAB'), - (e[(e.CASCADE_NUX_LOCATION_REVERT_STEP = 6)] = - 'CASCADE_NUX_LOCATION_REVERT_STEP'), - (e[(e.CASCADE_NUX_LOCATION_PLAN_MODE = 7)] = - 'CASCADE_NUX_LOCATION_PLAN_MODE'), - (e[(e.CASCADE_NUX_LOCATION_WRITE_CHAT_MODE = 8)] = - 'CASCADE_NUX_LOCATION_WRITE_CHAT_MODE'), - (e[(e.CASCADE_NUX_LOCATION_TOOLBAR = 9)] = 'CASCADE_NUX_LOCATION_TOOLBAR'), - (e[(e.CASCADE_NUX_LOCATION_MANAGER_BOTTOM_LEFT = 10)] = - 'CASCADE_NUX_LOCATION_MANAGER_BOTTOM_LEFT'), - (e[(e.CASCADE_NUX_LOCATION_ARTIFACT_VIEW_BOTTOM_LEFT = 11)] = - 'CASCADE_NUX_LOCATION_ARTIFACT_VIEW_BOTTOM_LEFT')); -})(ut || (ut = {})); -a.util.setEnumType(ut, 'exa.codeium_common_pb.CascadeNUXLocation', [ - { no: 0, name: 'CASCADE_NUX_LOCATION_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_NUX_LOCATION_CASCADE_INPUT' }, - { no: 2, name: 'CASCADE_NUX_LOCATION_MODEL_SELECTOR' }, - { no: 4, name: 'CASCADE_NUX_LOCATION_RULES_TAB' }, - { no: 6, name: 'CASCADE_NUX_LOCATION_REVERT_STEP' }, - { no: 7, name: 'CASCADE_NUX_LOCATION_PLAN_MODE' }, - { no: 8, name: 'CASCADE_NUX_LOCATION_WRITE_CHAT_MODE' }, - { no: 9, name: 'CASCADE_NUX_LOCATION_TOOLBAR' }, - { no: 10, name: 'CASCADE_NUX_LOCATION_MANAGER_BOTTOM_LEFT' }, - { no: 11, name: 'CASCADE_NUX_LOCATION_ARTIFACT_VIEW_BOTTOM_LEFT' }, -]); -var lt; -(function (e) { - ((e[(e.CASCADE_NUX_ICON_UNSPECIFIED = 0)] = 'CASCADE_NUX_ICON_UNSPECIFIED'), - (e[(e.CASCADE_NUX_ICON_WEB_SEARCH = 1)] = 'CASCADE_NUX_ICON_WEB_SEARCH'), - (e[(e.CASCADE_NUX_ICON_ANTIGRAVITY_BROWSER = 2)] = - 'CASCADE_NUX_ICON_ANTIGRAVITY_BROWSER')); -})(lt || (lt = {})); -a.util.setEnumType(lt, 'exa.codeium_common_pb.CascadeNUXIcon', [ - { no: 0, name: 'CASCADE_NUX_ICON_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_NUX_ICON_WEB_SEARCH' }, - { no: 2, name: 'CASCADE_NUX_ICON_ANTIGRAVITY_BROWSER' }, -]); -var Et; -(function (e) { - ((e[(e.CASCADE_NUX_TRIGGER_UNSPECIFIED = 0)] = - 'CASCADE_NUX_TRIGGER_UNSPECIFIED'), - (e[(e.CASCADE_NUX_TRIGGER_PRODUCED_CODE_DIFF = 1)] = - 'CASCADE_NUX_TRIGGER_PRODUCED_CODE_DIFF'), - (e[(e.CASCADE_NUX_TRIGGER_OPEN_BROWSER_URL = 3)] = - 'CASCADE_NUX_TRIGGER_OPEN_BROWSER_URL'), - (e[(e.CASCADE_NUX_TRIGGER_WEB_SEARCH = 4)] = - 'CASCADE_NUX_TRIGGER_WEB_SEARCH'), - (e[(e.CASCADE_NUX_TRIGGER_MANAGER_POSTONBOARDING_COMPLETE = 5)] = - 'CASCADE_NUX_TRIGGER_MANAGER_POSTONBOARDING_COMPLETE'), - (e[(e.CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_CREATED = 6)] = - 'CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_CREATED'), - (e[(e.CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_OPENED = 7)] = - 'CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_OPENED'), - (e[(e.CASCADE_NUX_TRIGGER_MANAGER_FILE_OPENED = 8)] = - 'CASCADE_NUX_TRIGGER_MANAGER_FILE_OPENED'), - (e[(e.CASCADE_NUX_TRIGGER_MANAGER_CONVERSATION_AVAILABLE = 10)] = - 'CASCADE_NUX_TRIGGER_MANAGER_CONVERSATION_AVAILABLE')); -})(Et || (Et = {})); -a.util.setEnumType(Et, 'exa.codeium_common_pb.CascadeNUXTrigger', [ - { no: 0, name: 'CASCADE_NUX_TRIGGER_UNSPECIFIED' }, - { no: 1, name: 'CASCADE_NUX_TRIGGER_PRODUCED_CODE_DIFF' }, - { no: 3, name: 'CASCADE_NUX_TRIGGER_OPEN_BROWSER_URL' }, - { no: 4, name: 'CASCADE_NUX_TRIGGER_WEB_SEARCH' }, - { no: 5, name: 'CASCADE_NUX_TRIGGER_MANAGER_POSTONBOARDING_COMPLETE' }, - { no: 6, name: 'CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_CREATED' }, - { no: 7, name: 'CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_OPENED' }, - { no: 8, name: 'CASCADE_NUX_TRIGGER_MANAGER_FILE_OPENED' }, - { no: 10, name: 'CASCADE_NUX_TRIGGER_MANAGER_CONVERSATION_AVAILABLE' }, -]); -var _t; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED')); -})(_t || (_t = {})); -a.util.setEnumType(_t, 'exa.codeium_common_pb.AnnotationsConfig', [ - { no: 0, name: 'ANNOTATIONS_CONFIG_UNSPECIFIED' }, - { no: 1, name: 'ANNOTATIONS_CONFIG_ENABLED' }, - { no: 2, name: 'ANNOTATIONS_CONFIG_DISABLED' }, -]); -var dt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ENABLED = 1)] = 'ENABLED'), - (e[(e.DISABLED = 2)] = 'DISABLED')); -})(dt || (dt = {})); -a.util.setEnumType(dt, 'exa.codeium_common_pb.DetectAndUseProxy', [ - { no: 0, name: 'DETECT_AND_USE_PROXY_UNSPECIFIED' }, - { no: 1, name: 'DETECT_AND_USE_PROXY_ENABLED' }, - { no: 2, name: 'DETECT_AND_USE_PROXY_DISABLED' }, -]); -var En; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.DISABLED = 1)] = 'DISABLED'), - (e[(e.ALWAYS_ASK = 2)] = 'ALWAYS_ASK'), - (e[(e.MODEL_DECIDES = 3)] = 'MODEL_DECIDES'), - (e[(e.TURBO = 4)] = 'TURBO')); -})(En || (En = {})); -a.util.setEnumType(En, 'exa.codeium_common_pb.BrowserJsExecutionPolicy', [ - { no: 0, name: 'BROWSER_JS_EXECUTION_POLICY_UNSPECIFIED' }, - { no: 1, name: 'BROWSER_JS_EXECUTION_POLICY_DISABLED' }, - { no: 2, name: 'BROWSER_JS_EXECUTION_POLICY_ALWAYS_ASK' }, - { no: 3, name: 'BROWSER_JS_EXECUTION_POLICY_MODEL_DECIDES' }, - { no: 4, name: 'BROWSER_JS_EXECUTION_POLICY_TURBO' }, -]); -var Tt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.COMPLETION = 1)] = 'COMPLETION'), - (e[(e.CHAT = 2)] = 'CHAT'), - (e[(e.EMBED = 3)] = 'EMBED'), - (e[(e.QUERY = 4)] = 'QUERY')); -})(Tt || (Tt = {})); -a.util.setEnumType(Tt, 'exa.codeium_common_pb.ModelType', [ +var CascadeNUXLocation; +(function (CascadeNUXLocation2) { + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_UNSPECIFIED'] = 0) + ] = 'CASCADE_NUX_LOCATION_UNSPECIFIED'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_CASCADE_INPUT'] = 1) + ] = 'CASCADE_NUX_LOCATION_CASCADE_INPUT'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_MODEL_SELECTOR'] = 2) + ] = 'CASCADE_NUX_LOCATION_MODEL_SELECTOR'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_RULES_TAB'] = 4) + ] = 'CASCADE_NUX_LOCATION_RULES_TAB'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_REVERT_STEP'] = 6) + ] = 'CASCADE_NUX_LOCATION_REVERT_STEP'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_PLAN_MODE'] = 7) + ] = 'CASCADE_NUX_LOCATION_PLAN_MODE'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_WRITE_CHAT_MODE'] = 8) + ] = 'CASCADE_NUX_LOCATION_WRITE_CHAT_MODE'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_TOOLBAR'] = 9) + ] = 'CASCADE_NUX_LOCATION_TOOLBAR'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_MANAGER_BOTTOM_LEFT'] = 10) + ] = 'CASCADE_NUX_LOCATION_MANAGER_BOTTOM_LEFT'; + CascadeNUXLocation2[ + (CascadeNUXLocation2['CASCADE_NUX_LOCATION_ARTIFACT_VIEW_BOTTOM_LEFT'] = 11) + ] = 'CASCADE_NUX_LOCATION_ARTIFACT_VIEW_BOTTOM_LEFT'; +})(CascadeNUXLocation || (CascadeNUXLocation = {})); +proto3.util.setEnumType( + CascadeNUXLocation, + 'exa.codeium_common_pb.CascadeNUXLocation', + [ + { no: 0, name: 'CASCADE_NUX_LOCATION_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_NUX_LOCATION_CASCADE_INPUT' }, + { no: 2, name: 'CASCADE_NUX_LOCATION_MODEL_SELECTOR' }, + { no: 4, name: 'CASCADE_NUX_LOCATION_RULES_TAB' }, + { no: 6, name: 'CASCADE_NUX_LOCATION_REVERT_STEP' }, + { no: 7, name: 'CASCADE_NUX_LOCATION_PLAN_MODE' }, + { no: 8, name: 'CASCADE_NUX_LOCATION_WRITE_CHAT_MODE' }, + { no: 9, name: 'CASCADE_NUX_LOCATION_TOOLBAR' }, + { no: 10, name: 'CASCADE_NUX_LOCATION_MANAGER_BOTTOM_LEFT' }, + { no: 11, name: 'CASCADE_NUX_LOCATION_ARTIFACT_VIEW_BOTTOM_LEFT' }, + ], +); +var CascadeNUXIcon; +(function (CascadeNUXIcon2) { + CascadeNUXIcon2[(CascadeNUXIcon2['CASCADE_NUX_ICON_UNSPECIFIED'] = 0)] = + 'CASCADE_NUX_ICON_UNSPECIFIED'; + CascadeNUXIcon2[(CascadeNUXIcon2['CASCADE_NUX_ICON_WEB_SEARCH'] = 1)] = + 'CASCADE_NUX_ICON_WEB_SEARCH'; + CascadeNUXIcon2[ + (CascadeNUXIcon2['CASCADE_NUX_ICON_ANTIGRAVITY_BROWSER'] = 2) + ] = 'CASCADE_NUX_ICON_ANTIGRAVITY_BROWSER'; +})(CascadeNUXIcon || (CascadeNUXIcon = {})); +proto3.util.setEnumType( + CascadeNUXIcon, + 'exa.codeium_common_pb.CascadeNUXIcon', + [ + { no: 0, name: 'CASCADE_NUX_ICON_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_NUX_ICON_WEB_SEARCH' }, + { no: 2, name: 'CASCADE_NUX_ICON_ANTIGRAVITY_BROWSER' }, + ], +); +var CascadeNUXTrigger; +(function (CascadeNUXTrigger2) { + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_UNSPECIFIED'] = 0) + ] = 'CASCADE_NUX_TRIGGER_UNSPECIFIED'; + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_PRODUCED_CODE_DIFF'] = 1) + ] = 'CASCADE_NUX_TRIGGER_PRODUCED_CODE_DIFF'; + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_OPEN_BROWSER_URL'] = 3) + ] = 'CASCADE_NUX_TRIGGER_OPEN_BROWSER_URL'; + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_WEB_SEARCH'] = 4) + ] = 'CASCADE_NUX_TRIGGER_WEB_SEARCH'; + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_MANAGER_POSTONBOARDING_COMPLETE'] = + 5) + ] = 'CASCADE_NUX_TRIGGER_MANAGER_POSTONBOARDING_COMPLETE'; + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_CREATED'] = 6) + ] = 'CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_CREATED'; + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_OPENED'] = 7) + ] = 'CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_OPENED'; + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_MANAGER_FILE_OPENED'] = 8) + ] = 'CASCADE_NUX_TRIGGER_MANAGER_FILE_OPENED'; + CascadeNUXTrigger2[ + (CascadeNUXTrigger2['CASCADE_NUX_TRIGGER_MANAGER_CONVERSATION_AVAILABLE'] = + 10) + ] = 'CASCADE_NUX_TRIGGER_MANAGER_CONVERSATION_AVAILABLE'; +})(CascadeNUXTrigger || (CascadeNUXTrigger = {})); +proto3.util.setEnumType( + CascadeNUXTrigger, + 'exa.codeium_common_pb.CascadeNUXTrigger', + [ + { no: 0, name: 'CASCADE_NUX_TRIGGER_UNSPECIFIED' }, + { no: 1, name: 'CASCADE_NUX_TRIGGER_PRODUCED_CODE_DIFF' }, + { no: 3, name: 'CASCADE_NUX_TRIGGER_OPEN_BROWSER_URL' }, + { no: 4, name: 'CASCADE_NUX_TRIGGER_WEB_SEARCH' }, + { no: 5, name: 'CASCADE_NUX_TRIGGER_MANAGER_POSTONBOARDING_COMPLETE' }, + { no: 6, name: 'CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_CREATED' }, + { no: 7, name: 'CASCADE_NUX_TRIGGER_MANAGER_ARTIFACT_OPENED' }, + { no: 8, name: 'CASCADE_NUX_TRIGGER_MANAGER_FILE_OPENED' }, + { no: 10, name: 'CASCADE_NUX_TRIGGER_MANAGER_CONVERSATION_AVAILABLE' }, + ], +); +var AnnotationsConfig; +(function (AnnotationsConfig2) { + AnnotationsConfig2[(AnnotationsConfig2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + AnnotationsConfig2[(AnnotationsConfig2['ENABLED'] = 1)] = 'ENABLED'; + AnnotationsConfig2[(AnnotationsConfig2['DISABLED'] = 2)] = 'DISABLED'; +})(AnnotationsConfig || (AnnotationsConfig = {})); +proto3.util.setEnumType( + AnnotationsConfig, + 'exa.codeium_common_pb.AnnotationsConfig', + [ + { no: 0, name: 'ANNOTATIONS_CONFIG_UNSPECIFIED' }, + { no: 1, name: 'ANNOTATIONS_CONFIG_ENABLED' }, + { no: 2, name: 'ANNOTATIONS_CONFIG_DISABLED' }, + ], +); +var DetectAndUseProxy; +(function (DetectAndUseProxy2) { + DetectAndUseProxy2[(DetectAndUseProxy2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + DetectAndUseProxy2[(DetectAndUseProxy2['ENABLED'] = 1)] = 'ENABLED'; + DetectAndUseProxy2[(DetectAndUseProxy2['DISABLED'] = 2)] = 'DISABLED'; +})(DetectAndUseProxy || (DetectAndUseProxy = {})); +proto3.util.setEnumType( + DetectAndUseProxy, + 'exa.codeium_common_pb.DetectAndUseProxy', + [ + { no: 0, name: 'DETECT_AND_USE_PROXY_UNSPECIFIED' }, + { no: 1, name: 'DETECT_AND_USE_PROXY_ENABLED' }, + { no: 2, name: 'DETECT_AND_USE_PROXY_DISABLED' }, + ], +); +var BrowserJsExecutionPolicy; +(function (BrowserJsExecutionPolicy2) { + BrowserJsExecutionPolicy2[(BrowserJsExecutionPolicy2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + BrowserJsExecutionPolicy2[(BrowserJsExecutionPolicy2['DISABLED'] = 1)] = + 'DISABLED'; + BrowserJsExecutionPolicy2[(BrowserJsExecutionPolicy2['ALWAYS_ASK'] = 2)] = + 'ALWAYS_ASK'; + BrowserJsExecutionPolicy2[(BrowserJsExecutionPolicy2['MODEL_DECIDES'] = 3)] = + 'MODEL_DECIDES'; + BrowserJsExecutionPolicy2[(BrowserJsExecutionPolicy2['TURBO'] = 4)] = 'TURBO'; +})(BrowserJsExecutionPolicy || (BrowserJsExecutionPolicy = {})); +proto3.util.setEnumType( + BrowserJsExecutionPolicy, + 'exa.codeium_common_pb.BrowserJsExecutionPolicy', + [ + { no: 0, name: 'BROWSER_JS_EXECUTION_POLICY_UNSPECIFIED' }, + { no: 1, name: 'BROWSER_JS_EXECUTION_POLICY_DISABLED' }, + { no: 2, name: 'BROWSER_JS_EXECUTION_POLICY_ALWAYS_ASK' }, + { no: 3, name: 'BROWSER_JS_EXECUTION_POLICY_MODEL_DECIDES' }, + { no: 4, name: 'BROWSER_JS_EXECUTION_POLICY_TURBO' }, + ], +); +var ModelType; +(function (ModelType2) { + ModelType2[(ModelType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ModelType2[(ModelType2['COMPLETION'] = 1)] = 'COMPLETION'; + ModelType2[(ModelType2['CHAT'] = 2)] = 'CHAT'; + ModelType2[(ModelType2['EMBED'] = 3)] = 'EMBED'; + ModelType2[(ModelType2['QUERY'] = 4)] = 'QUERY'; +})(ModelType || (ModelType = {})); +proto3.util.setEnumType(ModelType, 'exa.codeium_common_pb.ModelType', [ { no: 0, name: 'MODEL_TYPE_UNSPECIFIED' }, { no: 1, name: 'MODEL_TYPE_COMPLETION' }, { no: 2, name: 'MODEL_TYPE_CHAT' }, { no: 3, name: 'MODEL_TYPE_EMBED' }, { no: 4, name: 'MODEL_TYPE_QUERY' }, ]); -var kn; -(function (e) { - ((e[(e.API_PROVIDER_UNSPECIFIED = 0)] = 'API_PROVIDER_UNSPECIFIED'), - (e[(e.API_PROVIDER_INTERNAL = 1)] = 'API_PROVIDER_INTERNAL'), - (e[(e.API_PROVIDER_GOOGLE_VERTEX = 3)] = 'API_PROVIDER_GOOGLE_VERTEX'), - (e[(e.API_PROVIDER_GOOGLE_GEMINI = 24)] = 'API_PROVIDER_GOOGLE_GEMINI'), - (e[(e.API_PROVIDER_ANTHROPIC_VERTEX = 26)] = - 'API_PROVIDER_ANTHROPIC_VERTEX'), - (e[(e.API_PROVIDER_GOOGLE_EVERGREEN = 30)] = - 'API_PROVIDER_GOOGLE_EVERGREEN'), - (e[(e.API_PROVIDER_OPENAI_VERTEX = 31)] = 'API_PROVIDER_OPENAI_VERTEX')); -})(kn || (kn = {})); -a.util.setEnumType(kn, 'exa.codeium_common_pb.APIProvider', [ +var APIProvider; +(function (APIProvider2) { + APIProvider2[(APIProvider2['API_PROVIDER_UNSPECIFIED'] = 0)] = + 'API_PROVIDER_UNSPECIFIED'; + APIProvider2[(APIProvider2['API_PROVIDER_INTERNAL'] = 1)] = + 'API_PROVIDER_INTERNAL'; + APIProvider2[(APIProvider2['API_PROVIDER_GOOGLE_VERTEX'] = 3)] = + 'API_PROVIDER_GOOGLE_VERTEX'; + APIProvider2[(APIProvider2['API_PROVIDER_GOOGLE_GEMINI'] = 24)] = + 'API_PROVIDER_GOOGLE_GEMINI'; + APIProvider2[(APIProvider2['API_PROVIDER_ANTHROPIC_VERTEX'] = 26)] = + 'API_PROVIDER_ANTHROPIC_VERTEX'; + APIProvider2[(APIProvider2['API_PROVIDER_GOOGLE_EVERGREEN'] = 30)] = + 'API_PROVIDER_GOOGLE_EVERGREEN'; + APIProvider2[(APIProvider2['API_PROVIDER_OPENAI_VERTEX'] = 31)] = + 'API_PROVIDER_OPENAI_VERTEX'; +})(APIProvider || (APIProvider = {})); +proto3.util.setEnumType(APIProvider, 'exa.codeium_common_pb.APIProvider', [ { no: 0, name: 'API_PROVIDER_UNSPECIFIED' }, { no: 1, name: 'API_PROVIDER_INTERNAL' }, { no: 3, name: 'API_PROVIDER_GOOGLE_VERTEX' }, @@ -5084,27 +7505,27 @@ a.util.setEnumType(kn, 'exa.codeium_common_pb.APIProvider', [ { no: 30, name: 'API_PROVIDER_GOOGLE_EVERGREEN' }, { no: 31, name: 'API_PROVIDER_OPENAI_VERTEX' }, ]); -var ft; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.INFO = 1)] = 'INFO'), - (e[(e.WARNING = 2)] = 'WARNING')); -})(ft || (ft = {})); -a.util.setEnumType(ft, 'exa.codeium_common_pb.ModelStatus', [ +var ModelStatus; +(function (ModelStatus2) { + ModelStatus2[(ModelStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ModelStatus2[(ModelStatus2['INFO'] = 1)] = 'INFO'; + ModelStatus2[(ModelStatus2['WARNING'] = 2)] = 'WARNING'; +})(ModelStatus || (ModelStatus = {})); +proto3.util.setEnumType(ModelStatus, 'exa.codeium_common_pb.ModelStatus', [ { no: 0, name: 'MODEL_STATUS_UNSPECIFIED' }, { no: 1, name: 'MODEL_STATUS_INFO' }, { no: 2, name: 'MODEL_STATUS_WARNING' }, ]); -var Im; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.BASE = 1)] = 'BASE'), - (e[(e.CODEIUM = 2)] = 'CODEIUM'), - (e[(e.USER = 3)] = 'USER'), - (e[(e.USER_LARGE = 4)] = 'USER_LARGE'), - (e[(e.UNKNOWN = 5)] = 'UNKNOWN')); -})(Im || (Im = {})); -a.util.setEnumType(Im, 'exa.codeium_common_pb.CodeSource', [ +var CodeSource; +(function (CodeSource2) { + CodeSource2[(CodeSource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CodeSource2[(CodeSource2['BASE'] = 1)] = 'BASE'; + CodeSource2[(CodeSource2['CODEIUM'] = 2)] = 'CODEIUM'; + CodeSource2[(CodeSource2['USER'] = 3)] = 'USER'; + CodeSource2[(CodeSource2['USER_LARGE'] = 4)] = 'USER_LARGE'; + CodeSource2[(CodeSource2['UNKNOWN'] = 5)] = 'UNKNOWN'; +})(CodeSource || (CodeSource = {})); +proto3.util.setEnumType(CodeSource, 'exa.codeium_common_pb.CodeSource', [ { no: 0, name: 'CODE_SOURCE_UNSPECIFIED' }, { no: 1, name: 'CODE_SOURCE_BASE' }, { no: 2, name: 'CODE_SOURCE_CODEIUM' }, @@ -5112,20 +7533,22 @@ a.util.setEnumType(Im, 'exa.codeium_common_pb.CodeSource', [ { no: 4, name: 'CODE_SOURCE_USER_LARGE' }, { no: 5, name: 'CODE_SOURCE_UNKNOWN' }, ]); -var V; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.SLACK_MESSAGE = 1)] = 'SLACK_MESSAGE'), - (e[(e.SLACK_CHANNEL = 2)] = 'SLACK_CHANNEL'), - (e[(e.GITHUB_ISSUE = 3)] = 'GITHUB_ISSUE'), - (e[(e.GITHUB_ISSUE_COMMENT = 4)] = 'GITHUB_ISSUE_COMMENT'), - (e[(e.GITHUB_REPO = 8)] = 'GITHUB_REPO'), - (e[(e.GOOGLE_DRIVE_FILE = 5)] = 'GOOGLE_DRIVE_FILE'), - (e[(e.GOOGLE_DRIVE_FOLDER = 6)] = 'GOOGLE_DRIVE_FOLDER'), - (e[(e.JIRA_ISSUE = 7)] = 'JIRA_ISSUE'), - (e[(e.CCI = 9)] = 'CCI')); -})(V || (V = {})); -a.util.setEnumType(V, 'exa.codeium_common_pb.DocumentType', [ +var DocumentType; +(function (DocumentType2) { + DocumentType2[(DocumentType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + DocumentType2[(DocumentType2['SLACK_MESSAGE'] = 1)] = 'SLACK_MESSAGE'; + DocumentType2[(DocumentType2['SLACK_CHANNEL'] = 2)] = 'SLACK_CHANNEL'; + DocumentType2[(DocumentType2['GITHUB_ISSUE'] = 3)] = 'GITHUB_ISSUE'; + DocumentType2[(DocumentType2['GITHUB_ISSUE_COMMENT'] = 4)] = + 'GITHUB_ISSUE_COMMENT'; + DocumentType2[(DocumentType2['GITHUB_REPO'] = 8)] = 'GITHUB_REPO'; + DocumentType2[(DocumentType2['GOOGLE_DRIVE_FILE'] = 5)] = 'GOOGLE_DRIVE_FILE'; + DocumentType2[(DocumentType2['GOOGLE_DRIVE_FOLDER'] = 6)] = + 'GOOGLE_DRIVE_FOLDER'; + DocumentType2[(DocumentType2['JIRA_ISSUE'] = 7)] = 'JIRA_ISSUE'; + DocumentType2[(DocumentType2['CCI'] = 9)] = 'CCI'; +})(DocumentType || (DocumentType = {})); +proto3.util.setEnumType(DocumentType, 'exa.codeium_common_pb.DocumentType', [ { no: 0, name: 'DOCUMENT_TYPE_UNSPECIFIED' }, { no: 1, name: 'DOCUMENT_TYPE_SLACK_MESSAGE' }, { no: 2, name: 'DOCUMENT_TYPE_SLACK_CHANNEL' }, @@ -5137,729 +7560,1011 @@ a.util.setEnumType(V, 'exa.codeium_common_pb.DocumentType', [ { no: 7, name: 'DOCUMENT_TYPE_JIRA_ISSUE' }, { no: 9, name: 'DOCUMENT_TYPE_CCI' }, ]); -var pm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.FILE = 1)] = 'FILE'), - (e[(e.DIRECTORY = 2)] = 'DIRECTORY'), - (e[(e.REPOSITORY = 3)] = 'REPOSITORY'), - (e[(e.CODE_CONTEXT = 4)] = 'CODE_CONTEXT'), - (e[(e.CCI_WITH_SUBRANGE = 5)] = 'CCI_WITH_SUBRANGE'), - (e[(e.REPOSITORY_PATH = 6)] = 'REPOSITORY_PATH'), - (e[(e.SLACK = 7)] = 'SLACK'), - (e[(e.GITHUB = 8)] = 'GITHUB'), - (e[(e.FILE_LINE_RANGE = 9)] = 'FILE_LINE_RANGE'), - (e[(e.TEXT_BLOCK = 10)] = 'TEXT_BLOCK'), - (e[(e.JIRA = 11)] = 'JIRA'), - (e[(e.GOOGLE_DRIVE = 12)] = 'GOOGLE_DRIVE'), - (e[(e.CONSOLE_LOG = 13)] = 'CONSOLE_LOG'), - (e[(e.DOM_ELEMENT = 14)] = 'DOM_ELEMENT'), - (e[(e.RECIPE = 15)] = 'RECIPE'), - (e[(e.KNOWLEDGE = 16)] = 'KNOWLEDGE'), - (e[(e.RULE = 17)] = 'RULE'), - (e[(e.MCP_RESOURCE = 18)] = 'MCP_RESOURCE'), - (e[(e.BROWSER_PAGE = 19)] = 'BROWSER_PAGE'), - (e[(e.BROWSER_CODE_BLOCK = 20)] = 'BROWSER_CODE_BLOCK'), - (e[(e.BROWSER_TEXT = 21)] = 'BROWSER_TEXT'), - (e[(e.CONVERSATION = 22)] = 'CONVERSATION'), - (e[(e.USER_ACTIVITY = 23)] = 'USER_ACTIVITY'), - (e[(e.TERMINAL = 24)] = 'TERMINAL')); -})(pm || (pm = {})); -a.util.setEnumType(pm, 'exa.codeium_common_pb.ContextScopeType', [ - { no: 0, name: 'CONTEXT_SCOPE_TYPE_UNSPECIFIED' }, - { no: 1, name: 'CONTEXT_SCOPE_TYPE_FILE' }, - { no: 2, name: 'CONTEXT_SCOPE_TYPE_DIRECTORY' }, - { no: 3, name: 'CONTEXT_SCOPE_TYPE_REPOSITORY' }, - { no: 4, name: 'CONTEXT_SCOPE_TYPE_CODE_CONTEXT' }, - { no: 5, name: 'CONTEXT_SCOPE_TYPE_CCI_WITH_SUBRANGE' }, - { no: 6, name: 'CONTEXT_SCOPE_TYPE_REPOSITORY_PATH' }, - { no: 7, name: 'CONTEXT_SCOPE_TYPE_SLACK' }, - { no: 8, name: 'CONTEXT_SCOPE_TYPE_GITHUB' }, - { no: 9, name: 'CONTEXT_SCOPE_TYPE_FILE_LINE_RANGE' }, - { no: 10, name: 'CONTEXT_SCOPE_TYPE_TEXT_BLOCK' }, - { no: 11, name: 'CONTEXT_SCOPE_TYPE_JIRA' }, - { no: 12, name: 'CONTEXT_SCOPE_TYPE_GOOGLE_DRIVE' }, - { no: 13, name: 'CONTEXT_SCOPE_TYPE_CONSOLE_LOG' }, - { no: 14, name: 'CONTEXT_SCOPE_TYPE_DOM_ELEMENT' }, - { no: 15, name: 'CONTEXT_SCOPE_TYPE_RECIPE' }, - { no: 16, name: 'CONTEXT_SCOPE_TYPE_KNOWLEDGE' }, - { no: 17, name: 'CONTEXT_SCOPE_TYPE_RULE' }, - { no: 18, name: 'CONTEXT_SCOPE_TYPE_MCP_RESOURCE' }, - { no: 19, name: 'CONTEXT_SCOPE_TYPE_BROWSER_PAGE' }, - { no: 20, name: 'CONTEXT_SCOPE_TYPE_BROWSER_CODE_BLOCK' }, - { no: 21, name: 'CONTEXT_SCOPE_TYPE_BROWSER_TEXT' }, - { no: 22, name: 'CONTEXT_SCOPE_TYPE_CONVERSATION' }, - { no: 23, name: 'CONTEXT_SCOPE_TYPE_USER_ACTIVITY' }, - { no: 24, name: 'CONTEXT_SCOPE_TYPE_TERMINAL' }, -]); -var Nt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ERROR = 1)] = 'ERROR'), - (e[(e.WARNING = 2)] = 'WARNING'), - (e[(e.INFO = 3)] = 'INFO'), - (e[(e.DEBUG = 4)] = 'DEBUG')); -})(Nt || (Nt = {})); -a.util.setEnumType(Nt, 'exa.codeium_common_pb.StatusLevel', [ +var ContextScopeType; +(function (ContextScopeType2) { + ContextScopeType2[(ContextScopeType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ContextScopeType2[(ContextScopeType2['FILE'] = 1)] = 'FILE'; + ContextScopeType2[(ContextScopeType2['DIRECTORY'] = 2)] = 'DIRECTORY'; + ContextScopeType2[(ContextScopeType2['REPOSITORY'] = 3)] = 'REPOSITORY'; + ContextScopeType2[(ContextScopeType2['CODE_CONTEXT'] = 4)] = 'CODE_CONTEXT'; + ContextScopeType2[(ContextScopeType2['CCI_WITH_SUBRANGE'] = 5)] = + 'CCI_WITH_SUBRANGE'; + ContextScopeType2[(ContextScopeType2['REPOSITORY_PATH'] = 6)] = + 'REPOSITORY_PATH'; + ContextScopeType2[(ContextScopeType2['SLACK'] = 7)] = 'SLACK'; + ContextScopeType2[(ContextScopeType2['GITHUB'] = 8)] = 'GITHUB'; + ContextScopeType2[(ContextScopeType2['FILE_LINE_RANGE'] = 9)] = + 'FILE_LINE_RANGE'; + ContextScopeType2[(ContextScopeType2['TEXT_BLOCK'] = 10)] = 'TEXT_BLOCK'; + ContextScopeType2[(ContextScopeType2['JIRA'] = 11)] = 'JIRA'; + ContextScopeType2[(ContextScopeType2['GOOGLE_DRIVE'] = 12)] = 'GOOGLE_DRIVE'; + ContextScopeType2[(ContextScopeType2['CONSOLE_LOG'] = 13)] = 'CONSOLE_LOG'; + ContextScopeType2[(ContextScopeType2['DOM_ELEMENT'] = 14)] = 'DOM_ELEMENT'; + ContextScopeType2[(ContextScopeType2['RECIPE'] = 15)] = 'RECIPE'; + ContextScopeType2[(ContextScopeType2['KNOWLEDGE'] = 16)] = 'KNOWLEDGE'; + ContextScopeType2[(ContextScopeType2['RULE'] = 17)] = 'RULE'; + ContextScopeType2[(ContextScopeType2['MCP_RESOURCE'] = 18)] = 'MCP_RESOURCE'; + ContextScopeType2[(ContextScopeType2['BROWSER_PAGE'] = 19)] = 'BROWSER_PAGE'; + ContextScopeType2[(ContextScopeType2['BROWSER_CODE_BLOCK'] = 20)] = + 'BROWSER_CODE_BLOCK'; + ContextScopeType2[(ContextScopeType2['BROWSER_TEXT'] = 21)] = 'BROWSER_TEXT'; + ContextScopeType2[(ContextScopeType2['CONVERSATION'] = 22)] = 'CONVERSATION'; + ContextScopeType2[(ContextScopeType2['USER_ACTIVITY'] = 23)] = + 'USER_ACTIVITY'; + ContextScopeType2[(ContextScopeType2['TERMINAL'] = 24)] = 'TERMINAL'; +})(ContextScopeType || (ContextScopeType = {})); +proto3.util.setEnumType( + ContextScopeType, + 'exa.codeium_common_pb.ContextScopeType', + [ + { no: 0, name: 'CONTEXT_SCOPE_TYPE_UNSPECIFIED' }, + { no: 1, name: 'CONTEXT_SCOPE_TYPE_FILE' }, + { no: 2, name: 'CONTEXT_SCOPE_TYPE_DIRECTORY' }, + { no: 3, name: 'CONTEXT_SCOPE_TYPE_REPOSITORY' }, + { no: 4, name: 'CONTEXT_SCOPE_TYPE_CODE_CONTEXT' }, + { no: 5, name: 'CONTEXT_SCOPE_TYPE_CCI_WITH_SUBRANGE' }, + { no: 6, name: 'CONTEXT_SCOPE_TYPE_REPOSITORY_PATH' }, + { no: 7, name: 'CONTEXT_SCOPE_TYPE_SLACK' }, + { no: 8, name: 'CONTEXT_SCOPE_TYPE_GITHUB' }, + { no: 9, name: 'CONTEXT_SCOPE_TYPE_FILE_LINE_RANGE' }, + { no: 10, name: 'CONTEXT_SCOPE_TYPE_TEXT_BLOCK' }, + { no: 11, name: 'CONTEXT_SCOPE_TYPE_JIRA' }, + { no: 12, name: 'CONTEXT_SCOPE_TYPE_GOOGLE_DRIVE' }, + { no: 13, name: 'CONTEXT_SCOPE_TYPE_CONSOLE_LOG' }, + { no: 14, name: 'CONTEXT_SCOPE_TYPE_DOM_ELEMENT' }, + { no: 15, name: 'CONTEXT_SCOPE_TYPE_RECIPE' }, + { no: 16, name: 'CONTEXT_SCOPE_TYPE_KNOWLEDGE' }, + { no: 17, name: 'CONTEXT_SCOPE_TYPE_RULE' }, + { no: 18, name: 'CONTEXT_SCOPE_TYPE_MCP_RESOURCE' }, + { no: 19, name: 'CONTEXT_SCOPE_TYPE_BROWSER_PAGE' }, + { no: 20, name: 'CONTEXT_SCOPE_TYPE_BROWSER_CODE_BLOCK' }, + { no: 21, name: 'CONTEXT_SCOPE_TYPE_BROWSER_TEXT' }, + { no: 22, name: 'CONTEXT_SCOPE_TYPE_CONVERSATION' }, + { no: 23, name: 'CONTEXT_SCOPE_TYPE_USER_ACTIVITY' }, + { no: 24, name: 'CONTEXT_SCOPE_TYPE_TERMINAL' }, + ], +); +var StatusLevel; +(function (StatusLevel2) { + StatusLevel2[(StatusLevel2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + StatusLevel2[(StatusLevel2['ERROR'] = 1)] = 'ERROR'; + StatusLevel2[(StatusLevel2['WARNING'] = 2)] = 'WARNING'; + StatusLevel2[(StatusLevel2['INFO'] = 3)] = 'INFO'; + StatusLevel2[(StatusLevel2['DEBUG'] = 4)] = 'DEBUG'; +})(StatusLevel || (StatusLevel = {})); +proto3.util.setEnumType(StatusLevel, 'exa.codeium_common_pb.StatusLevel', [ { no: 0, name: 'STATUS_LEVEL_UNSPECIFIED' }, { no: 1, name: 'STATUS_LEVEL_ERROR' }, { no: 2, name: 'STATUS_LEVEL_WARNING' }, { no: 3, name: 'STATUS_LEVEL_INFO' }, { no: 4, name: 'STATUS_LEVEL_DEBUG' }, ]); -var Om; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.OVERALL = 1)] = 'OVERALL'), - (e[(e.ACTION_PREPARE = 2)] = 'ACTION_PREPARE'), - (e[(e.ACTION_APPLY = 3)] = 'ACTION_APPLY')); -})(Om || (Om = {})); -a.util.setEnumType(Om, 'exa.codeium_common_pb.CortexErrorCategory', [ - { no: 0, name: 'CORTEX_ERROR_CATEGORY_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_ERROR_CATEGORY_OVERALL' }, - { no: 2, name: 'CORTEX_ERROR_CATEGORY_ACTION_PREPARE' }, - { no: 3, name: 'CORTEX_ERROR_CATEGORY_ACTION_APPLY' }, -]); -var St; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.OVERALL = 1)] = 'OVERALL'), - (e[(e.LAST_AUTOCOMPLETE_USAGE_TIME = 2)] = 'LAST_AUTOCOMPLETE_USAGE_TIME'), - (e[(e.LAST_CHAT_USAGE_TIME = 3)] = 'LAST_CHAT_USAGE_TIME'), - (e[(e.LAST_COMMAND_USAGE_TIME = 4)] = 'LAST_COMMAND_USAGE_TIME')); -})(St || (St = {})); -a.util.setEnumType(St, 'exa.codeium_common_pb.LastUpdateType', [ - { no: 0, name: 'LAST_UPDATE_TYPE_UNSPECIFIED' }, - { no: 1, name: 'LAST_UPDATE_TYPE_OVERALL' }, - { no: 2, name: 'LAST_UPDATE_TYPE_LAST_AUTOCOMPLETE_USAGE_TIME' }, - { no: 3, name: 'LAST_UPDATE_TYPE_LAST_CHAT_USAGE_TIME' }, - { no: 4, name: 'LAST_UPDATE_TYPE_LAST_COMMAND_USAGE_TIME' }, -]); -var Am; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.AUTOCOMPLETE = 1)] = 'AUTOCOMPLETE'), - (e[(e.COMMAND = 2)] = 'COMMAND'), - (e[(e.CHAT = 3)] = 'CHAT')); -})(Am || (Am = {})); -a.util.setEnumType(Am, 'exa.codeium_common_pb.OnboardingActionType', [ - { no: 0, name: 'ONBOARDING_ACTION_TYPE_UNSPECIFIED' }, - { no: 1, name: 'ONBOARDING_ACTION_TYPE_AUTOCOMPLETE' }, - { no: 2, name: 'ONBOARDING_ACTION_TYPE_COMMAND' }, - { no: 3, name: 'ONBOARDING_ACTION_TYPE_CHAT' }, -]); -var Cm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.AUTOCOMPLETE_ACCEPT = 1)] = 'AUTOCOMPLETE_ACCEPT'), - (e[(e.CURSOR_LINE_NAVIGATION = 2)] = 'CURSOR_LINE_NAVIGATION'), - (e[(e.TYPING = 3)] = 'TYPING'), - (e[(e.FORCED = 4)] = 'FORCED'), - (e[(e.TAB_JUMP_ACCEPT = 5)] = 'TAB_JUMP_ACCEPT'), - (e[(e.SUPERCOMPLETE_ACCEPT = 6)] = 'SUPERCOMPLETE_ACCEPT'), - (e[(e.TAB_JUMP_PREDICTIVE = 7)] = 'TAB_JUMP_PREDICTIVE'), - (e[(e.AUTOCOMPLETE_PREDICTIVE = 8)] = 'AUTOCOMPLETE_PREDICTIVE'), - (e[(e.SUPERCOMPLETE_PREDICTIVE = 9)] = 'SUPERCOMPLETE_PREDICTIVE'), - (e[(e.TAB_JUMP_EDIT = 10)] = 'TAB_JUMP_EDIT')); -})(Cm || (Cm = {})); -a.util.setEnumType(Cm, 'exa.codeium_common_pb.SupercompleteTriggerCondition', [ - { no: 0, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_UNSPECIFIED' }, - { no: 1, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_AUTOCOMPLETE_ACCEPT' }, - { no: 2, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_CURSOR_LINE_NAVIGATION' }, - { no: 3, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_TYPING' }, - { no: 4, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_FORCED' }, - { no: 5, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_TAB_JUMP_ACCEPT' }, - { no: 6, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_SUPERCOMPLETE_ACCEPT' }, - { no: 7, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_TAB_JUMP_PREDICTIVE' }, - { no: 8, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_AUTOCOMPLETE_PREDICTIVE' }, - { no: 9, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_SUPERCOMPLETE_PREDICTIVE' }, - { no: 10, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_TAB_JUMP_EDIT' }, -]); -var Rm; -(function (e) { - ((e[(e.EVENT_UNSPECIFIED = 0)] = 'EVENT_UNSPECIFIED'), - (e[(e.ANTIGRAVITY_EDITOR_READY = 251)] = 'ANTIGRAVITY_EDITOR_READY'), - (e[(e.ANTIGRAVITY_EXTENSION_START = 253)] = 'ANTIGRAVITY_EXTENSION_START'), - (e[(e.ANTIGRAVITY_EXTENSION_ACTIVATED = 32)] = - 'ANTIGRAVITY_EXTENSION_ACTIVATED'), - (e[(e.LS_DOWNLOAD_START = 1)] = 'LS_DOWNLOAD_START'), - (e[(e.LS_DOWNLOAD_COMPLETE = 2)] = 'LS_DOWNLOAD_COMPLETE'), - (e[(e.LS_DOWNLOAD_FAILURE = 5)] = 'LS_DOWNLOAD_FAILURE'), - (e[(e.LS_BINARY_STARTUP = 250)] = 'LS_BINARY_STARTUP'), - (e[(e.LS_STARTUP = 3)] = 'LS_STARTUP'), - (e[(e.LS_FAILURE = 4)] = 'LS_FAILURE'), - (e[(e.AUTOCOMPLETE_ACCEPTED = 6)] = 'AUTOCOMPLETE_ACCEPTED'), - (e[(e.AUTOCOMPLETE_ONE_WORD_ACCEPTED = 7)] = - 'AUTOCOMPLETE_ONE_WORD_ACCEPTED'), - (e[(e.CHAT_MESSAGE_SENT = 8)] = 'CHAT_MESSAGE_SENT'), - (e[(e.CHAT_MENTION_INSERT = 13)] = 'CHAT_MENTION_INSERT'), - (e[(e.CHAT_MENTION_MENU_OPEN = 19)] = 'CHAT_MENTION_MENU_OPEN'), - (e[(e.CHAT_OPEN_SETTINGS = 14)] = 'CHAT_OPEN_SETTINGS'), - (e[(e.CHAT_OPEN_CONTEXT_SETTINGS = 15)] = 'CHAT_OPEN_CONTEXT_SETTINGS'), - (e[(e.CHAT_WITH_CODEBASE = 16)] = 'CHAT_WITH_CODEBASE'), - (e[(e.CHAT_NEW_CONVERSATION = 17)] = 'CHAT_NEW_CONVERSATION'), - (e[(e.CHAT_CHANGE_MODEL = 18)] = 'CHAT_CHANGE_MODEL'), - (e[(e.CHAT_TOGGLE_FOCUS_INSERT_TEXT = 34)] = - 'CHAT_TOGGLE_FOCUS_INSERT_TEXT'), - (e[(e.FUNCTION_REFACTOR = 28)] = 'FUNCTION_REFACTOR'), - (e[(e.EXPLAIN_CODE_BLOCK = 29)] = 'EXPLAIN_CODE_BLOCK'), - (e[(e.FUNCTION_ADD_DOCSTRING = 30)] = 'FUNCTION_ADD_DOCSTRING'), - (e[(e.EXPLAIN_PROBLEM = 31)] = 'EXPLAIN_PROBLEM'), - (e[(e.COMMAND_BOX_OPENED = 9)] = 'COMMAND_BOX_OPENED'), - (e[(e.COMMAND_SUBMITTED = 10)] = 'COMMAND_SUBMITTED'), - (e[(e.COMMAND_ACCEPTED = 11)] = 'COMMAND_ACCEPTED'), - (e[(e.COMMAND_REJECTED = 12)] = 'COMMAND_REJECTED'), - (e[(e.WS_ONBOARDING_LANDING_PAGE_OPENED = 20)] = - 'WS_ONBOARDING_LANDING_PAGE_OPENED'), - (e[(e.WS_ONBOARDING_SETUP_PAGE_OPENED = 21)] = - 'WS_ONBOARDING_SETUP_PAGE_OPENED'), - (e[(e.WS_ONBOARDING_KEYBINDINGS_PAGE_OPENED = 22)] = - 'WS_ONBOARDING_KEYBINDINGS_PAGE_OPENED'), - (e[(e.WS_ONBOARDING_MIGRATION_SCOPE_PAGE_OPENED = 23)] = - 'WS_ONBOARDING_MIGRATION_SCOPE_PAGE_OPENED'), - (e[(e.WS_ONBOARDING_IMPORT_PAGE_OPENED = 24)] = - 'WS_ONBOARDING_IMPORT_PAGE_OPENED'), - (e[(e.WS_ONBOARDING_AUTH_PAGE_OPENED = 25)] = - 'WS_ONBOARDING_AUTH_PAGE_OPENED'), - (e[(e.WS_ONBOARDING_AUTH_MANUAL_PAGE_OPENED = 26)] = - 'WS_ONBOARDING_AUTH_MANUAL_PAGE_OPENED'), - (e[(e.WS_ONBOARDING_CHOOSE_THEME_PAGE_OPENED = 35)] = - 'WS_ONBOARDING_CHOOSE_THEME_PAGE_OPENED'), - (e[(e.AGY_ONBOARDING_TERMS_OF_USE_PAGE_OPENED = 231)] = - 'AGY_ONBOARDING_TERMS_OF_USE_PAGE_OPENED'), - (e[(e.AGY_ONBOARDING_AGENT_CONFIG_PAGE_OPENED = 232)] = - 'AGY_ONBOARDING_AGENT_CONFIG_PAGE_OPENED'), - (e[(e.AGY_ONBOARDING_USAGE_MODE_PAGE_OPENED = 233)] = - 'AGY_ONBOARDING_USAGE_MODE_PAGE_OPENED'), - (e[(e.AGY_ONBOARDING_INSTALL_EXTENSIONS = 234)] = - 'AGY_ONBOARDING_INSTALL_EXTENSIONS'), - (e[(e.WS_ONBOARDING_COMPLETED = 27)] = 'WS_ONBOARDING_COMPLETED'), - (e[(e.WS_SKIPPED_ONBOARDING = 69)] = 'WS_SKIPPED_ONBOARDING'), - (e[(e.WS_SETTINGS_PAGE_OPEN = 72)] = 'WS_SETTINGS_PAGE_OPEN'), - (e[(e.WS_SETTINGS_PAGE_OPEN_WITH_SETTING_FOCUS = 73)] = - 'WS_SETTINGS_PAGE_OPEN_WITH_SETTING_FOCUS'), - (e[(e.EMPTY_WORKSPACE_PAGE_OPENED = 209)] = 'EMPTY_WORKSPACE_PAGE_OPENED'), - (e[(e.EMPTY_WORKSPACE_PAGE_RECENT_FOLDERS_CLICKED = 210)] = - 'EMPTY_WORKSPACE_PAGE_RECENT_FOLDERS_CLICKED'), - (e[(e.EMPTY_WORKSPACE_PAGE_OPEN_FOLDER_CLICKED = 211)] = - 'EMPTY_WORKSPACE_PAGE_OPEN_FOLDER_CLICKED'), - (e[(e.EMPTY_WORKSPACE_PAGE_GENERATE_PROJECT_CLICKED = 212)] = - 'EMPTY_WORKSPACE_PAGE_GENERATE_PROJECT_CLICKED'), - (e[(e.PROVIDE_FEEDBACK = 33)] = 'PROVIDE_FEEDBACK'), - (e[(e.CASCADE_MESSAGE_SENT = 36)] = 'CASCADE_MESSAGE_SENT'), - (e[(e.WS_OPEN_CASCADE_MEMORIES_PANEL = 38)] = - 'WS_OPEN_CASCADE_MEMORIES_PANEL'), - (e[(e.PROVIDE_MESSAGE_FEEDBACK = 41)] = 'PROVIDE_MESSAGE_FEEDBACK'), - (e[(e.CASCADE_MEMORY_DELETED = 42)] = 'CASCADE_MEMORY_DELETED'), - (e[(e.CASCADE_STEP_COMPLETED = 43)] = 'CASCADE_STEP_COMPLETED'), - (e[(e.ACKNOWLEDGE_CASCADE_CODE_EDIT = 44)] = - 'ACKNOWLEDGE_CASCADE_CODE_EDIT'), - (e[(e.CASCADE_WEB_TOOLS_OPEN_READ_URL_MARKDOWN = 45)] = - 'CASCADE_WEB_TOOLS_OPEN_READ_URL_MARKDOWN'), - (e[(e.CASCADE_WEB_TOOLS_OPEN_CHUNK_MARKDOWN = 46)] = - 'CASCADE_WEB_TOOLS_OPEN_CHUNK_MARKDOWN'), - (e[(e.CASCADE_MCP_SERVER_INIT = 64)] = 'CASCADE_MCP_SERVER_INIT'), - (e[(e.CASCADE_KNOWLEDGE_BASE_ITEM_OPENED = 113)] = - 'CASCADE_KNOWLEDGE_BASE_ITEM_OPENED'), - (e[(e.CASCADE_VIEW_LOADED = 119)] = 'CASCADE_VIEW_LOADED'), - (e[(e.CASCADE_CONTEXT_SCOPE_ITEM_ATTACHED = 173)] = - 'CASCADE_CONTEXT_SCOPE_ITEM_ATTACHED'), - (e[(e.CASCADE_CLICK_EVENT = 65)] = 'CASCADE_CLICK_EVENT'), - (e[(e.CASCADE_IMPRESSION_EVENT = 67)] = 'CASCADE_IMPRESSION_EVENT'), - (e[(e.OPEN_CHANGELOG = 37)] = 'OPEN_CHANGELOG'), - (e[(e.CURSOR_DETECTED = 39)] = 'CURSOR_DETECTED'), - (e[(e.VSCODE_DETECTED = 40)] = 'VSCODE_DETECTED'), - (e[(e.JETBRAINS_DETECTED = 153)] = 'JETBRAINS_DETECTED'), - (e[(e.CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_CLICK = 47)] = - 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_CLICK'), - (e[(e.CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_NUDGE_IMPRESSION = 48)] = - 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_NUDGE_IMPRESSION'), - (e[(e.WS_PROBLEMS_TAB_SEND_ALL_TO_CASCADE = 49)] = - 'WS_PROBLEMS_TAB_SEND_ALL_TO_CASCADE'), - (e[(e.WS_PROBLEMS_TAB_SEND_ALL_IN_FILE_TO_CASCADE = 50)] = - 'WS_PROBLEMS_TAB_SEND_ALL_IN_FILE_TO_CASCADE'), - (e[(e.WS_CASCADE_BAR_FILE_NAV = 51)] = 'WS_CASCADE_BAR_FILE_NAV'), - (e[(e.WS_CASCADE_BAR_HUNK_NAV = 52)] = 'WS_CASCADE_BAR_HUNK_NAV'), - (e[(e.WS_CASCADE_BAR_ACCEPT_FILE = 53)] = 'WS_CASCADE_BAR_ACCEPT_FILE'), - (e[(e.WS_CASCADE_BAR_REJECT_FILE = 54)] = 'WS_CASCADE_BAR_REJECT_FILE'), - (e[(e.WS_CUSTOM_APP_ICON_MODAL_OPEN = 55)] = - 'WS_CUSTOM_APP_ICON_MODAL_OPEN'), - (e[(e.WS_CUSTOM_APP_ICON_SELECT_CLASSIC = 56)] = - 'WS_CUSTOM_APP_ICON_SELECT_CLASSIC'), - (e[(e.WS_CUSTOM_APP_ICON_SELECT_CLASSIC_LIGHT = 57)] = - 'WS_CUSTOM_APP_ICON_SELECT_CLASSIC_LIGHT'), - (e[(e.WS_CUSTOM_APP_ICON_SELECT_RETRO = 58)] = - 'WS_CUSTOM_APP_ICON_SELECT_RETRO'), - (e[(e.WS_CUSTOM_APP_ICON_SELECT_BLUEPRINT = 59)] = - 'WS_CUSTOM_APP_ICON_SELECT_BLUEPRINT'), - (e[(e.WS_CUSTOM_APP_ICON_SELECT_HAND_DRAWN = 60)] = - 'WS_CUSTOM_APP_ICON_SELECT_HAND_DRAWN'), - (e[(e.WS_CUSTOM_APP_ICON_SELECT_SUNSET = 61)] = - 'WS_CUSTOM_APP_ICON_SELECT_SUNSET'), - (e[(e.WS_CUSTOM_APP_ICON_SELECT_VALENTINE = 66)] = - 'WS_CUSTOM_APP_ICON_SELECT_VALENTINE'), - (e[(e.WS_CUSTOM_APP_ICON_SELECT_PIXEL_SURF = 82)] = - 'WS_CUSTOM_APP_ICON_SELECT_PIXEL_SURF'), - (e[(e.ENTERED_MCP_TOOLBAR_TAB = 63)] = 'ENTERED_MCP_TOOLBAR_TAB'), - (e[(e.CLICKED_TO_CONFIGURE_MCP = 62)] = 'CLICKED_TO_CONFIGURE_MCP'), - (e[(e.WS_SETTINGS_UPDATED = 68)] = 'WS_SETTINGS_UPDATED'), - (e[(e.BROWSER_PREVIEW_DOM_ELEMENT = 70)] = 'BROWSER_PREVIEW_DOM_ELEMENT'), - (e[(e.BROWSER_PREVIEW_CONSOLE_OUTPUT = 71)] = - 'BROWSER_PREVIEW_CONSOLE_OUTPUT'), - (e[(e.WS_SETTINGS_CHANGED_BY_USER = 74)] = 'WS_SETTINGS_CHANGED_BY_USER'), - (e[(e.WS_GENERATE_COMMIT_MESSAGE_CLICKED = 75)] = - 'WS_GENERATE_COMMIT_MESSAGE_CLICKED'), - (e[(e.WS_GENERATE_COMMIT_MESSAGE_ERRORED = 76)] = - 'WS_GENERATE_COMMIT_MESSAGE_ERRORED'), - (e[(e.WS_CLICKED_COMMIT_FROM_SCM_PANEL = 77)] = - 'WS_CLICKED_COMMIT_FROM_SCM_PANEL'), - (e[(e.WS_CANCELED_GENERATE_COMMIT_MESSAGE = 79)] = - 'WS_CANCELED_GENERATE_COMMIT_MESSAGE'), - (e[(e.USING_DEV_EXTENSION = 78)] = 'USING_DEV_EXTENSION'), - (e[(e.WS_APP_DEPLOYMENT_CREATE_PROJECT = 80)] = - 'WS_APP_DEPLOYMENT_CREATE_PROJECT'), - (e[(e.WS_APP_DEPLOYMENT_DEPLOY_PROJECT = 81)] = - 'WS_APP_DEPLOYMENT_DEPLOY_PROJECT'), - (e[(e.CASCADE_OPEN_ACTIVE_CONVERSATION_DROPDOWN = 114)] = - 'CASCADE_OPEN_ACTIVE_CONVERSATION_DROPDOWN'), - (e[(e.CASCADE_SELECT_ACTIVE_CONVERSATION_ON_DROPDOWN = 115)] = - 'CASCADE_SELECT_ACTIVE_CONVERSATION_ON_DROPDOWN'), - (e[(e.CASCADE_NAVIGATE_ACTIVE_CONVERSATION_ON_DROPDOWN = 122)] = - 'CASCADE_NAVIGATE_ACTIVE_CONVERSATION_ON_DROPDOWN'), - (e[(e.CASCADE_SNOOZE_CONVERSATION_ON_DROPDOWN = 123)] = - 'CASCADE_SNOOZE_CONVERSATION_ON_DROPDOWN'), - (e[(e.CASCADE_TOGGLE_NOTIFICATION_ON_DROPDOWN = 124)] = - 'CASCADE_TOGGLE_NOTIFICATION_ON_DROPDOWN'), - (e[(e.CASCADE_SELECT_NOTIFICATION_ON_DROPDOWN = 125)] = - 'CASCADE_SELECT_NOTIFICATION_ON_DROPDOWN'), - (e[(e.CASCADE_NAVIGATE_NOTIFICATION_ON_DROPDOWN = 126)] = - 'CASCADE_NAVIGATE_NOTIFICATION_ON_DROPDOWN'), - (e[(e.CASCADE_DISMISS_NOTIFICATION_ON_DROPDOWN = 127)] = - 'CASCADE_DISMISS_NOTIFICATION_ON_DROPDOWN'), - (e[(e.CASCADE_TRAJECTORY_SHARE_COPY_LINK = 137)] = - 'CASCADE_TRAJECTORY_SHARE_COPY_LINK'), - (e[(e.CASCADE_TRAJECTORY_SHARE_CREATE_LINK = 138)] = - 'CASCADE_TRAJECTORY_SHARE_CREATE_LINK'), - (e[(e.CASCADE_CUSTOMIZATIONS_TAB_CHANGE = 139)] = - 'CASCADE_CUSTOMIZATIONS_TAB_CHANGE'), - (e[(e.CASCADE_WORKFLOW_OPEN = 140)] = 'CASCADE_WORKFLOW_OPEN'), - (e[(e.CASCADE_NEW_WORKFLOW_CLICKED = 141)] = - 'CASCADE_NEW_WORKFLOW_CLICKED'), - (e[(e.CASCADE_NEW_GLOBAL_WORKFLOW_CLICKED = 184)] = - 'CASCADE_NEW_GLOBAL_WORKFLOW_CLICKED'), - (e[(e.CASCADE_WORKFLOW_REFRESH_CLICKED = 142)] = - 'CASCADE_WORKFLOW_REFRESH_CLICKED'), - (e[(e.CASCADE_RULE_OPEN = 143)] = 'CASCADE_RULE_OPEN'), - (e[(e.CASCADE_NEW_RULE_CLICKED = 144)] = 'CASCADE_NEW_RULE_CLICKED'), - (e[(e.CASCADE_NEW_GLOBAL_RULE_CLICKED = 145)] = - 'CASCADE_NEW_GLOBAL_RULE_CLICKED'), - (e[(e.CASCADE_RULE_REFRESH_CLICKED = 146)] = - 'CASCADE_RULE_REFRESH_CLICKED'), - (e[(e.CASCADE_IMPORT_RULES_FROM_CURSOR_CLICKED = 147)] = - 'CASCADE_IMPORT_RULES_FROM_CURSOR_CLICKED'), - (e[(e.WS_IMPORT_CURSOR_RULES_COMMAND_PALETTE = 152)] = - 'WS_IMPORT_CURSOR_RULES_COMMAND_PALETTE'), - (e[(e.CASCADE_CHANGES_ACCEPT_ALL = 83)] = 'CASCADE_CHANGES_ACCEPT_ALL'), - (e[(e.CASCADE_CHANGES_REJECT_ALL = 84)] = 'CASCADE_CHANGES_REJECT_ALL'), - (e[(e.CASCADE_MEMORIES_EDIT = 85)] = 'CASCADE_MEMORIES_EDIT'), - (e[(e.CASCADE_MEMORIES_VIEW = 86)] = 'CASCADE_MEMORIES_VIEW'), - (e[(e.KEYBOARD_SHORTCUT = 136)] = 'KEYBOARD_SHORTCUT'), - (e[(e.CASCADE_INSERT_AT_MENTION = 87)] = 'CASCADE_INSERT_AT_MENTION'), - (e[(e.CASCADE_ERROR_STEP = 120)] = 'CASCADE_ERROR_STEP'), - (e[(e.CASCADE_SUGGESTED_RESPONSES_SUGGESTION_CLICKED = 121)] = - 'CASCADE_SUGGESTED_RESPONSES_SUGGESTION_CLICKED'), - (e[(e.CASCADE_PLUGIN_PANEL_OPENED = 128)] = 'CASCADE_PLUGIN_PANEL_OPENED'), - (e[(e.CASCADE_PLUGIN_PAGE_OPENED = 129)] = 'CASCADE_PLUGIN_PAGE_OPENED'), - (e[(e.CASCADE_PLUGIN_INSTALLED = 130)] = 'CASCADE_PLUGIN_INSTALLED'), - (e[(e.CASCADE_PLUGIN_DISABLED = 131)] = 'CASCADE_PLUGIN_DISABLED'), - (e[(e.CASCADE_PLUGIN_ENABLED = 132)] = 'CASCADE_PLUGIN_ENABLED'), - (e[(e.CASCADE_PLUGIN_INSTALLATION_ERROR = 133)] = - 'CASCADE_PLUGIN_INSTALLATION_ERROR'), - (e[(e.CASCADE_PLUGIN_TOOL_ENABLED = 134)] = 'CASCADE_PLUGIN_TOOL_ENABLED'), - (e[(e.CASCADE_PLUGIN_TOOL_DISABLED = 135)] = - 'CASCADE_PLUGIN_TOOL_DISABLED'), - (e[(e.CASCADE_CUSTOM_MODEL_EVENT = 229)] = 'CASCADE_CUSTOM_MODEL_EVENT'), - (e[(e.WEBSITE_NOT_FOUND_PAGE = 88)] = 'WEBSITE_NOT_FOUND_PAGE'), - (e[(e.WEBSITE_AUTH_REDIRECT_LONG_WAIT = 89)] = - 'WEBSITE_AUTH_REDIRECT_LONG_WAIT'), - (e[(e.WEBSITE_AUTH_REDIRECT_ERROR = 90)] = 'WEBSITE_AUTH_REDIRECT_ERROR'), - (e[(e.WEBSITE_AUTH_REDIRECT_SUCCESS = 112)] = - 'WEBSITE_AUTH_REDIRECT_SUCCESS'), - (e[(e.WEBSITE_PAGE_VISIT = 175)] = 'WEBSITE_PAGE_VISIT'), - (e[(e.WEBSITE_SIGNUP_INFO = 176)] = 'WEBSITE_SIGNUP_INFO'), - (e[(e.WEBSITE_START_PLAN_CHECKOUT = 177)] = 'WEBSITE_START_PLAN_CHECKOUT'), - (e[(e.WEBSITE_START_UPDATE_PAYMENT = 202)] = - 'WEBSITE_START_UPDATE_PAYMENT'), - (e[(e.WEBSITE_START_VIEW_INVOICES = 203)] = 'WEBSITE_START_VIEW_INVOICES'), - (e[(e.WEBSITE_UNIVERSITY_LECTURE_VIEW = 214)] = - 'WEBSITE_UNIVERSITY_LECTURE_VIEW'), - (e[(e.WEBSITE_DISALLOW_ENTERPRISE_LOGIN = 224)] = - 'WEBSITE_DISALLOW_ENTERPRISE_LOGIN'), - (e[(e.WEBSITE_SSO_LOGIN_REDIRECT = 225)] = 'WEBSITE_SSO_LOGIN_REDIRECT'), - (e[(e.WEBSITE_ATTEMPT_TO_LOGIN = 226)] = 'WEBSITE_ATTEMPT_TO_LOGIN'), - (e[(e.WEBSITE_SUCCESSFUL_LOGIN = 227)] = 'WEBSITE_SUCCESSFUL_LOGIN'), - (e[(e.WEBSITE_FAILED_LOGIN = 228)] = 'WEBSITE_FAILED_LOGIN'), - (e[(e.JB_OPEN_PLAN_INFO = 91)] = 'JB_OPEN_PLAN_INFO'), - (e[(e.JB_SNOOZE_PLUGIN = 92)] = 'JB_SNOOZE_PLUGIN'), - (e[(e.JB_TOGGLE_PLUGIN_STATUS = 93)] = 'JB_TOGGLE_PLUGIN_STATUS'), - (e[(e.JB_SWITCH_CHANNEL = 94)] = 'JB_SWITCH_CHANNEL'), - (e[(e.JB_OPEN_SETTINGS = 95)] = 'JB_OPEN_SETTINGS'), - (e[(e.JB_PLUGIN_LOG_IN = 96)] = 'JB_PLUGIN_LOG_IN'), - (e[(e.JB_PLUGIN_LOG_OUT = 97)] = 'JB_PLUGIN_LOG_OUT'), - (e[(e.JB_OPEN_QUICK_REFERENCE = 98)] = 'JB_OPEN_QUICK_REFERENCE'), - (e[(e.JB_EDIT_KEYBOARD_SHORTCUTS = 99)] = 'JB_EDIT_KEYBOARD_SHORTCUTS'), - (e[(e.JB_CASCADE_BAR_CASCADE_ICON = 100)] = 'JB_CASCADE_BAR_CASCADE_ICON'), - (e[(e.JB_CASCADE_BAR_FILE_NAV = 101)] = 'JB_CASCADE_BAR_FILE_NAV'), - (e[(e.JB_CASCADE_BAR_HUNK_NAV = 102)] = 'JB_CASCADE_BAR_HUNK_NAV'), - (e[(e.JB_CASCADE_BAR_ACCEPT_FILE = 103)] = 'JB_CASCADE_BAR_ACCEPT_FILE'), - (e[(e.JB_CASCADE_BAR_REJECT_FILE = 104)] = 'JB_CASCADE_BAR_REJECT_FILE'), - (e[(e.JB_INLAY_HUNK_ACCEPT = 105)] = 'JB_INLAY_HUNK_ACCEPT'), - (e[(e.JB_INLAY_HUNK_REJECT = 106)] = 'JB_INLAY_HUNK_REJECT'), - (e[(e.JB_DIFF_RE_RENDER = 107)] = 'JB_DIFF_RE_RENDER'), - (e[(e.JB_ONBOARDING_OPENED = 108)] = 'JB_ONBOARDING_OPENED'), - (e[(e.JB_ONBOARDING_COMPLETED = 109)] = 'JB_ONBOARDING_COMPLETED'), - (e[(e.JB_ONBOARDING_SKIPPED = 110)] = 'JB_ONBOARDING_SKIPPED'), - (e[(e.JB_ONBOARDING_LEARN_MORE = 111)] = 'JB_ONBOARDING_LEARN_MORE'), - (e[(e.JB_DIFF_RESOLUTION_ERRORED = 116)] = 'JB_DIFF_RESOLUTION_ERRORED'), - (e[(e.JB_ACKNOWLEDGE_CODE_EDIT_ERRORED = 117)] = - 'JB_ACKNOWLEDGE_CODE_EDIT_ERRORED'), - (e[(e.JB_OPEN_SETTINGS_NOTIFICATION = 118)] = - 'JB_OPEN_SETTINGS_NOTIFICATION'), - (e[(e.JB_MCP_ADD_SERVER = 148)] = 'JB_MCP_ADD_SERVER'), - (e[(e.JB_MCP_SAVE_CONFIG = 149)] = 'JB_MCP_SAVE_CONFIG'), - (e[(e.JB_MCP_EXPAND_TOOLS = 150)] = 'JB_MCP_EXPAND_TOOLS'), - (e[(e.JB_DISABLE_AUTOGEN_MEMORY = 151)] = 'JB_DISABLE_AUTOGEN_MEMORY'), - (e[(e.JB_TOGGLE_AUTOCOMPLETE = 154)] = 'JB_TOGGLE_AUTOCOMPLETE'), - (e[(e.JB_LOGIN_MANUAL_AUTH_TOKEN = 174)] = 'JB_LOGIN_MANUAL_AUTH_TOKEN'), - (e[(e.JB_AUTO_UPDATED = 179)] = 'JB_AUTO_UPDATED'), - (e[(e.JB_DRAG_DROP_FILE = 182)] = 'JB_DRAG_DROP_FILE'), - (e[(e.JB_AUTO_OPEN_CHAT_WINDOW = 183)] = 'JB_AUTO_OPEN_CHAT_WINDOW'), - (e[(e.WS_TERMINAL_INTEGRATION_FORCE_EXIT = 155)] = - 'WS_TERMINAL_INTEGRATION_FORCE_EXIT'), - (e[(e.KNOWLEDGE_BASE_ITEM_CREATED = 156)] = 'KNOWLEDGE_BASE_ITEM_CREATED'), - (e[(e.KNOWLEDGE_BASE_ITEM_EDITED = 157)] = 'KNOWLEDGE_BASE_ITEM_EDITED'), - (e[(e.KNOWLEDGE_BASE_ITEM_DELETED = 158)] = 'KNOWLEDGE_BASE_ITEM_DELETED'), - (e[(e.KNOWLEDGE_BASE_ITEM_READ = 159)] = 'KNOWLEDGE_BASE_ITEM_READ'), - (e[(e.KNOWLEDGE_BASE_CONNECTION_CREATE = 160)] = - 'KNOWLEDGE_BASE_CONNECTION_CREATE'), - (e[(e.KNOWLEDGE_BASE_CONNECTION_REMOVE = 161)] = - 'KNOWLEDGE_BASE_CONNECTION_REMOVE'), - (e[(e.TEAM_CONFIG_TOGGLE_AUTO_RUN_COMMANDS = 162)] = - 'TEAM_CONFIG_TOGGLE_AUTO_RUN_COMMANDS'), - (e[(e.TEAM_CONFIG_TOGGLE_MCP_SERVERS = 163)] = - 'TEAM_CONFIG_TOGGLE_MCP_SERVERS'), - (e[(e.TEAM_CONFIG_TOGGLE_APP_DEPLOYMENTS = 164)] = - 'TEAM_CONFIG_TOGGLE_APP_DEPLOYMENTS'), - (e[(e.TEAM_CONFIG_TOGGLE_SANDBOX_APP_DEPLOYMENTS = 165)] = - 'TEAM_CONFIG_TOGGLE_SANDBOX_APP_DEPLOYMENTS'), - (e[(e.TEAM_CONFIG_TOGGLE_TEAMS_APP_DEPLOYMENTS = 166)] = - 'TEAM_CONFIG_TOGGLE_TEAMS_APP_DEPLOYMENTS'), - (e[(e.TEAM_CONFIG_TOGGLE_GITHUB_REVIEWS = 167)] = - 'TEAM_CONFIG_TOGGLE_GITHUB_REVIEWS'), - (e[(e.TEAM_CONFIG_TOGGLE_GITHUB_DESCRIPTION_EDITS = 168)] = - 'TEAM_CONFIG_TOGGLE_GITHUB_DESCRIPTION_EDITS'), - (e[(e.TEAM_CONFIG_TOGGLE_PR_REVIEW_GUIDELINES = 169)] = - 'TEAM_CONFIG_TOGGLE_PR_REVIEW_GUIDELINES'), - (e[(e.TEAM_CONFIG_TOGGLE_PR_DESCRIPTION_GUIDELINES = 170)] = - 'TEAM_CONFIG_TOGGLE_PR_DESCRIPTION_GUIDELINES'), - (e[(e.TEAM_CONFIG_TOGGLE_INDIVIDUAL_LEVEL_ANALYTICS = 171)] = - 'TEAM_CONFIG_TOGGLE_INDIVIDUAL_LEVEL_ANALYTICS'), - (e[(e.TEAM_CONFIG_TOGGLE_CONVERSATION_SHARING = 172)] = - 'TEAM_CONFIG_TOGGLE_CONVERSATION_SHARING'), - (e[(e.TEAM_CONFIG_UPDATE_MCP_SERVERS = 178)] = - 'TEAM_CONFIG_UPDATE_MCP_SERVERS'), - (e[(e.TEAM_CONFIG_TOGGLE_GITHUB_AUTO_REVIEWS = 207)] = - 'TEAM_CONFIG_TOGGLE_GITHUB_AUTO_REVIEWS'), - (e[(e.TEAM_CONFIG_UPDATE_TOP_UP_SETTINGS = 213)] = - 'TEAM_CONFIG_UPDATE_TOP_UP_SETTINGS'), - (e[(e.BROWSER_OPEN = 180)] = 'BROWSER_OPEN'), - (e[(e.CASCADE_WEB_TOOLS_OPEN_BROWSER_MARKDOWN = 181)] = - 'CASCADE_WEB_TOOLS_OPEN_BROWSER_MARKDOWN'), - (e[(e.BROWSER_PAGE_LOAD_SUCCESS = 206)] = 'BROWSER_PAGE_LOAD_SUCCESS'), - (e[(e.BROWSER_TOOLBAR_INSERT_PAGE_MENTION = 208)] = - 'BROWSER_TOOLBAR_INSERT_PAGE_MENTION'), - (e[(e.BROWSER_INSERT_TEXT_CONTENT = 215)] = 'BROWSER_INSERT_TEXT_CONTENT'), - (e[(e.BROWSER_INSERT_SCREENSHOT = 216)] = 'BROWSER_INSERT_SCREENSHOT'), - (e[(e.BROWSER_INSERT_CODE_BLOCK = 217)] = 'BROWSER_INSERT_CODE_BLOCK'), - (e[(e.BROWSER_INSERT_LOG_BLOCK = 218)] = 'BROWSER_INSERT_LOG_BLOCK'), - (e[(e.BROWSER_INSERT_CONSOLE_OUTPUT = 219)] = - 'BROWSER_INSERT_CONSOLE_OUTPUT'), - (e[(e.BROWSER_INSERT_DOM_ELEMENT = 220)] = 'BROWSER_INSERT_DOM_ELEMENT'), - (e[(e.BROWSER_LAUNCH_FAILURE_DIAGNOSTICS = 230)] = - 'BROWSER_LAUNCH_FAILURE_DIAGNOSTICS'), - (e[(e.SUPERCOMPLETE_REQUEST_STARTED = 195)] = - 'SUPERCOMPLETE_REQUEST_STARTED'), - (e[(e.SUPERCOMPLETE_CACHE_HIT = 196)] = 'SUPERCOMPLETE_CACHE_HIT'), - (e[(e.SUPERCOMPLETE_ERROR_GETTING_RESPONSE = 197)] = - 'SUPERCOMPLETE_ERROR_GETTING_RESPONSE'), - (e[(e.SUPERCOMPLETE_NO_RESPONSE = 185)] = 'SUPERCOMPLETE_NO_RESPONSE'), - (e[(e.SUPERCOMPLETE_REQUEST_SUCCEEDED = 186)] = - 'SUPERCOMPLETE_REQUEST_SUCCEEDED'), - (e[(e.SUPERCOMPLETE_FILTERED = 187)] = 'SUPERCOMPLETE_FILTERED'), - (e[(e.TAB_JUMP_REQUEST_STARTED = 188)] = 'TAB_JUMP_REQUEST_STARTED'), - (e[(e.TAB_JUMP_CACHE_HIT = 189)] = 'TAB_JUMP_CACHE_HIT'), - (e[(e.TAB_JUMP_ERROR_GETTING_RESPONSE = 190)] = - 'TAB_JUMP_ERROR_GETTING_RESPONSE'), - (e[(e.TAB_JUMP_NO_RESPONSE = 191)] = 'TAB_JUMP_NO_RESPONSE'), - (e[(e.TAB_JUMP_PROCESSING_COMPLETE = 192)] = - 'TAB_JUMP_PROCESSING_COMPLETE'), - (e[(e.TAB_JUMP_FILTERED = 193)] = 'TAB_JUMP_FILTERED'), - (e[(e.TAB_JUMP_ERROR_UI_RENDERED = 194)] = 'TAB_JUMP_ERROR_UI_RENDERED'), - (e[(e.AUTOCOMPLETE_CHAT_NO_RESPONSE = 221)] = - 'AUTOCOMPLETE_CHAT_NO_RESPONSE'), - (e[(e.AUTOCOMPLETE_CHAT_ERROR_GETTING_RESPONSE = 222)] = - 'AUTOCOMPLETE_CHAT_ERROR_GETTING_RESPONSE'), - (e[(e.AUTOCOMPLETE_CHAT_REQUEST_ACCEPTED = 223)] = - 'AUTOCOMPLETE_CHAT_REQUEST_ACCEPTED')); -})(Rm || (Rm = {})); -a.util.setEnumType(Rm, 'exa.codeium_common_pb.ProductEventType', [ - { no: 0, name: 'EVENT_UNSPECIFIED' }, - { no: 251, name: 'ANTIGRAVITY_EDITOR_READY' }, - { no: 253, name: 'ANTIGRAVITY_EXTENSION_START' }, - { no: 32, name: 'ANTIGRAVITY_EXTENSION_ACTIVATED' }, - { no: 1, name: 'LS_DOWNLOAD_START' }, - { no: 2, name: 'LS_DOWNLOAD_COMPLETE' }, - { no: 5, name: 'LS_DOWNLOAD_FAILURE' }, - { no: 250, name: 'LS_BINARY_STARTUP' }, - { no: 3, name: 'LS_STARTUP' }, - { no: 4, name: 'LS_FAILURE' }, - { no: 6, name: 'AUTOCOMPLETE_ACCEPTED' }, - { no: 7, name: 'AUTOCOMPLETE_ONE_WORD_ACCEPTED' }, - { no: 8, name: 'CHAT_MESSAGE_SENT' }, - { no: 13, name: 'CHAT_MENTION_INSERT' }, - { no: 19, name: 'CHAT_MENTION_MENU_OPEN' }, - { no: 14, name: 'CHAT_OPEN_SETTINGS' }, - { no: 15, name: 'CHAT_OPEN_CONTEXT_SETTINGS' }, - { no: 16, name: 'CHAT_WITH_CODEBASE' }, - { no: 17, name: 'CHAT_NEW_CONVERSATION' }, - { no: 18, name: 'CHAT_CHANGE_MODEL' }, - { no: 34, name: 'CHAT_TOGGLE_FOCUS_INSERT_TEXT' }, - { no: 28, name: 'FUNCTION_REFACTOR' }, - { no: 29, name: 'EXPLAIN_CODE_BLOCK' }, - { no: 30, name: 'FUNCTION_ADD_DOCSTRING' }, - { no: 31, name: 'EXPLAIN_PROBLEM' }, - { no: 9, name: 'COMMAND_BOX_OPENED' }, - { no: 10, name: 'COMMAND_SUBMITTED' }, - { no: 11, name: 'COMMAND_ACCEPTED' }, - { no: 12, name: 'COMMAND_REJECTED' }, - { no: 20, name: 'WS_ONBOARDING_LANDING_PAGE_OPENED' }, - { no: 21, name: 'WS_ONBOARDING_SETUP_PAGE_OPENED' }, - { no: 22, name: 'WS_ONBOARDING_KEYBINDINGS_PAGE_OPENED' }, - { no: 23, name: 'WS_ONBOARDING_MIGRATION_SCOPE_PAGE_OPENED' }, - { no: 24, name: 'WS_ONBOARDING_IMPORT_PAGE_OPENED' }, - { no: 25, name: 'WS_ONBOARDING_AUTH_PAGE_OPENED' }, - { no: 26, name: 'WS_ONBOARDING_AUTH_MANUAL_PAGE_OPENED' }, - { no: 35, name: 'WS_ONBOARDING_CHOOSE_THEME_PAGE_OPENED' }, - { no: 231, name: 'AGY_ONBOARDING_TERMS_OF_USE_PAGE_OPENED' }, - { no: 232, name: 'AGY_ONBOARDING_AGENT_CONFIG_PAGE_OPENED' }, - { no: 233, name: 'AGY_ONBOARDING_USAGE_MODE_PAGE_OPENED' }, - { no: 234, name: 'AGY_ONBOARDING_INSTALL_EXTENSIONS' }, - { no: 27, name: 'WS_ONBOARDING_COMPLETED' }, - { no: 69, name: 'WS_SKIPPED_ONBOARDING' }, - { no: 72, name: 'WS_SETTINGS_PAGE_OPEN' }, - { no: 73, name: 'WS_SETTINGS_PAGE_OPEN_WITH_SETTING_FOCUS' }, - { no: 209, name: 'EMPTY_WORKSPACE_PAGE_OPENED' }, - { no: 210, name: 'EMPTY_WORKSPACE_PAGE_RECENT_FOLDERS_CLICKED' }, - { no: 211, name: 'EMPTY_WORKSPACE_PAGE_OPEN_FOLDER_CLICKED' }, - { no: 212, name: 'EMPTY_WORKSPACE_PAGE_GENERATE_PROJECT_CLICKED' }, - { no: 33, name: 'PROVIDE_FEEDBACK' }, - { no: 36, name: 'CASCADE_MESSAGE_SENT' }, - { no: 38, name: 'WS_OPEN_CASCADE_MEMORIES_PANEL' }, - { no: 41, name: 'PROVIDE_MESSAGE_FEEDBACK' }, - { no: 42, name: 'CASCADE_MEMORY_DELETED' }, - { no: 43, name: 'CASCADE_STEP_COMPLETED' }, - { no: 44, name: 'ACKNOWLEDGE_CASCADE_CODE_EDIT' }, - { no: 45, name: 'CASCADE_WEB_TOOLS_OPEN_READ_URL_MARKDOWN' }, - { no: 46, name: 'CASCADE_WEB_TOOLS_OPEN_CHUNK_MARKDOWN' }, - { no: 64, name: 'CASCADE_MCP_SERVER_INIT' }, - { no: 113, name: 'CASCADE_KNOWLEDGE_BASE_ITEM_OPENED' }, - { no: 119, name: 'CASCADE_VIEW_LOADED' }, - { no: 173, name: 'CASCADE_CONTEXT_SCOPE_ITEM_ATTACHED' }, - { no: 65, name: 'CASCADE_CLICK_EVENT' }, - { no: 67, name: 'CASCADE_IMPRESSION_EVENT' }, - { no: 37, name: 'OPEN_CHANGELOG' }, - { no: 39, name: 'CURSOR_DETECTED' }, - { no: 40, name: 'VSCODE_DETECTED' }, - { no: 153, name: 'JETBRAINS_DETECTED' }, - { no: 47, name: 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_CLICK' }, - { - no: 48, - name: 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_NUDGE_IMPRESSION', - }, - { no: 49, name: 'WS_PROBLEMS_TAB_SEND_ALL_TO_CASCADE' }, - { no: 50, name: 'WS_PROBLEMS_TAB_SEND_ALL_IN_FILE_TO_CASCADE' }, - { no: 51, name: 'WS_CASCADE_BAR_FILE_NAV' }, - { no: 52, name: 'WS_CASCADE_BAR_HUNK_NAV' }, - { no: 53, name: 'WS_CASCADE_BAR_ACCEPT_FILE' }, - { no: 54, name: 'WS_CASCADE_BAR_REJECT_FILE' }, - { no: 55, name: 'WS_CUSTOM_APP_ICON_MODAL_OPEN' }, - { no: 56, name: 'WS_CUSTOM_APP_ICON_SELECT_CLASSIC' }, - { no: 57, name: 'WS_CUSTOM_APP_ICON_SELECT_CLASSIC_LIGHT' }, - { no: 58, name: 'WS_CUSTOM_APP_ICON_SELECT_RETRO' }, - { no: 59, name: 'WS_CUSTOM_APP_ICON_SELECT_BLUEPRINT' }, - { no: 60, name: 'WS_CUSTOM_APP_ICON_SELECT_HAND_DRAWN' }, - { no: 61, name: 'WS_CUSTOM_APP_ICON_SELECT_SUNSET' }, - { no: 66, name: 'WS_CUSTOM_APP_ICON_SELECT_VALENTINE' }, - { no: 82, name: 'WS_CUSTOM_APP_ICON_SELECT_PIXEL_SURF' }, - { no: 63, name: 'ENTERED_MCP_TOOLBAR_TAB' }, - { no: 62, name: 'CLICKED_TO_CONFIGURE_MCP' }, - { no: 68, name: 'WS_SETTINGS_UPDATED' }, - { no: 70, name: 'BROWSER_PREVIEW_DOM_ELEMENT' }, - { no: 71, name: 'BROWSER_PREVIEW_CONSOLE_OUTPUT' }, - { no: 74, name: 'WS_SETTINGS_CHANGED_BY_USER' }, - { no: 75, name: 'WS_GENERATE_COMMIT_MESSAGE_CLICKED' }, - { no: 76, name: 'WS_GENERATE_COMMIT_MESSAGE_ERRORED' }, - { no: 77, name: 'WS_CLICKED_COMMIT_FROM_SCM_PANEL' }, - { no: 79, name: 'WS_CANCELED_GENERATE_COMMIT_MESSAGE' }, - { no: 78, name: 'USING_DEV_EXTENSION' }, - { no: 80, name: 'WS_APP_DEPLOYMENT_CREATE_PROJECT' }, - { no: 81, name: 'WS_APP_DEPLOYMENT_DEPLOY_PROJECT' }, - { no: 114, name: 'CASCADE_OPEN_ACTIVE_CONVERSATION_DROPDOWN' }, - { no: 115, name: 'CASCADE_SELECT_ACTIVE_CONVERSATION_ON_DROPDOWN' }, - { no: 122, name: 'CASCADE_NAVIGATE_ACTIVE_CONVERSATION_ON_DROPDOWN' }, - { no: 123, name: 'CASCADE_SNOOZE_CONVERSATION_ON_DROPDOWN' }, - { no: 124, name: 'CASCADE_TOGGLE_NOTIFICATION_ON_DROPDOWN' }, - { no: 125, name: 'CASCADE_SELECT_NOTIFICATION_ON_DROPDOWN' }, - { no: 126, name: 'CASCADE_NAVIGATE_NOTIFICATION_ON_DROPDOWN' }, - { no: 127, name: 'CASCADE_DISMISS_NOTIFICATION_ON_DROPDOWN' }, - { no: 137, name: 'CASCADE_TRAJECTORY_SHARE_COPY_LINK' }, - { no: 138, name: 'CASCADE_TRAJECTORY_SHARE_CREATE_LINK' }, - { no: 139, name: 'CASCADE_CUSTOMIZATIONS_TAB_CHANGE' }, - { no: 140, name: 'CASCADE_WORKFLOW_OPEN' }, - { no: 141, name: 'CASCADE_NEW_WORKFLOW_CLICKED' }, - { no: 184, name: 'CASCADE_NEW_GLOBAL_WORKFLOW_CLICKED' }, - { no: 142, name: 'CASCADE_WORKFLOW_REFRESH_CLICKED' }, - { no: 143, name: 'CASCADE_RULE_OPEN' }, - { no: 144, name: 'CASCADE_NEW_RULE_CLICKED' }, - { no: 145, name: 'CASCADE_NEW_GLOBAL_RULE_CLICKED' }, - { no: 146, name: 'CASCADE_RULE_REFRESH_CLICKED' }, - { no: 147, name: 'CASCADE_IMPORT_RULES_FROM_CURSOR_CLICKED' }, - { no: 152, name: 'WS_IMPORT_CURSOR_RULES_COMMAND_PALETTE' }, - { no: 83, name: 'CASCADE_CHANGES_ACCEPT_ALL' }, - { no: 84, name: 'CASCADE_CHANGES_REJECT_ALL' }, - { no: 85, name: 'CASCADE_MEMORIES_EDIT' }, - { no: 86, name: 'CASCADE_MEMORIES_VIEW' }, - { no: 136, name: 'KEYBOARD_SHORTCUT' }, - { no: 87, name: 'CASCADE_INSERT_AT_MENTION' }, - { no: 120, name: 'CASCADE_ERROR_STEP' }, - { no: 121, name: 'CASCADE_SUGGESTED_RESPONSES_SUGGESTION_CLICKED' }, - { no: 128, name: 'CASCADE_PLUGIN_PANEL_OPENED' }, - { no: 129, name: 'CASCADE_PLUGIN_PAGE_OPENED' }, - { no: 130, name: 'CASCADE_PLUGIN_INSTALLED' }, - { no: 131, name: 'CASCADE_PLUGIN_DISABLED' }, - { no: 132, name: 'CASCADE_PLUGIN_ENABLED' }, - { no: 133, name: 'CASCADE_PLUGIN_INSTALLATION_ERROR' }, - { no: 134, name: 'CASCADE_PLUGIN_TOOL_ENABLED' }, - { no: 135, name: 'CASCADE_PLUGIN_TOOL_DISABLED' }, - { no: 229, name: 'CASCADE_CUSTOM_MODEL_EVENT' }, - { no: 88, name: 'WEBSITE_NOT_FOUND_PAGE' }, - { no: 89, name: 'WEBSITE_AUTH_REDIRECT_LONG_WAIT' }, - { no: 90, name: 'WEBSITE_AUTH_REDIRECT_ERROR' }, - { no: 112, name: 'WEBSITE_AUTH_REDIRECT_SUCCESS' }, - { no: 175, name: 'WEBSITE_PAGE_VISIT' }, - { no: 176, name: 'WEBSITE_SIGNUP_INFO' }, - { no: 177, name: 'WEBSITE_START_PLAN_CHECKOUT' }, - { no: 202, name: 'WEBSITE_START_UPDATE_PAYMENT' }, - { no: 203, name: 'WEBSITE_START_VIEW_INVOICES' }, - { no: 214, name: 'WEBSITE_UNIVERSITY_LECTURE_VIEW' }, - { no: 224, name: 'WEBSITE_DISALLOW_ENTERPRISE_LOGIN' }, - { no: 225, name: 'WEBSITE_SSO_LOGIN_REDIRECT' }, - { no: 226, name: 'WEBSITE_ATTEMPT_TO_LOGIN' }, - { no: 227, name: 'WEBSITE_SUCCESSFUL_LOGIN' }, - { no: 228, name: 'WEBSITE_FAILED_LOGIN' }, - { no: 91, name: 'JB_OPEN_PLAN_INFO' }, - { no: 92, name: 'JB_SNOOZE_PLUGIN' }, - { no: 93, name: 'JB_TOGGLE_PLUGIN_STATUS' }, - { no: 94, name: 'JB_SWITCH_CHANNEL' }, - { no: 95, name: 'JB_OPEN_SETTINGS' }, - { no: 96, name: 'JB_PLUGIN_LOG_IN' }, - { no: 97, name: 'JB_PLUGIN_LOG_OUT' }, - { no: 98, name: 'JB_OPEN_QUICK_REFERENCE' }, - { no: 99, name: 'JB_EDIT_KEYBOARD_SHORTCUTS' }, - { no: 100, name: 'JB_CASCADE_BAR_CASCADE_ICON' }, - { no: 101, name: 'JB_CASCADE_BAR_FILE_NAV' }, - { no: 102, name: 'JB_CASCADE_BAR_HUNK_NAV' }, - { no: 103, name: 'JB_CASCADE_BAR_ACCEPT_FILE' }, - { no: 104, name: 'JB_CASCADE_BAR_REJECT_FILE' }, - { no: 105, name: 'JB_INLAY_HUNK_ACCEPT' }, - { no: 106, name: 'JB_INLAY_HUNK_REJECT' }, - { no: 107, name: 'JB_DIFF_RE_RENDER' }, - { no: 108, name: 'JB_ONBOARDING_OPENED' }, - { no: 109, name: 'JB_ONBOARDING_COMPLETED' }, - { no: 110, name: 'JB_ONBOARDING_SKIPPED' }, - { no: 111, name: 'JB_ONBOARDING_LEARN_MORE' }, - { no: 116, name: 'JB_DIFF_RESOLUTION_ERRORED' }, - { no: 117, name: 'JB_ACKNOWLEDGE_CODE_EDIT_ERRORED' }, - { no: 118, name: 'JB_OPEN_SETTINGS_NOTIFICATION' }, - { no: 148, name: 'JB_MCP_ADD_SERVER' }, - { no: 149, name: 'JB_MCP_SAVE_CONFIG' }, - { no: 150, name: 'JB_MCP_EXPAND_TOOLS' }, - { no: 151, name: 'JB_DISABLE_AUTOGEN_MEMORY' }, - { no: 154, name: 'JB_TOGGLE_AUTOCOMPLETE' }, - { no: 174, name: 'JB_LOGIN_MANUAL_AUTH_TOKEN' }, - { no: 179, name: 'JB_AUTO_UPDATED' }, - { no: 182, name: 'JB_DRAG_DROP_FILE' }, - { no: 183, name: 'JB_AUTO_OPEN_CHAT_WINDOW' }, - { no: 155, name: 'WS_TERMINAL_INTEGRATION_FORCE_EXIT' }, - { no: 156, name: 'KNOWLEDGE_BASE_ITEM_CREATED' }, - { no: 157, name: 'KNOWLEDGE_BASE_ITEM_EDITED' }, - { no: 158, name: 'KNOWLEDGE_BASE_ITEM_DELETED' }, - { no: 159, name: 'KNOWLEDGE_BASE_ITEM_READ' }, - { no: 160, name: 'KNOWLEDGE_BASE_CONNECTION_CREATE' }, - { no: 161, name: 'KNOWLEDGE_BASE_CONNECTION_REMOVE' }, - { no: 162, name: 'TEAM_CONFIG_TOGGLE_AUTO_RUN_COMMANDS' }, - { no: 163, name: 'TEAM_CONFIG_TOGGLE_MCP_SERVERS' }, - { no: 164, name: 'TEAM_CONFIG_TOGGLE_APP_DEPLOYMENTS' }, - { no: 165, name: 'TEAM_CONFIG_TOGGLE_SANDBOX_APP_DEPLOYMENTS' }, - { no: 166, name: 'TEAM_CONFIG_TOGGLE_TEAMS_APP_DEPLOYMENTS' }, - { no: 167, name: 'TEAM_CONFIG_TOGGLE_GITHUB_REVIEWS' }, - { no: 168, name: 'TEAM_CONFIG_TOGGLE_GITHUB_DESCRIPTION_EDITS' }, - { no: 169, name: 'TEAM_CONFIG_TOGGLE_PR_REVIEW_GUIDELINES' }, - { no: 170, name: 'TEAM_CONFIG_TOGGLE_PR_DESCRIPTION_GUIDELINES' }, - { no: 171, name: 'TEAM_CONFIG_TOGGLE_INDIVIDUAL_LEVEL_ANALYTICS' }, - { no: 172, name: 'TEAM_CONFIG_TOGGLE_CONVERSATION_SHARING' }, - { no: 178, name: 'TEAM_CONFIG_UPDATE_MCP_SERVERS' }, - { no: 207, name: 'TEAM_CONFIG_TOGGLE_GITHUB_AUTO_REVIEWS' }, - { no: 213, name: 'TEAM_CONFIG_UPDATE_TOP_UP_SETTINGS' }, - { no: 180, name: 'BROWSER_OPEN' }, - { no: 181, name: 'CASCADE_WEB_TOOLS_OPEN_BROWSER_MARKDOWN' }, - { no: 206, name: 'BROWSER_PAGE_LOAD_SUCCESS' }, - { no: 208, name: 'BROWSER_TOOLBAR_INSERT_PAGE_MENTION' }, - { no: 215, name: 'BROWSER_INSERT_TEXT_CONTENT' }, - { no: 216, name: 'BROWSER_INSERT_SCREENSHOT' }, - { no: 217, name: 'BROWSER_INSERT_CODE_BLOCK' }, - { no: 218, name: 'BROWSER_INSERT_LOG_BLOCK' }, - { no: 219, name: 'BROWSER_INSERT_CONSOLE_OUTPUT' }, - { no: 220, name: 'BROWSER_INSERT_DOM_ELEMENT' }, - { no: 230, name: 'BROWSER_LAUNCH_FAILURE_DIAGNOSTICS' }, - { no: 195, name: 'SUPERCOMPLETE_REQUEST_STARTED' }, - { no: 196, name: 'SUPERCOMPLETE_CACHE_HIT' }, - { no: 197, name: 'SUPERCOMPLETE_ERROR_GETTING_RESPONSE' }, - { no: 185, name: 'SUPERCOMPLETE_NO_RESPONSE' }, - { no: 186, name: 'SUPERCOMPLETE_REQUEST_SUCCEEDED' }, - { no: 187, name: 'SUPERCOMPLETE_FILTERED' }, - { no: 188, name: 'TAB_JUMP_REQUEST_STARTED' }, - { no: 189, name: 'TAB_JUMP_CACHE_HIT' }, - { no: 190, name: 'TAB_JUMP_ERROR_GETTING_RESPONSE' }, - { no: 191, name: 'TAB_JUMP_NO_RESPONSE' }, - { no: 192, name: 'TAB_JUMP_PROCESSING_COMPLETE' }, - { no: 193, name: 'TAB_JUMP_FILTERED' }, - { no: 194, name: 'TAB_JUMP_ERROR_UI_RENDERED' }, - { no: 221, name: 'AUTOCOMPLETE_CHAT_NO_RESPONSE' }, - { no: 222, name: 'AUTOCOMPLETE_CHAT_ERROR_GETTING_RESPONSE' }, - { no: 223, name: 'AUTOCOMPLETE_CHAT_REQUEST_ACCEPTED' }, -]); -var _n; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.GITHUB_BASE = 1)] = 'GITHUB_BASE'), - (e[(e.SLACK_BASE = 2)] = 'SLACK_BASE'), - (e[(e.SLACK_AGGREGATE = 3)] = 'SLACK_AGGREGATE'), - (e[(e.GOOGLE_DRIVE_BASE = 4)] = 'GOOGLE_DRIVE_BASE'), - (e[(e.JIRA_BASE = 5)] = 'JIRA_BASE'), - (e[(e.SCM = 6)] = 'SCM')); -})(_n || (_n = {})); -a.util.setEnumType(_n, 'exa.codeium_common_pb.IndexChoice', [ +var CortexErrorCategory; +(function (CortexErrorCategory2) { + CortexErrorCategory2[(CortexErrorCategory2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CortexErrorCategory2[(CortexErrorCategory2['OVERALL'] = 1)] = 'OVERALL'; + CortexErrorCategory2[(CortexErrorCategory2['ACTION_PREPARE'] = 2)] = + 'ACTION_PREPARE'; + CortexErrorCategory2[(CortexErrorCategory2['ACTION_APPLY'] = 3)] = + 'ACTION_APPLY'; +})(CortexErrorCategory || (CortexErrorCategory = {})); +proto3.util.setEnumType( + CortexErrorCategory, + 'exa.codeium_common_pb.CortexErrorCategory', + [ + { no: 0, name: 'CORTEX_ERROR_CATEGORY_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_ERROR_CATEGORY_OVERALL' }, + { no: 2, name: 'CORTEX_ERROR_CATEGORY_ACTION_PREPARE' }, + { no: 3, name: 'CORTEX_ERROR_CATEGORY_ACTION_APPLY' }, + ], +); +var LastUpdateType; +(function (LastUpdateType2) { + LastUpdateType2[(LastUpdateType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + LastUpdateType2[(LastUpdateType2['OVERALL'] = 1)] = 'OVERALL'; + LastUpdateType2[(LastUpdateType2['LAST_AUTOCOMPLETE_USAGE_TIME'] = 2)] = + 'LAST_AUTOCOMPLETE_USAGE_TIME'; + LastUpdateType2[(LastUpdateType2['LAST_CHAT_USAGE_TIME'] = 3)] = + 'LAST_CHAT_USAGE_TIME'; + LastUpdateType2[(LastUpdateType2['LAST_COMMAND_USAGE_TIME'] = 4)] = + 'LAST_COMMAND_USAGE_TIME'; +})(LastUpdateType || (LastUpdateType = {})); +proto3.util.setEnumType( + LastUpdateType, + 'exa.codeium_common_pb.LastUpdateType', + [ + { no: 0, name: 'LAST_UPDATE_TYPE_UNSPECIFIED' }, + { no: 1, name: 'LAST_UPDATE_TYPE_OVERALL' }, + { no: 2, name: 'LAST_UPDATE_TYPE_LAST_AUTOCOMPLETE_USAGE_TIME' }, + { no: 3, name: 'LAST_UPDATE_TYPE_LAST_CHAT_USAGE_TIME' }, + { no: 4, name: 'LAST_UPDATE_TYPE_LAST_COMMAND_USAGE_TIME' }, + ], +); +var OnboardingActionType; +(function (OnboardingActionType2) { + OnboardingActionType2[(OnboardingActionType2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + OnboardingActionType2[(OnboardingActionType2['AUTOCOMPLETE'] = 1)] = + 'AUTOCOMPLETE'; + OnboardingActionType2[(OnboardingActionType2['COMMAND'] = 2)] = 'COMMAND'; + OnboardingActionType2[(OnboardingActionType2['CHAT'] = 3)] = 'CHAT'; +})(OnboardingActionType || (OnboardingActionType = {})); +proto3.util.setEnumType( + OnboardingActionType, + 'exa.codeium_common_pb.OnboardingActionType', + [ + { no: 0, name: 'ONBOARDING_ACTION_TYPE_UNSPECIFIED' }, + { no: 1, name: 'ONBOARDING_ACTION_TYPE_AUTOCOMPLETE' }, + { no: 2, name: 'ONBOARDING_ACTION_TYPE_COMMAND' }, + { no: 3, name: 'ONBOARDING_ACTION_TYPE_CHAT' }, + ], +); +var SupercompleteTriggerCondition; +(function (SupercompleteTriggerCondition2) { + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['AUTOCOMPLETE_ACCEPT'] = 1) + ] = 'AUTOCOMPLETE_ACCEPT'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['CURSOR_LINE_NAVIGATION'] = 2) + ] = 'CURSOR_LINE_NAVIGATION'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['TYPING'] = 3) + ] = 'TYPING'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['FORCED'] = 4) + ] = 'FORCED'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['TAB_JUMP_ACCEPT'] = 5) + ] = 'TAB_JUMP_ACCEPT'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['SUPERCOMPLETE_ACCEPT'] = 6) + ] = 'SUPERCOMPLETE_ACCEPT'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['TAB_JUMP_PREDICTIVE'] = 7) + ] = 'TAB_JUMP_PREDICTIVE'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['AUTOCOMPLETE_PREDICTIVE'] = 8) + ] = 'AUTOCOMPLETE_PREDICTIVE'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['SUPERCOMPLETE_PREDICTIVE'] = 9) + ] = 'SUPERCOMPLETE_PREDICTIVE'; + SupercompleteTriggerCondition2[ + (SupercompleteTriggerCondition2['TAB_JUMP_EDIT'] = 10) + ] = 'TAB_JUMP_EDIT'; +})(SupercompleteTriggerCondition || (SupercompleteTriggerCondition = {})); +proto3.util.setEnumType( + SupercompleteTriggerCondition, + 'exa.codeium_common_pb.SupercompleteTriggerCondition', + [ + { no: 0, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_UNSPECIFIED' }, + { no: 1, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_AUTOCOMPLETE_ACCEPT' }, + { no: 2, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_CURSOR_LINE_NAVIGATION' }, + { no: 3, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_TYPING' }, + { no: 4, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_FORCED' }, + { no: 5, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_TAB_JUMP_ACCEPT' }, + { no: 6, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_SUPERCOMPLETE_ACCEPT' }, + { no: 7, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_TAB_JUMP_PREDICTIVE' }, + { no: 8, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_AUTOCOMPLETE_PREDICTIVE' }, + { no: 9, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_SUPERCOMPLETE_PREDICTIVE' }, + { no: 10, name: 'SUPERCOMPLETE_TRIGGER_CONDITION_TAB_JUMP_EDIT' }, + ], +); +var ProductEventType; +(function (ProductEventType2) { + ProductEventType2[(ProductEventType2['EVENT_UNSPECIFIED'] = 0)] = + 'EVENT_UNSPECIFIED'; + ProductEventType2[(ProductEventType2['ANTIGRAVITY_EDITOR_READY'] = 251)] = + 'ANTIGRAVITY_EDITOR_READY'; + ProductEventType2[(ProductEventType2['ANTIGRAVITY_EXTENSION_START'] = 253)] = + 'ANTIGRAVITY_EXTENSION_START'; + ProductEventType2[ + (ProductEventType2['ANTIGRAVITY_EXTENSION_ACTIVATED'] = 32) + ] = 'ANTIGRAVITY_EXTENSION_ACTIVATED'; + ProductEventType2[(ProductEventType2['LS_DOWNLOAD_START'] = 1)] = + 'LS_DOWNLOAD_START'; + ProductEventType2[(ProductEventType2['LS_DOWNLOAD_COMPLETE'] = 2)] = + 'LS_DOWNLOAD_COMPLETE'; + ProductEventType2[(ProductEventType2['LS_DOWNLOAD_FAILURE'] = 5)] = + 'LS_DOWNLOAD_FAILURE'; + ProductEventType2[(ProductEventType2['LS_BINARY_STARTUP'] = 250)] = + 'LS_BINARY_STARTUP'; + ProductEventType2[(ProductEventType2['LS_STARTUP'] = 3)] = 'LS_STARTUP'; + ProductEventType2[(ProductEventType2['LS_FAILURE'] = 4)] = 'LS_FAILURE'; + ProductEventType2[(ProductEventType2['AUTOCOMPLETE_ACCEPTED'] = 6)] = + 'AUTOCOMPLETE_ACCEPTED'; + ProductEventType2[(ProductEventType2['AUTOCOMPLETE_ONE_WORD_ACCEPTED'] = 7)] = + 'AUTOCOMPLETE_ONE_WORD_ACCEPTED'; + ProductEventType2[(ProductEventType2['CHAT_MESSAGE_SENT'] = 8)] = + 'CHAT_MESSAGE_SENT'; + ProductEventType2[(ProductEventType2['CHAT_MENTION_INSERT'] = 13)] = + 'CHAT_MENTION_INSERT'; + ProductEventType2[(ProductEventType2['CHAT_MENTION_MENU_OPEN'] = 19)] = + 'CHAT_MENTION_MENU_OPEN'; + ProductEventType2[(ProductEventType2['CHAT_OPEN_SETTINGS'] = 14)] = + 'CHAT_OPEN_SETTINGS'; + ProductEventType2[(ProductEventType2['CHAT_OPEN_CONTEXT_SETTINGS'] = 15)] = + 'CHAT_OPEN_CONTEXT_SETTINGS'; + ProductEventType2[(ProductEventType2['CHAT_WITH_CODEBASE'] = 16)] = + 'CHAT_WITH_CODEBASE'; + ProductEventType2[(ProductEventType2['CHAT_NEW_CONVERSATION'] = 17)] = + 'CHAT_NEW_CONVERSATION'; + ProductEventType2[(ProductEventType2['CHAT_CHANGE_MODEL'] = 18)] = + 'CHAT_CHANGE_MODEL'; + ProductEventType2[(ProductEventType2['CHAT_TOGGLE_FOCUS_INSERT_TEXT'] = 34)] = + 'CHAT_TOGGLE_FOCUS_INSERT_TEXT'; + ProductEventType2[(ProductEventType2['FUNCTION_REFACTOR'] = 28)] = + 'FUNCTION_REFACTOR'; + ProductEventType2[(ProductEventType2['EXPLAIN_CODE_BLOCK'] = 29)] = + 'EXPLAIN_CODE_BLOCK'; + ProductEventType2[(ProductEventType2['FUNCTION_ADD_DOCSTRING'] = 30)] = + 'FUNCTION_ADD_DOCSTRING'; + ProductEventType2[(ProductEventType2['EXPLAIN_PROBLEM'] = 31)] = + 'EXPLAIN_PROBLEM'; + ProductEventType2[(ProductEventType2['COMMAND_BOX_OPENED'] = 9)] = + 'COMMAND_BOX_OPENED'; + ProductEventType2[(ProductEventType2['COMMAND_SUBMITTED'] = 10)] = + 'COMMAND_SUBMITTED'; + ProductEventType2[(ProductEventType2['COMMAND_ACCEPTED'] = 11)] = + 'COMMAND_ACCEPTED'; + ProductEventType2[(ProductEventType2['COMMAND_REJECTED'] = 12)] = + 'COMMAND_REJECTED'; + ProductEventType2[ + (ProductEventType2['WS_ONBOARDING_LANDING_PAGE_OPENED'] = 20) + ] = 'WS_ONBOARDING_LANDING_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['WS_ONBOARDING_SETUP_PAGE_OPENED'] = 21) + ] = 'WS_ONBOARDING_SETUP_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['WS_ONBOARDING_KEYBINDINGS_PAGE_OPENED'] = 22) + ] = 'WS_ONBOARDING_KEYBINDINGS_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['WS_ONBOARDING_MIGRATION_SCOPE_PAGE_OPENED'] = 23) + ] = 'WS_ONBOARDING_MIGRATION_SCOPE_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['WS_ONBOARDING_IMPORT_PAGE_OPENED'] = 24) + ] = 'WS_ONBOARDING_IMPORT_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['WS_ONBOARDING_AUTH_PAGE_OPENED'] = 25) + ] = 'WS_ONBOARDING_AUTH_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['WS_ONBOARDING_AUTH_MANUAL_PAGE_OPENED'] = 26) + ] = 'WS_ONBOARDING_AUTH_MANUAL_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['WS_ONBOARDING_CHOOSE_THEME_PAGE_OPENED'] = 35) + ] = 'WS_ONBOARDING_CHOOSE_THEME_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['AGY_ONBOARDING_TERMS_OF_USE_PAGE_OPENED'] = 231) + ] = 'AGY_ONBOARDING_TERMS_OF_USE_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['AGY_ONBOARDING_AGENT_CONFIG_PAGE_OPENED'] = 232) + ] = 'AGY_ONBOARDING_AGENT_CONFIG_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['AGY_ONBOARDING_USAGE_MODE_PAGE_OPENED'] = 233) + ] = 'AGY_ONBOARDING_USAGE_MODE_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['AGY_ONBOARDING_INSTALL_EXTENSIONS'] = 234) + ] = 'AGY_ONBOARDING_INSTALL_EXTENSIONS'; + ProductEventType2[(ProductEventType2['WS_ONBOARDING_COMPLETED'] = 27)] = + 'WS_ONBOARDING_COMPLETED'; + ProductEventType2[(ProductEventType2['WS_SKIPPED_ONBOARDING'] = 69)] = + 'WS_SKIPPED_ONBOARDING'; + ProductEventType2[(ProductEventType2['WS_SETTINGS_PAGE_OPEN'] = 72)] = + 'WS_SETTINGS_PAGE_OPEN'; + ProductEventType2[ + (ProductEventType2['WS_SETTINGS_PAGE_OPEN_WITH_SETTING_FOCUS'] = 73) + ] = 'WS_SETTINGS_PAGE_OPEN_WITH_SETTING_FOCUS'; + ProductEventType2[(ProductEventType2['EMPTY_WORKSPACE_PAGE_OPENED'] = 209)] = + 'EMPTY_WORKSPACE_PAGE_OPENED'; + ProductEventType2[ + (ProductEventType2['EMPTY_WORKSPACE_PAGE_RECENT_FOLDERS_CLICKED'] = 210) + ] = 'EMPTY_WORKSPACE_PAGE_RECENT_FOLDERS_CLICKED'; + ProductEventType2[ + (ProductEventType2['EMPTY_WORKSPACE_PAGE_OPEN_FOLDER_CLICKED'] = 211) + ] = 'EMPTY_WORKSPACE_PAGE_OPEN_FOLDER_CLICKED'; + ProductEventType2[ + (ProductEventType2['EMPTY_WORKSPACE_PAGE_GENERATE_PROJECT_CLICKED'] = 212) + ] = 'EMPTY_WORKSPACE_PAGE_GENERATE_PROJECT_CLICKED'; + ProductEventType2[(ProductEventType2['PROVIDE_FEEDBACK'] = 33)] = + 'PROVIDE_FEEDBACK'; + ProductEventType2[(ProductEventType2['CASCADE_MESSAGE_SENT'] = 36)] = + 'CASCADE_MESSAGE_SENT'; + ProductEventType2[ + (ProductEventType2['WS_OPEN_CASCADE_MEMORIES_PANEL'] = 38) + ] = 'WS_OPEN_CASCADE_MEMORIES_PANEL'; + ProductEventType2[(ProductEventType2['PROVIDE_MESSAGE_FEEDBACK'] = 41)] = + 'PROVIDE_MESSAGE_FEEDBACK'; + ProductEventType2[(ProductEventType2['CASCADE_MEMORY_DELETED'] = 42)] = + 'CASCADE_MEMORY_DELETED'; + ProductEventType2[(ProductEventType2['CASCADE_STEP_COMPLETED'] = 43)] = + 'CASCADE_STEP_COMPLETED'; + ProductEventType2[(ProductEventType2['ACKNOWLEDGE_CASCADE_CODE_EDIT'] = 44)] = + 'ACKNOWLEDGE_CASCADE_CODE_EDIT'; + ProductEventType2[ + (ProductEventType2['CASCADE_WEB_TOOLS_OPEN_READ_URL_MARKDOWN'] = 45) + ] = 'CASCADE_WEB_TOOLS_OPEN_READ_URL_MARKDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_WEB_TOOLS_OPEN_CHUNK_MARKDOWN'] = 46) + ] = 'CASCADE_WEB_TOOLS_OPEN_CHUNK_MARKDOWN'; + ProductEventType2[(ProductEventType2['CASCADE_MCP_SERVER_INIT'] = 64)] = + 'CASCADE_MCP_SERVER_INIT'; + ProductEventType2[ + (ProductEventType2['CASCADE_KNOWLEDGE_BASE_ITEM_OPENED'] = 113) + ] = 'CASCADE_KNOWLEDGE_BASE_ITEM_OPENED'; + ProductEventType2[(ProductEventType2['CASCADE_VIEW_LOADED'] = 119)] = + 'CASCADE_VIEW_LOADED'; + ProductEventType2[ + (ProductEventType2['CASCADE_CONTEXT_SCOPE_ITEM_ATTACHED'] = 173) + ] = 'CASCADE_CONTEXT_SCOPE_ITEM_ATTACHED'; + ProductEventType2[(ProductEventType2['CASCADE_CLICK_EVENT'] = 65)] = + 'CASCADE_CLICK_EVENT'; + ProductEventType2[(ProductEventType2['CASCADE_IMPRESSION_EVENT'] = 67)] = + 'CASCADE_IMPRESSION_EVENT'; + ProductEventType2[(ProductEventType2['OPEN_CHANGELOG'] = 37)] = + 'OPEN_CHANGELOG'; + ProductEventType2[(ProductEventType2['CURSOR_DETECTED'] = 39)] = + 'CURSOR_DETECTED'; + ProductEventType2[(ProductEventType2['VSCODE_DETECTED'] = 40)] = + 'VSCODE_DETECTED'; + ProductEventType2[(ProductEventType2['JETBRAINS_DETECTED'] = 153)] = + 'JETBRAINS_DETECTED'; + ProductEventType2[ + (ProductEventType2['CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_CLICK'] = 47) + ] = 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_CLICK'; + ProductEventType2[ + (ProductEventType2[ + 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_NUDGE_IMPRESSION' + ] = 48) + ] = 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_NUDGE_IMPRESSION'; + ProductEventType2[ + (ProductEventType2['WS_PROBLEMS_TAB_SEND_ALL_TO_CASCADE'] = 49) + ] = 'WS_PROBLEMS_TAB_SEND_ALL_TO_CASCADE'; + ProductEventType2[ + (ProductEventType2['WS_PROBLEMS_TAB_SEND_ALL_IN_FILE_TO_CASCADE'] = 50) + ] = 'WS_PROBLEMS_TAB_SEND_ALL_IN_FILE_TO_CASCADE'; + ProductEventType2[(ProductEventType2['WS_CASCADE_BAR_FILE_NAV'] = 51)] = + 'WS_CASCADE_BAR_FILE_NAV'; + ProductEventType2[(ProductEventType2['WS_CASCADE_BAR_HUNK_NAV'] = 52)] = + 'WS_CASCADE_BAR_HUNK_NAV'; + ProductEventType2[(ProductEventType2['WS_CASCADE_BAR_ACCEPT_FILE'] = 53)] = + 'WS_CASCADE_BAR_ACCEPT_FILE'; + ProductEventType2[(ProductEventType2['WS_CASCADE_BAR_REJECT_FILE'] = 54)] = + 'WS_CASCADE_BAR_REJECT_FILE'; + ProductEventType2[(ProductEventType2['WS_CUSTOM_APP_ICON_MODAL_OPEN'] = 55)] = + 'WS_CUSTOM_APP_ICON_MODAL_OPEN'; + ProductEventType2[ + (ProductEventType2['WS_CUSTOM_APP_ICON_SELECT_CLASSIC'] = 56) + ] = 'WS_CUSTOM_APP_ICON_SELECT_CLASSIC'; + ProductEventType2[ + (ProductEventType2['WS_CUSTOM_APP_ICON_SELECT_CLASSIC_LIGHT'] = 57) + ] = 'WS_CUSTOM_APP_ICON_SELECT_CLASSIC_LIGHT'; + ProductEventType2[ + (ProductEventType2['WS_CUSTOM_APP_ICON_SELECT_RETRO'] = 58) + ] = 'WS_CUSTOM_APP_ICON_SELECT_RETRO'; + ProductEventType2[ + (ProductEventType2['WS_CUSTOM_APP_ICON_SELECT_BLUEPRINT'] = 59) + ] = 'WS_CUSTOM_APP_ICON_SELECT_BLUEPRINT'; + ProductEventType2[ + (ProductEventType2['WS_CUSTOM_APP_ICON_SELECT_HAND_DRAWN'] = 60) + ] = 'WS_CUSTOM_APP_ICON_SELECT_HAND_DRAWN'; + ProductEventType2[ + (ProductEventType2['WS_CUSTOM_APP_ICON_SELECT_SUNSET'] = 61) + ] = 'WS_CUSTOM_APP_ICON_SELECT_SUNSET'; + ProductEventType2[ + (ProductEventType2['WS_CUSTOM_APP_ICON_SELECT_VALENTINE'] = 66) + ] = 'WS_CUSTOM_APP_ICON_SELECT_VALENTINE'; + ProductEventType2[ + (ProductEventType2['WS_CUSTOM_APP_ICON_SELECT_PIXEL_SURF'] = 82) + ] = 'WS_CUSTOM_APP_ICON_SELECT_PIXEL_SURF'; + ProductEventType2[(ProductEventType2['ENTERED_MCP_TOOLBAR_TAB'] = 63)] = + 'ENTERED_MCP_TOOLBAR_TAB'; + ProductEventType2[(ProductEventType2['CLICKED_TO_CONFIGURE_MCP'] = 62)] = + 'CLICKED_TO_CONFIGURE_MCP'; + ProductEventType2[(ProductEventType2['WS_SETTINGS_UPDATED'] = 68)] = + 'WS_SETTINGS_UPDATED'; + ProductEventType2[(ProductEventType2['BROWSER_PREVIEW_DOM_ELEMENT'] = 70)] = + 'BROWSER_PREVIEW_DOM_ELEMENT'; + ProductEventType2[ + (ProductEventType2['BROWSER_PREVIEW_CONSOLE_OUTPUT'] = 71) + ] = 'BROWSER_PREVIEW_CONSOLE_OUTPUT'; + ProductEventType2[(ProductEventType2['WS_SETTINGS_CHANGED_BY_USER'] = 74)] = + 'WS_SETTINGS_CHANGED_BY_USER'; + ProductEventType2[ + (ProductEventType2['WS_GENERATE_COMMIT_MESSAGE_CLICKED'] = 75) + ] = 'WS_GENERATE_COMMIT_MESSAGE_CLICKED'; + ProductEventType2[ + (ProductEventType2['WS_GENERATE_COMMIT_MESSAGE_ERRORED'] = 76) + ] = 'WS_GENERATE_COMMIT_MESSAGE_ERRORED'; + ProductEventType2[ + (ProductEventType2['WS_CLICKED_COMMIT_FROM_SCM_PANEL'] = 77) + ] = 'WS_CLICKED_COMMIT_FROM_SCM_PANEL'; + ProductEventType2[ + (ProductEventType2['WS_CANCELED_GENERATE_COMMIT_MESSAGE'] = 79) + ] = 'WS_CANCELED_GENERATE_COMMIT_MESSAGE'; + ProductEventType2[(ProductEventType2['USING_DEV_EXTENSION'] = 78)] = + 'USING_DEV_EXTENSION'; + ProductEventType2[ + (ProductEventType2['WS_APP_DEPLOYMENT_CREATE_PROJECT'] = 80) + ] = 'WS_APP_DEPLOYMENT_CREATE_PROJECT'; + ProductEventType2[ + (ProductEventType2['WS_APP_DEPLOYMENT_DEPLOY_PROJECT'] = 81) + ] = 'WS_APP_DEPLOYMENT_DEPLOY_PROJECT'; + ProductEventType2[ + (ProductEventType2['CASCADE_OPEN_ACTIVE_CONVERSATION_DROPDOWN'] = 114) + ] = 'CASCADE_OPEN_ACTIVE_CONVERSATION_DROPDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_SELECT_ACTIVE_CONVERSATION_ON_DROPDOWN'] = 115) + ] = 'CASCADE_SELECT_ACTIVE_CONVERSATION_ON_DROPDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_NAVIGATE_ACTIVE_CONVERSATION_ON_DROPDOWN'] = + 122) + ] = 'CASCADE_NAVIGATE_ACTIVE_CONVERSATION_ON_DROPDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_SNOOZE_CONVERSATION_ON_DROPDOWN'] = 123) + ] = 'CASCADE_SNOOZE_CONVERSATION_ON_DROPDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_TOGGLE_NOTIFICATION_ON_DROPDOWN'] = 124) + ] = 'CASCADE_TOGGLE_NOTIFICATION_ON_DROPDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_SELECT_NOTIFICATION_ON_DROPDOWN'] = 125) + ] = 'CASCADE_SELECT_NOTIFICATION_ON_DROPDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_NAVIGATE_NOTIFICATION_ON_DROPDOWN'] = 126) + ] = 'CASCADE_NAVIGATE_NOTIFICATION_ON_DROPDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_DISMISS_NOTIFICATION_ON_DROPDOWN'] = 127) + ] = 'CASCADE_DISMISS_NOTIFICATION_ON_DROPDOWN'; + ProductEventType2[ + (ProductEventType2['CASCADE_TRAJECTORY_SHARE_COPY_LINK'] = 137) + ] = 'CASCADE_TRAJECTORY_SHARE_COPY_LINK'; + ProductEventType2[ + (ProductEventType2['CASCADE_TRAJECTORY_SHARE_CREATE_LINK'] = 138) + ] = 'CASCADE_TRAJECTORY_SHARE_CREATE_LINK'; + ProductEventType2[ + (ProductEventType2['CASCADE_CUSTOMIZATIONS_TAB_CHANGE'] = 139) + ] = 'CASCADE_CUSTOMIZATIONS_TAB_CHANGE'; + ProductEventType2[(ProductEventType2['CASCADE_WORKFLOW_OPEN'] = 140)] = + 'CASCADE_WORKFLOW_OPEN'; + ProductEventType2[(ProductEventType2['CASCADE_NEW_WORKFLOW_CLICKED'] = 141)] = + 'CASCADE_NEW_WORKFLOW_CLICKED'; + ProductEventType2[ + (ProductEventType2['CASCADE_NEW_GLOBAL_WORKFLOW_CLICKED'] = 184) + ] = 'CASCADE_NEW_GLOBAL_WORKFLOW_CLICKED'; + ProductEventType2[ + (ProductEventType2['CASCADE_WORKFLOW_REFRESH_CLICKED'] = 142) + ] = 'CASCADE_WORKFLOW_REFRESH_CLICKED'; + ProductEventType2[(ProductEventType2['CASCADE_RULE_OPEN'] = 143)] = + 'CASCADE_RULE_OPEN'; + ProductEventType2[(ProductEventType2['CASCADE_NEW_RULE_CLICKED'] = 144)] = + 'CASCADE_NEW_RULE_CLICKED'; + ProductEventType2[ + (ProductEventType2['CASCADE_NEW_GLOBAL_RULE_CLICKED'] = 145) + ] = 'CASCADE_NEW_GLOBAL_RULE_CLICKED'; + ProductEventType2[(ProductEventType2['CASCADE_RULE_REFRESH_CLICKED'] = 146)] = + 'CASCADE_RULE_REFRESH_CLICKED'; + ProductEventType2[ + (ProductEventType2['CASCADE_IMPORT_RULES_FROM_CURSOR_CLICKED'] = 147) + ] = 'CASCADE_IMPORT_RULES_FROM_CURSOR_CLICKED'; + ProductEventType2[ + (ProductEventType2['WS_IMPORT_CURSOR_RULES_COMMAND_PALETTE'] = 152) + ] = 'WS_IMPORT_CURSOR_RULES_COMMAND_PALETTE'; + ProductEventType2[(ProductEventType2['CASCADE_CHANGES_ACCEPT_ALL'] = 83)] = + 'CASCADE_CHANGES_ACCEPT_ALL'; + ProductEventType2[(ProductEventType2['CASCADE_CHANGES_REJECT_ALL'] = 84)] = + 'CASCADE_CHANGES_REJECT_ALL'; + ProductEventType2[(ProductEventType2['CASCADE_MEMORIES_EDIT'] = 85)] = + 'CASCADE_MEMORIES_EDIT'; + ProductEventType2[(ProductEventType2['CASCADE_MEMORIES_VIEW'] = 86)] = + 'CASCADE_MEMORIES_VIEW'; + ProductEventType2[(ProductEventType2['KEYBOARD_SHORTCUT'] = 136)] = + 'KEYBOARD_SHORTCUT'; + ProductEventType2[(ProductEventType2['CASCADE_INSERT_AT_MENTION'] = 87)] = + 'CASCADE_INSERT_AT_MENTION'; + ProductEventType2[(ProductEventType2['CASCADE_ERROR_STEP'] = 120)] = + 'CASCADE_ERROR_STEP'; + ProductEventType2[ + (ProductEventType2['CASCADE_SUGGESTED_RESPONSES_SUGGESTION_CLICKED'] = 121) + ] = 'CASCADE_SUGGESTED_RESPONSES_SUGGESTION_CLICKED'; + ProductEventType2[(ProductEventType2['CASCADE_PLUGIN_PANEL_OPENED'] = 128)] = + 'CASCADE_PLUGIN_PANEL_OPENED'; + ProductEventType2[(ProductEventType2['CASCADE_PLUGIN_PAGE_OPENED'] = 129)] = + 'CASCADE_PLUGIN_PAGE_OPENED'; + ProductEventType2[(ProductEventType2['CASCADE_PLUGIN_INSTALLED'] = 130)] = + 'CASCADE_PLUGIN_INSTALLED'; + ProductEventType2[(ProductEventType2['CASCADE_PLUGIN_DISABLED'] = 131)] = + 'CASCADE_PLUGIN_DISABLED'; + ProductEventType2[(ProductEventType2['CASCADE_PLUGIN_ENABLED'] = 132)] = + 'CASCADE_PLUGIN_ENABLED'; + ProductEventType2[ + (ProductEventType2['CASCADE_PLUGIN_INSTALLATION_ERROR'] = 133) + ] = 'CASCADE_PLUGIN_INSTALLATION_ERROR'; + ProductEventType2[(ProductEventType2['CASCADE_PLUGIN_TOOL_ENABLED'] = 134)] = + 'CASCADE_PLUGIN_TOOL_ENABLED'; + ProductEventType2[(ProductEventType2['CASCADE_PLUGIN_TOOL_DISABLED'] = 135)] = + 'CASCADE_PLUGIN_TOOL_DISABLED'; + ProductEventType2[(ProductEventType2['CASCADE_CUSTOM_MODEL_EVENT'] = 229)] = + 'CASCADE_CUSTOM_MODEL_EVENT'; + ProductEventType2[(ProductEventType2['WEBSITE_NOT_FOUND_PAGE'] = 88)] = + 'WEBSITE_NOT_FOUND_PAGE'; + ProductEventType2[ + (ProductEventType2['WEBSITE_AUTH_REDIRECT_LONG_WAIT'] = 89) + ] = 'WEBSITE_AUTH_REDIRECT_LONG_WAIT'; + ProductEventType2[(ProductEventType2['WEBSITE_AUTH_REDIRECT_ERROR'] = 90)] = + 'WEBSITE_AUTH_REDIRECT_ERROR'; + ProductEventType2[ + (ProductEventType2['WEBSITE_AUTH_REDIRECT_SUCCESS'] = 112) + ] = 'WEBSITE_AUTH_REDIRECT_SUCCESS'; + ProductEventType2[(ProductEventType2['WEBSITE_PAGE_VISIT'] = 175)] = + 'WEBSITE_PAGE_VISIT'; + ProductEventType2[(ProductEventType2['WEBSITE_SIGNUP_INFO'] = 176)] = + 'WEBSITE_SIGNUP_INFO'; + ProductEventType2[(ProductEventType2['WEBSITE_START_PLAN_CHECKOUT'] = 177)] = + 'WEBSITE_START_PLAN_CHECKOUT'; + ProductEventType2[(ProductEventType2['WEBSITE_START_UPDATE_PAYMENT'] = 202)] = + 'WEBSITE_START_UPDATE_PAYMENT'; + ProductEventType2[(ProductEventType2['WEBSITE_START_VIEW_INVOICES'] = 203)] = + 'WEBSITE_START_VIEW_INVOICES'; + ProductEventType2[ + (ProductEventType2['WEBSITE_UNIVERSITY_LECTURE_VIEW'] = 214) + ] = 'WEBSITE_UNIVERSITY_LECTURE_VIEW'; + ProductEventType2[ + (ProductEventType2['WEBSITE_DISALLOW_ENTERPRISE_LOGIN'] = 224) + ] = 'WEBSITE_DISALLOW_ENTERPRISE_LOGIN'; + ProductEventType2[(ProductEventType2['WEBSITE_SSO_LOGIN_REDIRECT'] = 225)] = + 'WEBSITE_SSO_LOGIN_REDIRECT'; + ProductEventType2[(ProductEventType2['WEBSITE_ATTEMPT_TO_LOGIN'] = 226)] = + 'WEBSITE_ATTEMPT_TO_LOGIN'; + ProductEventType2[(ProductEventType2['WEBSITE_SUCCESSFUL_LOGIN'] = 227)] = + 'WEBSITE_SUCCESSFUL_LOGIN'; + ProductEventType2[(ProductEventType2['WEBSITE_FAILED_LOGIN'] = 228)] = + 'WEBSITE_FAILED_LOGIN'; + ProductEventType2[(ProductEventType2['JB_OPEN_PLAN_INFO'] = 91)] = + 'JB_OPEN_PLAN_INFO'; + ProductEventType2[(ProductEventType2['JB_SNOOZE_PLUGIN'] = 92)] = + 'JB_SNOOZE_PLUGIN'; + ProductEventType2[(ProductEventType2['JB_TOGGLE_PLUGIN_STATUS'] = 93)] = + 'JB_TOGGLE_PLUGIN_STATUS'; + ProductEventType2[(ProductEventType2['JB_SWITCH_CHANNEL'] = 94)] = + 'JB_SWITCH_CHANNEL'; + ProductEventType2[(ProductEventType2['JB_OPEN_SETTINGS'] = 95)] = + 'JB_OPEN_SETTINGS'; + ProductEventType2[(ProductEventType2['JB_PLUGIN_LOG_IN'] = 96)] = + 'JB_PLUGIN_LOG_IN'; + ProductEventType2[(ProductEventType2['JB_PLUGIN_LOG_OUT'] = 97)] = + 'JB_PLUGIN_LOG_OUT'; + ProductEventType2[(ProductEventType2['JB_OPEN_QUICK_REFERENCE'] = 98)] = + 'JB_OPEN_QUICK_REFERENCE'; + ProductEventType2[(ProductEventType2['JB_EDIT_KEYBOARD_SHORTCUTS'] = 99)] = + 'JB_EDIT_KEYBOARD_SHORTCUTS'; + ProductEventType2[(ProductEventType2['JB_CASCADE_BAR_CASCADE_ICON'] = 100)] = + 'JB_CASCADE_BAR_CASCADE_ICON'; + ProductEventType2[(ProductEventType2['JB_CASCADE_BAR_FILE_NAV'] = 101)] = + 'JB_CASCADE_BAR_FILE_NAV'; + ProductEventType2[(ProductEventType2['JB_CASCADE_BAR_HUNK_NAV'] = 102)] = + 'JB_CASCADE_BAR_HUNK_NAV'; + ProductEventType2[(ProductEventType2['JB_CASCADE_BAR_ACCEPT_FILE'] = 103)] = + 'JB_CASCADE_BAR_ACCEPT_FILE'; + ProductEventType2[(ProductEventType2['JB_CASCADE_BAR_REJECT_FILE'] = 104)] = + 'JB_CASCADE_BAR_REJECT_FILE'; + ProductEventType2[(ProductEventType2['JB_INLAY_HUNK_ACCEPT'] = 105)] = + 'JB_INLAY_HUNK_ACCEPT'; + ProductEventType2[(ProductEventType2['JB_INLAY_HUNK_REJECT'] = 106)] = + 'JB_INLAY_HUNK_REJECT'; + ProductEventType2[(ProductEventType2['JB_DIFF_RE_RENDER'] = 107)] = + 'JB_DIFF_RE_RENDER'; + ProductEventType2[(ProductEventType2['JB_ONBOARDING_OPENED'] = 108)] = + 'JB_ONBOARDING_OPENED'; + ProductEventType2[(ProductEventType2['JB_ONBOARDING_COMPLETED'] = 109)] = + 'JB_ONBOARDING_COMPLETED'; + ProductEventType2[(ProductEventType2['JB_ONBOARDING_SKIPPED'] = 110)] = + 'JB_ONBOARDING_SKIPPED'; + ProductEventType2[(ProductEventType2['JB_ONBOARDING_LEARN_MORE'] = 111)] = + 'JB_ONBOARDING_LEARN_MORE'; + ProductEventType2[(ProductEventType2['JB_DIFF_RESOLUTION_ERRORED'] = 116)] = + 'JB_DIFF_RESOLUTION_ERRORED'; + ProductEventType2[ + (ProductEventType2['JB_ACKNOWLEDGE_CODE_EDIT_ERRORED'] = 117) + ] = 'JB_ACKNOWLEDGE_CODE_EDIT_ERRORED'; + ProductEventType2[ + (ProductEventType2['JB_OPEN_SETTINGS_NOTIFICATION'] = 118) + ] = 'JB_OPEN_SETTINGS_NOTIFICATION'; + ProductEventType2[(ProductEventType2['JB_MCP_ADD_SERVER'] = 148)] = + 'JB_MCP_ADD_SERVER'; + ProductEventType2[(ProductEventType2['JB_MCP_SAVE_CONFIG'] = 149)] = + 'JB_MCP_SAVE_CONFIG'; + ProductEventType2[(ProductEventType2['JB_MCP_EXPAND_TOOLS'] = 150)] = + 'JB_MCP_EXPAND_TOOLS'; + ProductEventType2[(ProductEventType2['JB_DISABLE_AUTOGEN_MEMORY'] = 151)] = + 'JB_DISABLE_AUTOGEN_MEMORY'; + ProductEventType2[(ProductEventType2['JB_TOGGLE_AUTOCOMPLETE'] = 154)] = + 'JB_TOGGLE_AUTOCOMPLETE'; + ProductEventType2[(ProductEventType2['JB_LOGIN_MANUAL_AUTH_TOKEN'] = 174)] = + 'JB_LOGIN_MANUAL_AUTH_TOKEN'; + ProductEventType2[(ProductEventType2['JB_AUTO_UPDATED'] = 179)] = + 'JB_AUTO_UPDATED'; + ProductEventType2[(ProductEventType2['JB_DRAG_DROP_FILE'] = 182)] = + 'JB_DRAG_DROP_FILE'; + ProductEventType2[(ProductEventType2['JB_AUTO_OPEN_CHAT_WINDOW'] = 183)] = + 'JB_AUTO_OPEN_CHAT_WINDOW'; + ProductEventType2[ + (ProductEventType2['WS_TERMINAL_INTEGRATION_FORCE_EXIT'] = 155) + ] = 'WS_TERMINAL_INTEGRATION_FORCE_EXIT'; + ProductEventType2[(ProductEventType2['KNOWLEDGE_BASE_ITEM_CREATED'] = 156)] = + 'KNOWLEDGE_BASE_ITEM_CREATED'; + ProductEventType2[(ProductEventType2['KNOWLEDGE_BASE_ITEM_EDITED'] = 157)] = + 'KNOWLEDGE_BASE_ITEM_EDITED'; + ProductEventType2[(ProductEventType2['KNOWLEDGE_BASE_ITEM_DELETED'] = 158)] = + 'KNOWLEDGE_BASE_ITEM_DELETED'; + ProductEventType2[(ProductEventType2['KNOWLEDGE_BASE_ITEM_READ'] = 159)] = + 'KNOWLEDGE_BASE_ITEM_READ'; + ProductEventType2[ + (ProductEventType2['KNOWLEDGE_BASE_CONNECTION_CREATE'] = 160) + ] = 'KNOWLEDGE_BASE_CONNECTION_CREATE'; + ProductEventType2[ + (ProductEventType2['KNOWLEDGE_BASE_CONNECTION_REMOVE'] = 161) + ] = 'KNOWLEDGE_BASE_CONNECTION_REMOVE'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_AUTO_RUN_COMMANDS'] = 162) + ] = 'TEAM_CONFIG_TOGGLE_AUTO_RUN_COMMANDS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_MCP_SERVERS'] = 163) + ] = 'TEAM_CONFIG_TOGGLE_MCP_SERVERS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_APP_DEPLOYMENTS'] = 164) + ] = 'TEAM_CONFIG_TOGGLE_APP_DEPLOYMENTS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_SANDBOX_APP_DEPLOYMENTS'] = 165) + ] = 'TEAM_CONFIG_TOGGLE_SANDBOX_APP_DEPLOYMENTS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_TEAMS_APP_DEPLOYMENTS'] = 166) + ] = 'TEAM_CONFIG_TOGGLE_TEAMS_APP_DEPLOYMENTS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_GITHUB_REVIEWS'] = 167) + ] = 'TEAM_CONFIG_TOGGLE_GITHUB_REVIEWS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_GITHUB_DESCRIPTION_EDITS'] = 168) + ] = 'TEAM_CONFIG_TOGGLE_GITHUB_DESCRIPTION_EDITS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_PR_REVIEW_GUIDELINES'] = 169) + ] = 'TEAM_CONFIG_TOGGLE_PR_REVIEW_GUIDELINES'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_PR_DESCRIPTION_GUIDELINES'] = 170) + ] = 'TEAM_CONFIG_TOGGLE_PR_DESCRIPTION_GUIDELINES'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_INDIVIDUAL_LEVEL_ANALYTICS'] = 171) + ] = 'TEAM_CONFIG_TOGGLE_INDIVIDUAL_LEVEL_ANALYTICS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_CONVERSATION_SHARING'] = 172) + ] = 'TEAM_CONFIG_TOGGLE_CONVERSATION_SHARING'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_UPDATE_MCP_SERVERS'] = 178) + ] = 'TEAM_CONFIG_UPDATE_MCP_SERVERS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_TOGGLE_GITHUB_AUTO_REVIEWS'] = 207) + ] = 'TEAM_CONFIG_TOGGLE_GITHUB_AUTO_REVIEWS'; + ProductEventType2[ + (ProductEventType2['TEAM_CONFIG_UPDATE_TOP_UP_SETTINGS'] = 213) + ] = 'TEAM_CONFIG_UPDATE_TOP_UP_SETTINGS'; + ProductEventType2[(ProductEventType2['BROWSER_OPEN'] = 180)] = 'BROWSER_OPEN'; + ProductEventType2[ + (ProductEventType2['CASCADE_WEB_TOOLS_OPEN_BROWSER_MARKDOWN'] = 181) + ] = 'CASCADE_WEB_TOOLS_OPEN_BROWSER_MARKDOWN'; + ProductEventType2[(ProductEventType2['BROWSER_PAGE_LOAD_SUCCESS'] = 206)] = + 'BROWSER_PAGE_LOAD_SUCCESS'; + ProductEventType2[ + (ProductEventType2['BROWSER_TOOLBAR_INSERT_PAGE_MENTION'] = 208) + ] = 'BROWSER_TOOLBAR_INSERT_PAGE_MENTION'; + ProductEventType2[(ProductEventType2['BROWSER_INSERT_TEXT_CONTENT'] = 215)] = + 'BROWSER_INSERT_TEXT_CONTENT'; + ProductEventType2[(ProductEventType2['BROWSER_INSERT_SCREENSHOT'] = 216)] = + 'BROWSER_INSERT_SCREENSHOT'; + ProductEventType2[(ProductEventType2['BROWSER_INSERT_CODE_BLOCK'] = 217)] = + 'BROWSER_INSERT_CODE_BLOCK'; + ProductEventType2[(ProductEventType2['BROWSER_INSERT_LOG_BLOCK'] = 218)] = + 'BROWSER_INSERT_LOG_BLOCK'; + ProductEventType2[ + (ProductEventType2['BROWSER_INSERT_CONSOLE_OUTPUT'] = 219) + ] = 'BROWSER_INSERT_CONSOLE_OUTPUT'; + ProductEventType2[(ProductEventType2['BROWSER_INSERT_DOM_ELEMENT'] = 220)] = + 'BROWSER_INSERT_DOM_ELEMENT'; + ProductEventType2[ + (ProductEventType2['BROWSER_LAUNCH_FAILURE_DIAGNOSTICS'] = 230) + ] = 'BROWSER_LAUNCH_FAILURE_DIAGNOSTICS'; + ProductEventType2[ + (ProductEventType2['SUPERCOMPLETE_REQUEST_STARTED'] = 195) + ] = 'SUPERCOMPLETE_REQUEST_STARTED'; + ProductEventType2[(ProductEventType2['SUPERCOMPLETE_CACHE_HIT'] = 196)] = + 'SUPERCOMPLETE_CACHE_HIT'; + ProductEventType2[ + (ProductEventType2['SUPERCOMPLETE_ERROR_GETTING_RESPONSE'] = 197) + ] = 'SUPERCOMPLETE_ERROR_GETTING_RESPONSE'; + ProductEventType2[(ProductEventType2['SUPERCOMPLETE_NO_RESPONSE'] = 185)] = + 'SUPERCOMPLETE_NO_RESPONSE'; + ProductEventType2[ + (ProductEventType2['SUPERCOMPLETE_REQUEST_SUCCEEDED'] = 186) + ] = 'SUPERCOMPLETE_REQUEST_SUCCEEDED'; + ProductEventType2[(ProductEventType2['SUPERCOMPLETE_FILTERED'] = 187)] = + 'SUPERCOMPLETE_FILTERED'; + ProductEventType2[(ProductEventType2['TAB_JUMP_REQUEST_STARTED'] = 188)] = + 'TAB_JUMP_REQUEST_STARTED'; + ProductEventType2[(ProductEventType2['TAB_JUMP_CACHE_HIT'] = 189)] = + 'TAB_JUMP_CACHE_HIT'; + ProductEventType2[ + (ProductEventType2['TAB_JUMP_ERROR_GETTING_RESPONSE'] = 190) + ] = 'TAB_JUMP_ERROR_GETTING_RESPONSE'; + ProductEventType2[(ProductEventType2['TAB_JUMP_NO_RESPONSE'] = 191)] = + 'TAB_JUMP_NO_RESPONSE'; + ProductEventType2[(ProductEventType2['TAB_JUMP_PROCESSING_COMPLETE'] = 192)] = + 'TAB_JUMP_PROCESSING_COMPLETE'; + ProductEventType2[(ProductEventType2['TAB_JUMP_FILTERED'] = 193)] = + 'TAB_JUMP_FILTERED'; + ProductEventType2[(ProductEventType2['TAB_JUMP_ERROR_UI_RENDERED'] = 194)] = + 'TAB_JUMP_ERROR_UI_RENDERED'; + ProductEventType2[ + (ProductEventType2['AUTOCOMPLETE_CHAT_NO_RESPONSE'] = 221) + ] = 'AUTOCOMPLETE_CHAT_NO_RESPONSE'; + ProductEventType2[ + (ProductEventType2['AUTOCOMPLETE_CHAT_ERROR_GETTING_RESPONSE'] = 222) + ] = 'AUTOCOMPLETE_CHAT_ERROR_GETTING_RESPONSE'; + ProductEventType2[ + (ProductEventType2['AUTOCOMPLETE_CHAT_REQUEST_ACCEPTED'] = 223) + ] = 'AUTOCOMPLETE_CHAT_REQUEST_ACCEPTED'; +})(ProductEventType || (ProductEventType = {})); +proto3.util.setEnumType( + ProductEventType, + 'exa.codeium_common_pb.ProductEventType', + [ + { no: 0, name: 'EVENT_UNSPECIFIED' }, + { no: 251, name: 'ANTIGRAVITY_EDITOR_READY' }, + { no: 253, name: 'ANTIGRAVITY_EXTENSION_START' }, + { no: 32, name: 'ANTIGRAVITY_EXTENSION_ACTIVATED' }, + { no: 1, name: 'LS_DOWNLOAD_START' }, + { no: 2, name: 'LS_DOWNLOAD_COMPLETE' }, + { no: 5, name: 'LS_DOWNLOAD_FAILURE' }, + { no: 250, name: 'LS_BINARY_STARTUP' }, + { no: 3, name: 'LS_STARTUP' }, + { no: 4, name: 'LS_FAILURE' }, + { no: 6, name: 'AUTOCOMPLETE_ACCEPTED' }, + { no: 7, name: 'AUTOCOMPLETE_ONE_WORD_ACCEPTED' }, + { no: 8, name: 'CHAT_MESSAGE_SENT' }, + { no: 13, name: 'CHAT_MENTION_INSERT' }, + { no: 19, name: 'CHAT_MENTION_MENU_OPEN' }, + { no: 14, name: 'CHAT_OPEN_SETTINGS' }, + { no: 15, name: 'CHAT_OPEN_CONTEXT_SETTINGS' }, + { no: 16, name: 'CHAT_WITH_CODEBASE' }, + { no: 17, name: 'CHAT_NEW_CONVERSATION' }, + { no: 18, name: 'CHAT_CHANGE_MODEL' }, + { no: 34, name: 'CHAT_TOGGLE_FOCUS_INSERT_TEXT' }, + { no: 28, name: 'FUNCTION_REFACTOR' }, + { no: 29, name: 'EXPLAIN_CODE_BLOCK' }, + { no: 30, name: 'FUNCTION_ADD_DOCSTRING' }, + { no: 31, name: 'EXPLAIN_PROBLEM' }, + { no: 9, name: 'COMMAND_BOX_OPENED' }, + { no: 10, name: 'COMMAND_SUBMITTED' }, + { no: 11, name: 'COMMAND_ACCEPTED' }, + { no: 12, name: 'COMMAND_REJECTED' }, + { no: 20, name: 'WS_ONBOARDING_LANDING_PAGE_OPENED' }, + { no: 21, name: 'WS_ONBOARDING_SETUP_PAGE_OPENED' }, + { no: 22, name: 'WS_ONBOARDING_KEYBINDINGS_PAGE_OPENED' }, + { no: 23, name: 'WS_ONBOARDING_MIGRATION_SCOPE_PAGE_OPENED' }, + { no: 24, name: 'WS_ONBOARDING_IMPORT_PAGE_OPENED' }, + { no: 25, name: 'WS_ONBOARDING_AUTH_PAGE_OPENED' }, + { no: 26, name: 'WS_ONBOARDING_AUTH_MANUAL_PAGE_OPENED' }, + { no: 35, name: 'WS_ONBOARDING_CHOOSE_THEME_PAGE_OPENED' }, + { no: 231, name: 'AGY_ONBOARDING_TERMS_OF_USE_PAGE_OPENED' }, + { no: 232, name: 'AGY_ONBOARDING_AGENT_CONFIG_PAGE_OPENED' }, + { no: 233, name: 'AGY_ONBOARDING_USAGE_MODE_PAGE_OPENED' }, + { no: 234, name: 'AGY_ONBOARDING_INSTALL_EXTENSIONS' }, + { no: 27, name: 'WS_ONBOARDING_COMPLETED' }, + { no: 69, name: 'WS_SKIPPED_ONBOARDING' }, + { no: 72, name: 'WS_SETTINGS_PAGE_OPEN' }, + { no: 73, name: 'WS_SETTINGS_PAGE_OPEN_WITH_SETTING_FOCUS' }, + { no: 209, name: 'EMPTY_WORKSPACE_PAGE_OPENED' }, + { no: 210, name: 'EMPTY_WORKSPACE_PAGE_RECENT_FOLDERS_CLICKED' }, + { no: 211, name: 'EMPTY_WORKSPACE_PAGE_OPEN_FOLDER_CLICKED' }, + { no: 212, name: 'EMPTY_WORKSPACE_PAGE_GENERATE_PROJECT_CLICKED' }, + { no: 33, name: 'PROVIDE_FEEDBACK' }, + { no: 36, name: 'CASCADE_MESSAGE_SENT' }, + { no: 38, name: 'WS_OPEN_CASCADE_MEMORIES_PANEL' }, + { no: 41, name: 'PROVIDE_MESSAGE_FEEDBACK' }, + { no: 42, name: 'CASCADE_MEMORY_DELETED' }, + { no: 43, name: 'CASCADE_STEP_COMPLETED' }, + { no: 44, name: 'ACKNOWLEDGE_CASCADE_CODE_EDIT' }, + { no: 45, name: 'CASCADE_WEB_TOOLS_OPEN_READ_URL_MARKDOWN' }, + { no: 46, name: 'CASCADE_WEB_TOOLS_OPEN_CHUNK_MARKDOWN' }, + { no: 64, name: 'CASCADE_MCP_SERVER_INIT' }, + { no: 113, name: 'CASCADE_KNOWLEDGE_BASE_ITEM_OPENED' }, + { no: 119, name: 'CASCADE_VIEW_LOADED' }, + { no: 173, name: 'CASCADE_CONTEXT_SCOPE_ITEM_ATTACHED' }, + { no: 65, name: 'CASCADE_CLICK_EVENT' }, + { no: 67, name: 'CASCADE_IMPRESSION_EVENT' }, + { no: 37, name: 'OPEN_CHANGELOG' }, + { no: 39, name: 'CURSOR_DETECTED' }, + { no: 40, name: 'VSCODE_DETECTED' }, + { no: 153, name: 'JETBRAINS_DETECTED' }, + { no: 47, name: 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_CLICK' }, + { + no: 48, + name: 'CROSS_SELL_EXTENSION_DOWNLOAD_ANTIGRAVITY_NUDGE_IMPRESSION', + }, + { no: 49, name: 'WS_PROBLEMS_TAB_SEND_ALL_TO_CASCADE' }, + { no: 50, name: 'WS_PROBLEMS_TAB_SEND_ALL_IN_FILE_TO_CASCADE' }, + { no: 51, name: 'WS_CASCADE_BAR_FILE_NAV' }, + { no: 52, name: 'WS_CASCADE_BAR_HUNK_NAV' }, + { no: 53, name: 'WS_CASCADE_BAR_ACCEPT_FILE' }, + { no: 54, name: 'WS_CASCADE_BAR_REJECT_FILE' }, + { no: 55, name: 'WS_CUSTOM_APP_ICON_MODAL_OPEN' }, + { no: 56, name: 'WS_CUSTOM_APP_ICON_SELECT_CLASSIC' }, + { no: 57, name: 'WS_CUSTOM_APP_ICON_SELECT_CLASSIC_LIGHT' }, + { no: 58, name: 'WS_CUSTOM_APP_ICON_SELECT_RETRO' }, + { no: 59, name: 'WS_CUSTOM_APP_ICON_SELECT_BLUEPRINT' }, + { no: 60, name: 'WS_CUSTOM_APP_ICON_SELECT_HAND_DRAWN' }, + { no: 61, name: 'WS_CUSTOM_APP_ICON_SELECT_SUNSET' }, + { no: 66, name: 'WS_CUSTOM_APP_ICON_SELECT_VALENTINE' }, + { no: 82, name: 'WS_CUSTOM_APP_ICON_SELECT_PIXEL_SURF' }, + { no: 63, name: 'ENTERED_MCP_TOOLBAR_TAB' }, + { no: 62, name: 'CLICKED_TO_CONFIGURE_MCP' }, + { no: 68, name: 'WS_SETTINGS_UPDATED' }, + { no: 70, name: 'BROWSER_PREVIEW_DOM_ELEMENT' }, + { no: 71, name: 'BROWSER_PREVIEW_CONSOLE_OUTPUT' }, + { no: 74, name: 'WS_SETTINGS_CHANGED_BY_USER' }, + { no: 75, name: 'WS_GENERATE_COMMIT_MESSAGE_CLICKED' }, + { no: 76, name: 'WS_GENERATE_COMMIT_MESSAGE_ERRORED' }, + { no: 77, name: 'WS_CLICKED_COMMIT_FROM_SCM_PANEL' }, + { no: 79, name: 'WS_CANCELED_GENERATE_COMMIT_MESSAGE' }, + { no: 78, name: 'USING_DEV_EXTENSION' }, + { no: 80, name: 'WS_APP_DEPLOYMENT_CREATE_PROJECT' }, + { no: 81, name: 'WS_APP_DEPLOYMENT_DEPLOY_PROJECT' }, + { no: 114, name: 'CASCADE_OPEN_ACTIVE_CONVERSATION_DROPDOWN' }, + { no: 115, name: 'CASCADE_SELECT_ACTIVE_CONVERSATION_ON_DROPDOWN' }, + { no: 122, name: 'CASCADE_NAVIGATE_ACTIVE_CONVERSATION_ON_DROPDOWN' }, + { no: 123, name: 'CASCADE_SNOOZE_CONVERSATION_ON_DROPDOWN' }, + { no: 124, name: 'CASCADE_TOGGLE_NOTIFICATION_ON_DROPDOWN' }, + { no: 125, name: 'CASCADE_SELECT_NOTIFICATION_ON_DROPDOWN' }, + { no: 126, name: 'CASCADE_NAVIGATE_NOTIFICATION_ON_DROPDOWN' }, + { no: 127, name: 'CASCADE_DISMISS_NOTIFICATION_ON_DROPDOWN' }, + { no: 137, name: 'CASCADE_TRAJECTORY_SHARE_COPY_LINK' }, + { no: 138, name: 'CASCADE_TRAJECTORY_SHARE_CREATE_LINK' }, + { no: 139, name: 'CASCADE_CUSTOMIZATIONS_TAB_CHANGE' }, + { no: 140, name: 'CASCADE_WORKFLOW_OPEN' }, + { no: 141, name: 'CASCADE_NEW_WORKFLOW_CLICKED' }, + { no: 184, name: 'CASCADE_NEW_GLOBAL_WORKFLOW_CLICKED' }, + { no: 142, name: 'CASCADE_WORKFLOW_REFRESH_CLICKED' }, + { no: 143, name: 'CASCADE_RULE_OPEN' }, + { no: 144, name: 'CASCADE_NEW_RULE_CLICKED' }, + { no: 145, name: 'CASCADE_NEW_GLOBAL_RULE_CLICKED' }, + { no: 146, name: 'CASCADE_RULE_REFRESH_CLICKED' }, + { no: 147, name: 'CASCADE_IMPORT_RULES_FROM_CURSOR_CLICKED' }, + { no: 152, name: 'WS_IMPORT_CURSOR_RULES_COMMAND_PALETTE' }, + { no: 83, name: 'CASCADE_CHANGES_ACCEPT_ALL' }, + { no: 84, name: 'CASCADE_CHANGES_REJECT_ALL' }, + { no: 85, name: 'CASCADE_MEMORIES_EDIT' }, + { no: 86, name: 'CASCADE_MEMORIES_VIEW' }, + { no: 136, name: 'KEYBOARD_SHORTCUT' }, + { no: 87, name: 'CASCADE_INSERT_AT_MENTION' }, + { no: 120, name: 'CASCADE_ERROR_STEP' }, + { no: 121, name: 'CASCADE_SUGGESTED_RESPONSES_SUGGESTION_CLICKED' }, + { no: 128, name: 'CASCADE_PLUGIN_PANEL_OPENED' }, + { no: 129, name: 'CASCADE_PLUGIN_PAGE_OPENED' }, + { no: 130, name: 'CASCADE_PLUGIN_INSTALLED' }, + { no: 131, name: 'CASCADE_PLUGIN_DISABLED' }, + { no: 132, name: 'CASCADE_PLUGIN_ENABLED' }, + { no: 133, name: 'CASCADE_PLUGIN_INSTALLATION_ERROR' }, + { no: 134, name: 'CASCADE_PLUGIN_TOOL_ENABLED' }, + { no: 135, name: 'CASCADE_PLUGIN_TOOL_DISABLED' }, + { no: 229, name: 'CASCADE_CUSTOM_MODEL_EVENT' }, + { no: 88, name: 'WEBSITE_NOT_FOUND_PAGE' }, + { no: 89, name: 'WEBSITE_AUTH_REDIRECT_LONG_WAIT' }, + { no: 90, name: 'WEBSITE_AUTH_REDIRECT_ERROR' }, + { no: 112, name: 'WEBSITE_AUTH_REDIRECT_SUCCESS' }, + { no: 175, name: 'WEBSITE_PAGE_VISIT' }, + { no: 176, name: 'WEBSITE_SIGNUP_INFO' }, + { no: 177, name: 'WEBSITE_START_PLAN_CHECKOUT' }, + { no: 202, name: 'WEBSITE_START_UPDATE_PAYMENT' }, + { no: 203, name: 'WEBSITE_START_VIEW_INVOICES' }, + { no: 214, name: 'WEBSITE_UNIVERSITY_LECTURE_VIEW' }, + { no: 224, name: 'WEBSITE_DISALLOW_ENTERPRISE_LOGIN' }, + { no: 225, name: 'WEBSITE_SSO_LOGIN_REDIRECT' }, + { no: 226, name: 'WEBSITE_ATTEMPT_TO_LOGIN' }, + { no: 227, name: 'WEBSITE_SUCCESSFUL_LOGIN' }, + { no: 228, name: 'WEBSITE_FAILED_LOGIN' }, + { no: 91, name: 'JB_OPEN_PLAN_INFO' }, + { no: 92, name: 'JB_SNOOZE_PLUGIN' }, + { no: 93, name: 'JB_TOGGLE_PLUGIN_STATUS' }, + { no: 94, name: 'JB_SWITCH_CHANNEL' }, + { no: 95, name: 'JB_OPEN_SETTINGS' }, + { no: 96, name: 'JB_PLUGIN_LOG_IN' }, + { no: 97, name: 'JB_PLUGIN_LOG_OUT' }, + { no: 98, name: 'JB_OPEN_QUICK_REFERENCE' }, + { no: 99, name: 'JB_EDIT_KEYBOARD_SHORTCUTS' }, + { no: 100, name: 'JB_CASCADE_BAR_CASCADE_ICON' }, + { no: 101, name: 'JB_CASCADE_BAR_FILE_NAV' }, + { no: 102, name: 'JB_CASCADE_BAR_HUNK_NAV' }, + { no: 103, name: 'JB_CASCADE_BAR_ACCEPT_FILE' }, + { no: 104, name: 'JB_CASCADE_BAR_REJECT_FILE' }, + { no: 105, name: 'JB_INLAY_HUNK_ACCEPT' }, + { no: 106, name: 'JB_INLAY_HUNK_REJECT' }, + { no: 107, name: 'JB_DIFF_RE_RENDER' }, + { no: 108, name: 'JB_ONBOARDING_OPENED' }, + { no: 109, name: 'JB_ONBOARDING_COMPLETED' }, + { no: 110, name: 'JB_ONBOARDING_SKIPPED' }, + { no: 111, name: 'JB_ONBOARDING_LEARN_MORE' }, + { no: 116, name: 'JB_DIFF_RESOLUTION_ERRORED' }, + { no: 117, name: 'JB_ACKNOWLEDGE_CODE_EDIT_ERRORED' }, + { no: 118, name: 'JB_OPEN_SETTINGS_NOTIFICATION' }, + { no: 148, name: 'JB_MCP_ADD_SERVER' }, + { no: 149, name: 'JB_MCP_SAVE_CONFIG' }, + { no: 150, name: 'JB_MCP_EXPAND_TOOLS' }, + { no: 151, name: 'JB_DISABLE_AUTOGEN_MEMORY' }, + { no: 154, name: 'JB_TOGGLE_AUTOCOMPLETE' }, + { no: 174, name: 'JB_LOGIN_MANUAL_AUTH_TOKEN' }, + { no: 179, name: 'JB_AUTO_UPDATED' }, + { no: 182, name: 'JB_DRAG_DROP_FILE' }, + { no: 183, name: 'JB_AUTO_OPEN_CHAT_WINDOW' }, + { no: 155, name: 'WS_TERMINAL_INTEGRATION_FORCE_EXIT' }, + { no: 156, name: 'KNOWLEDGE_BASE_ITEM_CREATED' }, + { no: 157, name: 'KNOWLEDGE_BASE_ITEM_EDITED' }, + { no: 158, name: 'KNOWLEDGE_BASE_ITEM_DELETED' }, + { no: 159, name: 'KNOWLEDGE_BASE_ITEM_READ' }, + { no: 160, name: 'KNOWLEDGE_BASE_CONNECTION_CREATE' }, + { no: 161, name: 'KNOWLEDGE_BASE_CONNECTION_REMOVE' }, + { no: 162, name: 'TEAM_CONFIG_TOGGLE_AUTO_RUN_COMMANDS' }, + { no: 163, name: 'TEAM_CONFIG_TOGGLE_MCP_SERVERS' }, + { no: 164, name: 'TEAM_CONFIG_TOGGLE_APP_DEPLOYMENTS' }, + { no: 165, name: 'TEAM_CONFIG_TOGGLE_SANDBOX_APP_DEPLOYMENTS' }, + { no: 166, name: 'TEAM_CONFIG_TOGGLE_TEAMS_APP_DEPLOYMENTS' }, + { no: 167, name: 'TEAM_CONFIG_TOGGLE_GITHUB_REVIEWS' }, + { no: 168, name: 'TEAM_CONFIG_TOGGLE_GITHUB_DESCRIPTION_EDITS' }, + { no: 169, name: 'TEAM_CONFIG_TOGGLE_PR_REVIEW_GUIDELINES' }, + { no: 170, name: 'TEAM_CONFIG_TOGGLE_PR_DESCRIPTION_GUIDELINES' }, + { no: 171, name: 'TEAM_CONFIG_TOGGLE_INDIVIDUAL_LEVEL_ANALYTICS' }, + { no: 172, name: 'TEAM_CONFIG_TOGGLE_CONVERSATION_SHARING' }, + { no: 178, name: 'TEAM_CONFIG_UPDATE_MCP_SERVERS' }, + { no: 207, name: 'TEAM_CONFIG_TOGGLE_GITHUB_AUTO_REVIEWS' }, + { no: 213, name: 'TEAM_CONFIG_UPDATE_TOP_UP_SETTINGS' }, + { no: 180, name: 'BROWSER_OPEN' }, + { no: 181, name: 'CASCADE_WEB_TOOLS_OPEN_BROWSER_MARKDOWN' }, + { no: 206, name: 'BROWSER_PAGE_LOAD_SUCCESS' }, + { no: 208, name: 'BROWSER_TOOLBAR_INSERT_PAGE_MENTION' }, + { no: 215, name: 'BROWSER_INSERT_TEXT_CONTENT' }, + { no: 216, name: 'BROWSER_INSERT_SCREENSHOT' }, + { no: 217, name: 'BROWSER_INSERT_CODE_BLOCK' }, + { no: 218, name: 'BROWSER_INSERT_LOG_BLOCK' }, + { no: 219, name: 'BROWSER_INSERT_CONSOLE_OUTPUT' }, + { no: 220, name: 'BROWSER_INSERT_DOM_ELEMENT' }, + { no: 230, name: 'BROWSER_LAUNCH_FAILURE_DIAGNOSTICS' }, + { no: 195, name: 'SUPERCOMPLETE_REQUEST_STARTED' }, + { no: 196, name: 'SUPERCOMPLETE_CACHE_HIT' }, + { no: 197, name: 'SUPERCOMPLETE_ERROR_GETTING_RESPONSE' }, + { no: 185, name: 'SUPERCOMPLETE_NO_RESPONSE' }, + { no: 186, name: 'SUPERCOMPLETE_REQUEST_SUCCEEDED' }, + { no: 187, name: 'SUPERCOMPLETE_FILTERED' }, + { no: 188, name: 'TAB_JUMP_REQUEST_STARTED' }, + { no: 189, name: 'TAB_JUMP_CACHE_HIT' }, + { no: 190, name: 'TAB_JUMP_ERROR_GETTING_RESPONSE' }, + { no: 191, name: 'TAB_JUMP_NO_RESPONSE' }, + { no: 192, name: 'TAB_JUMP_PROCESSING_COMPLETE' }, + { no: 193, name: 'TAB_JUMP_FILTERED' }, + { no: 194, name: 'TAB_JUMP_ERROR_UI_RENDERED' }, + { no: 221, name: 'AUTOCOMPLETE_CHAT_NO_RESPONSE' }, + { no: 222, name: 'AUTOCOMPLETE_CHAT_ERROR_GETTING_RESPONSE' }, + { no: 223, name: 'AUTOCOMPLETE_CHAT_REQUEST_ACCEPTED' }, + ], +); +var IndexChoice; +(function (IndexChoice2) { + IndexChoice2[(IndexChoice2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + IndexChoice2[(IndexChoice2['GITHUB_BASE'] = 1)] = 'GITHUB_BASE'; + IndexChoice2[(IndexChoice2['SLACK_BASE'] = 2)] = 'SLACK_BASE'; + IndexChoice2[(IndexChoice2['SLACK_AGGREGATE'] = 3)] = 'SLACK_AGGREGATE'; + IndexChoice2[(IndexChoice2['GOOGLE_DRIVE_BASE'] = 4)] = 'GOOGLE_DRIVE_BASE'; + IndexChoice2[(IndexChoice2['JIRA_BASE'] = 5)] = 'JIRA_BASE'; + IndexChoice2[(IndexChoice2['SCM'] = 6)] = 'SCM'; +})(IndexChoice || (IndexChoice = {})); +proto3.util.setEnumType(IndexChoice, 'exa.codeium_common_pb.IndexChoice', [ { no: 0, name: 'INDEX_CHOICE_UNSPECIFIED' }, { no: 1, name: 'INDEX_CHOICE_GITHUB_BASE' }, { no: 2, name: 'INDEX_CHOICE_SLACK_BASE' }, @@ -5868,8655 +8573,19736 @@ a.util.setEnumType(_n, 'exa.codeium_common_pb.IndexChoice', [ { no: 5, name: 'INDEX_CHOICE_JIRA_BASE' }, { no: 6, name: 'INDEX_CHOICE_SCM' }, ]); -var It; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.HEADER_1 = 1)] = 'HEADER_1'), - (e[(e.HEADER_2 = 2)] = 'HEADER_2'), - (e[(e.HEADER_3 = 3)] = 'HEADER_3'), - (e[(e.HEADER_4 = 4)] = 'HEADER_4'), - (e[(e.HEADER_5 = 5)] = 'HEADER_5'), - (e[(e.HEADER_6 = 6)] = 'HEADER_6')); -})(It || (It = {})); -a.util.setEnumType(It, 'exa.codeium_common_pb.MarkdownNodeType', [ - { no: 0, name: 'MARKDOWN_NODE_TYPE_UNSPECIFIED' }, - { no: 1, name: 'MARKDOWN_NODE_TYPE_HEADER_1' }, - { no: 2, name: 'MARKDOWN_NODE_TYPE_HEADER_2' }, - { no: 3, name: 'MARKDOWN_NODE_TYPE_HEADER_3' }, - { no: 4, name: 'MARKDOWN_NODE_TYPE_HEADER_4' }, - { no: 5, name: 'MARKDOWN_NODE_TYPE_HEADER_5' }, - { no: 6, name: 'MARKDOWN_NODE_TYPE_HEADER_6' }, -]); -var gn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.USER = 1)] = 'USER'), - (e[(e.CASCADE = 2)] = 'CASCADE')); -})(gn || (gn = {})); -a.util.setEnumType(gn, 'exa.codeium_common_pb.TerminalShellCommandSource', [ - { no: 0, name: 'TERMINAL_SHELL_COMMAND_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'TERMINAL_SHELL_COMMAND_SOURCE_USER' }, - { no: 2, name: 'TERMINAL_SHELL_COMMAND_SOURCE_CASCADE' }, -]); -var pt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.RUNNING = 1)] = 'RUNNING'), - (e[(e.COMPLETED = 2)] = 'COMPLETED')); -})(pt || (pt = {})); -a.util.setEnumType(pt, 'exa.codeium_common_pb.TerminalShellCommandStatus', [ - { no: 0, name: 'TERMINAL_SHELL_COMMAND_STATUS_UNSPECIFIED' }, - { no: 1, name: 'TERMINAL_SHELL_COMMAND_STATUS_RUNNING' }, - { no: 2, name: 'TERMINAL_SHELL_COMMAND_STATUS_COMPLETED' }, -]); -var zn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.QUEUED = 1)] = 'QUEUED'), - (e[(e.INITIALIZING = 2)] = 'INITIALIZING'), - (e[(e.BUILDING = 3)] = 'BUILDING'), - (e[(e.ERROR = 4)] = 'ERROR'), - (e[(e.READY = 5)] = 'READY'), - (e[(e.CANCELED = 6)] = 'CANCELED')); -})(zn || (zn = {})); -a.util.setEnumType(zn, 'exa.codeium_common_pb.DeploymentBuildStatus', [ - { no: 0, name: 'DEPLOYMENT_BUILD_STATUS_UNSPECIFIED' }, - { no: 1, name: 'DEPLOYMENT_BUILD_STATUS_QUEUED' }, - { no: 2, name: 'DEPLOYMENT_BUILD_STATUS_INITIALIZING' }, - { no: 3, name: 'DEPLOYMENT_BUILD_STATUS_BUILDING' }, - { no: 4, name: 'DEPLOYMENT_BUILD_STATUS_ERROR' }, - { no: 5, name: 'DEPLOYMENT_BUILD_STATUS_READY' }, - { no: 6, name: 'DEPLOYMENT_BUILD_STATUS_CANCELED' }, -]); -var $; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.VERCEL = 1)] = 'VERCEL'), - (e[(e.NETLIFY = 2)] = 'NETLIFY'), - (e[(e.CLOUDFLARE = 3)] = 'CLOUDFLARE')); -})($ || ($ = {})); -a.util.setEnumType($, 'exa.codeium_common_pb.DeploymentProvider', [ - { no: 0, name: 'DEPLOYMENT_PROVIDER_UNSPECIFIED' }, - { no: 1, name: 'DEPLOYMENT_PROVIDER_VERCEL' }, - { no: 2, name: 'DEPLOYMENT_PROVIDER_NETLIFY' }, - { no: 3, name: 'DEPLOYMENT_PROVIDER_CLOUDFLARE' }, -]); -var Lm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.AVAILABLE = 1)] = 'AVAILABLE'), - (e[(e.IN_USE = 2)] = 'IN_USE'), - (e[(e.TAKEN = 3)] = 'TAKEN'), - (e[(e.INVALID = 4)] = 'INVALID')); -})(Lm || (Lm = {})); -a.util.setEnumType(Lm, 'exa.codeium_common_pb.ValidationStatus', [ - { no: 0, name: 'VALIDATION_STATUS_UNSPECIFIED' }, - { no: 1, name: 'VALIDATION_STATUS_AVAILABLE' }, - { no: 2, name: 'VALIDATION_STATUS_IN_USE' }, - { no: 3, name: 'VALIDATION_STATUS_TAKEN' }, - { no: 4, name: 'VALIDATION_STATUS_INVALID' }, -]); -var Ot; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.LLAMA_2 = 1)] = 'LLAMA_2'), - (e[(e.LLAMA_3 = 2)] = 'LLAMA_3'), - (e[(e.CHATML = 3)] = 'CHATML'), - (e[(e.CHAT_TRANSCRIPT = 4)] = 'CHAT_TRANSCRIPT'), - (e[(e.DEEPSEEK_V2 = 5)] = 'DEEPSEEK_V2'), - (e[(e.DEEPSEEK_V3 = 6)] = 'DEEPSEEK_V3')); -})(Ot || (Ot = {})); -a.util.setEnumType(Ot, 'exa.codeium_common_pb.PromptTemplaterType', [ - { no: 0, name: 'PROMPT_TEMPLATER_TYPE_UNSPECIFIED' }, - { no: 1, name: 'PROMPT_TEMPLATER_TYPE_LLAMA_2' }, - { no: 2, name: 'PROMPT_TEMPLATER_TYPE_LLAMA_3' }, - { no: 3, name: 'PROMPT_TEMPLATER_TYPE_CHATML' }, - { no: 4, name: 'PROMPT_TEMPLATER_TYPE_CHAT_TRANSCRIPT' }, - { no: 5, name: 'PROMPT_TEMPLATER_TYPE_DEEPSEEK_V2' }, - { no: 6, name: 'PROMPT_TEMPLATER_TYPE_DEEPSEEK_V3' }, -]); -var At; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.LLAMA_3 = 1)] = 'LLAMA_3'), - (e[(e.HERMES = 2)] = 'HERMES'), - (e[(e.XML = 3)] = 'XML'), - (e[(e.CHAT_TRANSCRIPT = 4)] = 'CHAT_TRANSCRIPT'), - (e[(e.NONE = 5)] = 'NONE')); -})(At || (At = {})); -a.util.setEnumType(At, 'exa.codeium_common_pb.ToolFormatterType', [ - { no: 0, name: 'TOOL_FORMATTER_TYPE_UNSPECIFIED' }, - { no: 1, name: 'TOOL_FORMATTER_TYPE_LLAMA_3' }, - { no: 2, name: 'TOOL_FORMATTER_TYPE_HERMES' }, - { no: 3, name: 'TOOL_FORMATTER_TYPE_XML' }, - { no: 4, name: 'TOOL_FORMATTER_TYPE_CHAT_TRANSCRIPT' }, - { no: 5, name: 'TOOL_FORMATTER_TYPE_NONE' }, -]); -var Pm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.NOT_INSTALLED = 1)] = 'NOT_INSTALLED'), - (e[(e.IN_PROGRESS = 2)] = 'IN_PROGRESS'), - (e[(e.COMPLETE = 3)] = 'COMPLETE'), - (e[(e.ERROR = 4)] = 'ERROR')); -})(Pm || (Pm = {})); -a.util.setEnumType(Pm, 'exa.codeium_common_pb.BrowserInstallationStatus', [ - { no: 0, name: 'BROWSER_INSTALLATION_STATUS_UNSPECIFIED' }, - { no: 1, name: 'BROWSER_INSTALLATION_STATUS_NOT_INSTALLED' }, - { no: 2, name: 'BROWSER_INSTALLATION_STATUS_IN_PROGRESS' }, - { no: 3, name: 'BROWSER_INSTALLATION_STATUS_COMPLETE' }, - { no: 4, name: 'BROWSER_INSTALLATION_STATUS_ERROR' }, -]); -var Ct; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.LOWER = 1)] = 'LOWER'), - (e[(e.HIGHER = 2)] = 'HIGHER')); -})(Ct || (Ct = {})); -a.util.setEnumType(Ct, 'exa.codeium_common_pb.BetterDirection', [ - { no: 0, name: 'BETTER_DIRECTION_UNSPECIFIED' }, - { no: 1, name: 'BETTER_DIRECTION_LOWER' }, - { no: 2, name: 'BETTER_DIRECTION_HIGHER' }, -]); -var Rt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.EXECUTION_SEGMENT = 1)] = 'EXECUTION_SEGMENT'), - (e[(e.TRAJECTORY = 2)] = 'TRAJECTORY')); -})(Rt || (Rt = {})); -a.util.setEnumType(Rt, 'exa.codeium_common_pb.MetricsScope', [ +var MarkdownNodeType; +(function (MarkdownNodeType2) { + MarkdownNodeType2[(MarkdownNodeType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + MarkdownNodeType2[(MarkdownNodeType2['HEADER_1'] = 1)] = 'HEADER_1'; + MarkdownNodeType2[(MarkdownNodeType2['HEADER_2'] = 2)] = 'HEADER_2'; + MarkdownNodeType2[(MarkdownNodeType2['HEADER_3'] = 3)] = 'HEADER_3'; + MarkdownNodeType2[(MarkdownNodeType2['HEADER_4'] = 4)] = 'HEADER_4'; + MarkdownNodeType2[(MarkdownNodeType2['HEADER_5'] = 5)] = 'HEADER_5'; + MarkdownNodeType2[(MarkdownNodeType2['HEADER_6'] = 6)] = 'HEADER_6'; +})(MarkdownNodeType || (MarkdownNodeType = {})); +proto3.util.setEnumType( + MarkdownNodeType, + 'exa.codeium_common_pb.MarkdownNodeType', + [ + { no: 0, name: 'MARKDOWN_NODE_TYPE_UNSPECIFIED' }, + { no: 1, name: 'MARKDOWN_NODE_TYPE_HEADER_1' }, + { no: 2, name: 'MARKDOWN_NODE_TYPE_HEADER_2' }, + { no: 3, name: 'MARKDOWN_NODE_TYPE_HEADER_3' }, + { no: 4, name: 'MARKDOWN_NODE_TYPE_HEADER_4' }, + { no: 5, name: 'MARKDOWN_NODE_TYPE_HEADER_5' }, + { no: 6, name: 'MARKDOWN_NODE_TYPE_HEADER_6' }, + ], +); +var TerminalShellCommandSource; +(function (TerminalShellCommandSource2) { + TerminalShellCommandSource2[ + (TerminalShellCommandSource2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + TerminalShellCommandSource2[(TerminalShellCommandSource2['USER'] = 1)] = + 'USER'; + TerminalShellCommandSource2[(TerminalShellCommandSource2['CASCADE'] = 2)] = + 'CASCADE'; +})(TerminalShellCommandSource || (TerminalShellCommandSource = {})); +proto3.util.setEnumType( + TerminalShellCommandSource, + 'exa.codeium_common_pb.TerminalShellCommandSource', + [ + { no: 0, name: 'TERMINAL_SHELL_COMMAND_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'TERMINAL_SHELL_COMMAND_SOURCE_USER' }, + { no: 2, name: 'TERMINAL_SHELL_COMMAND_SOURCE_CASCADE' }, + ], +); +var TerminalShellCommandStatus; +(function (TerminalShellCommandStatus2) { + TerminalShellCommandStatus2[ + (TerminalShellCommandStatus2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + TerminalShellCommandStatus2[(TerminalShellCommandStatus2['RUNNING'] = 1)] = + 'RUNNING'; + TerminalShellCommandStatus2[(TerminalShellCommandStatus2['COMPLETED'] = 2)] = + 'COMPLETED'; +})(TerminalShellCommandStatus || (TerminalShellCommandStatus = {})); +proto3.util.setEnumType( + TerminalShellCommandStatus, + 'exa.codeium_common_pb.TerminalShellCommandStatus', + [ + { no: 0, name: 'TERMINAL_SHELL_COMMAND_STATUS_UNSPECIFIED' }, + { no: 1, name: 'TERMINAL_SHELL_COMMAND_STATUS_RUNNING' }, + { no: 2, name: 'TERMINAL_SHELL_COMMAND_STATUS_COMPLETED' }, + ], +); +var DeploymentBuildStatus; +(function (DeploymentBuildStatus2) { + DeploymentBuildStatus2[(DeploymentBuildStatus2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + DeploymentBuildStatus2[(DeploymentBuildStatus2['QUEUED'] = 1)] = 'QUEUED'; + DeploymentBuildStatus2[(DeploymentBuildStatus2['INITIALIZING'] = 2)] = + 'INITIALIZING'; + DeploymentBuildStatus2[(DeploymentBuildStatus2['BUILDING'] = 3)] = 'BUILDING'; + DeploymentBuildStatus2[(DeploymentBuildStatus2['ERROR'] = 4)] = 'ERROR'; + DeploymentBuildStatus2[(DeploymentBuildStatus2['READY'] = 5)] = 'READY'; + DeploymentBuildStatus2[(DeploymentBuildStatus2['CANCELED'] = 6)] = 'CANCELED'; +})(DeploymentBuildStatus || (DeploymentBuildStatus = {})); +proto3.util.setEnumType( + DeploymentBuildStatus, + 'exa.codeium_common_pb.DeploymentBuildStatus', + [ + { no: 0, name: 'DEPLOYMENT_BUILD_STATUS_UNSPECIFIED' }, + { no: 1, name: 'DEPLOYMENT_BUILD_STATUS_QUEUED' }, + { no: 2, name: 'DEPLOYMENT_BUILD_STATUS_INITIALIZING' }, + { no: 3, name: 'DEPLOYMENT_BUILD_STATUS_BUILDING' }, + { no: 4, name: 'DEPLOYMENT_BUILD_STATUS_ERROR' }, + { no: 5, name: 'DEPLOYMENT_BUILD_STATUS_READY' }, + { no: 6, name: 'DEPLOYMENT_BUILD_STATUS_CANCELED' }, + ], +); +var DeploymentProvider; +(function (DeploymentProvider2) { + DeploymentProvider2[(DeploymentProvider2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + DeploymentProvider2[(DeploymentProvider2['VERCEL'] = 1)] = 'VERCEL'; + DeploymentProvider2[(DeploymentProvider2['NETLIFY'] = 2)] = 'NETLIFY'; + DeploymentProvider2[(DeploymentProvider2['CLOUDFLARE'] = 3)] = 'CLOUDFLARE'; +})(DeploymentProvider || (DeploymentProvider = {})); +proto3.util.setEnumType( + DeploymentProvider, + 'exa.codeium_common_pb.DeploymentProvider', + [ + { no: 0, name: 'DEPLOYMENT_PROVIDER_UNSPECIFIED' }, + { no: 1, name: 'DEPLOYMENT_PROVIDER_VERCEL' }, + { no: 2, name: 'DEPLOYMENT_PROVIDER_NETLIFY' }, + { no: 3, name: 'DEPLOYMENT_PROVIDER_CLOUDFLARE' }, + ], +); +var ValidationStatus; +(function (ValidationStatus2) { + ValidationStatus2[(ValidationStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ValidationStatus2[(ValidationStatus2['AVAILABLE'] = 1)] = 'AVAILABLE'; + ValidationStatus2[(ValidationStatus2['IN_USE'] = 2)] = 'IN_USE'; + ValidationStatus2[(ValidationStatus2['TAKEN'] = 3)] = 'TAKEN'; + ValidationStatus2[(ValidationStatus2['INVALID'] = 4)] = 'INVALID'; +})(ValidationStatus || (ValidationStatus = {})); +proto3.util.setEnumType( + ValidationStatus, + 'exa.codeium_common_pb.ValidationStatus', + [ + { no: 0, name: 'VALIDATION_STATUS_UNSPECIFIED' }, + { no: 1, name: 'VALIDATION_STATUS_AVAILABLE' }, + { no: 2, name: 'VALIDATION_STATUS_IN_USE' }, + { no: 3, name: 'VALIDATION_STATUS_TAKEN' }, + { no: 4, name: 'VALIDATION_STATUS_INVALID' }, + ], +); +var PromptTemplaterType; +(function (PromptTemplaterType2) { + PromptTemplaterType2[(PromptTemplaterType2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + PromptTemplaterType2[(PromptTemplaterType2['LLAMA_2'] = 1)] = 'LLAMA_2'; + PromptTemplaterType2[(PromptTemplaterType2['LLAMA_3'] = 2)] = 'LLAMA_3'; + PromptTemplaterType2[(PromptTemplaterType2['CHATML'] = 3)] = 'CHATML'; + PromptTemplaterType2[(PromptTemplaterType2['CHAT_TRANSCRIPT'] = 4)] = + 'CHAT_TRANSCRIPT'; + PromptTemplaterType2[(PromptTemplaterType2['DEEPSEEK_V2'] = 5)] = + 'DEEPSEEK_V2'; + PromptTemplaterType2[(PromptTemplaterType2['DEEPSEEK_V3'] = 6)] = + 'DEEPSEEK_V3'; +})(PromptTemplaterType || (PromptTemplaterType = {})); +proto3.util.setEnumType( + PromptTemplaterType, + 'exa.codeium_common_pb.PromptTemplaterType', + [ + { no: 0, name: 'PROMPT_TEMPLATER_TYPE_UNSPECIFIED' }, + { no: 1, name: 'PROMPT_TEMPLATER_TYPE_LLAMA_2' }, + { no: 2, name: 'PROMPT_TEMPLATER_TYPE_LLAMA_3' }, + { no: 3, name: 'PROMPT_TEMPLATER_TYPE_CHATML' }, + { no: 4, name: 'PROMPT_TEMPLATER_TYPE_CHAT_TRANSCRIPT' }, + { no: 5, name: 'PROMPT_TEMPLATER_TYPE_DEEPSEEK_V2' }, + { no: 6, name: 'PROMPT_TEMPLATER_TYPE_DEEPSEEK_V3' }, + ], +); +var ToolFormatterType; +(function (ToolFormatterType2) { + ToolFormatterType2[(ToolFormatterType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ToolFormatterType2[(ToolFormatterType2['LLAMA_3'] = 1)] = 'LLAMA_3'; + ToolFormatterType2[(ToolFormatterType2['HERMES'] = 2)] = 'HERMES'; + ToolFormatterType2[(ToolFormatterType2['XML'] = 3)] = 'XML'; + ToolFormatterType2[(ToolFormatterType2['CHAT_TRANSCRIPT'] = 4)] = + 'CHAT_TRANSCRIPT'; + ToolFormatterType2[(ToolFormatterType2['NONE'] = 5)] = 'NONE'; +})(ToolFormatterType || (ToolFormatterType = {})); +proto3.util.setEnumType( + ToolFormatterType, + 'exa.codeium_common_pb.ToolFormatterType', + [ + { no: 0, name: 'TOOL_FORMATTER_TYPE_UNSPECIFIED' }, + { no: 1, name: 'TOOL_FORMATTER_TYPE_LLAMA_3' }, + { no: 2, name: 'TOOL_FORMATTER_TYPE_HERMES' }, + { no: 3, name: 'TOOL_FORMATTER_TYPE_XML' }, + { no: 4, name: 'TOOL_FORMATTER_TYPE_CHAT_TRANSCRIPT' }, + { no: 5, name: 'TOOL_FORMATTER_TYPE_NONE' }, + ], +); +var BrowserInstallationStatus; +(function (BrowserInstallationStatus2) { + BrowserInstallationStatus2[(BrowserInstallationStatus2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + BrowserInstallationStatus2[ + (BrowserInstallationStatus2['NOT_INSTALLED'] = 1) + ] = 'NOT_INSTALLED'; + BrowserInstallationStatus2[(BrowserInstallationStatus2['IN_PROGRESS'] = 2)] = + 'IN_PROGRESS'; + BrowserInstallationStatus2[(BrowserInstallationStatus2['COMPLETE'] = 3)] = + 'COMPLETE'; + BrowserInstallationStatus2[(BrowserInstallationStatus2['ERROR'] = 4)] = + 'ERROR'; +})(BrowserInstallationStatus || (BrowserInstallationStatus = {})); +proto3.util.setEnumType( + BrowserInstallationStatus, + 'exa.codeium_common_pb.BrowserInstallationStatus', + [ + { no: 0, name: 'BROWSER_INSTALLATION_STATUS_UNSPECIFIED' }, + { no: 1, name: 'BROWSER_INSTALLATION_STATUS_NOT_INSTALLED' }, + { no: 2, name: 'BROWSER_INSTALLATION_STATUS_IN_PROGRESS' }, + { no: 3, name: 'BROWSER_INSTALLATION_STATUS_COMPLETE' }, + { no: 4, name: 'BROWSER_INSTALLATION_STATUS_ERROR' }, + ], +); +var BetterDirection; +(function (BetterDirection2) { + BetterDirection2[(BetterDirection2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + BetterDirection2[(BetterDirection2['LOWER'] = 1)] = 'LOWER'; + BetterDirection2[(BetterDirection2['HIGHER'] = 2)] = 'HIGHER'; +})(BetterDirection || (BetterDirection = {})); +proto3.util.setEnumType( + BetterDirection, + 'exa.codeium_common_pb.BetterDirection', + [ + { no: 0, name: 'BETTER_DIRECTION_UNSPECIFIED' }, + { no: 1, name: 'BETTER_DIRECTION_LOWER' }, + { no: 2, name: 'BETTER_DIRECTION_HIGHER' }, + ], +); +var MetricsScope; +(function (MetricsScope2) { + MetricsScope2[(MetricsScope2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + MetricsScope2[(MetricsScope2['EXECUTION_SEGMENT'] = 1)] = 'EXECUTION_SEGMENT'; + MetricsScope2[(MetricsScope2['TRAJECTORY'] = 2)] = 'TRAJECTORY'; +})(MetricsScope || (MetricsScope = {})); +proto3.util.setEnumType(MetricsScope, 'exa.codeium_common_pb.MetricsScope', [ { no: 0, name: 'METRICS_SCOPE_UNSPECIFIED' }, { no: 1, name: 'METRICS_SCOPE_EXECUTION_SEGMENT' }, { no: 2, name: 'METRICS_SCOPE_TRAJECTORY' }, ]); -var Dm; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CASCADE = 1)] = 'CASCADE'), - (e[(e.MAINLINE_TRAJECTORY = 2)] = 'MAINLINE_TRAJECTORY')); -})(Dm || (Dm = {})); -a.util.setEnumType(Dm, 'exa.codeium_common_pb.TrajectoryType', [ - { no: 0, name: 'TRAJECTORY_TYPE_UNSPECIFIED' }, - { no: 1, name: 'TRAJECTORY_TYPE_CASCADE' }, - { no: 2, name: 'TRAJECTORY_TYPE_MAINLINE_TRAJECTORY' }, -]); -var jn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.RULE = 1)] = 'RULE'), - (e[(e.WORKFLOW = 2)] = 'WORKFLOW'), - (e[(e.SKILL = 3)] = 'SKILL')); -})(jn || (jn = {})); -a.util.setEnumType(jn, 'exa.codeium_common_pb.RefreshCustomizationType', [ - { no: 0, name: 'REFRESH_CUSTOMIZATION_TYPE_UNSPECIFIED' }, - { no: 1, name: 'REFRESH_CUSTOMIZATION_TYPE_RULE' }, - { no: 2, name: 'REFRESH_CUSTOMIZATION_TYPE_WORKFLOW' }, - { no: 3, name: 'REFRESH_CUSTOMIZATION_TYPE_SKILL' }, -]); -var Lt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), (e[(e.GEMINI = 2)] = 'GEMINI')); -})(Lt || (Lt = {})); -a.util.setEnumType(Lt, 'exa.codeium_common_pb.ThirdPartyWebSearchProvider', [ - { no: 0, name: 'THIRD_PARTY_WEB_SEARCH_PROVIDER_UNSPECIFIED' }, - { no: 2, name: 'THIRD_PARTY_WEB_SEARCH_PROVIDER_GEMINI' }, -]); -var km; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.O3 = 1)] = 'O3'), - (e[(e.GPT_4_1 = 2)] = 'GPT_4_1'), - (e[(e.O4_MINI = 3)] = 'O4_MINI')); -})(km || (km = {})); -a.util.setEnumType(km, 'exa.codeium_common_pb.ThirdPartyWebSearchModel', [ - { no: 0, name: 'THIRD_PARTY_WEB_SEARCH_MODEL_UNSPECIFIED' }, - { no: 1, name: 'THIRD_PARTY_WEB_SEARCH_MODEL_O3' }, - { no: 2, name: 'THIRD_PARTY_WEB_SEARCH_MODEL_GPT_4_1' }, - { no: 3, name: 'THIRD_PARTY_WEB_SEARCH_MODEL_O4_MINI' }, -]); -var Pt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.READY = 1)] = 'READY'), - (e[(e.LOADING = 2)] = 'LOADING'), - (e[(e.ERROR = 3)] = 'ERROR')); -})(Pt || (Pt = {})); -a.util.setEnumType(Pt, 'exa.codeium_common_pb.WorkingDirectoryStatus', [ - { no: 0, name: 'WORKING_DIRECTORY_STATUS_UNSPECIFIED' }, - { no: 1, name: 'WORKING_DIRECTORY_STATUS_READY' }, - { no: 2, name: 'WORKING_DIRECTORY_STATUS_LOADING' }, - { no: 3, name: 'WORKING_DIRECTORY_STATUS_ERROR' }, -]); -var Dt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.APPROVED = 1)] = 'APPROVED'), - (e[(e.REQUESTED_CHANGES = 2)] = 'REQUESTED_CHANGES')); -})(Dt || (Dt = {})); -a.util.setEnumType(Dt, 'exa.codeium_common_pb.ArtifactApprovalStatus', [ - { no: 0, name: 'ARTIFACT_APPROVAL_STATUS_UNSPECIFIED' }, - { no: 1, name: 'ARTIFACT_APPROVAL_STATUS_APPROVED' }, - { no: 2, name: 'ARTIFACT_APPROVAL_STATUS_REQUESTED_CHANGES' }, -]); -var kt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.IMPLEMENTATION_PLAN = 1)] = 'IMPLEMENTATION_PLAN'), - (e[(e.WALKTHROUGH = 2)] = 'WALKTHROUGH'), - (e[(e.TASK = 3)] = 'TASK'), - (e[(e.OTHER = 4)] = 'OTHER')); -})(kt || (kt = {})); -a.util.setEnumType(kt, 'exa.codeium_common_pb.ArtifactType', [ +var TrajectoryType; +(function (TrajectoryType2) { + TrajectoryType2[(TrajectoryType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TrajectoryType2[(TrajectoryType2['CASCADE'] = 1)] = 'CASCADE'; + TrajectoryType2[(TrajectoryType2['MAINLINE_TRAJECTORY'] = 2)] = + 'MAINLINE_TRAJECTORY'; +})(TrajectoryType || (TrajectoryType = {})); +proto3.util.setEnumType( + TrajectoryType, + 'exa.codeium_common_pb.TrajectoryType', + [ + { no: 0, name: 'TRAJECTORY_TYPE_UNSPECIFIED' }, + { no: 1, name: 'TRAJECTORY_TYPE_CASCADE' }, + { no: 2, name: 'TRAJECTORY_TYPE_MAINLINE_TRAJECTORY' }, + ], +); +var RefreshCustomizationType; +(function (RefreshCustomizationType2) { + RefreshCustomizationType2[(RefreshCustomizationType2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + RefreshCustomizationType2[(RefreshCustomizationType2['RULE'] = 1)] = 'RULE'; + RefreshCustomizationType2[(RefreshCustomizationType2['WORKFLOW'] = 2)] = + 'WORKFLOW'; + RefreshCustomizationType2[(RefreshCustomizationType2['SKILL'] = 3)] = 'SKILL'; +})(RefreshCustomizationType || (RefreshCustomizationType = {})); +proto3.util.setEnumType( + RefreshCustomizationType, + 'exa.codeium_common_pb.RefreshCustomizationType', + [ + { no: 0, name: 'REFRESH_CUSTOMIZATION_TYPE_UNSPECIFIED' }, + { no: 1, name: 'REFRESH_CUSTOMIZATION_TYPE_RULE' }, + { no: 2, name: 'REFRESH_CUSTOMIZATION_TYPE_WORKFLOW' }, + { no: 3, name: 'REFRESH_CUSTOMIZATION_TYPE_SKILL' }, + ], +); +var ThirdPartyWebSearchProvider; +(function (ThirdPartyWebSearchProvider2) { + ThirdPartyWebSearchProvider2[ + (ThirdPartyWebSearchProvider2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + ThirdPartyWebSearchProvider2[(ThirdPartyWebSearchProvider2['GEMINI'] = 2)] = + 'GEMINI'; +})(ThirdPartyWebSearchProvider || (ThirdPartyWebSearchProvider = {})); +proto3.util.setEnumType( + ThirdPartyWebSearchProvider, + 'exa.codeium_common_pb.ThirdPartyWebSearchProvider', + [ + { no: 0, name: 'THIRD_PARTY_WEB_SEARCH_PROVIDER_UNSPECIFIED' }, + { no: 2, name: 'THIRD_PARTY_WEB_SEARCH_PROVIDER_GEMINI' }, + ], +); +var ThirdPartyWebSearchModel; +(function (ThirdPartyWebSearchModel2) { + ThirdPartyWebSearchModel2[(ThirdPartyWebSearchModel2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + ThirdPartyWebSearchModel2[(ThirdPartyWebSearchModel2['O3'] = 1)] = 'O3'; + ThirdPartyWebSearchModel2[(ThirdPartyWebSearchModel2['GPT_4_1'] = 2)] = + 'GPT_4_1'; + ThirdPartyWebSearchModel2[(ThirdPartyWebSearchModel2['O4_MINI'] = 3)] = + 'O4_MINI'; +})(ThirdPartyWebSearchModel || (ThirdPartyWebSearchModel = {})); +proto3.util.setEnumType( + ThirdPartyWebSearchModel, + 'exa.codeium_common_pb.ThirdPartyWebSearchModel', + [ + { no: 0, name: 'THIRD_PARTY_WEB_SEARCH_MODEL_UNSPECIFIED' }, + { no: 1, name: 'THIRD_PARTY_WEB_SEARCH_MODEL_O3' }, + { no: 2, name: 'THIRD_PARTY_WEB_SEARCH_MODEL_GPT_4_1' }, + { no: 3, name: 'THIRD_PARTY_WEB_SEARCH_MODEL_O4_MINI' }, + ], +); +var WorkingDirectoryStatus; +(function (WorkingDirectoryStatus2) { + WorkingDirectoryStatus2[(WorkingDirectoryStatus2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + WorkingDirectoryStatus2[(WorkingDirectoryStatus2['READY'] = 1)] = 'READY'; + WorkingDirectoryStatus2[(WorkingDirectoryStatus2['LOADING'] = 2)] = 'LOADING'; + WorkingDirectoryStatus2[(WorkingDirectoryStatus2['ERROR'] = 3)] = 'ERROR'; +})(WorkingDirectoryStatus || (WorkingDirectoryStatus = {})); +proto3.util.setEnumType( + WorkingDirectoryStatus, + 'exa.codeium_common_pb.WorkingDirectoryStatus', + [ + { no: 0, name: 'WORKING_DIRECTORY_STATUS_UNSPECIFIED' }, + { no: 1, name: 'WORKING_DIRECTORY_STATUS_READY' }, + { no: 2, name: 'WORKING_DIRECTORY_STATUS_LOADING' }, + { no: 3, name: 'WORKING_DIRECTORY_STATUS_ERROR' }, + ], +); +var ArtifactApprovalStatus; +(function (ArtifactApprovalStatus2) { + ArtifactApprovalStatus2[(ArtifactApprovalStatus2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + ArtifactApprovalStatus2[(ArtifactApprovalStatus2['APPROVED'] = 1)] = + 'APPROVED'; + ArtifactApprovalStatus2[(ArtifactApprovalStatus2['REQUESTED_CHANGES'] = 2)] = + 'REQUESTED_CHANGES'; +})(ArtifactApprovalStatus || (ArtifactApprovalStatus = {})); +proto3.util.setEnumType( + ArtifactApprovalStatus, + 'exa.codeium_common_pb.ArtifactApprovalStatus', + [ + { no: 0, name: 'ARTIFACT_APPROVAL_STATUS_UNSPECIFIED' }, + { no: 1, name: 'ARTIFACT_APPROVAL_STATUS_APPROVED' }, + { no: 2, name: 'ARTIFACT_APPROVAL_STATUS_REQUESTED_CHANGES' }, + ], +); +var ArtifactType; +(function (ArtifactType2) { + ArtifactType2[(ArtifactType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ArtifactType2[(ArtifactType2['IMPLEMENTATION_PLAN'] = 1)] = + 'IMPLEMENTATION_PLAN'; + ArtifactType2[(ArtifactType2['WALKTHROUGH'] = 2)] = 'WALKTHROUGH'; + ArtifactType2[(ArtifactType2['TASK'] = 3)] = 'TASK'; + ArtifactType2[(ArtifactType2['OTHER'] = 4)] = 'OTHER'; +})(ArtifactType || (ArtifactType = {})); +proto3.util.setEnumType(ArtifactType, 'exa.codeium_common_pb.ArtifactType', [ { no: 0, name: 'ARTIFACT_TYPE_UNSPECIFIED' }, { no: 1, name: 'ARTIFACT_TYPE_IMPLEMENTATION_PLAN' }, { no: 2, name: 'ARTIFACT_TYPE_WALKTHROUGH' }, { no: 3, name: 'ARTIFACT_TYPE_TASK' }, { no: 4, name: 'ARTIFACT_TYPE_OTHER' }, ]); -var Qn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.DISABLED = 1)] = 'DISABLED'), - (e[(e.MODEL_DECIDES = 2)] = 'MODEL_DECIDES'), - (e[(e.ENABLED = 3)] = 'ENABLED')); -})(Qn || (Qn = {})); -a.util.setEnumType(Qn, 'exa.codeium_common_pb.BrowserJsAutoRunPolicy', [ - { no: 0, name: 'BROWSER_JS_AUTO_RUN_POLICY_UNSPECIFIED' }, - { no: 1, name: 'BROWSER_JS_AUTO_RUN_POLICY_DISABLED' }, - { no: 2, name: 'BROWSER_JS_AUTO_RUN_POLICY_MODEL_DECIDES' }, - { no: 3, name: 'BROWSER_JS_AUTO_RUN_POLICY_ENABLED' }, -]); -var gm = class e extends r { - configuration; - prompt = ''; - serializedPrompt = ''; - contextPrompt = ''; - uid = ''; - promptElementRanges = []; - promptElementKindInfos = []; - promptLatencyMs = o.zero; - promptStageLatencies = []; - numTokenizedBytes = o.zero; - editorLanguage = ''; - language = O.UNSPECIFIED; - absolutePathUriForTelemetry = ''; - relativePathForTelemetry = ''; - workspaceUriForTelemetry = ''; - experimentFeaturesJson = ''; - experimentVariantJson = ''; - model = f.UNSPECIFIED; - hasLineSuffix = !1; - shouldInlineFim = !1; - repository; - modelTag = ''; - experimentTags = []; - evalSuffix = ''; - promptAnnotationRanges = []; - supportsPackedStreamingCompletionMaps = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'configuration', kind: 'message', T: gt }, - { no: 2, name: 'prompt', kind: 'scalar', T: 9 }, - { no: 26, name: 'serialized_prompt', kind: 'scalar', T: 9 }, - { no: 21, name: 'context_prompt', kind: 'scalar', T: 9 }, - { no: 25, name: 'uid', kind: 'scalar', T: 9 }, - { - no: 8, - name: 'prompt_element_ranges', - kind: 'message', - T: wm, - repeated: !0, - }, - { - no: 9, - name: 'prompt_element_kind_infos', - kind: 'message', - T: Jm, - repeated: !0, - }, - { no: 11, name: 'prompt_latency_ms', kind: 'scalar', T: 4 }, - { - no: 12, - name: 'prompt_stage_latencies', - kind: 'message', - T: xm, - repeated: !0, - }, - { no: 20, name: 'num_tokenized_bytes', kind: 'scalar', T: 4 }, - { no: 3, name: 'editor_language', kind: 'scalar', T: 9 }, - { no: 4, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 5, name: 'absolute_path_uri_for_telemetry', kind: 'scalar', T: 9 }, - { no: 6, name: 'relative_path_for_telemetry', kind: 'scalar', T: 9 }, - { no: 13, name: 'workspace_uri_for_telemetry', kind: 'scalar', T: 9 }, - { no: 7, name: 'experiment_features_json', kind: 'scalar', T: 9 }, - { no: 19, name: 'experiment_variant_json', kind: 'scalar', T: 9 }, - { no: 10, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - { no: 14, name: 'has_line_suffix', kind: 'scalar', T: 8 }, - { no: 15, name: 'should_inline_fim', kind: 'scalar', T: 8 }, - { no: 16, name: 'repository', kind: 'message', T: Bt }, - { no: 17, name: 'model_tag', kind: 'scalar', T: 9 }, - { no: 18, name: 'experiment_tags', kind: 'scalar', T: 9, repeated: !0 }, - { no: 22, name: 'eval_suffix', kind: 'scalar', T: 9 }, - { - no: 23, - name: 'prompt_annotation_ranges', - kind: 'message', - T: wt, - repeated: !0, - }, - { - no: 24, - name: 'supports_packed_streaming_completion_maps', - kind: 'scalar', - T: 8, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gt = class e extends r { - numCompletions = o.zero; - maxTokens = o.zero; - maxNewlines = o.zero; - minLogProbability = 0; - temperature = 0; - firstTemperature = 0; - topK = o.zero; - topP = 0; - stopPatterns = []; - seed = o.zero; - fimEotProbThreshold = 0; - useFimEotThreshold = !1; - doNotScoreStopTokens = !1; - sqrtLenNormalizedLogProbScore = !1; - lastMessageIsPartial = !1; - returnLogprob = !1; - disableParallelToolCalls = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionConfiguration'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'num_completions', kind: 'scalar', T: 4 }, - { no: 2, name: 'max_tokens', kind: 'scalar', T: 4 }, - { no: 3, name: 'max_newlines', kind: 'scalar', T: 4 }, - { no: 4, name: 'min_log_probability', kind: 'scalar', T: 1 }, - { no: 5, name: 'temperature', kind: 'scalar', T: 1 }, - { no: 6, name: 'first_temperature', kind: 'scalar', T: 1 }, - { no: 7, name: 'top_k', kind: 'scalar', T: 4 }, - { no: 8, name: 'top_p', kind: 'scalar', T: 1 }, - { no: 9, name: 'stop_patterns', kind: 'scalar', T: 9, repeated: !0 }, - { no: 10, name: 'seed', kind: 'scalar', T: 4 }, - { no: 11, name: 'fim_eot_prob_threshold', kind: 'scalar', T: 1 }, - { no: 12, name: 'use_fim_eot_threshold', kind: 'scalar', T: 8 }, - { no: 13, name: 'do_not_score_stop_tokens', kind: 'scalar', T: 8 }, - { - no: 14, - name: 'sqrt_len_normalized_log_prob_score', - kind: 'scalar', - T: 8, - }, - { no: 15, name: 'last_message_is_partial', kind: 'scalar', T: 8 }, - { no: 16, name: 'return_logprob', kind: 'scalar', T: 8 }, - { no: 17, name: 'disable_parallel_tool_calls', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wm = class e extends r { - kind = Ln.UNSPECIFIED; - byteOffsetStart = o.zero; - byteOffsetEnd = o.zero; - tokenOffsetStart = o.zero; - tokenOffsetEnd = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PromptElementRange'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'kind', kind: 'enum', T: a.getEnumType(Ln) }, - { no: 2, name: 'byte_offset_start', kind: 'scalar', T: 4 }, - { no: 3, name: 'byte_offset_end', kind: 'scalar', T: 4 }, - { no: 4, name: 'token_offset_start', kind: 'scalar', T: 4 }, - { no: 5, name: 'token_offset_end', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - WT = class e extends r { - cortexPlanId = ''; - codePlanId = ''; - actionIndex = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ActionPointer'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cortex_plan_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'code_plan_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'action_index', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wt = class e extends r { - kind = Me.UNSPECIFIED; - byteOffsetStart = o.zero; - byteOffsetEnd = o.zero; - suffix = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PromptAnnotationRange'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'kind', kind: 'enum', T: a.getEnumType(Me) }, - { no: 2, name: 'byte_offset_start', kind: 'scalar', T: 4 }, - { no: 3, name: 'byte_offset_end', kind: 'scalar', T: 4 }, - { no: 4, name: 'suffix', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wr = class e extends r { - key = B.UNSPECIFIED; - keyString = ''; - disabled = !1; - payload = { case: void 0 }; - source = ye.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ExperimentWithVariant'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'key', kind: 'enum', T: a.getEnumType(B) }, - { no: 5, name: 'key_string', kind: 'scalar', T: 9 }, - { no: 6, name: 'disabled', kind: 'scalar', T: 8 }, - { no: 2, name: 'string', kind: 'scalar', T: 9, oneof: 'payload' }, - { no: 3, name: 'json', kind: 'scalar', T: 9, oneof: 'payload' }, - { no: 4, name: 'csv', kind: 'scalar', T: 9, oneof: 'payload' }, - { no: 7, name: 'source', kind: 'enum', T: a.getEnumType(ye) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zn = class e extends r { - experiments = []; - forceEnableExperiments = []; - forceDisableExperiments = []; - forceEnableExperimentsWithVariants = []; - forceEnableExperimentStrings = []; - forceDisableExperimentStrings = []; - devMode = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ExperimentConfig'; - static fields = a.util.newFieldList(() => [ - { no: 6, name: 'experiments', kind: 'message', T: wr, repeated: !0 }, - { - no: 1, - name: 'force_enable_experiments', - kind: 'enum', - T: a.getEnumType(B), - repeated: !0, - }, - { - no: 2, - name: 'force_disable_experiments', - kind: 'enum', - T: a.getEnumType(B), - repeated: !0, - }, - { - no: 3, - name: 'force_enable_experiments_with_variants', - kind: 'message', - T: wr, - repeated: !0, - }, - { - no: 4, - name: 'force_enable_experiment_strings', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { - no: 5, - name: 'force_disable_experiment_strings', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { no: 7, name: 'dev_mode', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - VT = class e extends r { - sha = ''; - crc32cLinuxX64 = ''; - crc32cLinuxArm = ''; - crc32cMacosX64 = ''; - crc32cMacosArm = ''; - crc32cWindowsX64 = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.codeium_common_pb.ExperimentLanguageServerVersionPayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'sha', kind: 'scalar', T: 9 }, - { no: 2, name: 'crc32c_linux_x64', kind: 'scalar', T: 9 }, - { no: 3, name: 'crc32c_linux_arm', kind: 'scalar', T: 9 }, - { no: 4, name: 'crc32c_macos_x64', kind: 'scalar', T: 9 }, - { no: 5, name: 'crc32c_macos_arm', kind: 'scalar', T: 9 }, - { no: 6, name: 'crc32c_windows_x64', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - XT = class e extends r { - modelName = ''; - contextCheckModelName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ExperimentModelConfigPayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'context_check_model_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - KT = class e extends r { - modeToken = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ExperimentMiddleModeTokenPayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'mode_token', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vT = class e extends r { - threshold = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.codeium_common_pb.ExperimentMultilineModelThresholdPayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'threshold', kind: 'scalar', T: 2 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zT = class e extends r { - sampleRate = 0; - procedureToSampleRate = {}; - errorMatchToSampleRate = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ExperimentSentryPayload'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'sample_rate', kind: 'scalar', T: 1 }, - { - no: 3, - name: 'procedure_to_sample_rate', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 1 }, - }, - { - no: 5, - name: 'error_match_to_sample_rate', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 1 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jT = class e extends r { - teamId = ''; - cascadeModelLabels = []; - commandModelLabels = []; - createdAt; - updatedAt; - extensionModelLabels = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TeamOrganizationalControls'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'team_id', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'cascade_model_labels', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { - no: 3, - name: 'command_model_labels', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { no: 4, name: 'created_at', kind: 'message', T: _ }, - { no: 5, name: 'updated_at', kind: 'message', T: _ }, - { - no: 6, - name: 'extension_model_labels', - kind: 'scalar', - T: 9, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - QT = class e extends r { - memoryUsageToSampleRate = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.codeium_common_pb.ExperimentProfilingTelemetrySampleRatePayload'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'memory_usage_to_sample_rate', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 1 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nn = class e extends r { - choice = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ModelOrAlias'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'model', - kind: 'enum', - T: a.getEnumType(f), - oneof: 'choice', - }, - { - no: 2, - name: 'alias', - kind: 'enum', - T: a.getEnumType(Rr), - oneof: 'choice', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jm = class e extends r { - kind = Ln.UNSPECIFIED; - experimentKey = B.UNSPECIFIED; - enabled = !1; - numConsidered = o.zero; - numIncluded = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PromptElementKindInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'kind', kind: 'enum', T: a.getEnumType(Ln) }, - { no: 2, name: 'experiment_key', kind: 'enum', T: a.getEnumType(B) }, - { no: 3, name: 'enabled', kind: 'scalar', T: 8 }, - { no: 4, name: 'num_considered', kind: 'scalar', T: 4 }, - { no: 5, name: 'num_included', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ZT = class e extends r { - included = !1; - exclusionReason = he.EXCLUSION_UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PromptElementInclusionMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'included', kind: 'scalar', T: 8 }, - { no: 2, name: 'exclusion_reason', kind: 'enum', T: a.getEnumType(he) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xm = class e extends r { - name = ''; - latencyMs = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PromptStageLatency'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'latency_ms', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $T = class e extends r { - completions = []; - maxTokens = o.zero; - temperature = 0; - topK = o.zero; - topP = 0; - stopPatterns = []; - promptLength = o.zero; - promptId = ''; - modelTag = ''; - completionProfile; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'completions', kind: 'message', T: Jt, repeated: !0 }, - { no: 2, name: 'max_tokens', kind: 'scalar', T: 4 }, - { no: 3, name: 'temperature', kind: 'scalar', T: 1 }, - { no: 4, name: 'top_k', kind: 'scalar', T: 4 }, - { no: 5, name: 'top_p', kind: 'scalar', T: 1 }, - { no: 6, name: 'stop_patterns', kind: 'scalar', T: 9, repeated: !0 }, - { no: 7, name: 'prompt_length', kind: 'scalar', T: 4 }, - { no: 8, name: 'prompt_id', kind: 'scalar', T: 9 }, - { no: 10, name: 'model_tag', kind: 'scalar', T: 9 }, - { no: 11, name: 'completion_profile', kind: 'message', T: xt, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jt = class e extends r { - completionId = ''; - text = ''; - stop = ''; - score = 0; - tokens = []; - decodedTokens = []; - probabilities = []; - adjustedProbabilities = []; - logprobs = []; - generatedLength = o.zero; - stopReason = F.UNSPECIFIED; - filterReasons = []; - originalText = ''; - toolCalls = []; - traceId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Completion'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'completion_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'text', kind: 'scalar', T: 9 }, - { no: 4, name: 'stop', kind: 'scalar', T: 9 }, - { no: 5, name: 'score', kind: 'scalar', T: 1 }, - { no: 6, name: 'tokens', kind: 'scalar', T: 4, repeated: !0 }, - { no: 7, name: 'decoded_tokens', kind: 'scalar', T: 9, repeated: !0 }, - { no: 8, name: 'probabilities', kind: 'scalar', T: 1, repeated: !0 }, - { - no: 9, - name: 'adjusted_probabilities', +var BrowserJsAutoRunPolicy; +(function (BrowserJsAutoRunPolicy2) { + BrowserJsAutoRunPolicy2[(BrowserJsAutoRunPolicy2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + BrowserJsAutoRunPolicy2[(BrowserJsAutoRunPolicy2['DISABLED'] = 1)] = + 'DISABLED'; + BrowserJsAutoRunPolicy2[(BrowserJsAutoRunPolicy2['MODEL_DECIDES'] = 2)] = + 'MODEL_DECIDES'; + BrowserJsAutoRunPolicy2[(BrowserJsAutoRunPolicy2['ENABLED'] = 3)] = 'ENABLED'; +})(BrowserJsAutoRunPolicy || (BrowserJsAutoRunPolicy = {})); +proto3.util.setEnumType( + BrowserJsAutoRunPolicy, + 'exa.codeium_common_pb.BrowserJsAutoRunPolicy', + [ + { no: 0, name: 'BROWSER_JS_AUTO_RUN_POLICY_UNSPECIFIED' }, + { no: 1, name: 'BROWSER_JS_AUTO_RUN_POLICY_DISABLED' }, + { no: 2, name: 'BROWSER_JS_AUTO_RUN_POLICY_MODEL_DECIDES' }, + { no: 3, name: 'BROWSER_JS_AUTO_RUN_POLICY_ENABLED' }, + ], +); +var CompletionsRequest = class _CompletionsRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.CompletionConfiguration configuration = 1; + */ + configuration; + /** + * @generated from field: string prompt = 2; + */ + prompt = ''; + /** + * @generated from field: string serialized_prompt = 26; + */ + serializedPrompt = ''; + /** + * @generated from field: string context_prompt = 21; + */ + contextPrompt = ''; + /** + * Uid is set by the API server. It is used for prompt cache sticky load + * balancing and management of prompt cache lookups / evictions. + * + * @generated from field: string uid = 25; + */ + uid = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.PromptElementRange prompt_element_ranges = 8; + */ + promptElementRanges = []; + /** + * @generated from field: repeated exa.codeium_common_pb.PromptElementKindInfo prompt_element_kind_infos = 9; + */ + promptElementKindInfos = []; + /** + * Prompt generation latency. + * + * @generated from field: uint64 prompt_latency_ms = 11; + */ + promptLatencyMs = protoInt64.zero; + /** + * Latencies for stages of prompt creation (included in prompt_latency_ms). + * + * @generated from field: repeated exa.codeium_common_pb.PromptStageLatency prompt_stage_latencies = 12; + */ + promptStageLatencies = []; + /** + * @generated from field: uint64 num_tokenized_bytes = 20; + */ + numTokenizedBytes = protoInt64.zero; + /** + * @generated from field: string editor_language = 3; + */ + editorLanguage = ''; + /** + * @generated from field: exa.codeium_common_pb.Language language = 4; + */ + language = Language.UNSPECIFIED; + /** + * This used to be an absolute path but is now a URI. + * + * @generated from field: string absolute_path_uri_for_telemetry = 5; + */ + absolutePathUriForTelemetry = ''; + /** + * @generated from field: string relative_path_for_telemetry = 6; + */ + relativePathForTelemetry = ''; + /** + * This used to be an absolute path but is now a URI. + * + * @generated from field: string workspace_uri_for_telemetry = 13; + */ + workspaceUriForTelemetry = ''; + /** + * @generated from field: string experiment_features_json = 7; + */ + experimentFeaturesJson = ''; + /** + * @generated from field: string experiment_variant_json = 19; + */ + experimentVariantJson = ''; + /** + * @generated from field: exa.codeium_common_pb.Model model = 10; + */ + model = Model.UNSPECIFIED; + /** + * @generated from field: bool has_line_suffix = 14; + */ + hasLineSuffix = false; + /** + * @generated from field: bool should_inline_fim = 15; + */ + shouldInlineFim = false; + /** + * @generated from field: exa.codeium_common_pb.Repository repository = 16; + */ + repository; + /** + * Model tag, which will determine which LoRA parameters we use for inference. + * All valid model tags must be nonempty strings (otherwise they will be + * ignored and no LoRA parameters will be used). + * + * @generated from field: string model_tag = 17; + */ + modelTag = ''; + /** + * Free-form string tags for tagging experiments. There may be situations in + * which an experiment is "on", but the prerequisite for it has not been met, + * in which case this field may be of use. + * + * @generated from field: repeated string experiment_tags = 18; + */ + experimentTags = []; + /** + * Evaluation suffix. If specified, the CompletionsResponse will return + * a set of logits corresponding to this eval suffix. Used for lm-eval. + * + * @generated from field: string eval_suffix = 22; + */ + evalSuffix = ''; + /** + * Prompt annotated ranges used for inference. + * + * @generated from field: repeated exa.codeium_common_pb.PromptAnnotationRange prompt_annotation_ranges = 23; + */ + promptAnnotationRanges = []; + /** + * Whether the client supports PackedStreamingCompletionMaps. This should be + * true for updated language servers. + * + * @generated from field: bool supports_packed_streaming_completion_maps = 24; + */ + supportsPackedStreamingCompletionMaps = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionsRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'configuration', + kind: 'message', + T: CompletionConfiguration, + }, + { + no: 2, + name: 'prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 26, + name: 'serialized_prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 21, + name: 'context_prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 25, + name: 'uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'prompt_element_ranges', + kind: 'message', + T: PromptElementRange, + repeated: true, + }, + { + no: 9, + name: 'prompt_element_kind_infos', + kind: 'message', + T: PromptElementKindInfo, + repeated: true, + }, + { + no: 11, + name: 'prompt_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 12, + name: 'prompt_stage_latencies', + kind: 'message', + T: PromptStageLatency, + repeated: true, + }, + { + no: 20, + name: 'num_tokenized_bytes', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'editor_language', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 5, + name: 'absolute_path_uri_for_telemetry', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'relative_path_for_telemetry', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 13, + name: 'workspace_uri_for_telemetry', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'experiment_features_json', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 19, + name: 'experiment_variant_json', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 10, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 14, + name: 'has_line_suffix', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 15, + name: 'should_inline_fim', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 16, name: 'repository', kind: 'message', T: Repository }, + { + no: 17, + name: 'model_tag', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 18, name: 'experiment_tags', kind: 'scalar', T: 9, repeated: true }, + { + no: 22, + name: 'eval_suffix', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 23, + name: 'prompt_annotation_ranges', + kind: 'message', + T: PromptAnnotationRange, + repeated: true, + }, + { + no: 24, + name: 'supports_packed_streaming_completion_maps', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionsRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionsRequest, a, b); + } +}; +var CompletionConfiguration = class _CompletionConfiguration extends Message { + /** + * @generated from field: uint64 num_completions = 1; + */ + numCompletions = protoInt64.zero; + /** + * @generated from field: uint64 max_tokens = 2; + */ + maxTokens = protoInt64.zero; + /** + * @generated from field: uint64 max_newlines = 3; + */ + maxNewlines = protoInt64.zero; + /** + * @generated from field: double min_log_probability = 4; + */ + minLogProbability = 0; + /** + * @generated from field: double temperature = 5; + */ + temperature = 0; + /** + * @generated from field: double first_temperature = 6; + */ + firstTemperature = 0; + /** + * @generated from field: uint64 top_k = 7; + */ + topK = protoInt64.zero; + /** + * @generated from field: double top_p = 8; + */ + topP = 0; + /** + * @generated from field: repeated string stop_patterns = 9; + */ + stopPatterns = []; + /** + * @generated from field: uint64 seed = 10; + */ + seed = protoInt64.zero; + /** + * @generated from field: double fim_eot_prob_threshold = 11; + */ + fimEotProbThreshold = 0; + /** + * Whether we use the EOT threshold for FIM generations. + * + * @generated from field: bool use_fim_eot_threshold = 12; + */ + useFimEotThreshold = false; + /** + * If true, do not include stop token log probs in the scores. + * + * @generated from field: bool do_not_score_stop_tokens = 13; + */ + doNotScoreStopTokens = false; + /** + * If true, scores = sum(log probs) / sqrt(completion len) + * + * @generated from field: bool sqrt_len_normalized_log_prob_score = 14; + */ + sqrtLenNormalizedLogProbScore = false; + /** + * For internal chat completions, whether the last chat message is a partial + * message that should be completed, or whether we should start a new message. + * + * @generated from field: bool last_message_is_partial = 15; + */ + lastMessageIsPartial = false; + /** + * Whether to return log probabilities for each token in the completion. + * + * @generated from field: bool return_logprob = 16; + */ + returnLogprob = false; + /** + * @generated from field: bool disable_parallel_tool_calls = 17; + */ + disableParallelToolCalls = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionConfiguration'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'num_completions', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'max_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'max_newlines', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'min_log_probability', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 5, + name: 'temperature', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 6, + name: 'first_temperature', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 7, + name: 'top_k', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 8, + name: 'top_p', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { no: 9, name: 'stop_patterns', kind: 'scalar', T: 9, repeated: true }, + { + no: 10, + name: 'seed', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 11, + name: 'fim_eot_prob_threshold', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 12, + name: 'use_fim_eot_threshold', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 13, + name: 'do_not_score_stop_tokens', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'sqrt_len_normalized_log_prob_score', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 15, + name: 'last_message_is_partial', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 16, + name: 'return_logprob', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 17, + name: 'disable_parallel_tool_calls', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionConfiguration().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionConfiguration().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionConfiguration().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionConfiguration, a, b); + } +}; +var PromptElementRange = class _PromptElementRange extends Message { + /** + * @generated from field: exa.codeium_common_pb.PromptElementKind kind = 1; + */ + kind = PromptElementKind.UNSPECIFIED; + /** + * @generated from field: uint64 byte_offset_start = 2; + */ + byteOffsetStart = protoInt64.zero; + /** + * exclusive + * + * @generated from field: uint64 byte_offset_end = 3; + */ + byteOffsetEnd = protoInt64.zero; + /** + * @generated from field: uint64 token_offset_start = 4; + */ + tokenOffsetStart = protoInt64.zero; + /** + * exclusive + * + * @generated from field: uint64 token_offset_end = 5; + */ + tokenOffsetEnd = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PromptElementRange'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'kind', + kind: 'enum', + T: proto3.getEnumType(PromptElementKind), + }, + { + no: 2, + name: 'byte_offset_start', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'byte_offset_end', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'token_offset_start', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 5, + name: 'token_offset_end', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _PromptElementRange().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptElementRange().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptElementRange().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptElementRange, a, b); + } +}; +var ActionPointer = class _ActionPointer extends Message { + /** + * @generated from field: string cortex_plan_id = 1; + */ + cortexPlanId = ''; + /** + * @generated from field: string code_plan_id = 2; + */ + codePlanId = ''; + /** + * -1 is for the latest action in the plan. + * + * @generated from field: int32 action_index = 3; + */ + actionIndex = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ActionPointer'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cortex_plan_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'code_plan_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'action_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ActionPointer().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionPointer().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionPointer().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionPointer, a, b); + } +}; +var PromptAnnotationRange = class _PromptAnnotationRange extends Message { + /** + * @generated from field: exa.codeium_common_pb.PromptAnnotationKind kind = 1; + */ + kind = PromptAnnotationKind.UNSPECIFIED; + /** + * @generated from field: uint64 byte_offset_start = 2; + */ + byteOffsetStart = protoInt64.zero; + /** + * exclusive + * + * @generated from field: uint64 byte_offset_end = 3; + */ + byteOffsetEnd = protoInt64.zero; + /** + * Additional string to be used with speculative copy. + * + * @generated from field: string suffix = 4; + */ + suffix = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PromptAnnotationRange'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'kind', + kind: 'enum', + T: proto3.getEnumType(PromptAnnotationKind), + }, + { + no: 2, + name: 'byte_offset_start', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'byte_offset_end', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'suffix', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _PromptAnnotationRange().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptAnnotationRange().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptAnnotationRange().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptAnnotationRange, a, b); + } +}; +var ExperimentWithVariant = class _ExperimentWithVariant extends Message { + /** + * Optionally set if the key_string is in the set of ExperimentKey enums the + * client knows about. + * + * @generated from field: exa.codeium_common_pb.ExperimentKey key = 1 [deprecated = true]; + * @deprecated + */ + key = ExperimentKey.UNSPECIFIED; + /** + * For new clients, this is required. + * + * @generated from field: string key_string = 5; + */ + keyString = ''; + /** + * @generated from field: bool disabled = 6; + */ + disabled = false; + /** + * If there is no variant, payload is not set. + * + * @generated from oneof exa.codeium_common_pb.ExperimentWithVariant.payload + */ + payload = { case: void 0 }; + /** + * The part of the stack where the experiment was resolved. + * + * @generated from field: exa.codeium_common_pb.ExperimentSource source = 7; + */ + source = ExperimentSource.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ExperimentWithVariant'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'key', kind: 'enum', T: proto3.getEnumType(ExperimentKey) }, + { + no: 5, + name: 'key_string', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'disabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 2, name: 'string', kind: 'scalar', T: 9, oneof: 'payload' }, + { no: 3, name: 'json', kind: 'scalar', T: 9, oneof: 'payload' }, + { no: 4, name: 'csv', kind: 'scalar', T: 9, oneof: 'payload' }, + { + no: 7, + name: 'source', + kind: 'enum', + T: proto3.getEnumType(ExperimentSource), + }, + ]); + static fromBinary(bytes, options) { + return new _ExperimentWithVariant().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ExperimentWithVariant().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ExperimentWithVariant().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ExperimentWithVariant, a, b); + } +}; +var ExperimentConfig = class _ExperimentConfig extends Message { + /** + * All experiments. + * + * @generated from field: repeated exa.codeium_common_pb.ExperimentWithVariant experiments = 6; + */ + experiments = []; + /** + * TODO(prem): Add back "[(buf.validate.field).repeated.unique = true]" after + * https://github.com/bufbuild/protovalidate-go/issues/87 is resolved. + * + * @generated from field: repeated exa.codeium_common_pb.ExperimentKey force_enable_experiments = 1; + */ + forceEnableExperiments = []; + /** + * @generated from field: repeated exa.codeium_common_pb.ExperimentKey force_disable_experiments = 2; + */ + forceDisableExperiments = []; + /** + * @generated from field: repeated exa.codeium_common_pb.ExperimentWithVariant force_enable_experiments_with_variants = 3; + */ + forceEnableExperimentsWithVariants = []; + /** + * Experiment keys are parsed by the extension. However, there are cases when + * the language server may expect experiment keys not known to the compiled + * version of the extension. In these cases, we can attempt to parse the + * strings directly. This will be best-effort and unioned with the keys in the + * previous fields. + * + * @generated from field: repeated string force_enable_experiment_strings = 4; + */ + forceEnableExperimentStrings = []; + /** + * @generated from field: repeated string force_disable_experiment_strings = 5; + */ + forceDisableExperimentStrings = []; + /** + * @generated from field: bool dev_mode = 7; + */ + devMode = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ExperimentConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 6, + name: 'experiments', + kind: 'message', + T: ExperimentWithVariant, + repeated: true, + }, + { + no: 1, + name: 'force_enable_experiments', + kind: 'enum', + T: proto3.getEnumType(ExperimentKey), + repeated: true, + }, + { + no: 2, + name: 'force_disable_experiments', + kind: 'enum', + T: proto3.getEnumType(ExperimentKey), + repeated: true, + }, + { + no: 3, + name: 'force_enable_experiments_with_variants', + kind: 'message', + T: ExperimentWithVariant, + repeated: true, + }, + { + no: 4, + name: 'force_enable_experiment_strings', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 5, + name: 'force_disable_experiment_strings', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 7, + name: 'dev_mode', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ExperimentConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ExperimentConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ExperimentConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ExperimentConfig, a, b); + } +}; +var ExperimentLanguageServerVersionPayload = class _ExperimentLanguageServerVersionPayload extends Message { + /** + * @generated from field: string sha = 1; + */ + sha = ''; + /** + * @generated from field: string crc32c_linux_x64 = 2; + */ + crc32cLinuxX64 = ''; + /** + * @generated from field: string crc32c_linux_arm = 3; + */ + crc32cLinuxArm = ''; + /** + * @generated from field: string crc32c_macos_x64 = 4; + */ + crc32cMacosX64 = ''; + /** + * @generated from field: string crc32c_macos_arm = 5; + */ + crc32cMacosArm = ''; + /** + * @generated from field: string crc32c_windows_x64 = 6; + */ + crc32cWindowsX64 = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.codeium_common_pb.ExperimentLanguageServerVersionPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'sha', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'crc32c_linux_x64', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'crc32c_linux_arm', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'crc32c_macos_x64', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'crc32c_macos_arm', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'crc32c_windows_x64', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ExperimentLanguageServerVersionPayload().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _ExperimentLanguageServerVersionPayload().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _ExperimentLanguageServerVersionPayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ExperimentLanguageServerVersionPayload, a, b); + } +}; +var ExperimentModelConfigPayload = class _ExperimentModelConfigPayload extends Message { + /** + * Generation model. + * + * @generated from field: string model_name = 1; + */ + modelName = ''; + /** + * Context check model. + * + * @generated from field: string context_check_model_name = 2; + */ + contextCheckModelName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ExperimentModelConfigPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'context_check_model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ExperimentModelConfigPayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ExperimentModelConfigPayload().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ExperimentModelConfigPayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ExperimentModelConfigPayload, a, b); + } +}; +var ExperimentMiddleModeTokenPayload = class _ExperimentMiddleModeTokenPayload extends Message { + /** + * Mode token. + * + * @generated from field: string mode_token = 1; + */ + modeToken = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ExperimentMiddleModeTokenPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'mode_token', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ExperimentMiddleModeTokenPayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ExperimentMiddleModeTokenPayload().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ExperimentMiddleModeTokenPayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ExperimentMiddleModeTokenPayload, a, b); + } +}; +var ExperimentMultilineModelThresholdPayload = class _ExperimentMultilineModelThresholdPayload extends Message { + /** + * Multiline model threshold. + * + * @generated from field: float threshold = 1; + */ + threshold = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.codeium_common_pb.ExperimentMultilineModelThresholdPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'threshold', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + ]); + static fromBinary(bytes, options) { + return new _ExperimentMultilineModelThresholdPayload().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _ExperimentMultilineModelThresholdPayload().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _ExperimentMultilineModelThresholdPayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ExperimentMultilineModelThresholdPayload, a, b); + } +}; +var ExperimentSentryPayload = class _ExperimentSentryPayload extends Message { + /** + * Sample rate for errors. Used if there is no procedure-specific rate/ignore + * string-specific rate. + * + * @generated from field: double sample_rate = 2; + */ + sampleRate = 0; + /** + * Sample rate for errors with a matching procedure. Used if there is no + * ignore string-specific rate. + * + * @generated from field: map procedure_to_sample_rate = 3; + */ + procedureToSampleRate = {}; + /** + * Sample rate for errors with a matching ignore string. + * + * @generated from field: map error_match_to_sample_rate = 5; + */ + errorMatchToSampleRate = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ExperimentSentryPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'sample_rate', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 3, + name: 'procedure_to_sample_rate', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 1, - repeated: !0, + /* ScalarType.DOUBLE */ }, - { no: 16, name: 'logprobs', kind: 'scalar', T: 1, repeated: !0 }, - { no: 10, name: 'generated_length', kind: 'scalar', T: 4 }, - { no: 12, name: 'stop_reason', kind: 'enum', T: a.getEnumType(F) }, - { - no: 13, - name: 'filter_reasons', - kind: 'enum', - T: a.getEnumType(Lr), - repeated: !0, - }, - { no: 14, name: 'original_text', kind: 'scalar', T: 9 }, - { no: 15, name: 'tool_calls', kind: 'message', T: x, repeated: !0 }, - { no: 17, name: 'trace_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Um = class e extends r { - completionIds = []; - maxTokens = o.zero; - temperature = 0; - topK = o.zero; - topP = 0; - stopPatterns = []; - promptLength = o.zero; - promptId = ''; - modelTag = ''; - completionsRequest; - evalSuffixInfo; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.StreamingCompletionInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'completion_ids', kind: 'scalar', T: 9, repeated: !0 }, - { no: 2, name: 'max_tokens', kind: 'scalar', T: 4 }, - { no: 3, name: 'temperature', kind: 'scalar', T: 1 }, - { no: 4, name: 'top_k', kind: 'scalar', T: 4 }, - { no: 5, name: 'top_p', kind: 'scalar', T: 1 }, - { no: 6, name: 'stop_patterns', kind: 'scalar', T: 9, repeated: !0 }, - { no: 7, name: 'prompt_length', kind: 'scalar', T: 4 }, - { no: 9, name: 'prompt_id', kind: 'scalar', T: 9 }, - { no: 8, name: 'model_tag', kind: 'scalar', T: 9 }, - { no: 10, name: 'completions_request', kind: 'message', T: gm }, - { no: 11, name: 'eval_suffix_info', kind: 'message', T: Mm }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jr = class e extends r { - totalPrefillPassTime = 0; - avgPrefillPassTime = 0; - numPrefillPasses = o.zero; - totalSpecCopyPassTime = 0; - avgSpecCopyPassTime = 0; - numSpecCopyPasses = o.zero; - totalGenerationPassTime = 0; - avgGenerationPassTime = 0; - numGenerationPasses = o.zero; - totalModelTime = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.SingleModelCompletionProfile'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'total_prefill_pass_time', kind: 'scalar', T: 1 }, - { no: 2, name: 'avg_prefill_pass_time', kind: 'scalar', T: 1 }, - { no: 3, name: 'num_prefill_passes', kind: 'scalar', T: 4 }, - { no: 7, name: 'total_spec_copy_pass_time', kind: 'scalar', T: 1 }, - { no: 8, name: 'avg_spec_copy_pass_time', kind: 'scalar', T: 1 }, - { no: 9, name: 'num_spec_copy_passes', kind: 'scalar', T: 4 }, - { no: 4, name: 'total_generation_pass_time', kind: 'scalar', T: 1 }, - { no: 5, name: 'avg_generation_pass_time', kind: 'scalar', T: 1 }, - { no: 6, name: 'num_generation_passes', kind: 'scalar', T: 4 }, - { no: 10, name: 'total_model_time', kind: 'scalar', T: 1 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xt = class e extends r { - modelProfile; - draftModelProfile; - timeToFirstPrefillPass = 0; - timeToFirstToken = 0; - totalCompletionTime = 0; - modelUsage; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionProfile'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model_profile', kind: 'message', T: Jr }, - { no: 2, name: 'draft_model_profile', kind: 'message', T: Jr, opt: !0 }, - { no: 3, name: 'time_to_first_prefill_pass', kind: 'scalar', T: 1 }, - { no: 4, name: 'time_to_first_token', kind: 'scalar', T: 1 }, - { no: 5, name: 'total_completion_time', kind: 'scalar', T: 1 }, - { no: 6, name: 'model_usage', kind: 'message', T: fn, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bm = class e extends r { - decodedToken = new Uint8Array(0); - token = o.zero; - probability = 0; - adjustedProbability = 0; - logprob = 0; - completionFinished = !1; - stop = ''; - stopReason = F.UNSPECIFIED; - attributionStatuses = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.StreamingCompletion'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'decoded_token', kind: 'scalar', T: 12 }, - { no: 2, name: 'token', kind: 'scalar', T: 4 }, - { no: 3, name: 'probability', kind: 'scalar', T: 1 }, - { no: 4, name: 'adjusted_probability', kind: 'scalar', T: 1 }, - { no: 9, name: 'logprob', kind: 'scalar', T: 1 }, - { no: 5, name: 'completion_finished', kind: 'scalar', T: 8 }, - { no: 6, name: 'stop', kind: 'scalar', T: 9 }, - { no: 7, name: 'stop_reason', kind: 'enum', T: a.getEnumType(F) }, - { - no: 8, - name: 'attribution_statuses', - kind: 'map', - K: 13, - V: { kind: 'enum', T: a.getEnumType(Pr) }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xr = class e extends r { - completions = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.StreamingCompletionMap'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'completions', - kind: 'map', - K: 5, - V: { kind: 'message', T: Bm }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fm = class e extends r { - completionMaps = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PackedStreamingCompletionMaps'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'completion_maps', kind: 'message', T: xr, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mm = class e extends r { - perTokenLogLikelihoods = []; - isGreedy = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.StreamingEvalSuffixInfo'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'per_token_log_likelihoods', + }, + { + no: 5, + name: 'error_match_to_sample_rate', + kind: 'map', + K: 9, + V: { kind: 'scalar', - T: 2, - repeated: !0, + T: 1, + /* ScalarType.DOUBLE */ }, - { no: 2, name: 'is_greedy', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nf = class e extends r { - payload = { case: void 0 }; - completionProfile; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.StreamingCompletionResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'completion_info', - kind: 'message', - T: Um, - oneof: 'payload', + }, + ]); + static fromBinary(bytes, options) { + return new _ExperimentSentryPayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ExperimentSentryPayload().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ExperimentSentryPayload().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ExperimentSentryPayload, a, b); + } +}; +var TeamOrganizationalControls = class _TeamOrganizationalControls extends Message { + /** + * @generated from field: string team_id = 1; + */ + teamId = ''; + /** + * List of model labels like "Claude 3.5 Sonnet" that can be used by + * + * @generated from field: repeated string cascade_model_labels = 2; + */ + cascadeModelLabels = []; + /** + * Cascade. + * + * List of model labels like "Claude 3.5 Sonnet" that can be used by + * + * @generated from field: repeated string command_model_labels = 3; + */ + commandModelLabels = []; + /** + * Command. + * + * @generated from field: google.protobuf.Timestamp created_at = 4; + */ + createdAt; + /** + * @generated from field: google.protobuf.Timestamp updated_at = 5; + */ + updatedAt; + /** + * List of model labels like "Claude 3.5 Sonnet" that can be used by + * + * @generated from field: repeated string extension_model_labels = 6; + */ + extensionModelLabels = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TeamOrganizationalControls'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'cascade_model_labels', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 3, + name: 'command_model_labels', + kind: 'scalar', + T: 9, + repeated: true, + }, + { no: 4, name: 'created_at', kind: 'message', T: Timestamp }, + { no: 5, name: 'updated_at', kind: 'message', T: Timestamp }, + { + no: 6, + name: 'extension_model_labels', + kind: 'scalar', + T: 9, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _TeamOrganizationalControls().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TeamOrganizationalControls().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TeamOrganizationalControls().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_TeamOrganizationalControls, a, b); + } +}; +var ExperimentProfilingTelemetrySampleRatePayload = class _ExperimentProfilingTelemetrySampleRatePayload extends Message { + /** + * Sample rate for profiling telemetry by memory usage. + * + * @generated from field: map memory_usage_to_sample_rate = 1; + */ + memoryUsageToSampleRate = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.codeium_common_pb.ExperimentProfilingTelemetrySampleRatePayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'memory_usage_to_sample_rate', + kind: 'map', + K: 9, + V: { + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ }, - { - no: 2, - name: 'completion_map', - kind: 'message', - T: xr, - oneof: 'payload', + }, + ]); + static fromBinary(bytes, options) { + return new _ExperimentProfilingTelemetrySampleRatePayload().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _ExperimentProfilingTelemetrySampleRatePayload().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _ExperimentProfilingTelemetrySampleRatePayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _ExperimentProfilingTelemetrySampleRatePayload, + a, + b, + ); + } +}; +var ModelOrAlias = class _ModelOrAlias extends Message { + /** + * @generated from oneof exa.codeium_common_pb.ModelOrAlias.choice + */ + choice = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ModelOrAlias'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'model', + kind: 'enum', + T: proto3.getEnumType(Model), + oneof: 'choice', + }, + { + no: 2, + name: 'alias', + kind: 'enum', + T: proto3.getEnumType(ModelAlias), + oneof: 'choice', + }, + ]); + static fromBinary(bytes, options) { + return new _ModelOrAlias().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelOrAlias().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelOrAlias().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelOrAlias, a, b); + } +}; +var PromptElementKindInfo = class _PromptElementKindInfo extends Message { + /** + * @generated from field: exa.codeium_common_pb.PromptElementKind kind = 1; + */ + kind = PromptElementKind.UNSPECIFIED; + /** + * The key for the associated experiment if it exists. + * + * @generated from field: exa.codeium_common_pb.ExperimentKey experiment_key = 2; + */ + experimentKey = ExperimentKey.UNSPECIFIED; + /** + * Whether the experiment is enabled (should be true if no associated + * experiment). + * + * @generated from field: bool enabled = 3; + */ + enabled = false; + /** + * The number of elements of this kind considered when constructing the + * prompt. If the experiment is disabled, this will be the number considered + * as if the experiment were enabled. + * + * @generated from field: uint64 num_considered = 4; + */ + numConsidered = protoInt64.zero; + /** + * The number of elements of this kind included when constructing the prompt. + * If the experiment is disabled, this will be the number included as if the + * experiment were enabled. + * + * @generated from field: uint64 num_included = 5; + */ + numIncluded = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PromptElementKindInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'kind', + kind: 'enum', + T: proto3.getEnumType(PromptElementKind), + }, + { + no: 2, + name: 'experiment_key', + kind: 'enum', + T: proto3.getEnumType(ExperimentKey), + }, + { + no: 3, + name: 'enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'num_considered', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 5, + name: 'num_included', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _PromptElementKindInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptElementKindInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptElementKindInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptElementKindInfo, a, b); + } +}; +var PromptElementInclusionMetadata = class _PromptElementInclusionMetadata extends Message { + /** + * Whether prompt item was included in the prompt. + * + * @generated from field: bool included = 1; + */ + included = false; + /** + * Only populated if not `included`. + * + * @generated from field: exa.codeium_common_pb.PromptElementExclusionReason exclusion_reason = 2; + */ + exclusionReason = PromptElementExclusionReason.EXCLUSION_UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PromptElementInclusionMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'included', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'exclusion_reason', + kind: 'enum', + T: proto3.getEnumType(PromptElementExclusionReason), + }, + ]); + static fromBinary(bytes, options) { + return new _PromptElementInclusionMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptElementInclusionMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptElementInclusionMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_PromptElementInclusionMetadata, a, b); + } +}; +var PromptStageLatency = class _PromptStageLatency extends Message { + /** + * @generated from field: string name = 1; + */ + name = ''; + /** + * @generated from field: uint64 latency_ms = 2; + */ + latencyMs = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PromptStageLatency'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _PromptStageLatency().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptStageLatency().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptStageLatency().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptStageLatency, a, b); + } +}; +var CompletionResponse = class _CompletionResponse extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.Completion completions = 1; + */ + completions = []; + /** + * @generated from field: uint64 max_tokens = 2; + */ + maxTokens = protoInt64.zero; + /** + * @generated from field: double temperature = 3; + */ + temperature = 0; + /** + * @generated from field: uint64 top_k = 4; + */ + topK = protoInt64.zero; + /** + * @generated from field: double top_p = 5; + */ + topP = 0; + /** + * @generated from field: repeated string stop_patterns = 6; + */ + stopPatterns = []; + /** + * @generated from field: uint64 prompt_length = 7; + */ + promptLength = protoInt64.zero; + /** + * Populated by the API server. + * + * @generated from field: string prompt_id = 8; + */ + promptId = ''; + /** + * @generated from field: string model_tag = 10; + */ + modelTag = ''; + /** + * @generated from field: optional exa.codeium_common_pb.CompletionProfile completion_profile = 11; + */ + completionProfile; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'completions', + kind: 'message', + T: Completion, + repeated: true, + }, + { + no: 2, + name: 'max_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'temperature', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 4, + name: 'top_k', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 5, + name: 'top_p', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { no: 6, name: 'stop_patterns', kind: 'scalar', T: 9, repeated: true }, + { + no: 7, + name: 'prompt_length', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 8, + name: 'prompt_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'model_tag', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 11, + name: 'completion_profile', + kind: 'message', + T: CompletionProfile, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionResponse, a, b); + } +}; +var Completion = class _Completion extends Message { + /** + * @generated from field: string completion_id = 1; + */ + completionId = ''; + /** + * @generated from field: string text = 2; + */ + text = ''; + /** + * @generated from field: string stop = 4; + */ + stop = ''; + /** + * Populated / overwritten on the language server, derived from probabilities. + * + * @generated from field: double score = 5; + */ + score = 0; + /** + * @generated from field: repeated uint64 tokens = 6; + */ + tokens = []; + /** + * @generated from field: repeated string decoded_tokens = 7; + */ + decodedTokens = []; + /** + * @generated from field: repeated double probabilities = 8; + */ + probabilities = []; + /** + * @generated from field: repeated double adjusted_probabilities = 9; + */ + adjustedProbabilities = []; + /** + * @generated from field: repeated double logprobs = 16; + */ + logprobs = []; + /** + * @generated from field: uint64 generated_length = 10; + */ + generatedLength = protoInt64.zero; + /** + * Reason that the completion was stopped. Can be populated by the inference + * server or the language server. + * + * @generated from field: exa.codeium_common_pb.StopReason stop_reason = 12; + */ + stopReason = StopReason.UNSPECIFIED; + /** + * Reasons that the completion was filtered (if filtered). Will be populated + * by the language server. + * + * @generated from field: repeated exa.codeium_common_pb.FilterReason filter_reasons = 13; + */ + filterReasons = []; + /** + * Original text prior to cutoff / cleaning. Will be populated by the language + * server. + * + * @generated from field: string original_text = 14; + */ + originalText = ''; + /** + * Tool calls generated by the model. Populated by the language server / api + * server. + * + * @generated from field: repeated exa.codeium_common_pb.ChatToolCall tool_calls = 15; + */ + toolCalls = []; + /** + * Trace ID from the backend for debugging and observability. + * + * @generated from field: string trace_id = 17; + */ + traceId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Completion'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'completion_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'stop', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'score', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { no: 6, name: 'tokens', kind: 'scalar', T: 4, repeated: true }, + { no: 7, name: 'decoded_tokens', kind: 'scalar', T: 9, repeated: true }, + { no: 8, name: 'probabilities', kind: 'scalar', T: 1, repeated: true }, + { + no: 9, + name: 'adjusted_probabilities', + kind: 'scalar', + T: 1, + repeated: true, + }, + { no: 16, name: 'logprobs', kind: 'scalar', T: 1, repeated: true }, + { + no: 10, + name: 'generated_length', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 12, + name: 'stop_reason', + kind: 'enum', + T: proto3.getEnumType(StopReason), + }, + { + no: 13, + name: 'filter_reasons', + kind: 'enum', + T: proto3.getEnumType(FilterReason), + repeated: true, + }, + { + no: 14, + name: 'original_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 15, + name: 'tool_calls', + kind: 'message', + T: ChatToolCall, + repeated: true, + }, + { + no: 17, + name: 'trace_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _Completion().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Completion().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Completion().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Completion, a, b); + } +}; +var StreamingCompletionInfo = class _StreamingCompletionInfo extends Message { + /** + * List of the completion uuid strings corresponding to each completion for a + * sequence. The length of this list shall equal num_completions. + * The i-th element of completion_ids will be the completion uuid for + * completion index i (that is, the i-th completion of this sequence). + * + * @generated from field: repeated string completion_ids = 1; + */ + completionIds = []; + /** + * @generated from field: uint64 max_tokens = 2; + */ + maxTokens = protoInt64.zero; + /** + * @generated from field: double temperature = 3; + */ + temperature = 0; + /** + * @generated from field: uint64 top_k = 4; + */ + topK = protoInt64.zero; + /** + * @generated from field: double top_p = 5; + */ + topP = 0; + /** + * @generated from field: repeated string stop_patterns = 6; + */ + stopPatterns = []; + /** + * @generated from field: uint64 prompt_length = 7; + */ + promptLength = protoInt64.zero; + /** + * Populated by the API server. + * + * @generated from field: string prompt_id = 9; + */ + promptId = ''; + /** + * @generated from field: string model_tag = 8; + */ + modelTag = ''; + /** + * This is only returned for dev requests if the CompletionsRequest object was + * modified on the server. + * + * @generated from field: exa.codeium_common_pb.CompletionsRequest completions_request = 10; + */ + completionsRequest; + /** + * Info on the logits and tokens of the eval_suffix from the completions + * request. This is only populated if the eval_suffix was not empty. + * Note that we put this message into StreamingCompletionInfo so that it can + * pass through the api server. + * + * @generated from field: exa.codeium_common_pb.StreamingEvalSuffixInfo eval_suffix_info = 11; + */ + evalSuffixInfo; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.StreamingCompletionInfo'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'completion_ids', kind: 'scalar', T: 9, repeated: true }, + { + no: 2, + name: 'max_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'temperature', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 4, + name: 'top_k', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 5, + name: 'top_p', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { no: 6, name: 'stop_patterns', kind: 'scalar', T: 9, repeated: true }, + { + no: 7, + name: 'prompt_length', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 9, + name: 'prompt_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'model_tag', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'completions_request', + kind: 'message', + T: CompletionsRequest, + }, + { + no: 11, + name: 'eval_suffix_info', + kind: 'message', + T: StreamingEvalSuffixInfo, + }, + ]); + static fromBinary(bytes, options) { + return new _StreamingCompletionInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StreamingCompletionInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StreamingCompletionInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StreamingCompletionInfo, a, b); + } +}; +var SingleModelCompletionProfile = class _SingleModelCompletionProfile extends Message { + /** + * Profile information for the completion + * + * @generated from field: double total_prefill_pass_time = 1; + */ + totalPrefillPassTime = 0; + /** + * @generated from field: double avg_prefill_pass_time = 2; + */ + avgPrefillPassTime = 0; + /** + * @generated from field: uint64 num_prefill_passes = 3; + */ + numPrefillPasses = protoInt64.zero; + /** + * @generated from field: double total_spec_copy_pass_time = 7; + */ + totalSpecCopyPassTime = 0; + /** + * @generated from field: double avg_spec_copy_pass_time = 8; + */ + avgSpecCopyPassTime = 0; + /** + * @generated from field: uint64 num_spec_copy_passes = 9; + */ + numSpecCopyPasses = protoInt64.zero; + /** + * @generated from field: double total_generation_pass_time = 4; + */ + totalGenerationPassTime = 0; + /** + * @generated from field: double avg_generation_pass_time = 5; + */ + avgGenerationPassTime = 0; + /** + * @generated from field: uint64 num_generation_passes = 6; + */ + numGenerationPasses = protoInt64.zero; + /** + * @generated from field: double total_model_time = 10; + */ + totalModelTime = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.SingleModelCompletionProfile'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'total_prefill_pass_time', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 2, + name: 'avg_prefill_pass_time', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 3, + name: 'num_prefill_passes', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 7, + name: 'total_spec_copy_pass_time', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 8, + name: 'avg_spec_copy_pass_time', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 9, + name: 'num_spec_copy_passes', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'total_generation_pass_time', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 5, + name: 'avg_generation_pass_time', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 6, + name: 'num_generation_passes', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 10, + name: 'total_model_time', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + ]); + static fromBinary(bytes, options) { + return new _SingleModelCompletionProfile().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SingleModelCompletionProfile().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SingleModelCompletionProfile().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_SingleModelCompletionProfile, a, b); + } +}; +var CompletionProfile = class _CompletionProfile extends Message { + /** + * @generated from field: exa.codeium_common_pb.SingleModelCompletionProfile model_profile = 1; + */ + modelProfile; + /** + * @generated from field: optional exa.codeium_common_pb.SingleModelCompletionProfile draft_model_profile = 2; + */ + draftModelProfile; + /** + * Time from server receiving completion request to first prefill pass (i.e. + * time waiting in the prefill queue) + * + * @generated from field: double time_to_first_prefill_pass = 3; + */ + timeToFirstPrefillPass = 0; + /** + * Time from server receiving completion request to prefill completion + * + * @generated from field: double time_to_first_token = 4; + */ + timeToFirstToken = 0; + /** + * Total time from server receiving completion request to end of completion + * + * @generated from field: double total_completion_time = 5; + */ + totalCompletionTime = 0; + /** + * Model usage stats for API server + * + * @generated from field: optional exa.codeium_common_pb.ModelUsageStats model_usage = 6; + */ + modelUsage; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionProfile'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'model_profile', + kind: 'message', + T: SingleModelCompletionProfile, + }, + { + no: 2, + name: 'draft_model_profile', + kind: 'message', + T: SingleModelCompletionProfile, + opt: true, + }, + { + no: 3, + name: 'time_to_first_prefill_pass', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 4, + name: 'time_to_first_token', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 5, + name: 'total_completion_time', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 6, + name: 'model_usage', + kind: 'message', + T: ModelUsageStats, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionProfile().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionProfile().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionProfile().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionProfile, a, b); + } +}; +var StreamingCompletion = class _StreamingCompletion extends Message { + /** + * Note that we report back the decoded_token as bytes, because a single + * token's corresponding bytes may not be valid UTF-8. It is the caller's + * responsibility to concatenate these bytes and decode them in a valid + * manner. + * + * @generated from field: bytes decoded_token = 1; + */ + decodedToken = new Uint8Array(0); + /** + * @generated from field: uint64 token = 2; + */ + token = protoInt64.zero; + /** + * @generated from field: double probability = 3; + */ + probability = 0; + /** + * @generated from field: double adjusted_probability = 4; + */ + adjustedProbability = 0; + /** + * @generated from field: double logprob = 9; + */ + logprob = 0; + /** + * If true, we are signaling to the caller that the completion is finished + * (i.e. encountered stop pattern or reached max tokens), and guarantee that + * this will never appear in the StreamingCompletionMap for subsequently + * written StreamingCompletionResponse messages for this sequence. + * + * @generated from field: bool completion_finished = 5; + */ + completionFinished = false; + /** + * Stop pattern for the completion if applicable. + * + * @generated from field: string stop = 6; + */ + stop = ''; + /** + * Optional server-side stop reason. Should be set when completion_finished is + * set to true. + * + * @generated from field: exa.codeium_common_pb.StopReason stop_reason = 7; + */ + stopReason = StopReason.UNSPECIFIED; + /** + * Map from offset within the decoded token to attribution status. This will + * have entries for each newline byte or beginning of EOM token in the chunk. + * + * @generated from field: map attribution_statuses = 8; + */ + attributionStatuses = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.StreamingCompletion'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'decoded_token', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { + no: 2, + name: 'token', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'probability', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 4, + name: 'adjusted_probability', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 9, + name: 'logprob', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { + no: 5, + name: 'completion_finished', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'stop', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'stop_reason', + kind: 'enum', + T: proto3.getEnumType(StopReason), + }, + { + no: 8, + name: 'attribution_statuses', + kind: 'map', + K: 13, + V: { kind: 'enum', T: proto3.getEnumType(AttributionStatus) }, + }, + ]); + static fromBinary(bytes, options) { + return new _StreamingCompletion().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StreamingCompletion().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StreamingCompletion().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StreamingCompletion, a, b); + } +}; +var StreamingCompletionMap = class _StreamingCompletionMap extends Message { + /** + * Map the completion index to the StreamingCompletion containing the next + * token for that completion. That is, completions[i] contains the next token + * for the i-th completion of this sequence. Note that we need this because + * different completions may end at different points, and after a completion + * reaches a stop pattern we should stop writing StreamingCompletions for it + * to the stream. + * + * @generated from field: map completions = 1; + */ + completions = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.StreamingCompletionMap'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'completions', + kind: 'map', + K: 5, + V: { kind: 'message', T: StreamingCompletion }, + }, + ]); + static fromBinary(bytes, options) { + return new _StreamingCompletionMap().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StreamingCompletionMap().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StreamingCompletionMap().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StreamingCompletionMap, a, b); + } +}; +var PackedStreamingCompletionMaps = class _PackedStreamingCompletionMaps extends Message { + /** + * Packs StreamingCompletionMaps for multiple tokens into a single message. + * + * @generated from field: repeated exa.codeium_common_pb.StreamingCompletionMap completion_maps = 1; + */ + completionMaps = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PackedStreamingCompletionMaps'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'completion_maps', + kind: 'message', + T: StreamingCompletionMap, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _PackedStreamingCompletionMaps().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PackedStreamingCompletionMaps().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PackedStreamingCompletionMaps().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_PackedStreamingCompletionMaps, a, b); + } +}; +var StreamingEvalSuffixInfo = class _StreamingEvalSuffixInfo extends Message { + /** + * The per-token log likelihood of the "eval suffix", which is a suffix + * that is concatenated onto the "original" prompt (i.e. the prompt field + * in the CompletionsRequest). Note that these log likelihoods are computed + * conditional on the original prompt. + * + * @generated from field: repeated float per_token_log_likelihoods = 1; + */ + perTokenLogLikelihoods = []; + /** + * Whether the eval suffix would have been generated by greedy sampling. + * + * @generated from field: bool is_greedy = 2; + */ + isGreedy = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.StreamingEvalSuffixInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'per_token_log_likelihoods', + kind: 'scalar', + T: 2, + repeated: true, + }, + { + no: 2, + name: 'is_greedy', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _StreamingEvalSuffixInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StreamingEvalSuffixInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StreamingEvalSuffixInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StreamingEvalSuffixInfo, a, b); + } +}; +var StreamingCompletionResponse = class _StreamingCompletionResponse extends Message { + /** + * @generated from oneof exa.codeium_common_pb.StreamingCompletionResponse.payload + */ + payload = { case: void 0 }; + /** + * Profile information for the completion + * + * @generated from field: optional exa.codeium_common_pb.CompletionProfile completion_profile = 5; + */ + completionProfile; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.StreamingCompletionResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'completion_info', + kind: 'message', + T: StreamingCompletionInfo, + oneof: 'payload', + }, + { + no: 2, + name: 'completion_map', + kind: 'message', + T: StreamingCompletionMap, + oneof: 'payload', + }, + { + no: 4, + name: 'packed_completion_maps', + kind: 'message', + T: PackedStreamingCompletionMaps, + oneof: 'payload', + }, + { + no: 5, + name: 'completion_profile', + kind: 'message', + T: CompletionProfile, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _StreamingCompletionResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StreamingCompletionResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StreamingCompletionResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_StreamingCompletionResponse, a, b); + } +}; +var CompletionLatencyInfo = class _CompletionLatencyInfo extends Message { + /** + * Full completion latencies. + * API server-measured API server RPC latency. + * + * @generated from field: uint64 api_server_latency_ms = 1; + */ + apiServerLatencyMs = protoInt64.zero; + /** + * Language server-measured API server RPC latency. + * + * @generated from field: uint64 language_server_latency_ms = 2; + */ + languageServerLatencyMs = protoInt64.zero; + /** + * Network latency for API server RPC. + * + * @generated from field: uint64 network_latency_ms = 3; + */ + networkLatencyMs = protoInt64.zero; + /** + * First byte latencies. + * + * @generated from field: uint64 api_server_first_byte_latency_ms = 4; + */ + apiServerFirstByteLatencyMs = protoInt64.zero; + /** + * @generated from field: uint64 language_server_first_byte_latency_ms = 5; + */ + languageServerFirstByteLatencyMs = protoInt64.zero; + /** + * @generated from field: uint64 network_first_byte_latency_ms = 6; + */ + networkFirstByteLatencyMs = protoInt64.zero; + /** + * First line latencies. + * + * @generated from field: uint64 api_server_first_line_latency_ms = 7; + */ + apiServerFirstLineLatencyMs = protoInt64.zero; + /** + * @generated from field: uint64 language_server_first_line_latency_ms = 8; + */ + languageServerFirstLineLatencyMs = protoInt64.zero; + /** + * @generated from field: uint64 network_first_line_latency_ms = 9; + */ + networkFirstLineLatencyMs = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionLatencyInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'api_server_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'language_server_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'network_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'api_server_first_byte_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 5, + name: 'language_server_first_byte_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 6, + name: 'network_first_byte_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 7, + name: 'api_server_first_line_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 8, + name: 'language_server_first_line_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 9, + name: 'network_first_line_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionLatencyInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionLatencyInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionLatencyInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionLatencyInfo, a, b); + } +}; +var CompletionWithLatencyInfo = class _CompletionWithLatencyInfo extends Message { + /** + * @generated from field: exa.codeium_common_pb.Completion completion = 1; + */ + completion; + /** + * @generated from field: exa.codeium_common_pb.CompletionLatencyInfo latency_info = 2; + */ + latencyInfo; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionWithLatencyInfo'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'completion', kind: 'message', T: Completion }, + { no: 2, name: 'latency_info', kind: 'message', T: CompletionLatencyInfo }, + ]); + static fromBinary(bytes, options) { + return new _CompletionWithLatencyInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionWithLatencyInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionWithLatencyInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionWithLatencyInfo, a, b); + } +}; +var EmbeddingsRequest = class _EmbeddingsRequest extends Message { + /** + * @generated from field: repeated string prompts = 1; + */ + prompts = []; + /** + * @generated from field: exa.codeium_common_pb.EmbeddingPriority priority = 2; + */ + priority = EmbeddingPriority.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.EmbeddingPrefix prefix = 3; + */ + prefix = EmbeddingPrefix.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.Model model = 4; + */ + model = Model.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.EmbeddingsRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'prompts', kind: 'scalar', T: 9, repeated: true }, + { + no: 2, + name: 'priority', + kind: 'enum', + T: proto3.getEnumType(EmbeddingPriority), + }, + { + no: 3, + name: 'prefix', + kind: 'enum', + T: proto3.getEnumType(EmbeddingPrefix), + }, + { no: 4, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + ]); + static fromBinary(bytes, options) { + return new _EmbeddingsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EmbeddingsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EmbeddingsRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EmbeddingsRequest, a, b); + } +}; +var Embedding = class _Embedding extends Message { + /** + * Represents a single embedding. values shall have length = embed_dim of the + * embedding model. + * + * @generated from field: repeated float values = 1; + */ + values = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Embedding'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'values', kind: 'scalar', T: 2, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _Embedding().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Embedding().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Embedding().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Embedding, a, b); + } +}; +var EmbeddingResponse = class _EmbeddingResponse extends Message { + /** + * Embeddings returned in the same order as the prompts that were submitted in + * the EmbeddingsRequest. + * + * @generated from field: repeated exa.codeium_common_pb.Embedding embeddings = 1; + */ + embeddings = []; + /** + * @generated from field: bool prompts_exceeded_context_length = 2; + */ + promptsExceededContextLength = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.EmbeddingResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'embeddings', + kind: 'message', + T: Embedding, + repeated: true, + }, + { + no: 2, + name: 'prompts_exceeded_context_length', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _EmbeddingResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EmbeddingResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EmbeddingResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EmbeddingResponse, a, b); + } +}; +var RewardsRequest = class _RewardsRequest extends Message { + /** + * repeated string prompts = 1; // Items to score + * + * Prefix to items + * + * @generated from field: string prefix = 2; + */ + prefix = ''; + /** + * items should already be wrapped with any special tokens in string form. + * The model relies on the hidden state of the last token, so that should + * usually be a special token. + * + * @generated from field: repeated string items = 3; + */ + items = []; + /** + * For llama models, wrap entire prompt in "[INST][/INST]\nRESPONSE:\n" + * + * @generated from field: bool has_instruct_tokens = 4; + */ + hasInstructTokens = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RewardsRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'prefix', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'items', kind: 'scalar', T: 9, repeated: true }, + { + no: 4, + name: 'has_instruct_tokens', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _RewardsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RewardsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RewardsRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RewardsRequest, a, b); + } +}; +var RewardsResponse = class _RewardsResponse extends Message { + /** + * Scores returned in the same order as the prompts that were submitted in. + * + * @generated from field: repeated float values = 1; + */ + values = []; + /** + * @generated from field: bool prompts_exceeded_context_length = 2; + */ + promptsExceededContextLength = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RewardsResponse'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'values', kind: 'scalar', T: 2, repeated: true }, + { + no: 2, + name: 'prompts_exceeded_context_length', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _RewardsResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RewardsResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RewardsResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RewardsResponse, a, b); + } +}; +var Metadata = class _Metadata extends Message { + /** + * Name of IDE (antigravity, jetski, jetski-insiders, etc.) + * + * @generated from field: string ide_name = 1; + */ + ideName = ''; + /** + * Jetski / Antigravity version + * + * @generated from field: string ide_version = 7; + */ + ideVersion = ''; + /** + * Should be same as IDE name. + * + * @generated from field: string extension_name = 12; + */ + extensionName = ''; + /** + * Language server version. + * + * @generated from field: string extension_version = 2; + */ + extensionVersion = ''; + /** + * Path for extension (to determine VSCode Fork). + * + * @generated from field: string extension_path = 17; + */ + extensionPath = ''; + /** + * Locale of the user. + * + * @generated from field: string locale = 4; + */ + locale = ''; + /** + * JSON encoding of os version. Populated by LS client interceptor. + * + * @generated from field: string os = 5; + */ + os = ''; + /** + * JSON encoding of hardware version. + * + * @generated from field: string hardware = 8; + */ + hardware = ''; + /** + * UID for a session. + * + * @generated from field: string session_id = 10; + */ + sessionId = ''; + /** + * Device identifier used to prevent duplicate trial accounts. + * + * @generated from field: string device_fingerprint = 24; + */ + deviceFingerprint = ''; + /** + * Paid GCA tier of the user (e.g. g1-pro-tier) + * + * @generated from field: string user_tier_id = 29; + */ + userTierId = ''; + /** + * Timestamp message reaches language server. For GetChatMessage requests, + * this has been repurposed to be updated right before the request is sent to + * the API server for verification purposes. + * + * @generated from field: google.protobuf.Timestamp ls_timestamp = 16; + */ + lsTimestamp; + /** + * Optional field to link different kinds of completion requests together. + * + * @generated from field: string trigger_id = 25; + */ + triggerId = ''; + /** + * Used to verify the authenticity of requests. Populated by LS client + * interceptor. + * + * @generated from field: string id = 27; + */ + id = ''; + /** + * Not a UUID check due to external auth source support. + * TODO(nick): remove when removing old auth. + * + * @generated from field: string api_key = 3; + */ + apiKey = ''; + /** + * Whether telemetry is disabled at an IDE level. Note that this is separate + * from disabling code snippet telemetry. + * TODO(nick): see if this is removable. + * + * @generated from field: bool disable_telemetry = 6; + */ + disableTelemetry = false; + /** + * User tags for telemetry. + * + * @generated from field: repeated string user_tags = 18; + */ + userTags = []; + /** + * Region code (country) of the user. + * + * @generated from field: string region_code = 30; + */ + regionCode = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Metadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'ide_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'ide_version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'extension_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'extension_version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 17, + name: 'extension_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'locale', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'os', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'hardware', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'session_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 24, + name: 'device_fingerprint', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 29, + name: 'user_tier_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 16, name: 'ls_timestamp', kind: 'message', T: Timestamp }, + { + no: 25, + name: 'trigger_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 27, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'api_key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'disable_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 18, name: 'user_tags', kind: 'scalar', T: 9, repeated: true }, + { + no: 30, + name: 'region_code', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _Metadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Metadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Metadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Metadata, a, b); + } +}; +var EditorOptions = class _EditorOptions extends Message { + /** + * @generated from field: uint64 tab_size = 1; + */ + tabSize = protoInt64.zero; + /** + * @generated from field: bool insert_spaces = 2; + */ + insertSpaces = false; + /** + * @generated from field: bool disable_autocomplete_in_comments = 3; + */ + disableAutocompleteInComments = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.EditorOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'tab_size', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'insert_spaces', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'disable_autocomplete_in_comments', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _EditorOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EditorOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EditorOptions().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EditorOptions, a, b); + } +}; +var ErrorTrace = class _ErrorTrace extends Message { + /** + * @generated from field: string error_id = 1; + */ + errorId = ''; + /** + * @generated from field: int64 timestamp_unix_ms = 2; + */ + timestampUnixMs = protoInt64.zero; + /** + * @generated from field: string stacktrace = 3; + */ + stacktrace = ''; + /** + * @generated from field: bool recovered = 4; + */ + recovered = false; + /** + * @generated from field: string full_stderr = 5; + */ + fullStderr = ''; + /** + * We don't include a full codeium_common.Metadata field to avoid + * the risk of leaking PII. Instead only include the field we need. + * + * @generated from field: string ide_name = 6; + */ + ideName = ''; + /** + * @generated from field: string ide_version = 7; + */ + ideVersion = ''; + /** + * @generated from field: string os = 8; + */ + os = ''; + /** + * @generated from field: bool is_dev = 9; + */ + isDev = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ErrorTrace'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'error_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'timestamp_unix_ms', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'stacktrace', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'recovered', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'full_stderr', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'ide_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'ide_version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'os', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'is_dev', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ErrorTrace().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ErrorTrace().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ErrorTrace().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ErrorTrace, a, b); + } +}; +var Event = class _Event extends Message { + /** + * @generated from field: exa.codeium_common_pb.EventType event_type = 1; + */ + eventType = EventType.UNSPECIFIED; + /** + * @generated from field: string event_json = 2; + */ + eventJson = ''; + /** + * @generated from field: int64 timestamp_unix_ms = 3; + */ + timestampUnixMs = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Event'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'event_type', + kind: 'enum', + T: proto3.getEnumType(EventType), + }, + { + no: 2, + name: 'event_json', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'timestamp_unix_ms', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _Event().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Event().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Event().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Event, a, b); + } +}; +var Citation = class _Citation extends Message { + /** + * The start index of the citation relative to the entire model generation + * This is in terms of bytes, assuming UTF-8 encoding + * + * @generated from field: int32 start_index = 1; + */ + startIndex = 0; + /** + * The end index of the citation relative to the entire model generation + * This is in terms of bytes, assuming UTF-8 encoding + * + * @generated from field: int32 end_index = 2; + */ + endIndex = 0; + /** + * The URI of the citation + * + * @generated from field: string uri = 3; + */ + uri = ''; + /** + * The title of the citation + * + * @generated from field: string title = 4; + */ + title = ''; + /** + * The license from the citation + * + * @generated from field: string license = 5; + */ + license = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Citation'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'start_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'end_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'license', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _Citation().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Citation().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Citation().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Citation, a, b); + } +}; +var CitationMetadata = class _CitationMetadata extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.Citation citations = 1; + */ + citations = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CitationMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'citations', kind: 'message', T: Citation, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _CitationMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CitationMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CitationMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CitationMetadata, a, b); + } +}; +var Recitation = class _Recitation extends Message { + /** + * The original citation metadata from Google Cloud AI Platform + * Note that the startIndex and endIndex fields in citation are relative to + * the entire model generation. + * + * @generated from field: exa.codeium_common_pb.Citation citation = 1; + */ + citation; + /** + * The actual content text that was cited + * + * @generated from field: string content = 2; + */ + content = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Recitation'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'citation', kind: 'message', T: Citation }, + { + no: 2, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _Recitation().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Recitation().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Recitation().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Recitation, a, b); + } +}; +var RecitationMetadata = class _RecitationMetadata extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.Recitation recitations = 1; + */ + recitations = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RecitationMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'recitations', + kind: 'message', + T: Recitation, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _RecitationMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RecitationMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RecitationMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RecitationMetadata, a, b); + } +}; +var SearchResultRecord = class _SearchResultRecord extends Message { + /** + * UUID for each search query. + * + * @generated from field: string search_id = 1; + */ + searchId = ''; + /** + * UUID for each search result. + * + * @generated from field: string result_id = 2; + */ + resultId = ''; + /** + * @generated from field: string absolute_path = 3; + */ + absolutePath = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.WorkspacePath workspace_paths = 4; + */ + workspacePaths = []; + /** + * The full text of the embedding match. + * + * @generated from field: string text = 5; + */ + text = ''; + /** + * @generated from field: exa.codeium_common_pb.EmbeddingMetadata embedding_metadata = 6; + */ + embeddingMetadata; + /** + * @generated from field: float similarity_score = 7; + */ + similarityScore = 0; + /** + * @generated from field: int64 num_results_in_cluster = 8; + */ + numResultsInCluster = protoInt64.zero; + /** + * @generated from field: string representative_path = 9; + */ + representativePath = ''; + /** + * @generated from field: float mean_similarity_score = 10; + */ + meanSimilarityScore = 0; + /** + * @generated from field: exa.codeium_common_pb.SearchResultType search_result_type = 11; + */ + searchResultType = SearchResultType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.SearchResultRecord'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'search_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'result_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'absolute_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'workspace_paths', + kind: 'message', + T: WorkspacePath, + repeated: true, + }, + { + no: 5, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'embedding_metadata', + kind: 'message', + T: EmbeddingMetadata, + }, + { + no: 7, + name: 'similarity_score', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 8, + name: 'num_results_in_cluster', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 9, + name: 'representative_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'mean_similarity_score', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 11, + name: 'search_result_type', + kind: 'enum', + T: proto3.getEnumType(SearchResultType), + }, + ]); + static fromBinary(bytes, options) { + return new _SearchResultRecord().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SearchResultRecord().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SearchResultRecord().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SearchResultRecord, a, b); + } +}; +var WorkspacePath = class _WorkspacePath extends Message { + /** + * Absolute path to root of the workspace. + * + * @generated from field: string workspace_migrate_me_to_uri = 1 [deprecated = true]; + * @deprecated + */ + workspaceMigrateMeToUri = ''; + /** + * @generated from field: string workspace_uri = 3; + */ + workspaceUri = ''; + /** + * Relative path to the search result file. + * + * @generated from field: string relative_path = 2; + */ + relativePath = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.WorkspacePath'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspace_migrate_me_to_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'workspace_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'relative_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _WorkspacePath().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkspacePath().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkspacePath().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WorkspacePath, a, b); + } +}; +var EmbeddingMetadata = class _EmbeddingMetadata extends Message { + /** + * Name of search result node in the file. + * + * @generated from field: string node_name = 1; + */ + nodeName = ''; + /** + * Line in the file where the search result starts. Inclusive. + * + * @generated from field: uint32 start_line = 2; + */ + startLine = 0; + /** + * Line in the file where the search result ends. Inclusive. + * + * @generated from field: uint32 end_line = 3; + */ + endLine = 0; + /** + * Embed type of the search result. + * + * @generated from field: exa.codeium_common_pb.EmbedType embed_type = 4; + */ + embedType = EmbedType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.EmbeddingMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'node_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'start_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'end_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'embed_type', + kind: 'enum', + T: proto3.getEnumType(EmbedType), + }, + ]); + static fromBinary(bytes, options) { + return new _EmbeddingMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EmbeddingMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EmbeddingMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EmbeddingMetadata, a, b); + } +}; +var MockResponseData = class _MockResponseData extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.Completion completions = 1; + */ + completions = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.MockResponseData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'completions', + kind: 'message', + T: Completion, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _MockResponseData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MockResponseData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MockResponseData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MockResponseData, a, b); + } +}; +var WorkspaceIndexData = class _WorkspaceIndexData extends Message { + /** + * @generated from field: string workspace_uri_for_telemetry = 1; + */ + workspaceUriForTelemetry = ''; + /** + * @generated from field: google.protobuf.Timestamp indexing_start = 2; + */ + indexingStart; + /** + * @generated from field: google.protobuf.Timestamp indexing_end = 3; + */ + indexingEnd; + /** + * @generated from field: google.protobuf.Duration embedding_duration = 4; + */ + embeddingDuration; + /** + * @generated from field: int64 num_files_total = 5; + */ + numFilesTotal = protoInt64.zero; + /** + * @generated from field: int64 num_files_to_embed = 6; + */ + numFilesToEmbed = protoInt64.zero; + /** + * @generated from field: int64 num_nodes_total = 7; + */ + numNodesTotal = protoInt64.zero; + /** + * @generated from field: int64 num_nodes_to_embed = 8; + */ + numNodesToEmbed = protoInt64.zero; + /** + * @generated from field: int64 num_tokens = 9; + */ + numTokens = protoInt64.zero; + /** + * @generated from field: int64 num_high_priority_nodes_to_embed = 10; + */ + numHighPriorityNodesToEmbed = protoInt64.zero; + /** + * @generated from field: string error = 11; + */ + error = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.WorkspaceIndexData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspace_uri_for_telemetry', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'indexing_start', kind: 'message', T: Timestamp }, + { no: 3, name: 'indexing_end', kind: 'message', T: Timestamp }, + { no: 4, name: 'embedding_duration', kind: 'message', T: Duration }, + { + no: 5, + name: 'num_files_total', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 6, + name: 'num_files_to_embed', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 7, + name: 'num_nodes_total', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 8, + name: 'num_nodes_to_embed', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 9, + name: 'num_tokens', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 10, + name: 'num_high_priority_nodes_to_embed', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 11, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _WorkspaceIndexData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkspaceIndexData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkspaceIndexData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WorkspaceIndexData, a, b); + } +}; +var WorkspaceStats = class _WorkspaceStats extends Message { + /** + * @generated from field: string workspace = 3; + */ + workspace = ''; + /** + * The keys are Languages. + * + * @generated from field: map num_files = 1; + */ + numFiles = {}; + /** + * The keys are Languages. + * + * @generated from field: map num_bytes = 2; + */ + numBytes = {}; + /** + * False if not all known files have been indexed, data may be incomplete. + * + * @generated from field: bool initial_scan_completed = 4; + */ + initialScanCompleted = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.WorkspaceStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'workspace', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'num_files', + kind: 'map', + K: 5, + V: { + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ }, - { - no: 4, - name: 'packed_completion_maps', - kind: 'message', - T: Fm, - oneof: 'payload', + }, + { + no: 2, + name: 'num_bytes', + kind: 'map', + K: 5, + V: { + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ }, - { no: 5, name: 'completion_profile', kind: 'message', T: xt, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ym = class e extends r { - apiServerLatencyMs = o.zero; - languageServerLatencyMs = o.zero; - networkLatencyMs = o.zero; - apiServerFirstByteLatencyMs = o.zero; - languageServerFirstByteLatencyMs = o.zero; - networkFirstByteLatencyMs = o.zero; - apiServerFirstLineLatencyMs = o.zero; - languageServerFirstLineLatencyMs = o.zero; - networkFirstLineLatencyMs = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionLatencyInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'api_server_latency_ms', kind: 'scalar', T: 4 }, - { no: 2, name: 'language_server_latency_ms', kind: 'scalar', T: 4 }, - { no: 3, name: 'network_latency_ms', kind: 'scalar', T: 4 }, - { no: 4, name: 'api_server_first_byte_latency_ms', kind: 'scalar', T: 4 }, - { - no: 5, - name: 'language_server_first_byte_latency_ms', + }, + { + no: 4, + name: 'initial_scan_completed', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _WorkspaceStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkspaceStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkspaceStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WorkspaceStats, a, b); + } +}; +var PartialIndexMetadata = class _PartialIndexMetadata extends Message { + /** + * @generated from field: uint32 num_total_files = 1; + */ + numTotalFiles = 0; + /** + * @generated from field: uint32 num_indexed_files = 2; + */ + numIndexedFiles = 0; + /** + * Denotes that files older than this timestamp are not indexed. + * + * @generated from field: google.protobuf.Timestamp cutoff_timestamp = 3; + */ + cutoffTimestamp; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PartialIndexMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'num_total_files', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'num_indexed_files', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 3, name: 'cutoff_timestamp', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _PartialIndexMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PartialIndexMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PartialIndexMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PartialIndexMetadata, a, b); + } +}; +var FunctionInfo = class _FunctionInfo extends Message { + /** + * @generated from field: string raw_source = 1; + */ + rawSource = ''; + /** + * @generated from field: string clean_function = 2; + */ + cleanFunction = ''; + /** + * @generated from field: string docstring = 3; + */ + docstring = ''; + /** + * @generated from field: string node_name = 4; + */ + nodeName = ''; + /** + * @generated from field: string params = 5; + */ + params = ''; + /** + * @generated from field: int32 definition_line = 6; + */ + definitionLine = 0; + /** + * 0-indexed (start & end). + * + * @generated from field: int32 start_line = 7; + */ + startLine = 0; + /** + * @generated from field: int32 end_line = 8; + */ + endLine = 0; + /** + * @generated from field: int32 start_col = 9; + */ + startCol = 0; + /** + * Exclusive of (end_line, end_col). + * + * @generated from field: int32 end_col = 10; + */ + endCol = 0; + /** + * @generated from field: string leading_whitespace = 11; + */ + leadingWhitespace = ''; + /** + * @generated from field: exa.codeium_common_pb.Language language = 12; + */ + language = Language.UNSPECIFIED; + /** + * @generated from field: int32 body_start_line = 13; + */ + bodyStartLine = 0; + /** + * @generated from field: int32 body_start_col = 14; + */ + bodyStartCol = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.FunctionInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'raw_source', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'clean_function', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'docstring', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'node_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'params', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'definition_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 7, + name: 'start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 8, + name: 'end_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 9, + name: 'start_col', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 10, + name: 'end_col', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 11, + name: 'leading_whitespace', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 12, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 13, + name: 'body_start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 14, + name: 'body_start_col', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _FunctionInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FunctionInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FunctionInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FunctionInfo, a, b); + } +}; +var ClassInfo = class _ClassInfo extends Message { + /** + * @generated from field: string raw_source = 1; + */ + rawSource = ''; + /** + * @generated from field: int32 start_line = 2; + */ + startLine = 0; + /** + * @generated from field: int32 end_line = 3; + */ + endLine = 0; + /** + * @generated from field: int32 start_col = 4; + */ + startCol = 0; + /** + * @generated from field: int32 end_col = 5; + */ + endCol = 0; + /** + * @generated from field: string leading_whitespace = 6; + */ + leadingWhitespace = ''; + /** + * @generated from field: repeated string fields_and_constructors = 7; + */ + fieldsAndConstructors = []; + /** + * @generated from field: string docstring = 8; + */ + docstring = ''; + /** + * @generated from field: string node_name = 9; + */ + nodeName = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.FunctionInfo methods = 10; + */ + methods = []; + /** + * @generated from field: repeated string node_lineage = 11; + */ + nodeLineage = []; + /** + * @generated from field: bool is_exported = 12; + */ + isExported = false; + /** + * @generated from field: exa.codeium_common_pb.Language language = 13; + */ + language = Language.UNSPECIFIED; + /** + * @generated from field: int32 definition_line = 14; + */ + definitionLine = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ClassInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'raw_source', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'end_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'start_col', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'end_col', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'leading_whitespace', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'fields_and_constructors', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 8, + name: 'docstring', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'node_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'methods', + kind: 'message', + T: FunctionInfo, + repeated: true, + }, + { no: 11, name: 'node_lineage', kind: 'scalar', T: 9, repeated: true }, + { + no: 12, + name: 'is_exported', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 13, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 14, + name: 'definition_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ClassInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClassInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClassInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ClassInfo, a, b); + } +}; +var TeamsFeaturesMetadata = class _TeamsFeaturesMetadata extends Message { + /** + * Whether the feature is currently used by the team + * + * @generated from field: bool is_active = 1; + */ + isActive = false; + /** + * Stripe subscription ID for the feature if it's an add-on + * + * @generated from field: string stripe_subscription_id = 2; + */ + stripeSubscriptionId = ''; + /** + * Whether the team has access to the feature + * + * @generated from field: bool has_access = 3; + */ + hasAccess = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TeamsFeaturesMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'is_active', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'stripe_subscription_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'has_access', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _TeamsFeaturesMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TeamsFeaturesMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TeamsFeaturesMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TeamsFeaturesMetadata, a, b); + } +}; +var QuotaInfo = class _QuotaInfo extends Message { + /** + * @generated from field: float remaining_fraction = 1; + */ + remainingFraction = 0; + /** + * @generated from field: google.protobuf.Timestamp reset_time = 2; + */ + resetTime; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.QuotaInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'remaining_fraction', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { no: 2, name: 'reset_time', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _QuotaInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _QuotaInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _QuotaInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_QuotaInfo, a, b); + } +}; +var ClientModelConfig = class _ClientModelConfig extends Message { + /** + * Display name and used as a unique identifier + * + * @generated from field: string label = 1; + */ + label = ''; + /** + * @generated from field: exa.codeium_common_pb.ModelOrAlias model_or_alias = 2; + */ + modelOrAlias; + /** + * Multiplier applied to credits used for this model. + * Only applicable to MODEL_PRICING_TYPE_STATIC_CREDIT. + * + * @generated from field: float credit_multiplier = 3; + */ + creditMultiplier = 0; + /** + * Pricing type for this model. + * + * @generated from field: exa.codeium_common_pb.ModelPricingType pricing_type = 13; + */ + pricingType = ModelPricingType.UNSPECIFIED; + /** + * If true, the model is still rendered in the UI but is disabled. + * + * @generated from field: bool disabled = 4; + */ + disabled = false; + /** + * @generated from field: bool supports_images = 5; + */ + supportsImages = false; + /** + * If true, the model can be used in legacy mode. + * + * @generated from field: bool supports_legacy = 6; + */ + supportsLegacy = false; + /** + * If true, the model will be shown in the premium models section. + * + * @generated from field: bool is_premium = 7; + */ + isPremium = false; + /** + * A message to display when the model is beta. + * + * @generated from field: string beta_warning_message = 8; + */ + betaWarningMessage = ''; + /** + * If true, the model is beta. + * + * @generated from field: bool is_beta = 9; + */ + isBeta = false; + /** + * The provider of the model. + * + * @generated from field: exa.codeium_common_pb.ModelProvider provider = 10; + */ + provider = ModelProvider.UNSPECIFIED; + /** + * If true, the model is recommended to users. + * + * @generated from field: bool is_recommended = 11; + */ + isRecommended = false; + /** + * Allowed Tiers for Command Models + * + * @generated from field: repeated exa.codeium_common_pb.TeamsTier allowed_tiers = 12; + */ + allowedTiers = []; + /** + * Description that appears below the model label in the model selector. + * Should be short and concise. + * + * @generated from field: string description = 14; + */ + description = ''; + /** + * Quota information for this model, coming from go/quotaserver. + * + * @generated from field: exa.codeium_common_pb.QuotaInfo quota_info = 15; + */ + quotaInfo; + /** + * @generated from field: string tag_title = 16; + */ + tagTitle = ''; + /** + * @generated from field: string tag_description = 17; + */ + tagDescription = ''; + /** + * Map of MIME types to whether the model supports them. + * If this map is populated, it takes precedence over the individual boolean + * fields (supports_images, supports_pdf, supports_video). + * + * @generated from field: map supported_mime_types = 18; + */ + supportedMimeTypes = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ClientModelConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'label', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'model_or_alias', kind: 'message', T: ModelOrAlias }, + { + no: 3, + name: 'credit_multiplier', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 13, + name: 'pricing_type', + kind: 'enum', + T: proto3.getEnumType(ModelPricingType), + }, + { + no: 4, + name: 'disabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'supports_images', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'supports_legacy', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'is_premium', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 8, + name: 'beta_warning_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'is_beta', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 10, + name: 'provider', + kind: 'enum', + T: proto3.getEnumType(ModelProvider), + }, + { + no: 11, + name: 'is_recommended', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 12, + name: 'allowed_tiers', + kind: 'enum', + T: proto3.getEnumType(TeamsTier), + repeated: true, + }, + { + no: 14, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 15, name: 'quota_info', kind: 'message', T: QuotaInfo }, + { + no: 16, + name: 'tag_title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 17, + name: 'tag_description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 18, + name: 'supported_mime_types', + kind: 'map', + K: 9, + V: { + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + }, + ]); + static fromBinary(bytes, options) { + return new _ClientModelConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClientModelConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClientModelConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ClientModelConfig, a, b); + } +}; +var DefaultOverrideModelConfig = class _DefaultOverrideModelConfig extends Message { + /** + * The model to use as the default or override. + * + * @generated from field: exa.codeium_common_pb.ModelOrAlias model_or_alias = 1; + */ + modelOrAlias; + /** + * Version to differentiate when the client should override or keep last + * selected user model. + * + * @generated from field: string version_id = 2; + */ + versionId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DefaultOverrideModelConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model_or_alias', kind: 'message', T: ModelOrAlias }, + { + no: 2, + name: 'version_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _DefaultOverrideModelConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DefaultOverrideModelConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DefaultOverrideModelConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_DefaultOverrideModelConfig, a, b); + } +}; +var ClientModelSort = class _ClientModelSort extends Message { + /** + * Name of the sort within the Cascade model selector (e.g. "Recommended", + * "Provider", "Cost"). + * + * @generated from field: string name = 1; + */ + name = ''; + /** + * Groups of models within this sort. + * + * @generated from field: repeated exa.codeium_common_pb.ClientModelGroup groups = 2; + */ + groups = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ClientModelSort'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'groups', + kind: 'message', + T: ClientModelGroup, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ClientModelSort().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClientModelSort().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClientModelSort().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ClientModelSort, a, b); + } +}; +var ClientModelGroup = class _ClientModelGroup extends Message { + /** + * Name of the group in a ClientModelSort. Can be empty if sort is ungrouped + * (e.g. "Recommended" sort). + * + * @generated from field: string group_name = 1; + */ + groupName = ''; + /** + * List of model labels in this group. + * + * @generated from field: repeated string model_labels = 2; + */ + modelLabels = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ClientModelGroup'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'group_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'model_labels', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _ClientModelGroup().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClientModelGroup().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClientModelGroup().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ClientModelGroup, a, b); + } +}; +var CascadeModelConfigData = class _CascadeModelConfigData extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.ClientModelConfig client_model_configs = 1; + */ + clientModelConfigs = []; + /** + * @generated from field: repeated exa.codeium_common_pb.ClientModelSort client_model_sorts = 2; + */ + clientModelSorts = []; + /** + * @generated from field: optional exa.codeium_common_pb.DefaultOverrideModelConfig default_override_model_config = 3; + */ + defaultOverrideModelConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CascadeModelConfigData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'client_model_configs', + kind: 'message', + T: ClientModelConfig, + repeated: true, + }, + { + no: 2, + name: 'client_model_sorts', + kind: 'message', + T: ClientModelSort, + repeated: true, + }, + { + no: 3, + name: 'default_override_model_config', + kind: 'message', + T: DefaultOverrideModelConfig, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeModelConfigData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeModelConfigData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeModelConfigData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeModelConfigData, a, b); + } +}; +var AllowedModelConfig = class _AllowedModelConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.ModelOrAlias model_or_alias = 1; + */ + modelOrAlias; + /** + * @generated from field: float credit_multiplier = 2; + */ + creditMultiplier = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.AllowedModelConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model_or_alias', kind: 'message', T: ModelOrAlias }, + { + no: 2, + name: 'credit_multiplier', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + ]); + static fromBinary(bytes, options) { + return new _AllowedModelConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AllowedModelConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AllowedModelConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AllowedModelConfig, a, b); + } +}; +var PlanInfo = class _PlanInfo extends Message { + /** + * If the user is not on a team, this will be UNSPECIFIED. + * + * @generated from field: exa.codeium_common_pb.TeamsTier teams_tier = 1; + */ + teamsTier = TeamsTier.UNSPECIFIED; + /** + * Human readable name of the plan to display to the user. + * + * @generated from field: string plan_name = 2; + */ + planName = ''; + /** + * Boolean feature gates + * + * @generated from field: bool has_autocomplete_fast_mode = 3; + */ + hasAutocompleteFastMode = false; + /** + * @generated from field: bool allow_sticky_premium_models = 4; + */ + allowStickyPremiumModels = false; + /** + * @generated from field: bool has_forge_access = 5; + */ + hasForgeAccess = false; + /** + * @generated from field: bool disable_code_snippet_telemetry = 11; + */ + disableCodeSnippetTelemetry = false; + /** + * @generated from field: bool allow_premium_command_models = 15; + */ + allowPremiumCommandModels = false; + /** + * @generated from field: bool has_tab_to_jump = 23; + */ + hasTabToJump = false; + /** + * Feature limits & quotas. A value of -1 would indicate unlimited. + * + * @generated from field: int64 max_num_premium_chat_messages = 6; + */ + maxNumPremiumChatMessages = protoInt64.zero; + /** + * Limit on the number of tokens in a user's chat message. + * + * @generated from field: int64 max_num_chat_input_tokens = 7; + */ + maxNumChatInputTokens = protoInt64.zero; + /** + * @generated from field: int64 max_custom_chat_instruction_characters = 8; + */ + maxCustomChatInstructionCharacters = protoInt64.zero; + /** + * @generated from field: int64 max_num_pinned_context_items = 9; + */ + maxNumPinnedContextItems = protoInt64.zero; + /** + * @generated from field: int64 max_local_index_size = 10; + */ + maxLocalIndexSize = protoInt64.zero; + /** + * Maximum number of unclaimed sites for Antigravity deployments a user can + * have based on their plan. This field is deprecated; and moved into + * TeamConfig instead. + * + * @generated from field: int32 max_unclaimed_sites = 26 [deprecated = true]; + * @deprecated + */ + maxUnclaimedSites = 0; + /** + * @generated from field: int32 monthly_prompt_credits = 12; + */ + monthlyPromptCredits = 0; + /** + * @generated from field: int32 monthly_flow_credits = 13; + */ + monthlyFlowCredits = 0; + /** + * @generated from field: int32 monthly_flex_credit_purchase_amount = 14; + */ + monthlyFlexCreditPurchaseAmount = 0; + /** + * Properties of the Plan + * If the plan allows multiple users. + * + * @generated from field: bool is_teams = 17; + */ + isTeams = false; + /** + * If the plan is enterprise. + * + * @generated from field: bool is_enterprise = 16; + */ + isEnterprise = false; + /** + * Only users with a paid plan can purchase more credits. Free/trial will need + * to upgrade first. + * + * @generated from field: bool can_buy_more_credits = 18; + */ + canBuyMoreCredits = false; + /** + * Whether the user has web search enabled (enterprise admins have the option + * to enable or disable it). + * + * @generated from field: bool cascade_web_search_enabled = 19; + */ + cascadeWebSearchEnabled = false; + /** + * Whether we permit the user to customize their app icon. + * + * @generated from field: bool can_customize_app_icon = 20; + */ + canCustomizeAppIcon = false; + /** + * Whether the user can enable Cascade to automatically run commands. + * + * @generated from field: bool cascade_can_auto_run_commands = 22; + */ + cascadeCanAutoRunCommands = false; + /** + * Whether the user can use the AI-generated commit message feature. + * + * @generated from field: bool can_generate_commit_messages = 25; + */ + canGenerateCommitMessages = false; + /** + * Whether the knowledge base feature is enabled for this user. + * + * @generated from field: bool knowledge_base_enabled = 27; + */ + knowledgeBaseEnabled = false; + /** + * List of models this user is allowed to use and their credit multipliers. + * + * @generated from field: repeated exa.codeium_common_pb.AllowedModelConfig cascade_allowed_models_config = 21 [deprecated = true]; + * @deprecated + */ + cascadeAllowedModelsConfig = []; + /** + * @generated from field: exa.codeium_common_pb.TeamConfig default_team_config = 24; + */ + defaultTeamConfig; + /** + * Whether the user can share conversations. + * + * @generated from field: bool can_share_conversations = 28; + */ + canShareConversations = false; + /** + * Whether the user can allow Cascade to run in the background. + * + * @generated from field: bool can_allow_cascade_in_background = 29; + */ + canAllowCascadeInBackground = false; + /** + * Map of team features that are enabled by default for this plan + * Key is the int32 value of TeamsFeatures enum, value is whether it's enabled + * + * @generated from field: map default_team_features = 30; + */ + defaultTeamFeatures = {}; + /** + * Whether the user can access Browser. + * + * @generated from field: bool browser_enabled = 31; + */ + browserEnabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PlanInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'teams_tier', + kind: 'enum', + T: proto3.getEnumType(TeamsTier), + }, + { + no: 2, + name: 'plan_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'has_autocomplete_fast_mode', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'allow_sticky_premium_models', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'has_forge_access', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'disable_code_snippet_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 15, + name: 'allow_premium_command_models', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 23, + name: 'has_tab_to_jump', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'max_num_premium_chat_messages', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 7, + name: 'max_num_chat_input_tokens', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 8, + name: 'max_custom_chat_instruction_characters', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 9, + name: 'max_num_pinned_context_items', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 10, + name: 'max_local_index_size', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 26, + name: 'max_unclaimed_sites', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 12, + name: 'monthly_prompt_credits', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 13, + name: 'monthly_flow_credits', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 14, + name: 'monthly_flex_credit_purchase_amount', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 17, + name: 'is_teams', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 16, + name: 'is_enterprise', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 18, + name: 'can_buy_more_credits', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 19, + name: 'cascade_web_search_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 20, + name: 'can_customize_app_icon', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 22, + name: 'cascade_can_auto_run_commands', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 25, + name: 'can_generate_commit_messages', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 27, + name: 'knowledge_base_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 21, + name: 'cascade_allowed_models_config', + kind: 'message', + T: AllowedModelConfig, + repeated: true, + }, + { no: 24, name: 'default_team_config', kind: 'message', T: TeamConfig }, + { + no: 28, + name: 'can_share_conversations', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 29, + name: 'can_allow_cascade_in_background', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 30, + name: 'default_team_features', + kind: 'map', + K: 5, + V: { kind: 'message', T: TeamsFeaturesMetadata }, + }, + { + no: 31, + name: 'browser_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _PlanInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlanInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlanInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlanInfo, a, b); + } +}; +var TopUpStatus = class _TopUpStatus extends Message { + /** + * @generated from field: exa.codeium_common_pb.TransactionStatus top_up_transaction_status = 1; + */ + topUpTransactionStatus = TransactionStatus.UNSPECIFIED; + /** + * @generated from field: bool top_up_enabled = 2; + */ + topUpEnabled = false; + /** + * @generated from field: int32 monthly_top_up_amount = 3; + */ + monthlyTopUpAmount = 0; + /** + * @generated from field: int32 top_up_spent = 4; + */ + topUpSpent = 0; + /** + * @generated from field: int32 top_up_increment = 5; + */ + topUpIncrement = 0; + /** + * @generated from field: bool top_up_criteria_met = 6; + */ + topUpCriteriaMet = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TopUpStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'top_up_transaction_status', + kind: 'enum', + T: proto3.getEnumType(TransactionStatus), + }, + { + no: 2, + name: 'top_up_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'monthly_top_up_amount', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'top_up_spent', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'top_up_increment', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'top_up_criteria_met', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _TopUpStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TopUpStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TopUpStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TopUpStatus, a, b); + } +}; +var PlanStatus = class _PlanStatus extends Message { + /** + * @generated from field: exa.codeium_common_pb.PlanInfo plan_info = 1; + */ + planInfo; + /** + * @generated from field: google.protobuf.Timestamp plan_start = 2; + */ + planStart; + /** + * @generated from field: google.protobuf.Timestamp plan_end = 3; + */ + planEnd; + /** + * All credits will return in cents. (ie 1 flow usage uses 100 credits). + * + * @generated from field: int32 available_prompt_credits = 8; + */ + availablePromptCredits = 0; + /** + * Available flow credits = monthly flow credits * # users. + * + * @generated from field: int32 available_flow_credits = 9; + */ + availableFlowCredits = 0; + /** + * @generated from field: int32 available_flex_credits = 4; + */ + availableFlexCredits = 0; + /** + * @generated from field: int32 used_flex_credits = 7; + */ + usedFlexCredits = 0; + /** + * @generated from field: int32 used_flow_credits = 5; + */ + usedFlowCredits = 0; + /** + * @generated from field: int32 used_prompt_credits = 6; + */ + usedPromptCredits = 0; + /** + * @generated from field: exa.codeium_common_pb.TopUpStatus top_up_status = 10; + */ + topUpStatus; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PlanStatus'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'plan_info', kind: 'message', T: PlanInfo }, + { no: 2, name: 'plan_start', kind: 'message', T: Timestamp }, + { no: 3, name: 'plan_end', kind: 'message', T: Timestamp }, + { + no: 8, + name: 'available_prompt_credits', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 9, + name: 'available_flow_credits', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'available_flex_credits', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 7, + name: 'used_flex_credits', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'used_flow_credits', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'used_prompt_credits', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 10, name: 'top_up_status', kind: 'message', T: TopUpStatus }, + ]); + static fromBinary(bytes, options) { + return new _PlanStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlanStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlanStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlanStatus, a, b); + } +}; +var UserStatus = class _UserStatus extends Message { + /** + * @generated from field: bool pro = 1; + */ + pro = false; + /** + * Whether the user has opted out of code-snippet telemetry. Note that this is + * separate from disabling telemetry at an IDE level. + * + * @generated from field: bool disable_telemetry = 2; + */ + disableTelemetry = false; + /** + * @generated from field: string name = 3; + */ + name = ''; + /** + * @generated from field: bool ignore_chat_telemetry_setting = 4; + */ + ignoreChatTelemetrySetting = false; + /** + * WARNING: naming is a bit misleading (for legacy reasons). If this field is + * nonempty, then the user is a paid user. This is separate from the Teams + * plan tier; see the isTeams field on PlanInfo. + * + * @generated from field: string team_id = 5; + */ + teamId = ''; + /** + * @generated from field: exa.codeium_common_pb.UserTeamStatus team_status = 6; + */ + teamStatus = UserTeamStatus.UNSPECIFIED; + /** + * @generated from field: string email = 7; + */ + email = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.UserFeatures user_features = 9; + */ + userFeatures = []; + /** + * Only applicable if user is approved in a valid team. + * + * @generated from field: repeated exa.codeium_common_pb.TeamsFeatures teams_features = 8; + */ + teamsFeatures = []; + /** + * @generated from field: repeated exa.codeium_common_pb.Permission permissions = 11; + */ + permissions = []; + /** + * TODO(nmoy, wliu): remove plan_info since it's now inside PlanStatus + * + * @generated from field: exa.codeium_common_pb.PlanInfo plan_info = 12 [deprecated = true]; + * @deprecated + */ + planInfo; + /** + * @generated from field: exa.codeium_common_pb.PlanStatus plan_status = 13; + */ + planStatus; + /** + * @generated from field: bool has_used_antigravity = 31; + */ + hasUsedAntigravity = false; + /** + * All credits will return in cents. (ie 1 flow usage uses 100 credits). + * + * @generated from field: int64 user_used_prompt_credits = 28; + */ + userUsedPromptCredits = protoInt64.zero; + /** + * @generated from field: int64 user_used_flow_credits = 29; + */ + userUsedFlowCredits = protoInt64.zero; + /** + * @generated from field: bool has_fingerprint_set = 30; + */ + hasFingerprintSet = false; + /** + * @generated from field: exa.codeium_common_pb.TeamConfig team_config = 32; + */ + teamConfig; + /** + * Model configuration data consolidated from getCascadeModelConfigs + * + * @generated from field: exa.codeium_common_pb.CascadeModelConfigData cascade_model_config_data = 33; + */ + cascadeModelConfigData; + /** + * Whether the user has accepted the latest terms of service. + * + * @generated from field: bool accepted_latest_terms_of_service = 34; + */ + acceptedLatestTermsOfService = false; + /** + * The G1 tier of the user. + * + * @generated from field: string g1_tier = 35 [deprecated = true]; + * @deprecated + */ + g1Tier = ''; + /** + * The Google UserTier object from onboarding.proto + * + * @generated from field: google.internal.cloud.code.v1internal.UserTier user_tier = 36; + */ + userTier; + /** + * Whether data collection is force disabled for this user. + * + * @generated from field: bool user_data_collection_force_disabled = 37; + */ + userDataCollectionForceDisabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.UserStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'pro', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'disable_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'ignore_chat_telemetry_setting', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'team_status', + kind: 'enum', + T: proto3.getEnumType(UserTeamStatus), + }, + { + no: 7, + name: 'email', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'user_features', + kind: 'enum', + T: proto3.getEnumType(UserFeatures), + repeated: true, + }, + { + no: 8, + name: 'teams_features', + kind: 'enum', + T: proto3.getEnumType(TeamsFeatures), + repeated: true, + }, + { + no: 11, + name: 'permissions', + kind: 'enum', + T: proto3.getEnumType(Permission), + repeated: true, + }, + { no: 12, name: 'plan_info', kind: 'message', T: PlanInfo }, + { no: 13, name: 'plan_status', kind: 'message', T: PlanStatus }, + { + no: 31, + name: 'has_used_antigravity', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 28, + name: 'user_used_prompt_credits', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 29, + name: 'user_used_flow_credits', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 30, + name: 'has_fingerprint_set', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 32, name: 'team_config', kind: 'message', T: TeamConfig }, + { + no: 33, + name: 'cascade_model_config_data', + kind: 'message', + T: CascadeModelConfigData, + }, + { + no: 34, + name: 'accepted_latest_terms_of_service', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 35, + name: 'g1_tier', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 36, name: 'user_tier', kind: 'message', T: UserTier }, + { + no: 37, + name: 'user_data_collection_force_disabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserStatus, a, b); + } +}; +var ScmWorkspaceInfo = class _ScmWorkspaceInfo extends Message { + /** + * @generated from oneof exa.codeium_common_pb.ScmWorkspaceInfo.info + */ + info = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ScmWorkspaceInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'perforce_info', + kind: 'message', + T: PerforceDepotInfo, + oneof: 'info', + }, + { no: 2, name: 'git_info', kind: 'message', T: GitRepoInfo, oneof: 'info' }, + ]); + static fromBinary(bytes, options) { + return new _ScmWorkspaceInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ScmWorkspaceInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ScmWorkspaceInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ScmWorkspaceInfo, a, b); + } +}; +var PerforceDepotInfo = class _PerforceDepotInfo extends Message { + /** + * Unique name of the repository, commonly //depot/project. + * + * @generated from field: string depot_name = 1; + */ + depotName = ''; + /** + * Optional name to identify the version of this repo. + * + * @generated from field: string version_alias = 2; + */ + versionAlias = ''; + /** + * e.g p4d://host:port + * + * @generated from field: string base_p4d_url = 3; + */ + baseP4dUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PerforceDepotInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'depot_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'version_alias', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'base_p4d_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _PerforceDepotInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PerforceDepotInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PerforceDepotInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PerforceDepotInfo, a, b); + } +}; +var GitRepoInfo = class _GitRepoInfo extends Message { + /** + * Prefer using repo_name. + * + * @generated from field: string name = 1; + */ + name = ''; + /** + * @generated from field: string owner = 2; + */ + owner = ''; + /** + * Unique name of the repository, commonly owner/name. + * + * @generated from field: string repo_name = 5; + */ + repoName = ''; + /** + * @generated from field: string commit = 3; + */ + commit = ''; + /** + * Optional name to identify the version of this repo. + * + * @generated from field: string version_alias = 4; + */ + versionAlias = ''; + /** + * @generated from field: exa.codeium_common_pb.ScmProvider scm_provider = 6; + */ + scmProvider = ScmProvider.UNSPECIFIED; + /** + * e.g https://github.com/ or https://gitent.exafunction.com/ + * + * @generated from field: string base_git_url = 7; + */ + baseGitUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.GitRepoInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'owner', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'commit', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'version_alias', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'scm_provider', + kind: 'enum', + T: proto3.getEnumType(ScmProvider), + }, + { + no: 7, + name: 'base_git_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GitRepoInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GitRepoInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GitRepoInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GitRepoInfo, a, b); + } +}; +var CodeContextItem = class _CodeContextItem extends Message { + /** + * Absolute path to file this CodeContextItem belongs to. + * + * @generated from field: string absolute_path_migrate_me_to_uri = 1 [deprecated = true]; + * @deprecated + */ + absolutePathMigrateMeToUri = ''; + /** + * @generated from field: string absolute_uri = 16; + */ + absoluteUri = ''; + /** + * Path relative to workspace roots. CodeContextItem may not always be within + * a workspace. + * + * @generated from field: repeated exa.codeium_common_pb.WorkspacePath workspace_paths = 2; + */ + workspacePaths = []; + /** + * Name of node in the file. + * + * @generated from field: string node_name = 3; + */ + nodeName = ''; + /** + * List of parent nodes in descending order. + * + * @generated from field: repeated string node_lineage = 4; + */ + nodeLineage = []; + /** + * 0-indexed (everything). + * Line in the file where the CodeContextItem starts. Inclusive. + * + * @generated from field: uint32 start_line = 5; + */ + startLine = 0; + /** + * Col in the file where the CodeContextItem starts. Inclusive. + * + * @generated from field: uint32 start_col = 12; + */ + startCol = 0; + /** + * Line in the file where the CodeContextItem ends. Inclusive. + * + * @generated from field: uint32 end_line = 6; + */ + endLine = 0; + /** + * Col in the file where the CodeContextItem ends. Exclusive. + * + * @generated from field: uint32 end_col = 13; + */ + endCol = 0; + /** + * What kind of code snippet it is. + * + * @generated from field: exa.codeium_common_pb.CodeContextType context_type = 7; + */ + contextType = CodeContextType.UNSPECIFIED; + /** + * Language. + * + * @generated from field: exa.codeium_common_pb.Language language = 10; + */ + language = Language.UNSPECIFIED; + /** + * A map for each ContextSnippetType representation of this CodeContextItem to + * a SnippetWithWordcount item. + * + * @generated from field: map snippet_by_type = 11; + */ + snippetByType = {}; + /** + * Only populated if code context item is retrieved from remote index. + * + * @generated from field: exa.codeium_common_pb.GitRepoInfo repo_info = 14; + */ + repoInfo; + /** + * MD5 sum of the file contents that this code context item belongs to. + * + * @generated from field: bytes file_content_hash = 15; + */ + fileContentHash = new Uint8Array(0); + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CodeContextItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path_migrate_me_to_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 16, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'workspace_paths', + kind: 'message', + T: WorkspacePath, + repeated: true, + }, + { + no: 3, + name: 'node_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'node_lineage', kind: 'scalar', T: 9, repeated: true }, + { + no: 5, + name: 'start_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 12, + name: 'start_col', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 6, + name: 'end_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 13, + name: 'end_col', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'context_type', + kind: 'enum', + T: proto3.getEnumType(CodeContextType), + }, + { no: 10, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 11, + name: 'snippet_by_type', + kind: 'map', + K: 9, + V: { kind: 'message', T: SnippetWithWordCount }, + }, + { no: 14, name: 'repo_info', kind: 'message', T: GitRepoInfo }, + { + no: 15, + name: 'file_content_hash', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodeContextItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeContextItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeContextItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeContextItem, a, b); + } +}; +var SnippetWithWordCount = class _SnippetWithWordCount extends Message { + /** + * @generated from field: string snippet = 1; + */ + snippet = ''; + /** + * There is one word count per Word Splitter type, where a Word Splitter is a + * particular algorithm for breaking a string into "words". + * + * @generated from field: map word_count_by_splitter = 2; + */ + wordCountBySplitter = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.SnippetWithWordCount'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'snippet', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'word_count_by_splitter', + kind: 'map', + K: 9, + V: { kind: 'message', T: WordCount }, + }, + ]); + static fromBinary(bytes, options) { + return new _SnippetWithWordCount().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SnippetWithWordCount().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SnippetWithWordCount().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SnippetWithWordCount, a, b); + } +}; +var WordCount = class _WordCount extends Message { + /** + * @generated from field: map word_count_map = 1; + */ + wordCountMap = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.WordCount'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'word_count_map', + kind: 'map', + K: 9, + V: { + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + }, + ]); + static fromBinary(bytes, options) { + return new _WordCount().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WordCount().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WordCount().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WordCount, a, b); + } +}; +var Repository = class _Repository extends Message { + /** + * @generated from field: string computed_name = 1; + */ + computedName = ''; + /** + * @generated from field: string git_origin_url = 2; + */ + gitOriginUrl = ''; + /** + * @generated from field: string git_upstream_url = 3; + */ + gitUpstreamUrl = ''; + /** + * @generated from field: string reported_name = 4; + */ + reportedName = ''; + /** + * @generated from field: string model_name = 5; + */ + modelName = ''; + /** + * @generated from field: string submodule_url = 6; + */ + submoduleUrl = ''; + /** + * @generated from field: string submodule_path = 7; + */ + submodulePath = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Repository'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'computed_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'git_origin_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'git_upstream_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'reported_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'submodule_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'submodule_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _Repository().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Repository().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Repository().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Repository, a, b); + } +}; +var CaptureFileRequestData = class _CaptureFileRequestData extends Message { + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; + */ + metadata; + /** + * @generated from field: string prompt_id = 2; + */ + promptId = ''; + /** + * absolute file path. + * + * @generated from field: string file_path = 3; + */ + filePath = ''; + /** + * @generated from field: string original_file_content = 4; + */ + originalFileContent = ''; + /** + * @generated from field: string completion_text = 5; + */ + completionText = ''; + /** + * start of replacement range for completion (measured in bytes). + * + * @generated from field: uint64 start_offset = 6; + */ + startOffset = protoInt64.zero; + /** + * start of replacement range for completion (measured in bytes). + * + * @generated from field: uint64 end_offset = 7; + */ + endOffset = protoInt64.zero; + /** + * what line the cursor is on. + * + * @generated from field: uint64 cursor_line = 8; + */ + cursorLine = protoInt64.zero; + /** + * which column within that line is the cursor on. + * + * @generated from field: uint64 cursor_column = 9; + */ + cursorColumn = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CaptureFileRequestData'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: Metadata }, + { + no: 2, + name: 'prompt_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'file_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'original_file_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'completion_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'start_offset', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 7, + name: 'end_offset', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 8, + name: 'cursor_line', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 9, + name: 'cursor_column', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CaptureFileRequestData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CaptureFileRequestData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CaptureFileRequestData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CaptureFileRequestData, a, b); + } +}; +var CompletionStatistics = class _CompletionStatistics extends Message { + /** + * @generated from field: uint32 num_acceptances = 1; + */ + numAcceptances = 0; + /** + * @generated from field: uint32 num_rejections = 2; + */ + numRejections = 0; + /** + * @generated from field: uint32 num_lines_accepted = 3; + */ + numLinesAccepted = 0; + /** + * @generated from field: uint32 num_bytes_accepted = 4; + */ + numBytesAccepted = 0; + /** + * @generated from field: uint32 num_users = 5; + */ + numUsers = 0; + /** + * The total number of days spent using the tool across all developers during + * the period. + * + * @generated from field: uint32 active_developer_days = 6; + */ + activeDeveloperDays = 0; + /** + * The total number of hours spent using the tool across all developers during + * the period. + * + * @generated from field: uint32 active_developer_hours = 7; + */ + activeDeveloperHours = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionStatistics'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'num_acceptances', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'num_rejections', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'num_lines_accepted', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'num_bytes_accepted', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'num_users', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 6, + name: 'active_developer_days', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'active_developer_hours', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionStatistics().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionStatistics().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionStatistics().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionStatistics, a, b); + } +}; +var CompletionByDateEntry = class _CompletionByDateEntry extends Message { + /** + * @generated from field: google.protobuf.Timestamp timestamp = 1; + */ + timestamp; + /** + * @generated from field: exa.codeium_common_pb.CompletionStatistics completion_statistics = 2; + */ + completionStatistics; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionByDateEntry'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'timestamp', kind: 'message', T: Timestamp }, + { + no: 2, + name: 'completion_statistics', + kind: 'message', + T: CompletionStatistics, + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionByDateEntry().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionByDateEntry().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionByDateEntry().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionByDateEntry, a, b); + } +}; +var CompletionByLanguageEntry = class _CompletionByLanguageEntry extends Message { + /** + * @generated from field: exa.codeium_common_pb.Language language = 1; + */ + language = Language.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.CompletionStatistics completion_statistics = 2; + */ + completionStatistics; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionByLanguageEntry'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 2, + name: 'completion_statistics', + kind: 'message', + T: CompletionStatistics, + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionByLanguageEntry().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionByLanguageEntry().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionByLanguageEntry().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionByLanguageEntry, a, b); + } +}; +var ChatStats = class _ChatStats extends Message { + /** + * @generated from field: uint64 chats_sent = 1; + */ + chatsSent = protoInt64.zero; + /** + * @generated from field: uint64 chats_received = 2; + */ + chatsReceived = protoInt64.zero; + /** + * @generated from field: uint64 chats_accepted = 3; + */ + chatsAccepted = protoInt64.zero; + /** + * @generated from field: uint64 chats_inserted_at_cursor = 4; + */ + chatsInsertedAtCursor = protoInt64.zero; + /** + * @generated from field: uint64 chats_applied = 5; + */ + chatsApplied = protoInt64.zero; + /** + * loc = lines of code + * + * @generated from field: uint64 chat_loc_used = 6; + */ + chatLocUsed = protoInt64.zero; + /** + * @generated from field: uint64 chat_code_blocks_used = 7; + */ + chatCodeBlocksUsed = protoInt64.zero; + /** + * @generated from field: uint64 function_explain_count = 8; + */ + functionExplainCount = protoInt64.zero; + /** + * @generated from field: uint64 function_docstring_count = 9; + */ + functionDocstringCount = protoInt64.zero; + /** + * @generated from field: uint64 function_refactor_count = 10; + */ + functionRefactorCount = protoInt64.zero; + /** + * @generated from field: uint64 code_block_explain_count = 11; + */ + codeBlockExplainCount = protoInt64.zero; + /** + * @generated from field: uint64 code_block_refactor_count = 12; + */ + codeBlockRefactorCount = protoInt64.zero; + /** + * @generated from field: uint64 problem_explain_count = 13; + */ + problemExplainCount = protoInt64.zero; + /** + * @generated from field: uint64 function_unit_tests_count = 14; + */ + functionUnitTestsCount = protoInt64.zero; + /** + * The total number of days spent using the tool across all developers during + * the period. + * + * @generated from field: uint32 active_developer_days = 15; + */ + activeDeveloperDays = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ChatStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'chats_sent', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'chats_received', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'chats_accepted', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'chats_inserted_at_cursor', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 5, + name: 'chats_applied', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 6, + name: 'chat_loc_used', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 7, + name: 'chat_code_blocks_used', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 8, + name: 'function_explain_count', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 9, + name: 'function_docstring_count', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 10, + name: 'function_refactor_count', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 11, + name: 'code_block_explain_count', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 12, + name: 'code_block_refactor_count', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 13, + name: 'problem_explain_count', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 14, + name: 'function_unit_tests_count', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 15, + name: 'active_developer_days', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatStats, a, b); + } +}; +var ChatStatsByDateEntry = class _ChatStatsByDateEntry extends Message { + /** + * @generated from field: google.protobuf.Timestamp timestamp = 1; + */ + timestamp; + /** + * @generated from field: exa.codeium_common_pb.ChatStats chat_stats = 2; + */ + chatStats; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ChatStatsByDateEntry'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'timestamp', kind: 'message', T: Timestamp }, + { no: 2, name: 'chat_stats', kind: 'message', T: ChatStats }, + ]); + static fromBinary(bytes, options) { + return new _ChatStatsByDateEntry().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatStatsByDateEntry().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatStatsByDateEntry().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatStatsByDateEntry, a, b); + } +}; +var ChatStatsByModelEntry = class _ChatStatsByModelEntry extends Message { + /** + * @generated from field: exa.codeium_common_pb.Model model_id = 1; + */ + modelId = Model.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.ChatStats chat_stats = 2; + */ + chatStats; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ChatStatsByModelEntry'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model_id', kind: 'enum', T: proto3.getEnumType(Model) }, + { no: 2, name: 'chat_stats', kind: 'message', T: ChatStats }, + ]); + static fromBinary(bytes, options) { + return new _ChatStatsByModelEntry().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatStatsByModelEntry().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatStatsByModelEntry().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatStatsByModelEntry, a, b); + } +}; +var CommandStats = class _CommandStats extends Message { + /** + * @generated from field: uint64 num_commands = 1; + */ + numCommands = protoInt64.zero; + /** + * @generated from field: uint64 num_commands_accepted = 2; + */ + numCommandsAccepted = protoInt64.zero; + /** + * @generated from field: uint64 num_commands_rejected = 3; + */ + numCommandsRejected = protoInt64.zero; + /** + * @generated from field: uint64 num_edits = 4; + */ + numEdits = protoInt64.zero; + /** + * @generated from field: uint64 num_generations = 5; + */ + numGenerations = protoInt64.zero; + /** + * @generated from field: uint64 loc_added = 6; + */ + locAdded = protoInt64.zero; + /** + * @generated from field: uint64 loc_removed = 7; + */ + locRemoved = protoInt64.zero; + /** + * @generated from field: uint64 bytes_added = 8; + */ + bytesAdded = protoInt64.zero; + /** + * @generated from field: uint64 bytes_removed = 9; + */ + bytesRemoved = protoInt64.zero; + /** + * @generated from field: uint64 loc_selected = 10; + */ + locSelected = protoInt64.zero; + /** + * @generated from field: uint64 bytes_selected = 11; + */ + bytesSelected = protoInt64.zero; + /** + * @generated from field: map num_commands_by_source = 12; + */ + numCommandsBySource = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CommandStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'num_commands', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'num_commands_accepted', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'num_commands_rejected', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'num_edits', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 5, + name: 'num_generations', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 6, + name: 'loc_added', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 7, + name: 'loc_removed', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 8, + name: 'bytes_added', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 9, + name: 'bytes_removed', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 10, + name: 'loc_selected', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 11, + name: 'bytes_selected', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 12, + name: 'num_commands_by_source', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 4, + /* ScalarType.UINT64 */ }, - { no: 6, name: 'network_first_byte_latency_ms', kind: 'scalar', T: 4 }, - { no: 7, name: 'api_server_first_line_latency_ms', kind: 'scalar', T: 4 }, - { - no: 8, - name: 'language_server_first_line_latency_ms', + }, + ]); + static fromBinary(bytes, options) { + return new _CommandStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CommandStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CommandStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CommandStats, a, b); + } +}; +var CommandStatsByDateEntry = class _CommandStatsByDateEntry extends Message { + /** + * @generated from field: google.protobuf.Timestamp timestamp = 1; + */ + timestamp; + /** + * @generated from field: exa.codeium_common_pb.CommandStats command_stats = 2; + */ + commandStats; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CommandStatsByDateEntry'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'timestamp', kind: 'message', T: Timestamp }, + { no: 2, name: 'command_stats', kind: 'message', T: CommandStats }, + ]); + static fromBinary(bytes, options) { + return new _CommandStatsByDateEntry().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CommandStatsByDateEntry().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CommandStatsByDateEntry().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CommandStatsByDateEntry, a, b); + } +}; +var UserTableStats = class _UserTableStats extends Message { + /** + * @generated from field: string name = 1; + */ + name = ''; + /** + * @generated from field: string email = 2; + */ + email = ''; + /** + * @generated from field: google.protobuf.Timestamp last_update_time = 3; + */ + lastUpdateTime; + /** + * @generated from field: string api_key = 4; + */ + apiKey = ''; + /** + * @generated from field: bool disable_codeium = 5; + */ + disableCodeium = false; + /** + * @generated from field: uint32 active_days = 6; + */ + activeDays = 0; + /** + * @generated from field: string role = 7; + */ + role = ''; + /** + * @generated from field: google.protobuf.Timestamp signup_time = 8; + */ + signupTime; + /** + * @generated from field: google.protobuf.Timestamp last_autocomplete_usage_time = 9; + */ + lastAutocompleteUsageTime; + /** + * @generated from field: google.protobuf.Timestamp last_chat_usage_time = 10; + */ + lastChatUsageTime; + /** + * @generated from field: google.protobuf.Timestamp last_command_usage_time = 11; + */ + lastCommandUsageTime; + /** + * @generated from field: int64 prompt_credits_used = 12; + */ + promptCreditsUsed = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.UserTableStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'email', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'last_update_time', kind: 'message', T: Timestamp }, + { + no: 4, + name: 'api_key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'disable_codeium', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'active_days', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'role', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 8, name: 'signup_time', kind: 'message', T: Timestamp }, + { + no: 9, + name: 'last_autocomplete_usage_time', + kind: 'message', + T: Timestamp, + }, + { no: 10, name: 'last_chat_usage_time', kind: 'message', T: Timestamp }, + { no: 11, name: 'last_command_usage_time', kind: 'message', T: Timestamp }, + { + no: 12, + name: 'prompt_credits_used', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserTableStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserTableStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserTableStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserTableStats, a, b); + } +}; +var CascadeNUXState = class _CascadeNUXState extends Message { + /** + * @generated from field: exa.codeium_common_pb.CascadeNUXEvent event = 1; + */ + event = CascadeNUXEvent.CASCADE_NUX_EVENT_UNSPECIFIED; + /** + * @generated from field: google.protobuf.Timestamp timestamp = 2; + */ + timestamp; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CascadeNUXState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'event', + kind: 'enum', + T: proto3.getEnumType(CascadeNUXEvent), + }, + { no: 2, name: 'timestamp', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _CascadeNUXState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeNUXState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeNUXState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeNUXState, a, b); + } +}; +var UserNUXState = class _UserNUXState extends Message { + /** + * @generated from field: exa.codeium_common_pb.UserNUXEvent event = 1; + */ + event = UserNUXEvent.USER_NUX_EVENT_UNSPECIFIED; + /** + * @generated from field: google.protobuf.Timestamp timestamp = 2; + */ + timestamp; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.UserNUXState'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'event', kind: 'enum', T: proto3.getEnumType(UserNUXEvent) }, + { no: 2, name: 'timestamp', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _UserNUXState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserNUXState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserNUXState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserNUXState, a, b); + } +}; +var ConversationBrainConfig = class _ConversationBrainConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.PlanMode plan_mode = 1; + */ + planMode = PlanMode.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ConversationBrainConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'plan_mode', kind: 'enum', T: proto3.getEnumType(PlanMode) }, + ]); + static fromBinary(bytes, options) { + return new _ConversationBrainConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConversationBrainConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConversationBrainConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConversationBrainConfig, a, b); + } +}; +var FeatureUsageData = class _FeatureUsageData extends Message { + /** + * @generated from field: bool has_used = 1; + */ + hasUsed = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.FeatureUsageData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'has_used', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _FeatureUsageData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FeatureUsageData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FeatureUsageData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FeatureUsageData, a, b); + } +}; +var CascadeNUXConfig = class _CascadeNUXConfig extends Message { + /** + * The UID for the nux. Users can only see a nux with a particular UID once. + * These should be assigned monotonically increasing IDs. + * + * @generated from field: uint32 uid = 1; + */ + uid = 0; + /** + * The location of the NUX. A nux will be shown at the location when the + * location mounts. + * + * @generated from field: exa.codeium_common_pb.CascadeNUXLocation location = 2; + */ + location = CascadeNUXLocation.CASCADE_NUX_LOCATION_UNSPECIFIED; + /** + * If provided, the NUX will only be shown when the trigger is met. + * + * @generated from field: exa.codeium_common_pb.CascadeNUXTrigger trigger = 3; + */ + trigger = CascadeNUXTrigger.CASCADE_NUX_TRIGGER_UNSPECIFIED; + /** + * Name to log the nux to analytics + * + * @generated from field: string analytics_event_name = 4; + */ + analyticsEventName = ''; + /** + * An optional URL to learn more about the NUX. Shown in a little "Learn More" + * button. Usually points to antigravity docs. + * + * @generated from field: string learn_more_url = 7; + */ + learnMoreUrl = ''; + /** + * Higher for NUXes that will be shown first. Usually should be zero. + * + * @generated from field: int32 priority = 8; + */ + priority = 0; + /** + * An optional icon for the NUX. + * + * @generated from field: exa.codeium_common_pb.CascadeNUXIcon icon = 10; + */ + icon = CascadeNUXIcon.CASCADE_NUX_ICON_UNSPECIFIED; + /** + * If true, the NUX will only be shown when Cascade is idle. + * + * @generated from field: bool requires_idle_cascade = 11; + */ + requiresIdleCascade = false; + /** + * Title of the NUX. + * + * @generated from field: string title = 12; + */ + title = ''; + /** + * Body of the NUX. + * + * @generated from field: optional string body = 13; + */ + body; + /** + * Image URL of the NUX. + * + * @generated from field: optional string image_url = 14; + */ + imageUrl; + /** + * Video URL of the NUX. + * + * @generated from field: optional string video_url = 15; + */ + videoUrl; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CascadeNUXConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uid', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'location', + kind: 'enum', + T: proto3.getEnumType(CascadeNUXLocation), + }, + { + no: 3, + name: 'trigger', + kind: 'enum', + T: proto3.getEnumType(CascadeNUXTrigger), + }, + { + no: 4, + name: 'analytics_event_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'learn_more_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'priority', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 10, + name: 'icon', + kind: 'enum', + T: proto3.getEnumType(CascadeNUXIcon), + }, + { + no: 11, + name: 'requires_idle_cascade', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 12, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 13, name: 'body', kind: 'scalar', T: 9, opt: true }, + { no: 14, name: 'image_url', kind: 'scalar', T: 9, opt: true }, + { no: 15, name: 'video_url', kind: 'scalar', T: 9, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _CascadeNUXConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeNUXConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeNUXConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeNUXConfig, a, b); + } +}; +var UserSettings = class _UserSettings extends Message { + /** + * Whether or not to start a new conversation or open to the most recent one + * when opening the chat panel in Codeium. + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: bool open_most_recent_chat_conversation = 1 [deprecated = true]; + * @deprecated + */ + openMostRecentChatConversation = false; + /** + * Last selected chat model ID. Used to make the model preference sticky + * between panel sessions. + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: exa.codeium_common_pb.Model last_selected_model = 2 [deprecated = true]; + * @deprecated + */ + lastSelectedModel = Model.UNSPECIFIED; + /** + * Not used in jetski/antigravity. + * + * @generated from field: exa.codeium_common_pb.ThemePreference theme_preference = 3 [deprecated = true]; + * @deprecated + */ + themePreference = ThemePreference.UNSPECIFIED; + /** + * Whether or not to remember last model choice (for chat & cascade) and + * persist it. Only allowed for some plans (not free) + * Deprecated: Unused + * + * @generated from field: exa.codeium_common_pb.RememberLastModelSelection remember_last_model_selection = 7 [deprecated = true]; + * @deprecated + */ + rememberLastModelSelection = RememberLastModelSelection.UNSPECIFIED; + /** + * The current mode of the autocomplete speed + * Deprecated: Use state sync for this. + * + * @generated from field: exa.codeium_common_pb.AutocompleteSpeed autocomplete_speed = 6 [deprecated = true]; + * @deprecated + */ + autocompleteSpeed = AutocompleteSpeed.UNSPECIFIED; + /** + * Name of the last model used for chat (needed for Enterprise external + * models) + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: string last_selected_model_name = 8 [deprecated = true]; + * @deprecated + */ + lastSelectedModelName = ''; + /** + * Cascade Settings that should be set only in the CascadePanel. + * They are set to optional so that the extension settings don't overwrite + * them. Last selected cascade model ID. Used to make the model preference + * sticky between panel sessions. + * Deprecated: Use State Sync + * + * @generated from field: optional exa.codeium_common_pb.Model last_selected_cascade_model = 9 [deprecated = true]; + * @deprecated + */ + lastSelectedCascadeModel; + /** + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: optional exa.codeium_common_pb.ModelOrAlias last_selected_cascade_model_or_alias = 30 [deprecated = true]; + * @deprecated + */ + lastSelectedCascadeModelOrAlias; + /** + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: optional exa.codeium_common_pb.ConversationalPlannerMode cascade_planner_mode = 13 [deprecated = true]; + * @deprecated + */ + cascadePlannerMode; + /** + * The last model that was used to override the user's last selected model. + * This is set via Unleash and is designed to force users in the experiment + * group to load up Cascade with a specific model that they may or may not + * have previously selected. Once applied, we cache the model override in this + * field so that we do not apply it again until the experiment changes, thus + * allowing the user to switch their model away from the model override at any + * time. This field is deprecated as we query the API server for the model + * override instead of unleash. + * + * @generated from field: optional exa.codeium_common_pb.Model last_model_override = 46 [deprecated = true]; + * @deprecated + */ + lastModelOverride; + /** + * The last model override version id that overrode the user's selection + * + * @generated from field: optional string last_model_default_override_version_id = 58; + */ + lastModelDefaultOverrideVersionId; + /** + * User-added allow list of commands that can be run by Cascade + * Cascade reads these via the CascadeConfig per-request, not from user + * settings. + * Deprecated: Use state sync for this. + * + * @generated from field: repeated string cascade_allowed_commands = 14 [deprecated = true]; + * @deprecated + */ + cascadeAllowedCommands = []; + /** + * User-added deny list of commands that can be run by Cascade + * Cascade reads these via the CascadeConfig per-request, not from user + * settings. + * Deprecated: Use state sync for this. + * + * @generated from field: repeated string cascade_denied_commands = 15 [deprecated = true]; + * @deprecated + */ + cascadeDeniedCommands = []; + /** + * Whether Cascade's web search is disabled. This is set to disabled so that + * it defaults to "on" when used in a headless environment without user + * settings. + * + * @generated from field: bool cascade_web_search_disabled = 18 [deprecated = true]; + * @deprecated + */ + cascadeWebSearchDisabled = false; + /** + * Denotes whether tab is on or off in Jetski + * Deprecated: Use state sync for this. + * + * @generated from field: exa.codeium_common_pb.TabEnabled tab_enabled = 67 [deprecated = true]; + * @deprecated + */ + tabEnabled = TabEnabled.UNSPECIFIED; + /** + * Disable the popup that appears when selecting code in antigravity + * Deprecated: Use unified state sync. + * + * @generated from field: bool disable_selection_popup = 21 [deprecated = true]; + * @deprecated + */ + disableSelectionPopup = false; + /** + * Disable inline hints for explain problem in antigravity + * Deprecated: Unused in jetskiy/antigravity. + * + * @generated from field: bool disable_explain_problem_inlay_hint = 22 [deprecated = true]; + * @deprecated + */ + disableExplainProblemInlayHint = false; + /** + * Disable inlay hints shortcuts in antigravity + * Deprecated: Unused in jetskiy/antigravity. + * + * @generated from field: bool disable_inlay_hint_shortcuts = 23 [deprecated = true]; + * @deprecated + */ + disableInlayHintShortcuts = false; + /** + * Disable automatically opening Cascade when reloading the editor + * + * @generated from field: bool disable_open_cascade_on_reload = 24; + */ + disableOpenCascadeOnReload = false; + /** + * Disable automatically opening files that were edited by Cascade + * + * @generated from field: bool disable_auto_open_edited_files = 25 [deprecated = true]; + * @deprecated + */ + disableAutoOpenEditedFiles = false; + /** + * Disable tab jump in antigravity + * + * @generated from field: bool disable_tab_to_jump = 26 [deprecated = true]; + * @deprecated + */ + disableTabToJump = false; + /** + * Cascade terminal commands auto execution mode + * Deprecated: Use state sync for this. + * + * @generated from field: exa.codeium_common_pb.CascadeCommandsAutoExecution cascade_auto_execution_policy = 27 [deprecated = true]; + * @deprecated + */ + cascadeAutoExecutionPolicy = CascadeCommandsAutoExecution.UNSPECIFIED; + /** + * The cascade id of the last selected conversation. + * + * @generated from field: optional string last_selected_cascade_id = 28 [deprecated = true]; + * @deprecated + */ + lastSelectedCascadeId; + /** + * Whether to send explain and fix problems to current conversation if there + * is a cascade id. + * + * @generated from field: bool explain_and_fix_in_current_conversation = 29; + */ + explainAndFixInCurrentConversation = false; + /** + * Whether Cascade can view or edit .gitignore files. Default to false. + * Deprecated: Use state sync for this. + * + * @generated from field: bool allow_cascade_access_gitignore_files = 31 [deprecated = true]; + * @deprecated + */ + allowCascadeAccessGitignoreFiles = false; + /** + * Whether Agent can view or edit non-workspace files. Default to false. + * Deprecated: Use state sync for this. + * + * @generated from field: bool allow_agent_access_non_workspace_files = 79 [deprecated = true]; + * @deprecated + */ + allowAgentAccessNonWorkspaceFiles = false; + /** + * Whether to disable auto fix lint functionality for Cascade. + * Deprecated: Use state sync for this. + * + * @generated from field: bool disable_cascade_auto_fix_lints = 32 [deprecated = true]; + * @deprecated + */ + disableCascadeAutoFixLints = false; + /** + * @generated from field: exa.codeium_common_pb.DetectAndUseProxy detect_and_use_proxy = 34; + */ + detectAndUseProxy = DetectAndUseProxy.UNSPECIFIED; + /** + * Deprecated: Use state sync for this. + * + * @generated from field: bool disable_tab_to_import = 35 [deprecated = true]; + * @deprecated + */ + disableTabToImport = false; + /** + * Deprecated: Use state sync for this. + * + * @generated from field: bool use_clipboard_for_completions = 36 [deprecated = true]; + * @deprecated + */ + useClipboardForCompletions = false; + /** + * Deprecated: Use state sync for this. + * + * @generated from field: bool disable_highlight_after_accept = 37 [deprecated = true]; + * @deprecated + */ + disableHighlightAfterAccept = false; + /** + * If true, Cascade does not create autogenerated memories unless explicitly + * asked + * Deprecated: Use state sync for this. + * + * @generated from field: bool disable_auto_generate_memories = 39 [deprecated = true]; + * @deprecated + */ + disableAutoGenerateMemories = false; + /** + * If true, the IDE plays sounds on certain events, e.g. when Cascade finishes + * generating a response + * + * @generated from field: bool enable_sounds_for_special_events = 40; + */ + enableSoundsForSpecialEvents = false; + /** + * If true, the IDE plays sounds (in sequence, forming a melody) when + * accepting Antigravity Tab suggestions. This is a temporary feature for + * April Fool's. + * Deprecated: Use state sync for this. + * + * @generated from field: bool enable_tab_sounds = 41 [deprecated = true]; + * @deprecated + */ + enableTabSounds = false; + /** + * Deprecated flag to determine if Cascade can run in the background. + * disable_cascade_in_background is the new flag to control this behavior + * since we want this to be enabled by default now. + * + * @generated from field: bool allow_cascade_in_background = 42 [deprecated = true]; + * @deprecated + */ + allowCascadeInBackground = false; + /** + * Deprecated: Use state sync for this. + * + * @generated from field: exa.codeium_common_pb.TabToJump tab_to_jump = 43 [deprecated = true]; + * @deprecated + */ + tabToJump = TabToJump.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.CascadeWebSearchTool cascade_web_search = 44; + */ + cascadeWebSearch = CascadeWebSearchTool.UNSPECIFIED; + /** + * Whether to enable terminal completions + * Deprecated: Use state sync for this. + * + * @generated from field: bool enable_terminal_completion = 45 [deprecated = true]; + * @deprecated + */ + enableTerminalCompletion = false; + /** + * Whether Antigravity Tab completions are snoozed + * Deprecated: Use state sync for this. + * + * @generated from field: bool is_snoozed = 55 [deprecated = true]; + * @deprecated + */ + isSnoozed = false; + /** + * Whether to disable Cascade from running in the background + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: bool disable_cascade_in_background = 48 [deprecated = true]; + * @deprecated + */ + disableCascadeInBackground = false; + /** + * Custom workspaces for Enterprise Users. Tool calls will always pass for + * these workspaces. Tool calls currently fail outside tracked worskspace if + * GetEnforceWorkspaceValidation is set. + * + * @generated from field: repeated string custom_workspace = 50; + */ + customWorkspace = []; + /** + * The user's global plan mode preference. + * Deprecated: Unused. + * + * @generated from field: exa.codeium_common_pb.PlanMode global_plan_mode_preference = 54 [deprecated = true]; + * @deprecated + */ + globalPlanModePreference = PlanMode.UNSPECIFIED; + /** + * Cached model configurations for Cascade + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: repeated exa.codeium_common_pb.ClientModelConfig cached_cascade_model_configs = 52 [deprecated = true]; + * @deprecated + */ + cachedCascadeModelConfigs = []; + /** + * Cached model sorts for Cascade + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: repeated exa.codeium_common_pb.ClientModelSort cached_cascade_model_sorts = 53 [deprecated = true]; + * @deprecated + */ + cachedCascadeModelSorts = []; + /** + * Whether to enable Cascade extension code execution + * Deprecated: Run extension code is unused. + * + * @generated from field: exa.codeium_common_pb.CascadeRunExtensionCode cascade_run_extension_code = 56 [deprecated = true]; + * @deprecated + */ + cascadeRunExtensionCode = CascadeRunExtensionCode.UNSPECIFIED; + /** + * Whether to enable Cascade extension code auto-run + * Deprecated: Run extension code is unused. + * + * @generated from field: exa.codeium_common_pb.CascadeRunExtensionCodeAutoRun cascade_run_extension_code_auto_run = 57 [deprecated = true]; + * @deprecated + */ + cascadeRunExtensionCodeAutoRun = CascadeRunExtensionCodeAutoRun.UNSPECIFIED; + /** + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: exa.codeium_common_pb.CascadeInputAutocomplete cascade_input_autocomplete = 65 [deprecated = true]; + * @deprecated + */ + cascadeInputAutocomplete = CascadeInputAutocomplete.UNSPECIFIED; + /** + * Global auto-continue-on-max-invocator-generations setting + * + * @generated from field: exa.codeium_common_pb.AutoContinueOnMaxGeneratorInvocations auto_continue_on_max_generator_invocations = 59; + */ + autoContinueOnMaxGeneratorInvocations = + AutoContinueOnMaxGeneratorInvocations.UNSPECIFIED; + /** + * List of recently used cascade models (LRU order, max 3 items) + * Deprecated: Essentially unused + * + * @generated from field: repeated string recently_used_cascade_models = 61 [deprecated = true]; + * @deprecated + */ + recentlyUsedCascadeModels = []; + /** + * Whether to enable annotations + * Deprecated: Unused in jetski/antigravity. + * + * @generated from field: exa.codeium_common_pb.AnnotationsConfig annotations_config = 63 [deprecated = true]; + * @deprecated + */ + annotationsConfig = AnnotationsConfig.UNSPECIFIED; + /** + * If populated, automatically sets the working directories relative to the + * first workspace. + * + * @generated from field: repeated string relative_working_dir_paths = 66; + */ + relativeWorkingDirPaths = []; + /** + * Custom models specified by the user, currently used to support models + * specified via Model URL's. + * + * @generated from field: map custom_models = 68; + */ + customModels = {}; + /** + * Disable code snippet telemtry. + * This setting gets synced with the users table via the API server and + * isn't only applied to the machine level. + * + * @generated from field: bool disable_code_snippet_telemetry = 69; + */ + disableCodeSnippetTelemetry = false; + /** + * Whether planning is enabled or disabled. This is separate from + * (but an evolution of) the "plan mode" functionality that the agent had in + * the past. + * Deprecated: Use state sync for this. + * + * @generated from field: exa.codeium_common_pb.PlanningMode planning_mode = 70 [deprecated = true]; + * @deprecated + */ + planningMode = PlanningMode.UNSPECIFIED; + /** + * Controls whether browser tools are enabled for the Agent + * Deprecated: Use state sync for this. + * + * @generated from field: exa.codeium_common_pb.AgentBrowserTools agent_browser_tools = 71 [deprecated = true]; + * @deprecated + */ + agentBrowserTools = AgentBrowserTools.UNSPECIFIED; + /** + * Controls when notify_user requests the user to review generated artifacts. + * Deprecated: Use state sync for this. + * + * @generated from field: exa.codeium_common_pb.ArtifactReviewMode artifact_review_mode = 72 [deprecated = true]; + * @deprecated + */ + artifactReviewMode = ArtifactReviewMode.UNSPECIFIED; + /** + * Whether Tab can view or edit gitignore files. Defaults to false. + * Deprecated: Use state sync for this. + * + * @generated from field: bool allow_tab_access_gitignore_files = 75 [deprecated = true]; + * @deprecated + */ + allowTabAccessGitignoreFiles = false; + /** + * Path to the Chrome/Chromium executable. If not specified, the system will + * attempt to detect the Chrome installation automatically. + * Deprecated: Use state sync for this. + * + * @generated from field: string browser_chrome_path = 76 [deprecated = true]; + * @deprecated + */ + browserChromePath = ''; + /** + * Custom path for the browser user profile directory. If not specified, the + * default profile path will be used. + * Deprecated: Use state sync for this. + * + * @generated from field: string browser_user_profile_path = 77 [deprecated = true]; + * @deprecated + */ + browserUserProfilePath = ''; + /** + * Port number for Chrome DevTools Protocol remote debugging. Default is 9222. + * Changed to avoid port conflicts. + * Deprecated: Use state sync for this. + * + * @generated from field: int32 browser_cdp_port = 78 [deprecated = true]; + * @deprecated + */ + browserCdpPort = 0; + /** + * Whether we are in demo mode. This will modify parts of the UI to make + * demoing cleaner and more consistent. This does not control the underlying + * ~/.gemini data directory. + * Deprecated: Use state sync for this. + * + * @generated from field: bool demo_mode_enabled = 80 [deprecated = true]; + * @deprecated + */ + demoModeEnabled = false; + /** + * Policy for how the browser subagent handles Javascript execution + * Deprecated: Use state sync for this. + * + * @generated from field: exa.codeium_common_pb.BrowserJsExecutionPolicy browser_js_execution_policy = 81 [deprecated = true]; + * @deprecated + */ + browserJsExecutionPolicy = BrowserJsExecutionPolicy.UNSPECIFIED; + /** + * Whether the IDE is in secure mode, which enforces certain security + * restrictions (eg. terminal, browser execution, gitignore access) + * Deprecated: Use state sync for this. + * + * @generated from field: bool secure_mode_enabled = 82 [deprecated = true]; + * @deprecated + */ + secureModeEnabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.UserSettings'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'open_most_recent_chat_conversation', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'last_selected_model', + kind: 'enum', + T: proto3.getEnumType(Model), + }, + { + no: 3, + name: 'theme_preference', + kind: 'enum', + T: proto3.getEnumType(ThemePreference), + }, + { + no: 7, + name: 'remember_last_model_selection', + kind: 'enum', + T: proto3.getEnumType(RememberLastModelSelection), + }, + { + no: 6, + name: 'autocomplete_speed', + kind: 'enum', + T: proto3.getEnumType(AutocompleteSpeed), + }, + { + no: 8, + name: 'last_selected_model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'last_selected_cascade_model', + kind: 'enum', + T: proto3.getEnumType(Model), + opt: true, + }, + { + no: 30, + name: 'last_selected_cascade_model_or_alias', + kind: 'message', + T: ModelOrAlias, + opt: true, + }, + { + no: 13, + name: 'cascade_planner_mode', + kind: 'enum', + T: proto3.getEnumType(ConversationalPlannerMode), + opt: true, + }, + { + no: 46, + name: 'last_model_override', + kind: 'enum', + T: proto3.getEnumType(Model), + opt: true, + }, + { + no: 58, + name: 'last_model_default_override_version_id', + kind: 'scalar', + T: 9, + opt: true, + }, + { + no: 14, + name: 'cascade_allowed_commands', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 15, + name: 'cascade_denied_commands', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 18, + name: 'cascade_web_search_disabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 67, + name: 'tab_enabled', + kind: 'enum', + T: proto3.getEnumType(TabEnabled), + }, + { + no: 21, + name: 'disable_selection_popup', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 22, + name: 'disable_explain_problem_inlay_hint', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 23, + name: 'disable_inlay_hint_shortcuts', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 24, + name: 'disable_open_cascade_on_reload', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 25, + name: 'disable_auto_open_edited_files', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 26, + name: 'disable_tab_to_jump', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 27, + name: 'cascade_auto_execution_policy', + kind: 'enum', + T: proto3.getEnumType(CascadeCommandsAutoExecution), + }, + { + no: 28, + name: 'last_selected_cascade_id', + kind: 'scalar', + T: 9, + opt: true, + }, + { + no: 29, + name: 'explain_and_fix_in_current_conversation', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 31, + name: 'allow_cascade_access_gitignore_files', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 79, + name: 'allow_agent_access_non_workspace_files', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 32, + name: 'disable_cascade_auto_fix_lints', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 34, + name: 'detect_and_use_proxy', + kind: 'enum', + T: proto3.getEnumType(DetectAndUseProxy), + }, + { + no: 35, + name: 'disable_tab_to_import', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 36, + name: 'use_clipboard_for_completions', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 37, + name: 'disable_highlight_after_accept', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 39, + name: 'disable_auto_generate_memories', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 40, + name: 'enable_sounds_for_special_events', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 41, + name: 'enable_tab_sounds', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 42, + name: 'allow_cascade_in_background', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 43, + name: 'tab_to_jump', + kind: 'enum', + T: proto3.getEnumType(TabToJump), + }, + { + no: 44, + name: 'cascade_web_search', + kind: 'enum', + T: proto3.getEnumType(CascadeWebSearchTool), + }, + { + no: 45, + name: 'enable_terminal_completion', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 55, + name: 'is_snoozed', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 48, + name: 'disable_cascade_in_background', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 50, name: 'custom_workspace', kind: 'scalar', T: 9, repeated: true }, + { + no: 54, + name: 'global_plan_mode_preference', + kind: 'enum', + T: proto3.getEnumType(PlanMode), + }, + { + no: 52, + name: 'cached_cascade_model_configs', + kind: 'message', + T: ClientModelConfig, + repeated: true, + }, + { + no: 53, + name: 'cached_cascade_model_sorts', + kind: 'message', + T: ClientModelSort, + repeated: true, + }, + { + no: 56, + name: 'cascade_run_extension_code', + kind: 'enum', + T: proto3.getEnumType(CascadeRunExtensionCode), + }, + { + no: 57, + name: 'cascade_run_extension_code_auto_run', + kind: 'enum', + T: proto3.getEnumType(CascadeRunExtensionCodeAutoRun), + }, + { + no: 65, + name: 'cascade_input_autocomplete', + kind: 'enum', + T: proto3.getEnumType(CascadeInputAutocomplete), + }, + { + no: 59, + name: 'auto_continue_on_max_generator_invocations', + kind: 'enum', + T: proto3.getEnumType(AutoContinueOnMaxGeneratorInvocations), + }, + { + no: 61, + name: 'recently_used_cascade_models', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 63, + name: 'annotations_config', + kind: 'enum', + T: proto3.getEnumType(AnnotationsConfig), + }, + { + no: 66, + name: 'relative_working_dir_paths', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 68, + name: 'custom_models', + kind: 'map', + K: 9, + V: { kind: 'message', T: ModelInfo }, + }, + { + no: 69, + name: 'disable_code_snippet_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 70, + name: 'planning_mode', + kind: 'enum', + T: proto3.getEnumType(PlanningMode), + }, + { + no: 71, + name: 'agent_browser_tools', + kind: 'enum', + T: proto3.getEnumType(AgentBrowserTools), + }, + { + no: 72, + name: 'artifact_review_mode', + kind: 'enum', + T: proto3.getEnumType(ArtifactReviewMode), + }, + { + no: 75, + name: 'allow_tab_access_gitignore_files', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 76, + name: 'browser_chrome_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 77, + name: 'browser_user_profile_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 78, + name: 'browser_cdp_port', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 80, + name: 'demo_mode_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 81, + name: 'browser_js_execution_policy', + kind: 'enum', + T: proto3.getEnumType(BrowserJsExecutionPolicy), + }, + { + no: 82, + name: 'secure_mode_enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserSettings().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserSettings().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserSettings().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserSettings, a, b); + } +}; +var UserAccountSettings = class _UserAccountSettings extends Message { + /** + * @generated from field: bool disable_code_snippet_telemetry = 1; + */ + disableCodeSnippetTelemetry = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.UserAccountSettings'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'disable_code_snippet_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserAccountSettings().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserAccountSettings().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserAccountSettings().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserAccountSettings, a, b); + } +}; +var ModelFeatures = class _ModelFeatures extends Message { + /** + * Context token FT models. When true, prompts will use special tokens to wrap + * code context items instead of adding them as commented code blocks. + * + * @generated from field: bool supports_context_tokens = 2; + */ + supportsContextTokens = false; + /** + * Chat-based codeium command IFT models. When true, command prompts will use + * llama-instruct [INST] and [/INST] tags. + * + * @generated from field: bool requires_instruct_tags = 3; + */ + requiresInstructTags = false; + /** + * Training examples use FIM at a per-example level. When true, prompts will + * wrap the context section of the prompt in a FIM block. Regardless of + * whether or not this is set, the context section will always occur before + * the current document FIM block in the prompt. + * + * @generated from field: bool requires_fim_context = 4; + */ + requiresFimContext = false; + /** + * Context snippet prefix. When true, prompts will include "Context from" in + * the prefix before context item snippets. Regardless of whether or not this + * is set, the context type and node path will be included in the context item + * snippet prefix. + * + * @generated from field: bool requires_context_snippet_prefix = 5; + */ + requiresContextSnippetPrefix = false; + /** + * Context relevance tags instead of special tokens for the context check + * task. When true, prompts will use no special tokens for the context check + * task. + * + * @generated from field: bool requires_context_relevance_tags = 6; + */ + requiresContextRelevanceTags = false; + /** + * Whether to inject LLama3 header tokens when formatting chat prompt. + * https://llama.meta.com/docs/model-cards-and-prompt-formats/meta-llama-3 + * + * @generated from field: bool requires_llama3_tokens = 7; + */ + requiresLlama3Tokens = false; + /** + * Whether model can support arbitrary prompt text. Used for configuring + * prompt based experiments. + * + * @generated from field: bool zero_shot_capable = 8; + */ + zeroShotCapable = false; + /** + * Whether the model uses the autocomplete as command formatting + * (Formatting an autocomplete request as a generalized "command generate" + * prompt that supports inline prefix/suffix. Generally, only used by FIM + * capable chat models.) + * + * @generated from field: bool requires_autocomplete_as_command = 9; + */ + requiresAutocompleteAsCommand = false; + /** + * Whether the model supports putting <|cursor|> in the supercomplete + * selection to signify where the cursor is. NOTE(anthonywang): Making this + * "supports" for now since it is worse for a cursor unaware model to receive + * a cursor aware prompt (because it will start leaking the cursor) than for a + * cursor aware model to receive a cursor unaware prompt, although the cursor + * aware model will likely have unknown behavior if given the cursor unaware + * prompt. This field is used for both autocomplete and supercomplete prompt + * construction right now. + * + * @generated from field: bool supports_cursor_aware_supercomplete = 10; + */ + supportsCursorAwareSupercomplete = false; + /** + * Whether the model supports vision + * + * @generated from field: bool supports_images = 11; + */ + supportsImages = false; + /** + * @generated from field: bool supports_pdf = 22; + */ + supportsPdf = false; + /** + * @generated from field: bool supports_video = 23; + */ + supportsVideo = false; + /** + * Map of MIME types to whether the model supports them. + * If this map is populated, it takes precedence over the individual boolean + * fields (supports_images, supports_pdf, supports_video). + * + * @generated from field: map supported_mime_types = 28; + */ + supportedMimeTypes = {}; + /** + * Whether the model supports tool calls + * + * @generated from field: bool supports_tool_calls = 12; + */ + supportsToolCalls = false; + /** + * Does not support tool choice. This is irrelevant unless supports_tool_calls + * is true. + * + * @generated from field: bool does_not_support_tool_choice = 27; + */ + doesNotSupportToolChoice = false; + /** + * Whether the model supports cache-aware prompts, where different kinds of + * context can be interleaved. + * TODO(devin): Making this "supports" for now, since even though the format + * is completely different from existing models, the old prompt format could + * hypothetically be expressed as a cumulative format, and maybe we'll train + * models in the new format but without interleaving. In practice, this routes + * prompt construction to a completely different code path. + * + * @generated from field: bool supports_cumulative_context = 13; + */ + supportsCumulativeContext = false; + /** + * Whether the model supports printing line range in tab jump instructions + * + * @generated from field: bool tab_jump_print_line_range = 14; + */ + tabJumpPrintLineRange = false; + /** + * Whether the model supports thinking. + * + * @generated from field: bool supports_thinking = 15; + */ + supportsThinking = false; + /** + * Deprecated: No need for this field anymore, just always circulate the + * thinking text and signature. + * + * @generated from field: bool supports_raw_thinking = 21 [deprecated = true]; + * @deprecated + */ + supportsRawThinking = false; + /** + * Whether the model can use the estimate tokenizer (estimates number of + * tokens after tokenization) instead of its real tokenizer in the LS and api + * server. Note that these estimates are NOT expected to be conservative. This + * requires the model/inference server to be robust to both over and under + * estimates of prompt length in tokens. WE TREAT THIS AS ALWAYS TRUE. + * TODO(bshimanuki): Remove this. + * + * @generated from field: bool supports_estimate_token_counter = 17; + */ + supportsEstimateTokenCounter = false; + /** + * Whether the model supports adding cursor markers in the find replace target + * + * @generated from field: bool add_cursor_to_find_replace_target = 18; + */ + addCursorToFindReplaceTarget = false; + /** + * Whether the model supports jumping to the whole document instead of just in + * the selection. This is used for controlling what we match against. NOTE: + * Having this model feature REQUIRES tab_jump_print_line_range to be true. + * + * @generated from field: bool supports_tab_jump_use_whole_document = 19; + */ + supportsTabJumpUseWholeDocument = false; + /** + * Whether the model supports its model info being overridden. This is used + * for supporting BYOM and allowing eval users to vary model info from within + * the rollout worker config. + * + * @generated from field: bool supports_model_info_override = 24; + */ + supportsModelInfoOverride = false; + /** + * For tab prompting, whether lead in generation of the completion (i.e. the + * beginning of the replace_file_content tool response) is required. + * + * @generated from field: bool requires_lead_in_generation = 25; + */ + requiresLeadInGeneration = false; + /** + * Whether the model requires no XML tool examples. + * TODO(aywang, sumithn, xuanhaoc, slohier, changsean, nicholasjiang): + * This is horrible. Please remove during the model config refactor. + * + * @generated from field: bool requires_no_xml_tool_examples = 26; + */ + requiresNoXmlToolExamples = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ModelFeatures'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'supports_context_tokens', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'requires_instruct_tags', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'requires_fim_context', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'requires_context_snippet_prefix', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'requires_context_relevance_tags', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'requires_llama3_tokens', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 8, + name: 'zero_shot_capable', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 9, + name: 'requires_autocomplete_as_command', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 10, + name: 'supports_cursor_aware_supercomplete', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'supports_images', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 22, + name: 'supports_pdf', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 23, + name: 'supports_video', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 28, + name: 'supported_mime_types', + kind: 'map', + K: 9, + V: { kind: 'scalar', - T: 4, + T: 8, + /* ScalarType.BOOL */ }, - { no: 9, name: 'network_first_line_latency_ms', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ef = class e extends r { - completion; - latencyInfo; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionWithLatencyInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'completion', kind: 'message', T: Jt }, - { no: 2, name: 'latency_info', kind: 'message', T: ym }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tf = class e extends r { - prompts = []; - priority = Ge.UNSPECIFIED; - prefix = be.UNSPECIFIED; - model = f.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.EmbeddingsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'prompts', kind: 'scalar', T: 9, repeated: !0 }, - { no: 2, name: 'priority', kind: 'enum', T: a.getEnumType(Ge) }, - { no: 3, name: 'prefix', kind: 'enum', T: a.getEnumType(be) }, - { no: 4, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - en = class e extends r { - values = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Embedding'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'values', kind: 'scalar', T: 2, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - af = class e extends r { - embeddings = []; - promptsExceededContextLength = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.EmbeddingResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'embeddings', kind: 'message', T: en, repeated: !0 }, - { no: 2, name: 'prompts_exceeded_context_length', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rf = class e extends r { - prefix = ''; - items = []; - hasInstructTokens = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RewardsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'prefix', kind: 'scalar', T: 9 }, - { no: 3, name: 'items', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'has_instruct_tokens', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sf = class e extends r { - values = []; - promptsExceededContextLength = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RewardsResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'values', kind: 'scalar', T: 2, repeated: !0 }, - { no: 2, name: 'prompts_exceeded_context_length', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - w = class e extends r { - ideName = ''; - ideVersion = ''; - extensionName = ''; - extensionVersion = ''; - extensionPath = ''; - locale = ''; - os = ''; - hardware = ''; - sessionId = ''; - deviceFingerprint = ''; - userTierId = ''; - lsTimestamp; - triggerId = ''; - id = ''; - apiKey = ''; - disableTelemetry = !1; - userTags = []; - regionCode = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Metadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'ide_name', kind: 'scalar', T: 9 }, - { no: 7, name: 'ide_version', kind: 'scalar', T: 9 }, - { no: 12, name: 'extension_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'extension_version', kind: 'scalar', T: 9 }, - { no: 17, name: 'extension_path', kind: 'scalar', T: 9 }, - { no: 4, name: 'locale', kind: 'scalar', T: 9 }, - { no: 5, name: 'os', kind: 'scalar', T: 9 }, - { no: 8, name: 'hardware', kind: 'scalar', T: 9 }, - { no: 10, name: 'session_id', kind: 'scalar', T: 9 }, - { no: 24, name: 'device_fingerprint', kind: 'scalar', T: 9 }, - { no: 29, name: 'user_tier_id', kind: 'scalar', T: 9 }, - { no: 16, name: 'ls_timestamp', kind: 'message', T: _ }, - { no: 25, name: 'trigger_id', kind: 'scalar', T: 9 }, - { no: 27, name: 'id', kind: 'scalar', T: 9 }, - { no: 3, name: 'api_key', kind: 'scalar', T: 9 }, - { no: 6, name: 'disable_telemetry', kind: 'scalar', T: 8 }, - { no: 18, name: 'user_tags', kind: 'scalar', T: 9, repeated: !0 }, - { no: 30, name: 'region_code', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - of = class e extends r { - tabSize = o.zero; - insertSpaces = !1; - disableAutocompleteInComments = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.EditorOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'tab_size', kind: 'scalar', T: 4 }, - { no: 2, name: 'insert_spaces', kind: 'scalar', T: 8 }, - { no: 3, name: 'disable_autocomplete_in_comments', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hm = class e extends r { - errorId = ''; - timestampUnixMs = o.zero; - stacktrace = ''; - recovered = !1; - fullStderr = ''; - ideName = ''; - ideVersion = ''; - os = ''; - isDev = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ErrorTrace'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'error_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'timestamp_unix_ms', kind: 'scalar', T: 3 }, - { no: 3, name: 'stacktrace', kind: 'scalar', T: 9 }, - { no: 4, name: 'recovered', kind: 'scalar', T: 8 }, - { no: 5, name: 'full_stderr', kind: 'scalar', T: 9 }, - { no: 6, name: 'ide_name', kind: 'scalar', T: 9 }, - { no: 7, name: 'ide_version', kind: 'scalar', T: 9 }, - { no: 8, name: 'os', kind: 'scalar', T: 9 }, - { no: 9, name: 'is_dev', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mf = class e extends r { - eventType = He.UNSPECIFIED; - eventJson = ''; - timestampUnixMs = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Event'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'event_type', kind: 'enum', T: a.getEnumType(He) }, - { no: 2, name: 'event_json', kind: 'scalar', T: 9 }, - { no: 3, name: 'timestamp_unix_ms', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ur = class e extends r { - startIndex = 0; - endIndex = 0; - uri = ''; - title = ''; - license = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Citation'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'start_index', kind: 'scalar', T: 5 }, - { no: 2, name: 'end_index', kind: 'scalar', T: 5 }, - { no: 3, name: 'uri', kind: 'scalar', T: 9 }, - { no: 4, name: 'title', kind: 'scalar', T: 9 }, - { no: 5, name: 'license', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gm = class e extends r { - citations = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CitationMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'citations', kind: 'message', T: Ur, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bm = class e extends r { - citation; - content = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Recitation'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'citation', kind: 'message', T: Ur }, - { no: 2, name: 'content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Br = class e extends r { - recitations = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RecitationMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'recitations', kind: 'message', T: bm, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cf = class e extends r { - searchId = ''; - resultId = ''; - absolutePath = ''; - workspacePaths = []; - text = ''; - embeddingMetadata; - similarityScore = 0; - numResultsInCluster = o.zero; - representativePath = ''; - meanSimilarityScore = 0; - searchResultType = Ye.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.SearchResultRecord'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'search_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'result_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'absolute_path', kind: 'scalar', T: 9 }, - { no: 4, name: 'workspace_paths', kind: 'message', T: wn, repeated: !0 }, - { no: 5, name: 'text', kind: 'scalar', T: 9 }, - { no: 6, name: 'embedding_metadata', kind: 'message', T: qm }, - { no: 7, name: 'similarity_score', kind: 'scalar', T: 2 }, - { no: 8, name: 'num_results_in_cluster', kind: 'scalar', T: 3 }, - { no: 9, name: 'representative_path', kind: 'scalar', T: 9 }, - { no: 10, name: 'mean_similarity_score', kind: 'scalar', T: 2 }, - { - no: 11, - name: 'search_result_type', - kind: 'enum', - T: a.getEnumType(Ye), - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wn = class e extends r { - workspaceMigrateMeToUri = ''; - workspaceUri = ''; - relativePath = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.WorkspacePath'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspace_migrate_me_to_uri', kind: 'scalar', T: 9 }, - { no: 3, name: 'workspace_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'relative_path', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qm = class e extends r { - nodeName = ''; - startLine = 0; - endLine = 0; - embedType = We.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.EmbeddingMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'node_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'start_line', kind: 'scalar', T: 13 }, - { no: 3, name: 'end_line', kind: 'scalar', T: 13 }, - { no: 4, name: 'embed_type', kind: 'enum', T: a.getEnumType(We) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - uf = class e extends r { - completions = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.MockResponseData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'completions', kind: 'message', T: Jt, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - lf = class e extends r { - workspaceUriForTelemetry = ''; - indexingStart; - indexingEnd; - embeddingDuration; - numFilesTotal = o.zero; - numFilesToEmbed = o.zero; - numNodesTotal = o.zero; - numNodesToEmbed = o.zero; - numTokens = o.zero; - numHighPriorityNodesToEmbed = o.zero; - error = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.WorkspaceIndexData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspace_uri_for_telemetry', kind: 'scalar', T: 9 }, - { no: 2, name: 'indexing_start', kind: 'message', T: _ }, - { no: 3, name: 'indexing_end', kind: 'message', T: _ }, - { no: 4, name: 'embedding_duration', kind: 'message', T: k }, - { no: 5, name: 'num_files_total', kind: 'scalar', T: 3 }, - { no: 6, name: 'num_files_to_embed', kind: 'scalar', T: 3 }, - { no: 7, name: 'num_nodes_total', kind: 'scalar', T: 3 }, - { no: 8, name: 'num_nodes_to_embed', kind: 'scalar', T: 3 }, - { no: 9, name: 'num_tokens', kind: 'scalar', T: 3 }, - { - no: 10, - name: 'num_high_priority_nodes_to_embed', - kind: 'scalar', - T: 3, - }, - { no: 11, name: 'error', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fr = class e extends r { - workspace = ''; - numFiles = {}; - numBytes = {}; - initialScanCompleted = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.WorkspaceStats'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'workspace', kind: 'scalar', T: 9 }, - { - no: 1, - name: 'num_files', - kind: 'map', - K: 5, - V: { kind: 'scalar', T: 3 }, - }, - { - no: 2, - name: 'num_bytes', - kind: 'map', - K: 5, - V: { kind: 'scalar', T: 3 }, - }, - { no: 4, name: 'initial_scan_completed', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ef = class e extends r { - numTotalFiles = 0; - numIndexedFiles = 0; - cutoffTimestamp; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PartialIndexMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'num_total_files', kind: 'scalar', T: 13 }, - { no: 2, name: 'num_indexed_files', kind: 'scalar', T: 13 }, - { no: 3, name: 'cutoff_timestamp', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hm = class e extends r { - rawSource = ''; - cleanFunction = ''; - docstring = ''; - nodeName = ''; - params = ''; - definitionLine = 0; - startLine = 0; - endLine = 0; - startCol = 0; - endCol = 0; - leadingWhitespace = ''; - language = O.UNSPECIFIED; - bodyStartLine = 0; - bodyStartCol = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.FunctionInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'raw_source', kind: 'scalar', T: 9 }, - { no: 2, name: 'clean_function', kind: 'scalar', T: 9 }, - { no: 3, name: 'docstring', kind: 'scalar', T: 9 }, - { no: 4, name: 'node_name', kind: 'scalar', T: 9 }, - { no: 5, name: 'params', kind: 'scalar', T: 9 }, - { no: 6, name: 'definition_line', kind: 'scalar', T: 5 }, - { no: 7, name: 'start_line', kind: 'scalar', T: 5 }, - { no: 8, name: 'end_line', kind: 'scalar', T: 5 }, - { no: 9, name: 'start_col', kind: 'scalar', T: 5 }, - { no: 10, name: 'end_col', kind: 'scalar', T: 5 }, - { no: 11, name: 'leading_whitespace', kind: 'scalar', T: 9 }, - { no: 12, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 13, name: 'body_start_line', kind: 'scalar', T: 5 }, - { no: 14, name: 'body_start_col', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _f = class e extends r { - rawSource = ''; - startLine = 0; - endLine = 0; - startCol = 0; - endCol = 0; - leadingWhitespace = ''; - fieldsAndConstructors = []; - docstring = ''; - nodeName = ''; - methods = []; - nodeLineage = []; - isExported = !1; - language = O.UNSPECIFIED; - definitionLine = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ClassInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'raw_source', kind: 'scalar', T: 9 }, - { no: 2, name: 'start_line', kind: 'scalar', T: 5 }, - { no: 3, name: 'end_line', kind: 'scalar', T: 5 }, - { no: 4, name: 'start_col', kind: 'scalar', T: 5 }, - { no: 5, name: 'end_col', kind: 'scalar', T: 5 }, - { no: 6, name: 'leading_whitespace', kind: 'scalar', T: 9 }, - { - no: 7, - name: 'fields_and_constructors', + }, + { + no: 12, + name: 'supports_tool_calls', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 27, + name: 'does_not_support_tool_choice', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 13, + name: 'supports_cumulative_context', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'tab_jump_print_line_range', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 15, + name: 'supports_thinking', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 21, + name: 'supports_raw_thinking', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 17, + name: 'supports_estimate_token_counter', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 18, + name: 'add_cursor_to_find_replace_target', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 19, + name: 'supports_tab_jump_use_whole_document', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 24, + name: 'supports_model_info_override', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 25, + name: 'requires_lead_in_generation', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 26, + name: 'requires_no_xml_tool_examples', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ModelFeatures().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelFeatures().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelFeatures().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelFeatures, a, b); + } +}; +var ExternalModel = class _ExternalModel extends Message { + /** + * @generated from field: bool is_internal = 1; + */ + isInternal = false; + /** + * @generated from field: exa.codeium_common_pb.Model model_id = 2; + */ + modelId = Model.UNSPECIFIED; + /** + * @generated from field: string model_name = 3; + */ + modelName = ''; + /** + * @generated from field: string base_url = 4; + */ + baseUrl = ''; + /** + * @generated from field: string api_key = 5; + */ + apiKey = ''; + /** + * @generated from field: string access_key = 6; + */ + accessKey = ''; + /** + * @generated from field: string secret_access_key = 7; + */ + secretAccessKey = ''; + /** + * @generated from field: string region = 8; + */ + region = ''; + /** + * @generated from field: string project_id = 9; + */ + projectId = ''; + /** + * @generated from field: uint32 id = 10; + */ + id = 0; + /** + * @generated from field: int32 max_completion_tokens = 11; + */ + maxCompletionTokens = 0; + /** + * @generated from field: int32 max_input_tokens = 12; + */ + maxInputTokens = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ExternalModel'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'is_internal', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 2, name: 'model_id', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 3, + name: 'model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'base_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'api_key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'access_key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'secret_access_key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'region', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'id', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 11, + name: 'max_completion_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 12, + name: 'max_input_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ExternalModel().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ExternalModel().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ExternalModel().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ExternalModel, a, b); + } +}; +var ModelInfo = class _ModelInfo extends Message { + /** + * @generated from field: exa.codeium_common_pb.Model model_id = 1; + */ + modelId = Model.UNSPECIFIED; + /** + * This is used to indicate whether the model is finetuned with an internal + * prompt format. + * TODO(nick, pavan): This should be deprecated since it we should now be + * using api_provider to indicate model is served internally and model + * features for prompt-related features. + * + * @generated from field: bool is_internal = 2; + */ + isInternal = false; + /** + * @generated from field: exa.codeium_common_pb.ModelType model_type = 3; + */ + modelType = ModelType.UNSPECIFIED; + /** + * Total max tokens for the model including generation and prompt. + * + * @generated from field: int32 max_tokens = 4; + */ + maxTokens = 0; + /** + * String representing tokenizer type of model. + * + * @generated from field: string tokenizer_type = 5; + */ + tokenizerType = ''; + /** + * @generated from field: exa.codeium_common_pb.ModelFeatures model_features = 6; + */ + modelFeatures; + /** + * @generated from field: exa.codeium_common_pb.APIProvider api_provider = 7; + */ + apiProvider = APIProvider.API_PROVIDER_UNSPECIFIED; + /** + * Model name for api calls. + * + * @generated from field: string model_name = 8; + */ + modelName = ''; + /** + * @generated from field: bool supports_context = 9; + */ + supportsContext = false; + /** + * Embedding dimension for the model. + * + * @generated from field: int32 embed_dim = 10; + */ + embedDim = 0; + /** + * @generated from field: string base_url = 11; + */ + baseUrl = ''; + /** + * Set within api server for easier use of external models + * + * @generated from field: string chat_model_name = 12; + */ + chatModelName = ''; + /** + * Max output tokens for the model. This is only ever set for external API + * providers since MaxOutputTokens is set on the inference server for any + * internal models. + * + * @generated from field: int32 max_output_tokens = 13; + */ + maxOutputTokens = 0; + /** + * Default type of chat prompt template to use for this model. + * + * @generated from field: exa.codeium_common_pb.PromptTemplaterType prompt_templater_type = 14; + */ + promptTemplaterType = PromptTemplaterType.UNSPECIFIED; + /** + * Default type of tool formatter to use for this model. + * + * @generated from field: exa.codeium_common_pb.ToolFormatterType tool_formatter_type = 15; + */ + toolFormatterType = ToolFormatterType.UNSPECIFIED; + /** + * Thinking budget (max tokens) for models that support thinking. + * If set to -1, the model does dynamic thinking. + * https://ai.google.dev/gemini-api/docs/thinking#set-budget + * + * @generated from field: int32 thinking_budget = 16; + */ + thinkingBudget = 0; + /** + * Min thinking budget required by the model. + * + * @generated from field: int32 min_thinking_budget = 17; + */ + minThinkingBudget = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ModelInfo'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model_id', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 2, + name: 'is_internal', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'model_type', + kind: 'enum', + T: proto3.getEnumType(ModelType), + }, + { + no: 4, + name: 'max_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'tokenizer_type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 6, name: 'model_features', kind: 'message', T: ModelFeatures }, + { + no: 7, + name: 'api_provider', + kind: 'enum', + T: proto3.getEnumType(APIProvider), + }, + { + no: 8, + name: 'model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'supports_context', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 10, + name: 'embed_dim', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 11, + name: 'base_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'chat_model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 13, + name: 'max_output_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 14, + name: 'prompt_templater_type', + kind: 'enum', + T: proto3.getEnumType(PromptTemplaterType), + }, + { + no: 15, + name: 'tool_formatter_type', + kind: 'enum', + T: proto3.getEnumType(ToolFormatterType), + }, + { + no: 16, + name: 'thinking_budget', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 17, + name: 'min_thinking_budget', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ModelInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelInfo, a, b); + } +}; +var ApiProviderRoutingConfig = class _ApiProviderRoutingConfig extends Message { + /** + * @generated from field: map model_map = 1; + */ + modelMap = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ApiProviderRoutingConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'model_map', + kind: 'map', + K: 9, + V: { kind: 'message', T: ApiProviderConfigMap }, + }, + ]); + static fromBinary(bytes, options) { + return new _ApiProviderRoutingConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ApiProviderRoutingConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ApiProviderRoutingConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ApiProviderRoutingConfig, a, b); + } +}; +var ApiProviderConfigMap = class _ApiProviderConfigMap extends Message { + /** + * @generated from field: map provider_map = 1; + */ + providerMap = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ApiProviderConfigMap'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'provider_map', + kind: 'map', + K: 9, + V: { kind: 'message', T: ApiProviderConfig }, + }, + ]); + static fromBinary(bytes, options) { + return new _ApiProviderConfigMap().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ApiProviderConfigMap().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ApiProviderConfigMap().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ApiProviderConfigMap, a, b); + } +}; +var ApiProviderConfig = class _ApiProviderConfig extends Message { + /** + * @generated from field: uint32 weight = 1; + */ + weight = 0; + /** + * @generated from field: uint32 cache_ttl_minutes = 2; + */ + cacheTtlMinutes = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ApiProviderConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'weight', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'cache_ttl_minutes', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ApiProviderConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ApiProviderConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ApiProviderConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ApiProviderConfig, a, b); + } +}; +var ModelConfig = class _ModelConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.ModelInfo generation_model = 1; + */ + generationModel; + /** + * Model info used for Context Checking/Reasoning. This is only populated for + * chat models. + * + * @generated from field: exa.codeium_common_pb.ModelInfo context_check_model = 2; + */ + contextCheckModel; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ModelConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'generation_model', kind: 'message', T: ModelInfo }, + { no: 2, name: 'context_check_model', kind: 'message', T: ModelInfo }, + ]); + static fromBinary(bytes, options) { + return new _ModelConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelConfig, a, b); + } +}; +var ModelStatusInfo = class _ModelStatusInfo extends Message { + /** + * @generated from field: exa.codeium_common_pb.Model model = 1; + */ + model = Model.UNSPECIFIED; + /** + * @generated from field: string message = 2; + */ + message = ''; + /** + * @generated from field: exa.codeium_common_pb.ModelStatus status = 3; + */ + status = ModelStatus.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ModelStatusInfo'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 2, + name: 'message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'status', kind: 'enum', T: proto3.getEnumType(ModelStatus) }, + ]); + static fromBinary(bytes, options) { + return new _ModelStatusInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelStatusInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelStatusInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelStatusInfo, a, b); + } +}; +var CompletionExample = class _CompletionExample extends Message { + /** + * @generated from field: string uid = 1; + */ + uid = ''; + /** + * @generated from field: string completion_id = 2; + */ + completionId = ''; + /** + * @generated from field: string file_path = 3; + */ + filePath = ''; + /** + * @generated from field: string short_prefix = 4; + */ + shortPrefix = ''; + /** + * @generated from field: string completion_text = 5; + */ + completionText = ''; + /** + * @generated from field: string short_suffix = 6; + */ + shortSuffix = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionExample'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'completion_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'file_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'short_prefix', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'completion_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'short_suffix', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionExample().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionExample().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionExample().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionExample, a, b); + } +}; +var CompletionExampleWithMetadata = class _CompletionExampleWithMetadata extends Message { + /** + * @generated from field: exa.codeium_common_pb.CompletionExample example = 1; + */ + example; + /** + * Display name from users.name. + * + * @generated from field: string name = 2; + */ + name = ''; + /** + * @generated from field: google.protobuf.Timestamp time = 4; + */ + time; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionExampleWithMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'example', kind: 'message', T: CompletionExample }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'time', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _CompletionExampleWithMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionExampleWithMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionExampleWithMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CompletionExampleWithMetadata, a, b); + } +}; +var CciWithSubrange = class _CciWithSubrange extends Message { + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem cci = 1; + */ + cci; + /** + * @generated from field: exa.codeium_common_pb.ContextSubrange subrange = 2; + */ + subrange; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CciWithSubrange'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'cci', kind: 'message', T: CodeContextItem }, + { no: 2, name: 'subrange', kind: 'message', T: ContextSubrange }, + ]); + static fromBinary(bytes, options) { + return new _CciWithSubrange().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CciWithSubrange().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CciWithSubrange().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CciWithSubrange, a, b); + } +}; +var ContextSubrange = class _ContextSubrange extends Message { + /** + * @generated from field: exa.codeium_common_pb.ContextSnippetType snippet_type = 1; + */ + snippetType = ContextSnippetType.UNSPECIFIED; + /** + * Zero-indexed byte offset in the snippet string corresponding to + * ContextSnippetType. Inclusive. A value of 0 for start and end-offset + * indicates that the subrange covers the whole snippet. + * + * @generated from field: int64 start_offset = 2; + */ + startOffset = protoInt64.zero; + /** + * @generated from field: int64 end_offset = 3; + */ + endOffset = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ContextSubrange'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'snippet_type', + kind: 'enum', + T: proto3.getEnumType(ContextSnippetType), + }, + { + no: 2, + name: 'start_offset', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'end_offset', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ContextSubrange().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextSubrange().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextSubrange().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextSubrange, a, b); + } +}; +var PathScopeItem = class _PathScopeItem extends Message { + /** + * @generated from field: string absolute_path_migrate_me_to_uri = 1 [deprecated = true]; + * @deprecated + */ + absolutePathMigrateMeToUri = ''; + /** + * @generated from field: string absolute_uri = 5; + */ + absoluteUri = ''; + /** + * Map from workspace path to relative path. + * + * @generated from field: map workspace_relative_paths_migrate_me_to_workspace_uris = 2 [deprecated = true]; + * @deprecated + */ + workspaceRelativePathsMigrateMeToWorkspaceUris = {}; + /** + * @generated from field: map workspace_uris_to_relative_paths = 6; + */ + workspaceUrisToRelativePaths = {}; + /** + * Data within this scope. + * + * @generated from field: uint32 num_files = 3; + */ + numFiles = 0; + /** + * @generated from field: uint64 num_bytes = 4; + */ + numBytes = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PathScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path_migrate_me_to_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'workspace_relative_paths_migrate_me_to_workspace_uris', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { no: 8, name: 'docstring', kind: 'scalar', T: 9 }, - { no: 9, name: 'node_name', kind: 'scalar', T: 9 }, - { no: 10, name: 'methods', kind: 'message', T: Hm, repeated: !0 }, - { no: 11, name: 'node_lineage', kind: 'scalar', T: 9, repeated: !0 }, - { no: 12, name: 'is_exported', kind: 'scalar', T: 8 }, - { no: 13, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 14, name: 'definition_line', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ym = class e extends r { - isActive = !1; - stripeSubscriptionId = ''; - hasAccess = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TeamsFeaturesMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'is_active', kind: 'scalar', T: 8 }, - { no: 2, name: 'stripe_subscription_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'has_access', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wm = class e extends r { - remainingFraction = 0; - resetTime; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.QuotaInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'remaining_fraction', kind: 'scalar', T: 2 }, - { no: 2, name: 'reset_time', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mr = class e extends r { - label = ''; - modelOrAlias; - creditMultiplier = 0; - pricingType = Ke.UNSPECIFIED; - disabled = !1; - supportsImages = !1; - supportsLegacy = !1; - isPremium = !1; - betaWarningMessage = ''; - isBeta = !1; - provider = Xe.UNSPECIFIED; - isRecommended = !1; - allowedTiers = []; - description = ''; - quotaInfo; - tagTitle = ''; - tagDescription = ''; - supportedMimeTypes = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ClientModelConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'label', kind: 'scalar', T: 9 }, - { no: 2, name: 'model_or_alias', kind: 'message', T: nn }, - { no: 3, name: 'credit_multiplier', kind: 'scalar', T: 2 }, - { no: 13, name: 'pricing_type', kind: 'enum', T: a.getEnumType(Ke) }, - { no: 4, name: 'disabled', kind: 'scalar', T: 8 }, - { no: 5, name: 'supports_images', kind: 'scalar', T: 8 }, - { no: 6, name: 'supports_legacy', kind: 'scalar', T: 8 }, - { no: 7, name: 'is_premium', kind: 'scalar', T: 8 }, - { no: 8, name: 'beta_warning_message', kind: 'scalar', T: 9 }, - { no: 9, name: 'is_beta', kind: 'scalar', T: 8 }, - { no: 10, name: 'provider', kind: 'enum', T: a.getEnumType(Xe) }, - { no: 11, name: 'is_recommended', kind: 'scalar', T: 8 }, - { - no: 12, - name: 'allowed_tiers', - kind: 'enum', - T: a.getEnumType(Kn), - repeated: !0, - }, - { no: 14, name: 'description', kind: 'scalar', T: 9 }, - { no: 15, name: 'quota_info', kind: 'message', T: Wm }, - { no: 16, name: 'tag_title', kind: 'scalar', T: 9 }, - { no: 17, name: 'tag_description', kind: 'scalar', T: 9 }, - { - no: 18, - name: 'supported_mime_types', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 8 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vm = class e extends r { - modelOrAlias; - versionId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DefaultOverrideModelConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model_or_alias', kind: 'message', T: nn }, - { no: 2, name: 'version_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yr = class e extends r { - name = ''; - groups = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ClientModelSort'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'groups', kind: 'message', T: Xm, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xm = class e extends r { - groupName = ''; - modelLabels = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ClientModelGroup'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'group_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'model_labels', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Km = class e extends r { - clientModelConfigs = []; - clientModelSorts = []; - defaultOverrideModelConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CascadeModelConfigData'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'client_model_configs', - kind: 'message', - T: Mr, - repeated: !0, - }, - { - no: 2, - name: 'client_model_sorts', - kind: 'message', - T: yr, - repeated: !0, - }, - { - no: 3, - name: 'default_override_model_config', - kind: 'message', - T: Vm, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vm = class e extends r { - modelOrAlias; - creditMultiplier = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.AllowedModelConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model_or_alias', kind: 'message', T: nn }, - { no: 2, name: 'credit_multiplier', kind: 'scalar', T: 2 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hr = class e extends r { - teamsTier = Kn.UNSPECIFIED; - planName = ''; - hasAutocompleteFastMode = !1; - allowStickyPremiumModels = !1; - hasForgeAccess = !1; - disableCodeSnippetTelemetry = !1; - allowPremiumCommandModels = !1; - hasTabToJump = !1; - maxNumPremiumChatMessages = o.zero; - maxNumChatInputTokens = o.zero; - maxCustomChatInstructionCharacters = o.zero; - maxNumPinnedContextItems = o.zero; - maxLocalIndexSize = o.zero; - maxUnclaimedSites = 0; - monthlyPromptCredits = 0; - monthlyFlowCredits = 0; - monthlyFlexCreditPurchaseAmount = 0; - isTeams = !1; - isEnterprise = !1; - canBuyMoreCredits = !1; - cascadeWebSearchEnabled = !1; - canCustomizeAppIcon = !1; - cascadeCanAutoRunCommands = !1; - canGenerateCommitMessages = !1; - knowledgeBaseEnabled = !1; - cascadeAllowedModelsConfig = []; - defaultTeamConfig; - canShareConversations = !1; - canAllowCascadeInBackground = !1; - defaultTeamFeatures = {}; - browserEnabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PlanInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'teams_tier', kind: 'enum', T: a.getEnumType(Kn) }, - { no: 2, name: 'plan_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'has_autocomplete_fast_mode', kind: 'scalar', T: 8 }, - { no: 4, name: 'allow_sticky_premium_models', kind: 'scalar', T: 8 }, - { no: 5, name: 'has_forge_access', kind: 'scalar', T: 8 }, - { no: 11, name: 'disable_code_snippet_telemetry', kind: 'scalar', T: 8 }, - { no: 15, name: 'allow_premium_command_models', kind: 'scalar', T: 8 }, - { no: 23, name: 'has_tab_to_jump', kind: 'scalar', T: 8 }, - { no: 6, name: 'max_num_premium_chat_messages', kind: 'scalar', T: 3 }, - { no: 7, name: 'max_num_chat_input_tokens', kind: 'scalar', T: 3 }, - { - no: 8, - name: 'max_custom_chat_instruction_characters', - kind: 'scalar', - T: 3, - }, - { no: 9, name: 'max_num_pinned_context_items', kind: 'scalar', T: 3 }, - { no: 10, name: 'max_local_index_size', kind: 'scalar', T: 3 }, - { no: 26, name: 'max_unclaimed_sites', kind: 'scalar', T: 5 }, - { no: 12, name: 'monthly_prompt_credits', kind: 'scalar', T: 5 }, - { no: 13, name: 'monthly_flow_credits', kind: 'scalar', T: 5 }, - { - no: 14, - name: 'monthly_flex_credit_purchase_amount', - kind: 'scalar', - T: 5, - }, - { no: 17, name: 'is_teams', kind: 'scalar', T: 8 }, - { no: 16, name: 'is_enterprise', kind: 'scalar', T: 8 }, - { no: 18, name: 'can_buy_more_credits', kind: 'scalar', T: 8 }, - { no: 19, name: 'cascade_web_search_enabled', kind: 'scalar', T: 8 }, - { no: 20, name: 'can_customize_app_icon', kind: 'scalar', T: 8 }, - { no: 22, name: 'cascade_can_auto_run_commands', kind: 'scalar', T: 8 }, - { no: 25, name: 'can_generate_commit_messages', kind: 'scalar', T: 8 }, - { no: 27, name: 'knowledge_base_enabled', kind: 'scalar', T: 8 }, - { - no: 21, - name: 'cascade_allowed_models_config', - kind: 'message', - T: vm, - repeated: !0, - }, - { no: 24, name: 'default_team_config', kind: 'message', T: Xr }, - { no: 28, name: 'can_share_conversations', kind: 'scalar', T: 8 }, - { no: 29, name: 'can_allow_cascade_in_background', kind: 'scalar', T: 8 }, - { - no: 30, - name: 'default_team_features', - kind: 'map', - K: 5, - V: { kind: 'message', T: Ym }, - }, - { no: 31, name: 'browser_enabled', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zm = class e extends r { - topUpTransactionStatus = ve.UNSPECIFIED; - topUpEnabled = !1; - monthlyTopUpAmount = 0; - topUpSpent = 0; - topUpIncrement = 0; - topUpCriteriaMet = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TopUpStatus'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'top_up_transaction_status', - kind: 'enum', - T: a.getEnumType(ve), - }, - { no: 2, name: 'top_up_enabled', kind: 'scalar', T: 8 }, - { no: 3, name: 'monthly_top_up_amount', kind: 'scalar', T: 5 }, - { no: 4, name: 'top_up_spent', kind: 'scalar', T: 5 }, - { no: 5, name: 'top_up_increment', kind: 'scalar', T: 5 }, - { no: 6, name: 'top_up_criteria_met', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ut = class e extends r { - planInfo; - planStart; - planEnd; - availablePromptCredits = 0; - availableFlowCredits = 0; - availableFlexCredits = 0; - usedFlexCredits = 0; - usedFlowCredits = 0; - usedPromptCredits = 0; - topUpStatus; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PlanStatus'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'plan_info', kind: 'message', T: hr }, - { no: 2, name: 'plan_start', kind: 'message', T: _ }, - { no: 3, name: 'plan_end', kind: 'message', T: _ }, - { no: 8, name: 'available_prompt_credits', kind: 'scalar', T: 5 }, - { no: 9, name: 'available_flow_credits', kind: 'scalar', T: 5 }, - { no: 4, name: 'available_flex_credits', kind: 'scalar', T: 5 }, - { no: 7, name: 'used_flex_credits', kind: 'scalar', T: 5 }, - { no: 5, name: 'used_flow_credits', kind: 'scalar', T: 5 }, - { no: 6, name: 'used_prompt_credits', kind: 'scalar', T: 5 }, - { no: 10, name: 'top_up_status', kind: 'message', T: zm }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - df = class e extends r { - pro = !1; - disableTelemetry = !1; - name = ''; - ignoreChatTelemetrySetting = !1; - teamId = ''; - teamStatus = Ve.UNSPECIFIED; - email = ''; - userFeatures = []; - teamsFeatures = []; - permissions = []; - planInfo; - planStatus; - hasUsedAntigravity = !1; - userUsedPromptCredits = o.zero; - userUsedFlowCredits = o.zero; - hasFingerprintSet = !1; - teamConfig; - cascadeModelConfigData; - acceptedLatestTermsOfService = !1; - g1Tier = ''; - userTier; - userDataCollectionForceDisabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.UserStatus'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'pro', kind: 'scalar', T: 8 }, - { no: 2, name: 'disable_telemetry', kind: 'scalar', T: 8 }, - { no: 3, name: 'name', kind: 'scalar', T: 9 }, - { no: 4, name: 'ignore_chat_telemetry_setting', kind: 'scalar', T: 8 }, - { no: 5, name: 'team_id', kind: 'scalar', T: 9 }, - { no: 6, name: 'team_status', kind: 'enum', T: a.getEnumType(Ve) }, - { no: 7, name: 'email', kind: 'scalar', T: 9 }, - { - no: 9, - name: 'user_features', - kind: 'enum', - T: a.getEnumType(kr), - repeated: !0, - }, - { - no: 8, - name: 'teams_features', - kind: 'enum', - T: a.getEnumType(Dr), - repeated: !0, - }, - { - no: 11, - name: 'permissions', - kind: 'enum', - T: a.getEnumType(gr), - repeated: !0, - }, - { no: 12, name: 'plan_info', kind: 'message', T: hr }, - { no: 13, name: 'plan_status', kind: 'message', T: Ut }, - { no: 31, name: 'has_used_antigravity', kind: 'scalar', T: 8 }, - { no: 28, name: 'user_used_prompt_credits', kind: 'scalar', T: 3 }, - { no: 29, name: 'user_used_flow_credits', kind: 'scalar', T: 3 }, - { no: 30, name: 'has_fingerprint_set', kind: 'scalar', T: 8 }, - { no: 32, name: 'team_config', kind: 'message', T: Xr }, - { no: 33, name: 'cascade_model_config_data', kind: 'message', T: Km }, - { - no: 34, - name: 'accepted_latest_terms_of_service', - kind: 'scalar', - T: 8, - }, - { no: 35, name: 'g1_tier', kind: 'scalar', T: 9 }, - { no: 36, name: 'user_tier', kind: 'message', T: Rn }, - { - no: 37, - name: 'user_data_collection_force_disabled', - kind: 'scalar', - T: 8, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Tf = class e extends r { - info = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ScmWorkspaceInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'perforce_info', kind: 'message', T: jm, oneof: 'info' }, - { no: 2, name: 'git_info', kind: 'message', T: J, oneof: 'info' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jm = class e extends r { - depotName = ''; - versionAlias = ''; - baseP4dUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PerforceDepotInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'depot_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'version_alias', kind: 'scalar', T: 9 }, - { no: 3, name: 'base_p4d_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - J = class e extends r { - name = ''; - owner = ''; - repoName = ''; - commit = ''; - versionAlias = ''; - scmProvider = mn.UNSPECIFIED; - baseGitUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.GitRepoInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'owner', kind: 'scalar', T: 9 }, - { no: 5, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'commit', kind: 'scalar', T: 9 }, - { no: 4, name: 'version_alias', kind: 'scalar', T: 9 }, - { no: 6, name: 'scm_provider', kind: 'enum', T: a.getEnumType(mn) }, - { no: 7, name: 'base_git_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - I = class e extends r { - absolutePathMigrateMeToUri = ''; - absoluteUri = ''; - workspacePaths = []; - nodeName = ''; - nodeLineage = []; - startLine = 0; - startCol = 0; - endLine = 0; - endCol = 0; - contextType = W.UNSPECIFIED; - language = O.UNSPECIFIED; - snippetByType = {}; - repoInfo; - fileContentHash = new Uint8Array(0); - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CodeContextItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path_migrate_me_to_uri', kind: 'scalar', T: 9 }, - { no: 16, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'workspace_paths', kind: 'message', T: wn, repeated: !0 }, - { no: 3, name: 'node_name', kind: 'scalar', T: 9 }, - { no: 4, name: 'node_lineage', kind: 'scalar', T: 9, repeated: !0 }, - { no: 5, name: 'start_line', kind: 'scalar', T: 13 }, - { no: 12, name: 'start_col', kind: 'scalar', T: 13 }, - { no: 6, name: 'end_line', kind: 'scalar', T: 13 }, - { no: 13, name: 'end_col', kind: 'scalar', T: 13 }, - { no: 7, name: 'context_type', kind: 'enum', T: a.getEnumType(W) }, - { no: 10, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { - no: 11, - name: 'snippet_by_type', - kind: 'map', - K: 9, - V: { kind: 'message', T: Qm }, - }, - { no: 14, name: 'repo_info', kind: 'message', T: J }, - { no: 15, name: 'file_content_hash', kind: 'scalar', T: 12 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Qm = class e extends r { - snippet = ''; - wordCountBySplitter = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.SnippetWithWordCount'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'snippet', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'word_count_by_splitter', - kind: 'map', - K: 9, - V: { kind: 'message', T: Zm }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zm = class e extends r { - wordCountMap = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.WordCount'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'word_count_map', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 3 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bt = class e extends r { - computedName = ''; - gitOriginUrl = ''; - gitUpstreamUrl = ''; - reportedName = ''; - modelName = ''; - submoduleUrl = ''; - submodulePath = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Repository'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'computed_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'git_origin_url', kind: 'scalar', T: 9 }, - { no: 3, name: 'git_upstream_url', kind: 'scalar', T: 9 }, - { no: 4, name: 'reported_name', kind: 'scalar', T: 9 }, - { no: 5, name: 'model_name', kind: 'scalar', T: 9 }, - { no: 6, name: 'submodule_url', kind: 'scalar', T: 9 }, - { no: 7, name: 'submodule_path', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ff = class e extends r { - metadata; - promptId = ''; - filePath = ''; - originalFileContent = ''; - completionText = ''; - startOffset = o.zero; - endOffset = o.zero; - cursorLine = o.zero; - cursorColumn = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CaptureFileRequestData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: w }, - { no: 2, name: 'prompt_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'file_path', kind: 'scalar', T: 9 }, - { no: 4, name: 'original_file_content', kind: 'scalar', T: 9 }, - { no: 5, name: 'completion_text', kind: 'scalar', T: 9 }, - { no: 6, name: 'start_offset', kind: 'scalar', T: 4 }, - { no: 7, name: 'end_offset', kind: 'scalar', T: 4 }, - { no: 8, name: 'cursor_line', kind: 'scalar', T: 4 }, - { no: 9, name: 'cursor_column', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gr = class e extends r { - numAcceptances = 0; - numRejections = 0; - numLinesAccepted = 0; - numBytesAccepted = 0; - numUsers = 0; - activeDeveloperDays = 0; - activeDeveloperHours = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionStatistics'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'num_acceptances', kind: 'scalar', T: 13 }, - { no: 2, name: 'num_rejections', kind: 'scalar', T: 13 }, - { no: 3, name: 'num_lines_accepted', kind: 'scalar', T: 13 }, - { no: 4, name: 'num_bytes_accepted', kind: 'scalar', T: 13 }, - { no: 5, name: 'num_users', kind: 'scalar', T: 13 }, - { no: 6, name: 'active_developer_days', kind: 'scalar', T: 13 }, - { no: 7, name: 'active_developer_hours', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Nf = class e extends r { - timestamp; - completionStatistics; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionByDateEntry'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'timestamp', kind: 'message', T: _ }, - { no: 2, name: 'completion_statistics', kind: 'message', T: Gr }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Sf = class e extends r { - language = O.UNSPECIFIED; - completionStatistics; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionByLanguageEntry'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 2, name: 'completion_statistics', kind: 'message', T: Gr }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - br = class e extends r { - chatsSent = o.zero; - chatsReceived = o.zero; - chatsAccepted = o.zero; - chatsInsertedAtCursor = o.zero; - chatsApplied = o.zero; - chatLocUsed = o.zero; - chatCodeBlocksUsed = o.zero; - functionExplainCount = o.zero; - functionDocstringCount = o.zero; - functionRefactorCount = o.zero; - codeBlockExplainCount = o.zero; - codeBlockRefactorCount = o.zero; - problemExplainCount = o.zero; - functionUnitTestsCount = o.zero; - activeDeveloperDays = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ChatStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'chats_sent', kind: 'scalar', T: 4 }, - { no: 2, name: 'chats_received', kind: 'scalar', T: 4 }, - { no: 3, name: 'chats_accepted', kind: 'scalar', T: 4 }, - { no: 4, name: 'chats_inserted_at_cursor', kind: 'scalar', T: 4 }, - { no: 5, name: 'chats_applied', kind: 'scalar', T: 4 }, - { no: 6, name: 'chat_loc_used', kind: 'scalar', T: 4 }, - { no: 7, name: 'chat_code_blocks_used', kind: 'scalar', T: 4 }, - { no: 8, name: 'function_explain_count', kind: 'scalar', T: 4 }, - { no: 9, name: 'function_docstring_count', kind: 'scalar', T: 4 }, - { no: 10, name: 'function_refactor_count', kind: 'scalar', T: 4 }, - { no: 11, name: 'code_block_explain_count', kind: 'scalar', T: 4 }, - { no: 12, name: 'code_block_refactor_count', kind: 'scalar', T: 4 }, - { no: 13, name: 'problem_explain_count', kind: 'scalar', T: 4 }, - { no: 14, name: 'function_unit_tests_count', kind: 'scalar', T: 4 }, - { no: 15, name: 'active_developer_days', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - If = class e extends r { - timestamp; - chatStats; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ChatStatsByDateEntry'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'timestamp', kind: 'message', T: _ }, - { no: 2, name: 'chat_stats', kind: 'message', T: br }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pf = class e extends r { - modelId = f.UNSPECIFIED; - chatStats; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ChatStatsByModelEntry'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model_id', kind: 'enum', T: a.getEnumType(f) }, - { no: 2, name: 'chat_stats', kind: 'message', T: br }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $m = class e extends r { - numCommands = o.zero; - numCommandsAccepted = o.zero; - numCommandsRejected = o.zero; - numEdits = o.zero; - numGenerations = o.zero; - locAdded = o.zero; - locRemoved = o.zero; - bytesAdded = o.zero; - bytesRemoved = o.zero; - locSelected = o.zero; - bytesSelected = o.zero; - numCommandsBySource = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CommandStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'num_commands', kind: 'scalar', T: 4 }, - { no: 2, name: 'num_commands_accepted', kind: 'scalar', T: 4 }, - { no: 3, name: 'num_commands_rejected', kind: 'scalar', T: 4 }, - { no: 4, name: 'num_edits', kind: 'scalar', T: 4 }, - { no: 5, name: 'num_generations', kind: 'scalar', T: 4 }, - { no: 6, name: 'loc_added', kind: 'scalar', T: 4 }, - { no: 7, name: 'loc_removed', kind: 'scalar', T: 4 }, - { no: 8, name: 'bytes_added', kind: 'scalar', T: 4 }, - { no: 9, name: 'bytes_removed', kind: 'scalar', T: 4 }, - { no: 10, name: 'loc_selected', kind: 'scalar', T: 4 }, - { no: 11, name: 'bytes_selected', kind: 'scalar', T: 4 }, - { - no: 12, - name: 'num_commands_by_source', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 4 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Of = class e extends r { - timestamp; - commandStats; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CommandStatsByDateEntry'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'timestamp', kind: 'message', T: _ }, - { no: 2, name: 'command_stats', kind: 'message', T: $m }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Af = class e extends r { - name = ''; - email = ''; - lastUpdateTime; - apiKey = ''; - disableCodeium = !1; - activeDays = 0; - role = ''; - signupTime; - lastAutocompleteUsageTime; - lastChatUsageTime; - lastCommandUsageTime; - promptCreditsUsed = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.UserTableStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'email', kind: 'scalar', T: 9 }, - { no: 3, name: 'last_update_time', kind: 'message', T: _ }, - { no: 4, name: 'api_key', kind: 'scalar', T: 9 }, - { no: 5, name: 'disable_codeium', kind: 'scalar', T: 8 }, - { no: 6, name: 'active_days', kind: 'scalar', T: 13 }, - { no: 7, name: 'role', kind: 'scalar', T: 9 }, - { no: 8, name: 'signup_time', kind: 'message', T: _ }, - { no: 9, name: 'last_autocomplete_usage_time', kind: 'message', T: _ }, - { no: 10, name: 'last_chat_usage_time', kind: 'message', T: _ }, - { no: 11, name: 'last_command_usage_time', kind: 'message', T: _ }, - { no: 12, name: 'prompt_credits_used', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Cf = class e extends r { - event = nt.CASCADE_NUX_EVENT_UNSPECIFIED; - timestamp; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CascadeNUXState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'event', kind: 'enum', T: a.getEnumType(nt) }, - { no: 2, name: 'timestamp', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Rf = class e extends r { - event = et.USER_NUX_EVENT_UNSPECIFIED; - timestamp; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.UserNUXState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'event', kind: 'enum', T: a.getEnumType(et) }, - { no: 2, name: 'timestamp', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Lf = class e extends r { - planMode = Dn.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ConversationBrainConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'plan_mode', kind: 'enum', T: a.getEnumType(Dn) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Pf = class e extends r { - hasUsed = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.FeatureUsageData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'has_used', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Df = class e extends r { - uid = 0; - location = ut.CASCADE_NUX_LOCATION_UNSPECIFIED; - trigger = Et.CASCADE_NUX_TRIGGER_UNSPECIFIED; - analyticsEventName = ''; - learnMoreUrl = ''; - priority = 0; - icon = lt.CASCADE_NUX_ICON_UNSPECIFIED; - requiresIdleCascade = !1; - title = ''; - body; - imageUrl; - videoUrl; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CascadeNUXConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'uid', kind: 'scalar', T: 13 }, - { no: 2, name: 'location', kind: 'enum', T: a.getEnumType(ut) }, - { no: 3, name: 'trigger', kind: 'enum', T: a.getEnumType(Et) }, - { no: 4, name: 'analytics_event_name', kind: 'scalar', T: 9 }, - { no: 7, name: 'learn_more_url', kind: 'scalar', T: 9 }, - { no: 8, name: 'priority', kind: 'scalar', T: 5 }, - { no: 10, name: 'icon', kind: 'enum', T: a.getEnumType(lt) }, - { no: 11, name: 'requires_idle_cascade', kind: 'scalar', T: 8 }, - { no: 12, name: 'title', kind: 'scalar', T: 9 }, - { no: 13, name: 'body', kind: 'scalar', T: 9, opt: !0 }, - { no: 14, name: 'image_url', kind: 'scalar', T: 9, opt: !0 }, - { no: 15, name: 'video_url', kind: 'scalar', T: 9, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qr = class e extends r { - openMostRecentChatConversation = !1; - lastSelectedModel = f.UNSPECIFIED; - themePreference = je.UNSPECIFIED; - rememberLastModelSelection = $e.UNSPECIFIED; - autocompleteSpeed = Qe.UNSPECIFIED; - lastSelectedModelName = ''; - lastSelectedCascadeModel; - lastSelectedCascadeModelOrAlias; - cascadePlannerMode; - lastModelOverride; - lastModelDefaultOverrideVersionId; - cascadeAllowedCommands = []; - cascadeDeniedCommands = []; - cascadeWebSearchDisabled = !1; - tabEnabled = Ze.UNSPECIFIED; - disableSelectionPopup = !1; - disableExplainProblemInlayHint = !1; - disableInlayHintShortcuts = !1; - disableOpenCascadeOnReload = !1; - disableAutoOpenEditedFiles = !1; - disableTabToJump = !1; - cascadeAutoExecutionPolicy = un.UNSPECIFIED; - lastSelectedCascadeId; - explainAndFixInCurrentConversation = !1; - allowCascadeAccessGitignoreFiles = !1; - allowAgentAccessNonWorkspaceFiles = !1; - disableCascadeAutoFixLints = !1; - detectAndUseProxy = dt.UNSPECIFIED; - disableTabToImport = !1; - useClipboardForCompletions = !1; - disableHighlightAfterAccept = !1; - disableAutoGenerateMemories = !1; - enableSoundsForSpecialEvents = !1; - enableTabSounds = !1; - allowCascadeInBackground = !1; - tabToJump = at.UNSPECIFIED; - cascadeWebSearch = rt.UNSPECIFIED; - enableTerminalCompletion = !1; - isSnoozed = !1; - disableCascadeInBackground = !1; - customWorkspace = []; - globalPlanModePreference = Dn.UNSPECIFIED; - cachedCascadeModelConfigs = []; - cachedCascadeModelSorts = []; - cascadeRunExtensionCode = st.UNSPECIFIED; - cascadeRunExtensionCodeAutoRun = ot.UNSPECIFIED; - cascadeInputAutocomplete = it.UNSPECIFIED; - autoContinueOnMaxGeneratorInvocations = ct.UNSPECIFIED; - recentlyUsedCascadeModels = []; - annotationsConfig = _t.UNSPECIFIED; - relativeWorkingDirPaths = []; - customModels = {}; - disableCodeSnippetTelemetry = !1; - planningMode = tt.UNSPECIFIED; - agentBrowserTools = mt.UNSPECIFIED; - artifactReviewMode = ln.UNSPECIFIED; - allowTabAccessGitignoreFiles = !1; - browserChromePath = ''; - browserUserProfilePath = ''; - browserCdpPort = 0; - demoModeEnabled = !1; - browserJsExecutionPolicy = En.UNSPECIFIED; - secureModeEnabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.UserSettings'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'open_most_recent_chat_conversation', - kind: 'scalar', - T: 8, - }, - { no: 2, name: 'last_selected_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 3, name: 'theme_preference', kind: 'enum', T: a.getEnumType(je) }, - { - no: 7, - name: 'remember_last_model_selection', - kind: 'enum', - T: a.getEnumType($e), - }, - { no: 6, name: 'autocomplete_speed', kind: 'enum', T: a.getEnumType(Qe) }, - { no: 8, name: 'last_selected_model_name', kind: 'scalar', T: 9 }, - { - no: 9, - name: 'last_selected_cascade_model', - kind: 'enum', - T: a.getEnumType(f), - opt: !0, - }, - { - no: 30, - name: 'last_selected_cascade_model_or_alias', - kind: 'message', - T: nn, - opt: !0, - }, - { - no: 13, - name: 'cascade_planner_mode', - kind: 'enum', - T: a.getEnumType(Pn), - opt: !0, - }, - { - no: 46, - name: 'last_model_override', - kind: 'enum', - T: a.getEnumType(f), - opt: !0, - }, - { - no: 58, - name: 'last_model_default_override_version_id', + }, + { + no: 6, + name: 'workspace_uris_to_relative_paths', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - opt: !0, + /* ScalarType.STRING */ }, - { - no: 14, - name: 'cascade_allowed_commands', + }, + { + no: 3, + name: 'num_files', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'num_bytes', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _PathScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PathScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PathScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PathScopeItem, a, b); + } +}; +var FileLineRange = class _FileLineRange extends Message { + /** + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * 0-indexed + * + * @generated from field: uint32 start_line = 2; + */ + startLine = 0; + /** + * inclusive, ignored if 0 or equal to start_line + * + * @generated from field: uint32 end_line = 3; + */ + endLine = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.FileLineRange'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'start_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'end_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _FileLineRange().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileLineRange().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileLineRange().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileLineRange, a, b); + } +}; +var TextBlock = class _TextBlock extends Message { + /** + * @generated from field: string content = 1; + */ + content = ''; + /** + * @generated from oneof exa.codeium_common_pb.TextBlock.identifier + */ + identifier = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TextBlock'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'file_line_range', + kind: 'message', + T: FileLineRange, + oneof: 'identifier', + }, + { no: 3, name: 'label', kind: 'scalar', T: 9, oneof: 'identifier' }, + ]); + static fromBinary(bytes, options) { + return new _TextBlock().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TextBlock().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TextBlock().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TextBlock, a, b); + } +}; +var RepositoryScopeItem = class _RepositoryScopeItem extends Message { + /** + * @generated from field: exa.codeium_common_pb.GitRepoInfo repo_info = 1; + */ + repoInfo; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RepositoryScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'repo_info', kind: 'message', T: GitRepoInfo }, + ]); + static fromBinary(bytes, options) { + return new _RepositoryScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RepositoryScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RepositoryScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RepositoryScopeItem, a, b); + } +}; +var RepositoryPathScopeItem = class _RepositoryPathScopeItem extends Message { + /** + * @generated from field: exa.codeium_common_pb.GitRepoInfo repo_info = 1; + */ + repoInfo; + /** + * @generated from field: string relative_path = 2; + */ + relativePath = ''; + /** + * @generated from field: bool is_dir = 3; + */ + isDir = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RepositoryPathScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'repo_info', kind: 'message', T: GitRepoInfo }, + { + no: 2, + name: 'relative_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'is_dir', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _RepositoryPathScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RepositoryPathScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RepositoryPathScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RepositoryPathScopeItem, a, b); + } +}; +var KnowledgeBaseScopeItem = class _KnowledgeBaseScopeItem extends Message { + /** + * Internal fields for retrieval. + * + * @generated from field: string document_id = 1; + */ + documentId = ''; + /** + * @generated from field: exa.codeium_common_pb.IndexChoice index = 7; + */ + index = IndexChoice.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.DocumentType document_type = 8; + */ + documentType = DocumentType.UNSPECIFIED; + /** + * User facing fields. + * + * @generated from field: string display_name = 3; + */ + displayName = ''; + /** + * @generated from field: string description = 4; + */ + description = ''; + /** + * @generated from field: string display_source = 5; + */ + displaySource = ''; + /** + * Url to the knowledge base item if available. + * + * @generated from field: string url = 6; + */ + url = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.KnowledgeBaseScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'document_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 7, name: 'index', kind: 'enum', T: proto3.getEnumType(IndexChoice) }, + { + no: 8, + name: 'document_type', + kind: 'enum', + T: proto3.getEnumType(DocumentType), + }, + { + no: 3, + name: 'display_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'display_source', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeBaseScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeBaseScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeBaseScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeBaseScopeItem, a, b); + } +}; +var ConsoleLogLine = class _ConsoleLogLine extends Message { + /** + * Timestamp when the log was created. + * + * @generated from field: string timestamp_str = 1; + */ + timestampStr = ''; + /** + * Type of the log (error, warn, info, debug). + * + * @generated from field: string type = 2; + */ + type = ''; + /** + * Actual output of the log. + * + * @generated from field: string output = 3; + */ + output = ''; + /** + * Location of the log, including file path and line number, e.g., + * "third_party_upload_content_script.js:962:0". + * + * @generated from field: string location = 4; + */ + location = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ConsoleLogLine'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'timestamp_str', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'output', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'location', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ConsoleLogLine().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConsoleLogLine().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConsoleLogLine().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConsoleLogLine, a, b); + } +}; +var ConsoleLogScopeItem = class _ConsoleLogScopeItem extends Message { + /** + * Output of the console log. + * + * @generated from field: repeated exa.codeium_common_pb.ConsoleLogLine lines = 1; + */ + lines = []; + /** + * Address of web server (or proxy server). + * + * @generated from field: string server_address = 2; + */ + serverAddress = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ConsoleLogScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'lines', + kind: 'message', + T: ConsoleLogLine, + repeated: true, + }, + { + no: 2, + name: 'server_address', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ConsoleLogScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConsoleLogScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConsoleLogScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConsoleLogScopeItem, a, b); + } +}; +var DOMElementScopeItem = class _DOMElementScopeItem extends Message { + /** + * Tag name of the element (e.g. "div", "span", "button"). + * + * @generated from field: string tag_name = 1; + */ + tagName = ''; + /** + * Outer HTML of the element (may be truncated). + * + * @generated from field: string outer_html = 2; + */ + outerHtml = ''; + /** + * ID of the element (if applicable). + * + * @generated from field: string id = 3; + */ + id = ''; + /** + * Name of the containing React component (if applicable). + * + * @generated from field: string react_component_name = 4; + */ + reactComponentName = ''; + /** + * File line range (no end line) for the containing React component (if + * applicable). + * + * @generated from field: exa.codeium_common_pb.FileLineRange file_line_range = 5; + */ + fileLineRange; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DOMElementScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'tag_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'outer_html', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'react_component_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'file_line_range', kind: 'message', T: FileLineRange }, + ]); + static fromBinary(bytes, options) { + return new _DOMElementScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DOMElementScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DOMElementScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DOMElementScopeItem, a, b); + } +}; +var DOMNode = class _DOMNode extends Message { + /** + * @generated from field: bool is_visible = 1; + */ + isVisible = false; + /** + * @generated from oneof exa.codeium_common_pb.DOMNode.node_data + */ + nodeData = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DOMNode'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'is_visible', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'element', + kind: 'message', + T: DOMNode_ElementNode, + oneof: 'node_data', + }, + { + no: 3, + name: 'text', + kind: 'message', + T: DOMNode_TextNode, + oneof: 'node_data', + }, + ]); + static fromBinary(bytes, options) { + return new _DOMNode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DOMNode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DOMNode().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DOMNode, a, b); + } +}; +var DOMNode_ElementNode = class _DOMNode_ElementNode extends Message { + /** + * @generated from field: string tag_name = 1; + */ + tagName = ''; + /** + * @generated from field: string xpath = 2; + */ + xpath = ''; + /** + * IDs of child nodes + * + * @generated from field: repeated string children = 3; + */ + children = []; + /** + * @generated from field: map attributes = 4; + */ + attributes = {}; + /** + * @generated from field: bool is_interactive = 5; + */ + isInteractive = false; + /** + * @generated from field: bool is_top_element = 6; + */ + isTopElement = false; + /** + * -1 if not highlighted + * + * @generated from field: int32 highlight_index = 7; + */ + highlightIndex = 0; + /** + * @generated from field: int32 central_x = 8; + */ + centralX = 0; + /** + * @generated from field: int32 central_y = 9; + */ + centralY = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DOMNode.ElementNode'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'tag_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'xpath', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'children', kind: 'scalar', T: 9, repeated: true }, + { + no: 4, + name: 'attributes', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { - no: 15, - name: 'cascade_denied_commands', + }, + { + no: 5, + name: 'is_interactive', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'is_top_element', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'highlight_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 8, + name: 'central_x', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 9, + name: 'central_y', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _DOMNode_ElementNode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DOMNode_ElementNode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DOMNode_ElementNode().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DOMNode_ElementNode, a, b); + } +}; +var DOMNode_TextNode = class _DOMNode_TextNode extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DOMNode.TextNode'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _DOMNode_TextNode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DOMNode_TextNode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DOMNode_TextNode().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DOMNode_TextNode, a, b); + } +}; +var DOMTree = class _DOMTree extends Message { + /** + * Root node ID in the DOM tree. + * + * @generated from field: string root_id = 1; + */ + rootId = ''; + /** + * Map from node ID to DOM node. + * + * @generated from field: map map = 2; + */ + map = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DOMTree'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'root_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'map', + kind: 'map', + K: 9, + V: { kind: 'message', T: DOMNode }, + }, + ]); + static fromBinary(bytes, options) { + return new _DOMTree().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DOMTree().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DOMTree().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DOMTree, a, b); + } +}; +var Viewport = class _Viewport extends Message { + /** + * X offset from the left edge + * + * @generated from field: int32 x = 1; + */ + x = 0; + /** + * Y offset from the top edge + * + * @generated from field: int32 y = 2; + */ + y = 0; + /** + * Width of the region + * + * @generated from field: int32 width = 3; + */ + width = 0; + /** + * Height of the region + * + * @generated from field: int32 height = 4; + */ + height = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Viewport'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'x', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'y', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'width', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'height', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _Viewport().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Viewport().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Viewport().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Viewport, a, b); + } +}; +var RecipeScopeItem = class _RecipeScopeItem extends Message { + /** + * @generated from field: string recipe_id = 1; + */ + recipeId = ''; + /** + * @generated from field: string title = 2; + */ + title = ''; + /** + * @generated from field: string description = 3; + */ + description = ''; + /** + * @generated from field: string system_prompt = 4; + */ + systemPrompt = ''; + /** + * Optional URI to the file containing the workflow (formerly known as a + * recipe). + * + * @generated from field: optional string uri = 5; + */ + uri; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RecipeScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'recipe_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'system_prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'uri', kind: 'scalar', T: 9, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _RecipeScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RecipeScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RecipeScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RecipeScopeItem, a, b); + } +}; +var RuleScopeItem = class _RuleScopeItem extends Message { + /** + * @generated from field: string rule_path = 1; + */ + rulePath = ''; + /** + * @generated from field: string rule_name = 2; + */ + ruleName = ''; + /** + * TODO(sean): This is actually the content, will rename after cut to minimize + * risk of bricking my local state + * + * @generated from field: string description = 3; + */ + description = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RuleScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'rule_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'rule_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _RuleScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RuleScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RuleScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RuleScopeItem, a, b); + } +}; +var McpResourceItem = class _McpResourceItem extends Message { + /** + * @generated from field: string uri = 1; + */ + uri = ''; + /** + * @generated from field: string name = 2; + */ + name = ''; + /** + * @generated from field: optional string description = 3; + */ + description; + /** + * @generated from field: optional string mime_type = 4; + */ + mimeType; + /** + * @generated from field: string server_name = 5; + */ + serverName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.McpResourceItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'description', kind: 'scalar', T: 9, opt: true }, + { no: 4, name: 'mime_type', kind: 'scalar', T: 9, opt: true }, + { + no: 5, + name: 'server_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _McpResourceItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpResourceItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpResourceItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpResourceItem, a, b); + } +}; +var BrowserPageScopeItem = class _BrowserPageScopeItem extends Message { + /** + * URL of the page + * + * @generated from field: string url = 1; + */ + url = ''; + /** + * Title of the page + * + * @generated from field: string title = 2; + */ + title = ''; + /** + * All visible text content from the page + * + * @generated from field: string visible_text_content = 3; + */ + visibleTextContent = ''; + /** + * ID of the page in the browser session + * + * @generated from field: string page_id = 4; + */ + pageId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.BrowserPageScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'visible_text_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserPageScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserPageScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserPageScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserPageScopeItem, a, b); + } +}; +var BrowserCodeBlockScopeItem = class _BrowserCodeBlockScopeItem extends Message { + /** + * URL of the page where the code block is located + * + * @generated from field: string url = 1; + */ + url = ''; + /** + * Title of the page + * + * @generated from field: string title = 2; + */ + title = ''; + /** + * The text content of the code block + * + * @generated from field: string code_content = 3; + */ + codeContent = ''; + /** + * Detected or user-specified language of the code + * + * @generated from field: exa.codeium_common_pb.Language language = 4; + */ + language = Language.UNSPECIFIED; + /** + * Optional text surrounding the code block + * + * @generated from field: optional string context_text = 5; + */ + contextText; + /** + * ID of the page in the browser session + * + * @generated from field: string page_id = 6; + */ + pageId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.BrowserCodeBlockScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'code_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { no: 5, name: 'context_text', kind: 'scalar', T: 9, opt: true }, + { + no: 6, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserCodeBlockScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserCodeBlockScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserCodeBlockScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserCodeBlockScopeItem, a, b); + } +}; +var BrowserTextScopeItem = class _BrowserTextScopeItem extends Message { + /** + * URL of the page containing the element + * + * @generated from field: string url = 1; + */ + url = ''; + /** + * The inner text content of the selected element + * + * @generated from field: string visible_text = 2; + */ + visibleText = ''; + /** + * ID of the page in the browser session + * + * @generated from field: string page_id = 3; + */ + pageId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.BrowserTextScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'visible_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserTextScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserTextScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserTextScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserTextScopeItem, a, b); + } +}; +var ConversationScopeItem = class _ConversationScopeItem extends Message { + /** + * Cascade ID + * + * @generated from field: string id = 1; + */ + id = ''; + /** + * Conversation title + * + * @generated from field: string title = 2; + */ + title = ''; + /** + * Last modified time + * + * @generated from field: google.protobuf.Timestamp last_modified_time = 3; + */ + lastModifiedTime; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ConversationScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'last_modified_time', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _ConversationScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConversationScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConversationScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConversationScopeItem, a, b); + } +}; +var UserActivityScopeItem = class _UserActivityScopeItem extends Message { + /** + * Trajectory ID + * + * @generated from field: string id = 1; + */ + id = ''; + /** + * Git branch associated with activity ("" if there is no branch) + * + * @generated from field: string branch = 2; + */ + branch = ''; + /** + * Whether this is the active trajectory for an active workspace + * + * @generated from field: bool current = 3; + */ + current = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.UserActivityScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'branch', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'current', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserActivityScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserActivityScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserActivityScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserActivityScopeItem, a, b); + } +}; +var TerminalScopeItem = class _TerminalScopeItem extends Message { + /** + * Process ID of the terminal + * + * @generated from field: string process_id = 1; + */ + processId = ''; + /** + * Terminal name + * + * @generated from field: string name = 2; + */ + name = ''; + /** + * Last command executed in the terminal + * + * @generated from field: string last_command = 3; + */ + lastCommand = ''; + /** + * Content of some selection within the terminal buffer. + * + * @generated from field: optional string selectionContent = 4; + */ + selectionContent; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TerminalScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'process_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'last_command', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'selectionContent', kind: 'scalar', T: 9, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _TerminalScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TerminalScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TerminalScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TerminalScopeItem, a, b); + } +}; +var ContextScopeItem = class _ContextScopeItem extends Message { + /** + * @generated from oneof exa.codeium_common_pb.ContextScopeItem.scope_item + */ + scopeItem = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ContextScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'file', + kind: 'message', + T: PathScopeItem, + oneof: 'scope_item', + }, + { + no: 2, + name: 'directory', + kind: 'message', + T: PathScopeItem, + oneof: 'scope_item', + }, + { + no: 3, + name: 'repository', + kind: 'message', + T: RepositoryScopeItem, + oneof: 'scope_item', + }, + { + no: 4, + name: 'code_context', + kind: 'message', + T: CodeContextItem, + oneof: 'scope_item', + }, + { + no: 6, + name: 'cci_with_subrange', + kind: 'message', + T: CciWithSubrange, + oneof: 'scope_item', + }, + { + no: 7, + name: 'repository_path', + kind: 'message', + T: RepositoryPathScopeItem, + oneof: 'scope_item', + }, + { + no: 8, + name: 'slack', + kind: 'message', + T: KnowledgeBaseScopeItem, + oneof: 'scope_item', + }, + { + no: 9, + name: 'github', + kind: 'message', + T: KnowledgeBaseScopeItem, + oneof: 'scope_item', + }, + { + no: 10, + name: 'file_line_range', + kind: 'message', + T: FileLineRange, + oneof: 'scope_item', + }, + { + no: 11, + name: 'text_block', + kind: 'message', + T: TextBlock, + oneof: 'scope_item', + }, + { + no: 12, + name: 'jira', + kind: 'message', + T: KnowledgeBaseScopeItem, + oneof: 'scope_item', + }, + { + no: 13, + name: 'google_drive', + kind: 'message', + T: KnowledgeBaseScopeItem, + oneof: 'scope_item', + }, + { + no: 14, + name: 'console_log', + kind: 'message', + T: ConsoleLogScopeItem, + oneof: 'scope_item', + }, + { + no: 15, + name: 'dom_element', + kind: 'message', + T: DOMElementScopeItem, + oneof: 'scope_item', + }, + { + no: 16, + name: 'recipe', + kind: 'message', + T: RecipeScopeItem, + oneof: 'scope_item', + }, + { + no: 17, + name: 'knowledge', + kind: 'message', + T: KnowledgeBaseScopeItem, + oneof: 'scope_item', + }, + { + no: 18, + name: 'rule', + kind: 'message', + T: RuleScopeItem, + oneof: 'scope_item', + }, + { + no: 19, + name: 'mcp_resource', + kind: 'message', + T: McpResourceItem, + oneof: 'scope_item', + }, + { + no: 20, + name: 'browser_page', + kind: 'message', + T: BrowserPageScopeItem, + oneof: 'scope_item', + }, + { + no: 21, + name: 'browser_code_block', + kind: 'message', + T: BrowserCodeBlockScopeItem, + oneof: 'scope_item', + }, + { + no: 22, + name: 'browser_text', + kind: 'message', + T: BrowserTextScopeItem, + oneof: 'scope_item', + }, + { + no: 23, + name: 'conversation', + kind: 'message', + T: ConversationScopeItem, + oneof: 'scope_item', + }, + { + no: 24, + name: 'user_activity', + kind: 'message', + T: UserActivityScopeItem, + oneof: 'scope_item', + }, + { + no: 25, + name: 'terminal', + kind: 'message', + T: TerminalScopeItem, + oneof: 'scope_item', + }, + ]); + static fromBinary(bytes, options) { + return new _ContextScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextScopeItem, a, b); + } +}; +var ContextScope = class _ContextScope extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.ContextScopeItem items = 1; + */ + items = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ContextScope'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'items', + kind: 'message', + T: ContextScopeItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ContextScope().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextScope().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextScope().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextScope, a, b); + } +}; +var NodeExecutionRecord = class _NodeExecutionRecord extends Message { + /** + * @generated from field: string node_name = 1; + */ + nodeName = ''; + /** + * @generated from field: google.protobuf.Timestamp start_time = 2; + */ + startTime; + /** + * @generated from field: google.protobuf.Timestamp end_time = 3; + */ + endTime; + /** + * Serialized state of the graph at the end of this node. + * + * @generated from field: bytes graph_state_json = 5; + */ + graphStateJson = new Uint8Array(0); + /** + * @generated from field: uint64 graph_state_json_num_bytes = 6; + */ + graphStateJsonNumBytes = protoInt64.zero; + /** + * Optionally provided if the node is running a sub-graph. + * + * @generated from field: exa.codeium_common_pb.GraphExecutionState subgraph_execution = 4; + */ + subgraphExecution; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.NodeExecutionRecord'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'node_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'start_time', kind: 'message', T: Timestamp }, + { no: 3, name: 'end_time', kind: 'message', T: Timestamp }, + { + no: 5, + name: 'graph_state_json', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { + no: 6, + name: 'graph_state_json_num_bytes', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'subgraph_execution', + kind: 'message', + T: GraphExecutionState, + }, + ]); + static fromBinary(bytes, options) { + return new _NodeExecutionRecord().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _NodeExecutionRecord().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _NodeExecutionRecord().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_NodeExecutionRecord, a, b); + } +}; +var GraphExecutionState = class _GraphExecutionState extends Message { + /** + * @generated from field: exa.codeium_common_pb.NodeExecutionRecord current = 1; + */ + current; + /** + * @generated from field: repeated exa.codeium_common_pb.NodeExecutionRecord history = 2; + */ + history = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.GraphExecutionState'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'current', kind: 'message', T: NodeExecutionRecord }, + { + no: 2, + name: 'history', + kind: 'message', + T: NodeExecutionRecord, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GraphExecutionState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GraphExecutionState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GraphExecutionState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GraphExecutionState, a, b); + } +}; +var Guideline = class _Guideline extends Message { + /** + * GuidelineItem is a free form guideline attached as a context to chat, + * command and autocomplete + * + * @generated from field: repeated exa.codeium_common_pb.GuidelineItem items = 1; + */ + items = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Guideline'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'items', kind: 'message', T: GuidelineItem, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _Guideline().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Guideline().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Guideline().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Guideline, a, b); + } +}; +var GuidelineItem = class _GuidelineItem extends Message { + /** + * Free form guideline applied as a context item + * + * @generated from field: string guideline = 1; + */ + guideline = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.GuidelineItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'guideline', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GuidelineItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GuidelineItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GuidelineItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GuidelineItem, a, b); + } +}; +var ChatNodeConfig = class _ChatNodeConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.Model model = 1; + */ + model = Model.UNSPECIFIED; + /** + * TODO(matt): Move these settings under CompletionConfiguration. + * + * @generated from field: uint32 max_input_tokens = 2; + */ + maxInputTokens = 0; + /** + * @generated from field: float temperature = 3; + */ + temperature = 0; + /** + * @generated from field: uint32 max_output_tokens = 4; + */ + maxOutputTokens = 0; + /** + * @generated from field: bool order_snippets_by_file = 5; + */ + orderSnippetsByFile = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ChatNodeConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 2, + name: 'max_input_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'temperature', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 4, + name: 'max_output_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'order_snippets_by_file', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatNodeConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatNodeConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatNodeConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatNodeConfig, a, b); + } +}; +var MQueryConfig = class _MQueryConfig extends Message { + /** + * @generated from field: bool should_batch_ccis = 1; + */ + shouldBatchCcis = false; + /** + * @generated from field: int64 max_tokens_per_subrange = 2; + */ + maxTokensPerSubrange = protoInt64.zero; + /** + * @generated from field: int64 num_parser_workers = 3; + */ + numParserWorkers = protoInt64.zero; + /** + * @generated from field: int64 num_workers_per_distributed_scorer = 4; + */ + numWorkersPerDistributedScorer = protoInt64.zero; + /** + * @generated from field: bool verbose = 5; + */ + verbose = false; + /** + * Files with these extensions should be ignored + * + * @generated from field: repeated string ignore_extensions = 6; + */ + ignoreExtensions = []; + /** + * Directories that include this in their path should be ignored. + * + * @generated from field: repeated string ignore_directory_stubs = 7; + */ + ignoreDirectoryStubs = []; + /** + * @generated from field: uint32 min_token_space_for_context = 8; + */ + minTokenSpaceForContext = 0; + /** + * Bounded by MaxMaxTargetFiles (10_000) + * + * @generated from field: uint32 max_target_files = 9; + */ + maxTargetFiles = 0; + /** + * Will filter out ccis outside of the top count. + * + * @generated from field: uint32 top_cci_count = 10; + */ + topCciCount = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.MQueryConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'should_batch_ccis', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'max_tokens_per_subrange', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'num_parser_workers', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 4, + name: 'num_workers_per_distributed_scorer', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 5, + name: 'verbose', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 6, name: 'ignore_extensions', kind: 'scalar', T: 9, repeated: true }, + { + no: 7, + name: 'ignore_directory_stubs', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 8, + name: 'min_token_space_for_context', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 9, + name: 'max_target_files', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 10, + name: 'top_cci_count', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _MQueryConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MQueryConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MQueryConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MQueryConfig, a, b); + } +}; +var CompletionDelta = class _CompletionDelta extends Message { + /** + * @generated from field: string delta_text = 1; + */ + deltaText = ''; + /** + * @generated from field: string delta_raw_generation = 12; + */ + deltaRawGeneration = ''; + /** + * @generated from field: uint32 delta_tokens = 2; + */ + deltaTokens = 0; + /** + * The following are only populated on the last delta. + * + * @generated from field: exa.codeium_common_pb.StopReason stop_reason = 3; + */ + stopReason = StopReason.UNSPECIFIED; + /** + * Represents total usage in the entire request, not just this chunk. Only + * populated for a subset of external API providers. + * + * @generated from field: exa.codeium_common_pb.ModelUsageStats usage = 4; + */ + usage; + /** + * @generated from field: repeated exa.codeium_common_pb.ChatToolCall delta_tool_calls = 5; + */ + deltaToolCalls = []; + /** + * @generated from field: string delta_thinking = 6; + */ + deltaThinking = ''; + /** + * @generated from field: bytes delta_signature = 7; + */ + deltaSignature = new Uint8Array(0); + /** + * If this is true, then delta_signature is fully populated and this chunk + * should be interpreted as a full thinking_redacted delta. + * + * @generated from field: bool thinking_redacted = 8; + */ + thinkingRedacted = false; + /** + * Represents the new Recitations for the accumulated raw_generation + * + * @generated from field: exa.codeium_common_pb.CitationMetadata citation_metadata = 11; + */ + citationMetadata; + /** + * Dapper trace ID from the upstream API response. + * + * @generated from field: string trace_id = 13; + */ + traceId = ''; + /** + * Optional message from the model explaining the stop reason. + * Currently populated when Gemini API returns a finishMessage. + * + * @generated from field: string stop_message = 14; + */ + stopMessage = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionDelta'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'delta_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'delta_raw_generation', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'delta_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'stop_reason', + kind: 'enum', + T: proto3.getEnumType(StopReason), + }, + { no: 4, name: 'usage', kind: 'message', T: ModelUsageStats }, + { + no: 5, + name: 'delta_tool_calls', + kind: 'message', + T: ChatToolCall, + repeated: true, + }, + { + no: 6, + name: 'delta_thinking', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'delta_signature', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { + no: 8, + name: 'thinking_redacted', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 11, name: 'citation_metadata', kind: 'message', T: CitationMetadata }, + { + no: 13, + name: 'trace_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 14, + name: 'stop_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionDelta().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionDelta().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionDelta().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionDelta, a, b); + } +}; +var CompletionDeltaMap = class _CompletionDeltaMap extends Message { + /** + * A map of completion index (within a sequence) to CompletionDelta messages. + * Note that not all completions may be included in this map, if some of them + * finish early. (For example, our internal model API client will only + * include CompletionDeltas for completions that have not yet finished.) + * + * @generated from field: map deltas = 1; + */ + deltas = {}; + /** + * The prompt string that was generated by the model API client. This will be + * empty unless the api server was constructed with EvalMode == true, in which + * case it will be populated for the first CompletionDeltaMap that is + * returned. Note that this is best-effort, as we may not be able to construct + * the true prompt string used by some API providers. Currently only + * implemented for our internal model API client; prompt will be empty for + * other providers. + * + * @generated from field: string prompt = 2; + */ + prompt = ''; + /** + * CompletionProfile contains latency profiling info for the completions + * This is guaranteed to be populated in at most one response delta (the last + * one for internal inference servers). + * + * @generated from field: exa.codeium_common_pb.CompletionProfile completion_profile = 3; + */ + completionProfile; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CompletionDeltaMap'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'deltas', + kind: 'map', + K: 5, + V: { kind: 'message', T: CompletionDelta }, + }, + { + no: 2, + name: 'prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'completion_profile', + kind: 'message', + T: CompletionProfile, + }, + ]); + static fromBinary(bytes, options) { + return new _CompletionDeltaMap().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CompletionDeltaMap().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CompletionDeltaMap().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CompletionDeltaMap, a, b); + } +}; +var ChatCompletionInfo = class _ChatCompletionInfo extends Message { + /** + * @generated from field: string prompt = 1; + */ + prompt = ''; + /** + * @generated from field: string inference_address = 2; + */ + inferenceAddress = ''; + /** + * @generated from field: string serialized_prompt = 3; + */ + serializedPrompt = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ChatCompletionInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'inference_address', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'serialized_prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatCompletionInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatCompletionInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatCompletionInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatCompletionInfo, a, b); + } +}; +var ChatToolCall = class _ChatToolCall extends Message { + /** + * @generated from field: string id = 1; + */ + id = ''; + /** + * @generated from field: string name = 2; + */ + name = ''; + /** + * @generated from field: string arguments_json = 3; + */ + argumentsJson = ''; + /** + * If the JSON provided in the tool call is invalid, then arguments_json will + * be {} and the underlying invalid_json_str will contain the raw invalid + * json. Otherwise if the JSON is valid, then invalid_json_str and + * invalid_json_err will be empty. + * + * @generated from field: string invalid_json_str = 4; + */ + invalidJsonStr = ''; + /** + * Error message describing why the json is invalid. + * + * @generated from field: string invalid_json_err = 5; + */ + invalidJsonErr = ''; + /** + * Gemini API can return thought signatures in function call parts, so we + * need to save it in the tool call too. + * Deprecated. Use thinking_signature instead. + * + * @generated from field: string thought_signature = 6 [deprecated = true]; + * @deprecated + */ + thoughtSignature = ''; + /** + * @generated from field: bytes thinking_signature = 7; + */ + thinkingSignature = new Uint8Array(0); + /** + * Because we allow overriding tool arguments, we map the arguments_json to + * the original argument names in order for tool parsing to work. We preserve + * the original arguments_json here. + * + * @generated from field: string original_arguments_json = 8; + */ + originalArgumentsJson = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ChatToolCall'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'arguments_json', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'invalid_json_str', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'invalid_json_err', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'thought_signature', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'thinking_signature', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { + no: 8, + name: 'original_arguments_json', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatToolCall().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatToolCall().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatToolCall().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatToolCall, a, b); + } +}; +var Status = class _Status extends Message { + /** + * @generated from field: exa.codeium_common_pb.StatusLevel level = 1; + */ + level = StatusLevel.UNSPECIFIED; + /** + * @generated from field: string message = 2; + */ + message = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Status'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'level', kind: 'enum', T: proto3.getEnumType(StatusLevel) }, + { + no: 2, + name: 'message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _Status().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Status().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Status().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Status, a, b); + } +}; +var DocumentPosition = class _DocumentPosition extends Message { + /** + * 0-indexed. + * + * @generated from field: uint64 row = 1; + */ + row = protoInt64.zero; + /** + * 0-indexed. Measured in UTF-8 bytes. + * + * @generated from field: uint64 col = 2; + */ + col = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DocumentPosition'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'row', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'col', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _DocumentPosition().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DocumentPosition().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DocumentPosition().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DocumentPosition, a, b); + } +}; +var Range = class _Range extends Message { + /** + * 0-indexed (start & end). + * + * @generated from field: uint64 start_offset = 1; + */ + startOffset = protoInt64.zero; + /** + * Exclusive. + * + * @generated from field: uint64 end_offset = 2; + */ + endOffset = protoInt64.zero; + /** + * @generated from field: exa.codeium_common_pb.DocumentPosition start_position = 3; + */ + startPosition; + /** + * Exclusive. + * + * @generated from field: exa.codeium_common_pb.DocumentPosition end_position = 4; + */ + endPosition; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Range'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'start_offset', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'end_offset', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { no: 3, name: 'start_position', kind: 'message', T: DocumentPosition }, + { no: 4, name: 'end_position', kind: 'message', T: DocumentPosition }, + ]); + static fromBinary(bytes, options) { + return new _Range().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Range().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Range().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Range, a, b); + } +}; +var Document = class _Document extends Message { + /** + * OS specific separators. + * + * @generated from field: string absolute_path_migrate_me_to_uri = 1 [deprecated = true]; + * @deprecated + */ + absolutePathMigrateMeToUri = ''; + /** + * @generated from field: string absolute_uri = 12; + */ + absoluteUri = ''; + /** + * Path relative to the root of the workspace. Slash separated. + * Leave empty if the document is not in the workspace. + * + * @generated from field: string relative_path_migrate_me_to_workspace_uri = 2 [deprecated = true]; + * @deprecated + */ + relativePathMigrateMeToWorkspaceUri = ''; + /** + * @generated from field: string workspace_uri = 13; + */ + workspaceUri = ''; + /** + * @generated from field: string text = 3; + */ + text = ''; + /** + * Language ID provided by the editor. + * + * @generated from field: string editor_language = 4; + */ + editorLanguage = ''; + /** + * Language enum standardized across editors. + * + * @generated from field: exa.codeium_common_pb.Language language = 5; + */ + language = Language.UNSPECIFIED; + /** + * Measured in number of UTF-8 bytes. + * + * @generated from field: uint64 cursor_offset = 6; + */ + cursorOffset = protoInt64.zero; + /** + * May be present instead of cursor_offset. + * + * @generated from field: exa.codeium_common_pb.DocumentPosition cursor_position = 8; + */ + cursorPosition; + /** + * \n or \r\n, if known. + * + * @generated from field: string line_ending = 7; + */ + lineEnding = ''; + /** + * Portion of document visible in IDE; + * + * @generated from field: exa.codeium_common_pb.Range visible_range = 9; + */ + visibleRange; + /** + * Booleans indicating whether this document represents a portion of a full + * document with the start / end cutoff. Note that cursor_offset and + * cursor_position are expected to be valid within text (e.g. if the start of + * the document is cutoff in text, cursor_offset and cursor_position should be + * adjusted accordingly). + * TODO(nmoy): deprecate these bools now that we have + * lines_cutoff_start/lines_cutoff_end. + * + * @generated from field: bool is_cutoff_start = 10; + */ + isCutoffStart = false; + /** + * @generated from field: bool is_cutoff_end = 11; + */ + isCutoffEnd = false; + /** + * The number of lines from the original document that are cut off and not + * included in this partial document. If these values are non-zero that means + * that this is a partial document. If it has not been cutoff, these should + * both be equal 0. + * + * @generated from field: int32 lines_cutoff_start = 14; + */ + linesCutoffStart = 0; + /** + * @generated from field: int32 lines_cutoff_end = 15; + */ + linesCutoffEnd = 0; + /** + * Timestamp at which document content was read. + * + * @generated from field: google.protobuf.Timestamp timestamp = 16; + */ + timestamp; + /** + * True if there are unpersisted changes to the document. + * + * @generated from field: bool is_dirty = 17; + */ + isDirty = false; + /** + * True if the document is not a real document, e.g. chat input. + * + * @generated from field: bool is_synthetic = 18; + */ + isSynthetic = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Document'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path_migrate_me_to_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'relative_path_migrate_me_to_workspace_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 13, + name: 'workspace_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'editor_language', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 6, + name: 'cursor_offset', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { no: 8, name: 'cursor_position', kind: 'message', T: DocumentPosition }, + { + no: 7, + name: 'line_ending', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 9, name: 'visible_range', kind: 'message', T: Range }, + { + no: 10, + name: 'is_cutoff_start', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'is_cutoff_end', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'lines_cutoff_start', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 15, + name: 'lines_cutoff_end', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 16, name: 'timestamp', kind: 'message', T: Timestamp }, + { + no: 17, + name: 'is_dirty', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 18, + name: 'is_synthetic', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _Document().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Document().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Document().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Document, a, b); + } +}; +var PromptComponents = class _PromptComponents extends Message { + /** + * Note that these documents may not contain the entire document text. In + * order to limit the amount of data sent, the client may create a "fake" + * document for a section of text around the cursor. + * + * @generated from field: exa.codeium_common_pb.Document document = 1; + */ + document; + /** + * @generated from field: repeated exa.codeium_common_pb.Document other_documents = 2; + */ + otherDocuments = []; + /** + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem code_context_items = 3; + */ + codeContextItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PromptComponents'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'document', kind: 'message', T: Document }, + { + no: 2, + name: 'other_documents', + kind: 'message', + T: Document, + repeated: true, + }, + { + no: 3, + name: 'code_context_items', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _PromptComponents().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptComponents().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptComponents().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptComponents, a, b); + } +}; +var TextOrScopeItem = class _TextOrScopeItem extends Message { + /** + * @generated from oneof exa.codeium_common_pb.TextOrScopeItem.chunk + */ + chunk = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TextOrScopeItem'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'text', kind: 'scalar', T: 9, oneof: 'chunk' }, + { + no: 2, + name: 'item', + kind: 'message', + T: ContextScopeItem, + oneof: 'chunk', + }, + ]); + static fromBinary(bytes, options) { + return new _TextOrScopeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TextOrScopeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TextOrScopeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TextOrScopeItem, a, b); + } +}; +var PinnedContextConfig = class _PinnedContextConfig extends Message { + /** + * Exact match repo name + * + * @generated from field: string match_repo_name = 1; + */ + matchRepoName = ''; + /** + * Prefix match path. + * + * @generated from field: string match_path = 2; + */ + matchPath = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.PinnedContext pinned_contexts = 3; + */ + pinnedContexts = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PinnedContextConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'match_repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'match_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'pinned_contexts', + kind: 'message', + T: PinnedContext, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _PinnedContextConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PinnedContextConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PinnedContextConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PinnedContextConfig, a, b); + } +}; +var PinnedContext = class _PinnedContext extends Message { + /** + * @generated from oneof exa.codeium_common_pb.PinnedContext.context_item + */ + contextItem = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PinnedContext'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'repository_path', + kind: 'message', + T: RepositoryPath, + oneof: 'context_item', + }, + ]); + static fromBinary(bytes, options) { + return new _PinnedContext().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PinnedContext().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PinnedContext().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PinnedContext, a, b); + } +}; +var RepositoryPath = class _RepositoryPath extends Message { + /** + * @generated from field: string remote_repo_name = 1; + */ + remoteRepoName = ''; + /** + * empty string for latest + * + * @generated from field: string version = 2; + */ + version = ''; + /** + * empty string for relative_path will pin the whole repo instead + * + * @generated from field: string relative_path = 3; + */ + relativePath = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RepositoryPath'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'remote_repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'relative_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _RepositoryPath().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RepositoryPath().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RepositoryPath().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RepositoryPath, a, b); + } +}; +var DefaultPinnedContextConfig = class _DefaultPinnedContextConfig extends Message { + /** + * Empty string applies to project without a git repo + * + * @generated from field: repeated exa.codeium_common_pb.PinnedContextConfig pinned_context_configs = 1; + */ + pinnedContextConfigs = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DefaultPinnedContextConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'pinned_context_configs', + kind: 'message', + T: PinnedContextConfig, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _DefaultPinnedContextConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DefaultPinnedContextConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DefaultPinnedContextConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_DefaultPinnedContextConfig, a, b); + } +}; +var Rule = class _Rule extends Message { + /** + * @generated from field: string id = 1; + */ + id = ''; + /** + * @generated from field: string prompt = 2; + */ + prompt = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Rule'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _Rule().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Rule().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Rule().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Rule, a, b); + } +}; +var RuleViolation = class _RuleViolation extends Message { + /** + * @generated from field: string id = 1; + */ + id = ''; + /** + * @generated from field: exa.codeium_common_pb.Rule rule = 2; + */ + rule; + /** + * @generated from field: int32 start_line = 3; + */ + startLine = 0; + /** + * @generated from field: int32 end_line = 4; + */ + endLine = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.RuleViolation'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'rule', kind: 'message', T: Rule }, + { + no: 3, + name: 'start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'end_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _RuleViolation().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RuleViolation().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RuleViolation().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RuleViolation, a, b); + } +}; +var LanguageServerDiagnostics = class _LanguageServerDiagnostics extends Message { + /** + * @generated from field: repeated string logs = 1; + */ + logs = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.LanguageServerDiagnostics'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'logs', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _LanguageServerDiagnostics().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LanguageServerDiagnostics().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LanguageServerDiagnostics().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LanguageServerDiagnostics, a, b); + } +}; +var IndexerStats = class _IndexerStats extends Message { + /** + * @generated from field: exa.codeium_common_pb.IndexerDbStats database = 1; + */ + database; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.IndexerStats'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'database', kind: 'message', T: IndexerDbStats }, + ]); + static fromBinary(bytes, options) { + return new _IndexerStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexerStats, a, b); + } +}; +var IndexerDbStats = class _IndexerDbStats extends Message { + /** + * @generated from oneof exa.codeium_common_pb.IndexerDbStats.backend + */ + backend = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.IndexerDbStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'local_sqlite_faiss', + kind: 'message', + T: LocalSqliteFaissDbStats, + oneof: 'backend', + }, + { + no: 2, + name: 'postgres', + kind: 'message', + T: PostgresDbStats, + oneof: 'backend', + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerDbStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerDbStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerDbStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexerDbStats, a, b); + } +}; +var LocalSqliteFaissDbStats = class _LocalSqliteFaissDbStats extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.FaissStateStats faiss_state_stats = 1; + */ + faissStateStats = []; + /** + * @generated from field: int64 total_item_count = 2; + */ + totalItemCount = protoInt64.zero; + /** + * @generated from field: bool quantized = 3; + */ + quantized = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.LocalSqliteFaissDbStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'faiss_state_stats', + kind: 'message', + T: FaissStateStats, + repeated: true, + }, + { + no: 2, + name: 'total_item_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'quantized', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _LocalSqliteFaissDbStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LocalSqliteFaissDbStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LocalSqliteFaissDbStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LocalSqliteFaissDbStats, a, b); + } +}; +var FaissStateStats = class _FaissStateStats extends Message { + /** + * @generated from field: exa.codeium_common_pb.EmbeddingSource embedding_source = 1; + */ + embeddingSource = EmbeddingSource.UNSPECIFIED; + /** + * @generated from field: string workspace = 2; + */ + workspace = ''; + /** + * @generated from field: int64 item_count = 3; + */ + itemCount = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.FaissStateStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'embedding_source', + kind: 'enum', + T: proto3.getEnumType(EmbeddingSource), + }, + { + no: 2, + name: 'workspace', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'item_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _FaissStateStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FaissStateStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FaissStateStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FaissStateStats, a, b); + } +}; +var PostgresDbStats = class _PostgresDbStats extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PostgresDbStats'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _PostgresDbStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PostgresDbStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PostgresDbStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PostgresDbStats, a, b); + } +}; +var LastUpdateRecord = class _LastUpdateRecord extends Message { + /** + * @generated from field: google.protobuf.Timestamp time = 1; + */ + time; + /** + * @generated from field: exa.codeium_common_pb.LastUpdateType type = 2; + */ + type = LastUpdateType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.LastUpdateRecord'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'time', kind: 'message', T: Timestamp }, + { + no: 2, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(LastUpdateType), + }, + ]); + static fromBinary(bytes, options) { + return new _LastUpdateRecord().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LastUpdateRecord().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LastUpdateRecord().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LastUpdateRecord, a, b); + } +}; +var ModelUsageStats = class _ModelUsageStats extends Message { + /** + * @generated from field: exa.codeium_common_pb.Model model = 1; + */ + model = Model.UNSPECIFIED; + /** + * The number of input tokens written to cache. + * + * @generated from field: uint64 input_tokens = 2; + */ + inputTokens = protoInt64.zero; + /** + * For multiple completions, this should be interpreted as the sum of all + * outputs. + * + * @generated from field: uint64 output_tokens = 3; + */ + outputTokens = protoInt64.zero; + /** + * For requests with thinking, this should be interpreted as the sum of all + * thinking outputs. Will be 0 if there is no thinking. + * + * @generated from field: uint64 thinking_output_tokens = 9; + */ + thinkingOutputTokens = protoInt64.zero; + /** + * The number of output tokens for the response, excluding thinking tokens if + * applicable. + * + * @generated from field: uint64 response_output_tokens = 10; + */ + responseOutputTokens = protoInt64.zero; + /** + * The number of tokens successfully read from the cache. + * + * @generated from field: uint64 cache_read_tokens = 5; + */ + cacheReadTokens = protoInt64.zero; + /** + * @generated from field: exa.codeium_common_pb.APIProvider api_provider = 6; + */ + apiProvider = APIProvider.API_PROVIDER_UNSPECIFIED; + /** + * External message id for this request. + * + * @generated from field: string message_id = 7; + */ + messageId = ''; + /** + * Response headers from the API provider. + * + * @generated from field: map response_header = 8; + */ + responseHeader = {}; + /** + * Identifier for the API request/response. + * + * @generated from field: string response_id = 11; + */ + responseId = ''; + /** + * No longer being used after moving to GDM. + * + * @generated from field: uint64 cache_write_tokens = 4 [deprecated = true]; + * @deprecated + */ + cacheWriteTokens = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ModelUsageStats'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 2, + name: 'input_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'output_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 9, + name: 'thinking_output_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 10, + name: 'response_output_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 5, + name: 'cache_read_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 6, + name: 'api_provider', + kind: 'enum', + T: proto3.getEnumType(APIProvider), + }, + { + no: 7, + name: 'message_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'response_header', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { no: 18, name: 'cascade_web_search_disabled', kind: 'scalar', T: 8 }, - { no: 67, name: 'tab_enabled', kind: 'enum', T: a.getEnumType(Ze) }, - { no: 21, name: 'disable_selection_popup', kind: 'scalar', T: 8 }, - { - no: 22, - name: 'disable_explain_problem_inlay_hint', - kind: 'scalar', - T: 8, - }, - { no: 23, name: 'disable_inlay_hint_shortcuts', kind: 'scalar', T: 8 }, - { no: 24, name: 'disable_open_cascade_on_reload', kind: 'scalar', T: 8 }, - { no: 25, name: 'disable_auto_open_edited_files', kind: 'scalar', T: 8 }, - { no: 26, name: 'disable_tab_to_jump', kind: 'scalar', T: 8 }, - { - no: 27, - name: 'cascade_auto_execution_policy', - kind: 'enum', - T: a.getEnumType(un), - }, - { - no: 28, - name: 'last_selected_cascade_id', + }, + { + no: 11, + name: 'response_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'cache_write_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ModelUsageStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelUsageStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelUsageStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelUsageStats, a, b); + } +}; +var SuperCompleteFilterReason = class _SuperCompleteFilterReason extends Message { + /** + * @generated from field: string reason = 1; + */ + reason = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.SuperCompleteFilterReason'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'reason', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _SuperCompleteFilterReason().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SuperCompleteFilterReason().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SuperCompleteFilterReason().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SuperCompleteFilterReason, a, b); + } +}; +var CodeDiagnostic = class _CodeDiagnostic extends Message { + /** + * @generated from field: exa.codeium_common_pb.Range range = 1; + */ + range; + /** + * @generated from field: string message = 2; + */ + message = ''; + /** + * @generated from field: string severity = 3; + */ + severity = ''; + /** + * @generated from field: string source = 4; + */ + source = ''; + /** + * @generated from field: string uri = 5; + */ + uri = ''; + /** + * A unique ID to identify the diagnostic across its lifetime. + * + * @generated from field: optional string id = 6; + */ + id; + /** + * @generated from field: exa.codeium_common_pb.Language language = 7; + */ + language = Language.UNSPECIFIED; + /** + * A score of how relevant the diagnostic is to the active file, + * based on depth of the common path between their URIs. + * + * @generated from field: int64 score = 8; + */ + score = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CodeDiagnostic'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'range', kind: 'message', T: Range }, + { + no: 2, + name: 'message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'severity', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'source', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 6, name: 'id', kind: 'scalar', T: 9, opt: true }, + { no: 7, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 8, + name: 'score', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodeDiagnostic().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeDiagnostic().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeDiagnostic().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeDiagnostic, a, b); + } +}; +var IntellisenseSuggestion = class _IntellisenseSuggestion extends Message { + /** + * @generated from field: exa.codeium_common_pb.Range range = 1; + */ + range; + /** + * @generated from field: string text = 2; + */ + text = ''; + /** + * @generated from field: string label = 3; + */ + label = ''; + /** + * @generated from field: string label_detail = 4; + */ + labelDetail = ''; + /** + * @generated from field: string description = 5; + */ + description = ''; + /** + * @generated from field: string detail = 6; + */ + detail = ''; + /** + * @generated from field: string documentation = 7; + */ + documentation = ''; + /** + * @generated from field: string kind = 8; + */ + kind = ''; + /** + * @generated from field: bool selected = 9; + */ + selected = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.IntellisenseSuggestion'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'range', kind: 'message', T: Range }, + { + no: 2, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'label', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'label_detail', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'detail', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'documentation', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'kind', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'selected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _IntellisenseSuggestion().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IntellisenseSuggestion().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IntellisenseSuggestion().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IntellisenseSuggestion, a, b); + } +}; +var DocumentLinesElement = class _DocumentLinesElement extends Message { + /** + * @generated from field: exa.codeium_common_pb.DocumentQuery document_query = 1; + */ + documentQuery; + /** + * Ordered list of overlapped code context items including partial overlaps. + * + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem overlapped_code_context_items = 2; + */ + overlappedCodeContextItems = []; + /** + * How many lines of the first and last overlapped code context items overlap + * with the document query itself. + * + * @generated from field: uint32 first_element_suffix_overlap = 3; + */ + firstElementSuffixOverlap = 0; + /** + * @generated from field: uint32 last_element_prefix_overlap = 4; + */ + lastElementPrefixOverlap = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DocumentLinesElement'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'document_query', kind: 'message', T: DocumentQuery }, + { + no: 2, + name: 'overlapped_code_context_items', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { + no: 3, + name: 'first_element_suffix_overlap', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'last_element_prefix_overlap', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _DocumentLinesElement().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DocumentLinesElement().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DocumentLinesElement().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DocumentLinesElement, a, b); + } +}; +var DocumentQuery = class _DocumentQuery extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + /** + * @generated from field: int32 cursor_offset = 2; + */ + cursorOffset = 0; + /** + * @generated from field: uint32 start_line = 3; + */ + startLine = 0; + /** + * End exclusive + * + * @generated from field: uint32 end_line = 4; + */ + endLine = 0; + /** + * @generated from field: bool use_character_position = 5; + */ + useCharacterPosition = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DocumentQuery'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'cursor_offset', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'start_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'end_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'use_character_position', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _DocumentQuery().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DocumentQuery().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DocumentQuery().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DocumentQuery, a, b); + } +}; +var DocumentOutlineElement = class _DocumentOutlineElement extends Message { + /** + * @generated from oneof exa.codeium_common_pb.DocumentOutlineElement.element + */ + element = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DocumentOutlineElement'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'code_context_item', + kind: 'message', + T: CodeContextItem, + oneof: 'element', + }, + { + no: 2, + name: 'document_lines_element', + kind: 'message', + T: DocumentLinesElement, + oneof: 'element', + }, + { no: 3, name: 'text', kind: 'scalar', T: 9, oneof: 'element' }, + ]); + static fromBinary(bytes, options) { + return new _DocumentOutlineElement().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DocumentOutlineElement().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DocumentOutlineElement().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DocumentOutlineElement, a, b); + } +}; +var DocumentOutline = class _DocumentOutline extends Message { + /** + * The document outline consists of an ordered list of elements in top to + * bottom order. + * + * @generated from field: repeated exa.codeium_common_pb.DocumentOutlineElement elements = 1; + */ + elements = []; + /** + * When building a prompt out of the outline with a token limit, we start at + * this element and radiate outward until hitting a token limit. If unset, + * then it will just build from top down. + * + * @generated from field: int64 start_index = 2; + */ + startIndex = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DocumentOutline'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'elements', + kind: 'message', + T: DocumentOutlineElement, + repeated: true, + }, + { + no: 2, + name: 'start_index', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _DocumentOutline().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DocumentOutline().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DocumentOutline().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DocumentOutline, a, b); + } +}; +var ProductEvent = class _ProductEvent extends Message { + /** + * @generated from field: string event_name = 1; + */ + eventName = ''; + /** + * @generated from field: string api_key = 2; + */ + apiKey = ''; + /** + * @generated from field: string installation_id = 3; + */ + installationId = ''; + /** + * @generated from field: string ide_name = 4; + */ + ideName = ''; + /** + * @generated from field: string os = 5; + */ + os = ''; + /** + * @generated from field: string codeium_version = 6; + */ + codeiumVersion = ''; + /** + * @generated from field: string ide_version = 7; + */ + ideVersion = ''; + /** + * @generated from field: uint64 duration_ms = 8; + */ + durationMs = protoInt64.zero; + /** + * @generated from field: map extra = 9; + */ + extra = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ProductEvent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'event_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'api_key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'installation_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'ide_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'os', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'codeium_version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'ide_version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'duration_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 9, + name: 'extra', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - opt: !0, + /* ScalarType.STRING */ }, - { - no: 29, - name: 'explain_and_fix_in_current_conversation', - kind: 'scalar', - T: 8, - }, - { - no: 31, - name: 'allow_cascade_access_gitignore_files', - kind: 'scalar', - T: 8, - }, - { - no: 79, - name: 'allow_agent_access_non_workspace_files', - kind: 'scalar', - T: 8, - }, - { no: 32, name: 'disable_cascade_auto_fix_lints', kind: 'scalar', T: 8 }, - { - no: 34, - name: 'detect_and_use_proxy', - kind: 'enum', - T: a.getEnumType(dt), - }, - { no: 35, name: 'disable_tab_to_import', kind: 'scalar', T: 8 }, - { no: 36, name: 'use_clipboard_for_completions', kind: 'scalar', T: 8 }, - { no: 37, name: 'disable_highlight_after_accept', kind: 'scalar', T: 8 }, - { no: 39, name: 'disable_auto_generate_memories', kind: 'scalar', T: 8 }, - { - no: 40, - name: 'enable_sounds_for_special_events', - kind: 'scalar', - T: 8, - }, - { no: 41, name: 'enable_tab_sounds', kind: 'scalar', T: 8 }, - { no: 42, name: 'allow_cascade_in_background', kind: 'scalar', T: 8 }, - { no: 43, name: 'tab_to_jump', kind: 'enum', T: a.getEnumType(at) }, - { - no: 44, - name: 'cascade_web_search', - kind: 'enum', - T: a.getEnumType(rt), - }, - { no: 45, name: 'enable_terminal_completion', kind: 'scalar', T: 8 }, - { no: 55, name: 'is_snoozed', kind: 'scalar', T: 8 }, - { no: 48, name: 'disable_cascade_in_background', kind: 'scalar', T: 8 }, - { no: 50, name: 'custom_workspace', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 54, - name: 'global_plan_mode_preference', - kind: 'enum', - T: a.getEnumType(Dn), - }, - { - no: 52, - name: 'cached_cascade_model_configs', - kind: 'message', - T: Mr, - repeated: !0, - }, - { - no: 53, - name: 'cached_cascade_model_sorts', - kind: 'message', - T: yr, - repeated: !0, - }, - { - no: 56, - name: 'cascade_run_extension_code', - kind: 'enum', - T: a.getEnumType(st), - }, - { - no: 57, - name: 'cascade_run_extension_code_auto_run', - kind: 'enum', - T: a.getEnumType(ot), - }, - { - no: 65, - name: 'cascade_input_autocomplete', - kind: 'enum', - T: a.getEnumType(it), - }, - { - no: 59, - name: 'auto_continue_on_max_generator_invocations', - kind: 'enum', - T: a.getEnumType(ct), - }, - { - no: 61, - name: 'recently_used_cascade_models', + }, + ]); + static fromBinary(bytes, options) { + return new _ProductEvent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ProductEvent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ProductEvent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ProductEvent, a, b); + } +}; +var KnowledgeBaseChunk = class _KnowledgeBaseChunk extends Message { + /** + * @generated from oneof exa.codeium_common_pb.KnowledgeBaseChunk.chunk_type + */ + chunkType = { case: void 0 }; + /** + * @generated from field: int32 position = 2; + */ + position = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.KnowledgeBaseChunk'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'text', kind: 'scalar', T: 9, oneof: 'chunk_type' }, + { + no: 3, + name: 'markdown_chunk', + kind: 'message', + T: MarkdownChunk, + oneof: 'chunk_type', + }, + { + no: 2, + name: 'position', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeBaseChunk().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeBaseChunk().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeBaseChunk().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeBaseChunk, a, b); + } +}; +var KnowledgeBaseItem = class _KnowledgeBaseItem extends Message { + /** + * @generated from field: string document_id = 1; + */ + documentId = ''; + /** + * @generated from field: string url = 3; + */ + url = ''; + /** + * @generated from field: string title = 4; + */ + title = ''; + /** + * @generated from field: google.protobuf.Timestamp timestamp = 5; + */ + timestamp; + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseChunk chunks = 6; + */ + chunks = []; + /** + * Optional summary of the knowledge base item. + * + * @generated from field: string summary = 7; + */ + summary = ''; + /** + * Optional DOM tree of the knowledge base item. + * + * @generated from field: exa.codeium_common_pb.DOMTree dom_tree = 9; + */ + domTree; + /** + * Deprecated: Use media instead + * + * @generated from field: exa.codeium_common_pb.ImageData image = 8 [deprecated = true]; + * @deprecated + */ + image; + /** + * Optional media data of the knowledge base item. + * + * @generated from field: exa.codeium_common_pb.Media media = 10; + */ + media; + /** + * Deprecated + * + * @generated from field: string text = 2 [deprecated = true]; + * @deprecated + */ + text = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.KnowledgeBaseItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'document_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'timestamp', kind: 'message', T: Timestamp }, + { + no: 6, + name: 'chunks', + kind: 'message', + T: KnowledgeBaseChunk, + repeated: true, + }, + { + no: 7, + name: 'summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 9, name: 'dom_tree', kind: 'message', T: DOMTree }, + { no: 8, name: 'image', kind: 'message', T: ImageData }, + { no: 10, name: 'media', kind: 'message', T: Media }, + { + no: 2, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeBaseItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeBaseItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeBaseItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeBaseItem, a, b); + } +}; +var KnowledgeBaseItemWithMetadata = class _KnowledgeBaseItemWithMetadata extends Message { + /** + * @generated from field: exa.codeium_common_pb.KnowledgeBaseItem knowledge_base_item = 1; + */ + knowledgeBaseItem; + /** + * not being used at the moment + * + * @generated from field: float score = 2; + */ + score = 0; + /** + * TODO(sean) / TODO(saujasn): remove index_name field + * + * always going to be "knowledge_base" for beacon + * + * @generated from field: string index_name = 3; + */ + indexName = ''; + /** + * where the document came from, + * + * @generated from field: string document_source_name = 4; + */ + documentSourceName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.KnowledgeBaseItemWithMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'knowledge_base_item', + kind: 'message', + T: KnowledgeBaseItem, + }, + { + no: 2, + name: 'score', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 3, + name: 'index_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'document_source_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeBaseItemWithMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeBaseItemWithMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeBaseItemWithMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeBaseItemWithMetadata, a, b); + } +}; +var KnowledgeBaseGroup = class _KnowledgeBaseGroup extends Message { + /** + * @generated from field: string description = 1; + */ + description = ''; + /** + * not required for aggregates, i.e. Slack channels + * + * @generated from field: exa.codeium_common_pb.KnowledgeBaseItemWithMetadata item = 2; + */ + item; + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseGroup children = 3; + */ + children = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.KnowledgeBaseGroup'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'item', kind: 'message', T: KnowledgeBaseItemWithMetadata }, + { + no: 3, + name: 'children', + kind: 'message', + T: _KnowledgeBaseGroup, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeBaseGroup().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeBaseGroup().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeBaseGroup().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeBaseGroup, a, b); + } +}; +var ImageData = class _ImageData extends Message { + /** + * Base64 encoded image data + * + * @generated from field: string base64_data = 1; + */ + base64Data = ''; + /** + * MIME type of the image (e.g., "image/jpeg", "image/png") + * + * @generated from field: string mime_type = 2; + */ + mimeType = ''; + /** + * AI Generated Caption, populated when using a model that has + * supportsImageCaptions = true + * + * @generated from field: string caption = 3; + */ + caption = ''; + /** + * Optional URI where the image is stored (e.g., file path or URL) + * + * @generated from field: string uri = 4; + */ + uri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ImageData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'base64_data', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'mime_type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'caption', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ImageData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ImageData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ImageData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ImageData, a, b); + } +}; +var Blobref = class _Blobref extends Message { + /** + * @generated from field: string blob_id = 1; + */ + blobId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Blobref'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'blob_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _Blobref().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Blobref().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Blobref().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Blobref, a, b); + } +}; +var Media = class _Media extends Message { + /** + * MIME type of the media, e.g., "text/plain", "image/jpeg", etc. + * + * @generated from field: string mime_type = 1; + */ + mimeType = ''; + /** + * Optional description of the media, e.g., "Screenshot of the app" + * Or summary of the media + * + * @generated from field: string description = 4; + */ + description = ''; + /** + * @generated from oneof exa.codeium_common_pb.Media.payload + */ + payload = { case: void 0 }; + /** + * Optional URI where the media is stored (e.g., file path or URL) + * + * @generated from field: string uri = 5; + */ + uri = ''; + /** + * Optional thumbnail for video + * + * @generated from field: bytes thumbnail = 6; + */ + thumbnail = new Uint8Array(0); + /** + * Optional duration in seconds for video + * + * @generated from field: float duration_seconds = 7; + */ + durationSeconds = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Media'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'mime_type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'inline_data', kind: 'scalar', T: 12, oneof: 'payload' }, + { no: 3, name: 'blobref', kind: 'message', T: Blobref, oneof: 'payload' }, + { + no: 5, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'thumbnail', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { + no: 7, + name: 'duration_seconds', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + ]); + static fromBinary(bytes, options) { + return new _Media().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Media().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Media().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Media, a, b); + } +}; +var TextData = class _TextData extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + /** + * MIME type of the text (e.g., "text/plain", "text/markdown") + * + * @generated from field: string mime_type = 2; + */ + mimeType = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TextData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'mime_type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _TextData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TextData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TextData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TextData, a, b); + } +}; +var MarkdownChunk = class _MarkdownChunk extends Message { + /** + * An array of headers that the text belongs to. The last element of the array + * is the most recent header that the text belongs to. + * + * @generated from field: repeated exa.codeium_common_pb.MarkdownChunk.MarkdownHeader headers = 1; + */ + headers = []; + /** + * The text in the markdown chunk. + * + * @generated from field: string text = 2; + */ + text = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.MarkdownChunk'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'headers', + kind: 'message', + T: MarkdownChunk_MarkdownHeader, + repeated: true, + }, + { + no: 2, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _MarkdownChunk().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MarkdownChunk().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MarkdownChunk().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MarkdownChunk, a, b); + } +}; +var MarkdownChunk_MarkdownHeader = class _MarkdownChunk_MarkdownHeader extends Message { + /** + * @generated from field: exa.codeium_common_pb.MarkdownNodeType type = 1; + */ + type = MarkdownNodeType.UNSPECIFIED; + /** + * @generated from field: string text = 2; + */ + text = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.MarkdownChunk.MarkdownHeader'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(MarkdownNodeType), + }, + { + no: 2, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _MarkdownChunk_MarkdownHeader().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MarkdownChunk_MarkdownHeader().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MarkdownChunk_MarkdownHeader().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_MarkdownChunk_MarkdownHeader, a, b); + } +}; +var TerminalShellCommandHeader = class _TerminalShellCommandHeader extends Message { + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 7; + */ + metadata; + /** + * ID of the terminal that the command was executed in. + * + * @generated from field: string terminal_id = 1; + */ + terminalId = ''; + /** + * PID of the shell process that executed the command. + * + * @generated from field: uint32 shell_pid = 2; + */ + shellPid = 0; + /** + * Shell command line that was executed. Note that this combines the command + * and the arguments. + * + * @generated from field: string command_line = 3; + */ + commandLine = ''; + /** + * Working directory that the shell command was executed in. + * + * @generated from field: string cwd = 4; + */ + cwd = ''; + /** + * Timestamp when the shell command was executed. + * + * @generated from field: google.protobuf.Timestamp start_time = 5; + */ + startTime; + /** + * Source of the shell command. + * + * @generated from field: exa.codeium_common_pb.TerminalShellCommandSource source = 6; + */ + source = TerminalShellCommandSource.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TerminalShellCommandHeader'; + static fields = proto3.util.newFieldList(() => [ + { no: 7, name: 'metadata', kind: 'message', T: Metadata }, + { + no: 1, + name: 'terminal_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'shell_pid', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'command_line', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'cwd', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'start_time', kind: 'message', T: Timestamp }, + { + no: 6, + name: 'source', + kind: 'enum', + T: proto3.getEnumType(TerminalShellCommandSource), + }, + ]); + static fromBinary(bytes, options) { + return new _TerminalShellCommandHeader().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TerminalShellCommandHeader().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TerminalShellCommandHeader().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_TerminalShellCommandHeader, a, b); + } +}; +var TerminalShellCommandData = class _TerminalShellCommandData extends Message { + /** + * New raw data bytes (delta) from the command output. + * + * @generated from field: bytes raw_data = 1; + */ + rawData = new Uint8Array(0); + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TerminalShellCommandData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'raw_data', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + ]); + static fromBinary(bytes, options) { + return new _TerminalShellCommandData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TerminalShellCommandData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TerminalShellCommandData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TerminalShellCommandData, a, b); + } +}; +var TerminalShellCommandTrailer = class _TerminalShellCommandTrailer extends Message { + /** + * Exit code of the command. Will be unset if the exit code cannot be + * determined. + * + * @generated from field: optional int32 exit_code = 1; + */ + exitCode; + /** + * Timestamp when the shell command finished executing. + * + * @generated from field: google.protobuf.Timestamp end_time = 2; + */ + endTime; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TerminalShellCommandTrailer'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'exit_code', kind: 'scalar', T: 5, opt: true }, + { no: 2, name: 'end_time', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _TerminalShellCommandTrailer().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TerminalShellCommandTrailer().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TerminalShellCommandTrailer().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_TerminalShellCommandTrailer, a, b); + } +}; +var TerminalShellCommandStreamChunk = class _TerminalShellCommandStreamChunk extends Message { + /** + * @generated from oneof exa.codeium_common_pb.TerminalShellCommandStreamChunk.value + */ + value = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TerminalShellCommandStreamChunk'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'header', + kind: 'message', + T: TerminalShellCommandHeader, + oneof: 'value', + }, + { + no: 2, + name: 'data', + kind: 'message', + T: TerminalShellCommandData, + oneof: 'value', + }, + { + no: 3, + name: 'trailer', + kind: 'message', + T: TerminalShellCommandTrailer, + oneof: 'value', + }, + ]); + static fromBinary(bytes, options) { + return new _TerminalShellCommandStreamChunk().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TerminalShellCommandStreamChunk().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TerminalShellCommandStreamChunk().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_TerminalShellCommandStreamChunk, a, b); + } +}; +var TerminalShellCommand = class _TerminalShellCommand extends Message { + /** + * Unique ID for the shell command. + * + * @generated from field: string id = 10; + */ + id = ''; + /** + * PID of the shell process that executed the command. + * + * @generated from field: uint32 shell_pid = 1; + */ + shellPid = 0; + /** + * Shell command line that was executed. Note that this combines the command + * and the arguments. + * + * @generated from field: string command_line = 2; + */ + commandLine = ''; + /** + * Working directory that the shell command was executed in. + * + * @generated from field: string cwd = 3; + */ + cwd = ''; + /** + * Aggregated and processed output. + * + * @generated from field: bytes output = 4; + */ + output = new Uint8Array(0); + /** + * Exit code of the command. Will be unset if the exit code cannot be + * determined. + * + * @generated from field: optional int32 exit_code = 5; + */ + exitCode; + /** + * Timestamp when the shell command was executed. + * + * @generated from field: google.protobuf.Timestamp start_time = 6; + */ + startTime; + /** + * Timestamp when the shell command finished executing. + * + * @generated from field: google.protobuf.Timestamp end_time = 7; + */ + endTime; + /** + * Timestamp when the shell command was last updated. + * + * @generated from field: google.protobuf.Timestamp last_updated_time = 11; + */ + lastUpdatedTime; + /** + * Status of the shell command. + * + * @generated from field: exa.codeium_common_pb.TerminalShellCommandStatus status = 8; + */ + status = TerminalShellCommandStatus.UNSPECIFIED; + /** + * Source of the shell command. + * + * @generated from field: exa.codeium_common_pb.TerminalShellCommandSource source = 9; + */ + source = TerminalShellCommandSource.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TerminalShellCommand'; + static fields = proto3.util.newFieldList(() => [ + { + no: 10, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'shell_pid', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'command_line', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'cwd', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'output', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { no: 5, name: 'exit_code', kind: 'scalar', T: 5, opt: true }, + { no: 6, name: 'start_time', kind: 'message', T: Timestamp }, + { no: 7, name: 'end_time', kind: 'message', T: Timestamp }, + { no: 11, name: 'last_updated_time', kind: 'message', T: Timestamp }, + { + no: 8, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(TerminalShellCommandStatus), + }, + { + no: 9, + name: 'source', + kind: 'enum', + T: proto3.getEnumType(TerminalShellCommandSource), + }, + ]); + static fromBinary(bytes, options) { + return new _TerminalShellCommand().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TerminalShellCommand().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TerminalShellCommand().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TerminalShellCommand, a, b); + } +}; +var TerminalCommandData = class _TerminalCommandData extends Message { + /** + * @generated from field: string terminal_id = 1; + */ + terminalId = ''; + /** + * @generated from field: string platform = 2; + */ + platform = ''; + /** + * @generated from field: string cwd = 3; + */ + cwd = ''; + /** + * @generated from field: string shell_name = 4; + */ + shellName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TerminalCommandData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'terminal_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'platform', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'cwd', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'shell_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _TerminalCommandData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TerminalCommandData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TerminalCommandData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TerminalCommandData, a, b); + } +}; +var AntigravityProject = class _AntigravityProject extends Message { + /** + * @generated from field: string antigravity_project_id = 1; + */ + antigravityProjectId = ''; + /** + * @generated from field: string auth_uid = 2; + */ + authUid = ''; + /** + * @generated from field: exa.codeium_common_pb.DeploymentProvider deployment_provider = 3; + */ + deploymentProvider = DeploymentProvider.UNSPECIFIED; + /** + * @generated from field: string provider_project_id = 4; + */ + providerProjectId = ''; + /** + * The name of the project. This shows up on the provider dashboard and is + * different from the subdomain name. + * + * @generated from field: string project_name = 5; + */ + projectName = ''; + /** + * @generated from field: google.protobuf.Timestamp created_at = 6; + */ + createdAt; + /** + * @generated from field: google.protobuf.Timestamp updated_at = 7; + */ + updatedAt; + /** + * The domain the deployment is deployed to. Example: antigravity.build + * + * @generated from field: string domain = 8; + */ + domain = ''; + /** + * The subdomain the deployment is deployed to. Example: my-project + * + * @generated from field: string subdomain_name = 9; + */ + subdomainName = ''; + /** + * When the deployment will expire (after which it will be removed by the cron + * job) + * + * @generated from field: google.protobuf.Timestamp expires_at = 10; + */ + expiresAt; + /** + * When the deployment was claimed by the user. If site is unclaimed, this + * will be unset. + * + * @generated from field: google.protobuf.Timestamp claimed_at = 11; + */ + claimedAt; + /** + * When the deployment was removed from the domain to free up the site name. + * This is done after the site expires by the cron job. + * + * @generated from field: google.protobuf.Timestamp deprovisioned_at = 12; + */ + deprovisionedAt; + /** + * Team ID of the provider if this project is not on the Antigravity sandbox + * account + * + * @generated from field: string provider_team_id = 14; + */ + providerTeamId = ''; + /** + * Public URL to access the app + * + * @generated from field: string project_url = 13; + */ + projectUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.AntigravityProject'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'antigravity_project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'auth_uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'deployment_provider', + kind: 'enum', + T: proto3.getEnumType(DeploymentProvider), + }, + { + no: 4, + name: 'provider_project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'project_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 6, name: 'created_at', kind: 'message', T: Timestamp }, + { no: 7, name: 'updated_at', kind: 'message', T: Timestamp }, + { + no: 8, + name: 'domain', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'subdomain_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 10, name: 'expires_at', kind: 'message', T: Timestamp }, + { no: 11, name: 'claimed_at', kind: 'message', T: Timestamp }, + { no: 12, name: 'deprovisioned_at', kind: 'message', T: Timestamp }, + { + no: 14, + name: 'provider_team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 13, + name: 'project_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _AntigravityProject().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AntigravityProject().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AntigravityProject().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AntigravityProject, a, b); + } +}; +var AntigravityDeployment = class _AntigravityDeployment extends Message { + /** + * @generated from field: string antigravity_deployment_id = 1; + */ + antigravityDeploymentId = ''; + /** + * @generated from field: string auth_uid = 2; + */ + authUid = ''; + /** + * @generated from field: exa.codeium_common_pb.DeploymentProvider deployment_provider = 3; + */ + deploymentProvider = DeploymentProvider.UNSPECIFIED; + /** + * @generated from field: string provider_deployment_id = 14; + */ + providerDeploymentId = ''; + /** + * This references the antigravity_project_id + * + * @generated from field: string antigravity_project_id = 19; + */ + antigravityProjectId = ''; + /** + * in the antigravity_projects table + * + * @generated from field: string project_id = 4; + */ + projectId = ''; + /** + * @generated from field: string project_name = 5; + */ + projectName = ''; + /** + * @generated from field: string workspace_path = 6; + */ + workspacePath = ''; + /** + * @generated from field: google.protobuf.Timestamp created_at = 7; + */ + createdAt; + /** + * @generated from field: google.protobuf.Timestamp updated_at = 8; + */ + updatedAt; + /** + * The domain the deployment is deployed to. Example: antigravity.build + * + * @generated from field: string domain = 16; + */ + domain = ''; + /** + * The subdomain the deployment is deployed to. Example: my-project + * + * @generated from field: string subdomain_name = 17; + */ + subdomainName = ''; + /** + * Team ID of the provider if this project is not on the Antigravity sandbox + * account + * + * @generated from field: string provider_team_id = 20; + */ + providerTeamId = ''; + /** + * When the deployment will expire (after which it will be removed by the cron + * job) + * + * @generated from field: google.protobuf.Timestamp expires_at = 11; + */ + expiresAt; + /** + * URL to access this specific deployment. This is different from the + * .antigravity.app URL (which is the public URL). + * + * @generated from field: string deployment_url = 12; + */ + deploymentUrl = ''; + /** + * When the deployment was claimed by the user. If site is unclaimed, this + * will be unset. + * + * @generated from field: google.protobuf.Timestamp claimed_at = 15; + */ + claimedAt; + /** + * When the deployment was removed from the domain to free up the site name. + * This is done after the site expires by the cron job. + * + * @generated from field: google.protobuf.Timestamp deprovisioned_at = 13; + */ + deprovisionedAt; + /** + * URL to the build status page on the Codeium website + * + * @generated from field: string build_status_url = 9; + */ + buildStatusUrl = ''; + /** + * Public URL to access the app + * + * @generated from field: string project_url = 10; + */ + projectUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.AntigravityDeployment'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'antigravity_deployment_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'auth_uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'deployment_provider', + kind: 'enum', + T: proto3.getEnumType(DeploymentProvider), + }, + { + no: 14, + name: 'provider_deployment_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 19, + name: 'antigravity_project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'project_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'workspace_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 7, name: 'created_at', kind: 'message', T: Timestamp }, + { no: 8, name: 'updated_at', kind: 'message', T: Timestamp }, + { + no: 16, + name: 'domain', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 17, + name: 'subdomain_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 20, + name: 'provider_team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 11, name: 'expires_at', kind: 'message', T: Timestamp }, + { + no: 12, + name: 'deployment_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 15, name: 'claimed_at', kind: 'message', T: Timestamp }, + { no: 13, name: 'deprovisioned_at', kind: 'message', T: Timestamp }, + { + no: 9, + name: 'build_status_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'project_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _AntigravityDeployment().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AntigravityDeployment().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AntigravityDeployment().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AntigravityDeployment, a, b); + } +}; +var DeployTarget = class _DeployTarget extends Message { + /** + * Deployment provider (i.e. Netlify) + * + * @generated from field: exa.codeium_common_pb.DeploymentProvider deployment_provider = 1; + */ + deploymentProvider = DeploymentProvider.UNSPECIFIED; + /** + * Whether the site is on the Antigravity umbrella account + * + * @generated from field: bool is_sandbox = 2; + */ + isSandbox = false; + /** + * ID of the team that owns the site. Unset if the site is on the umbrella + * account + * + * @generated from field: string provider_team_id = 3; + */ + providerTeamId = ''; + /** + * Slug of the team that owns the site. This is "antigravity" if the site is + * on the umbrella account + * + * @generated from field: string provider_team_slug = 4; + */ + providerTeamSlug = ''; + /** + * Domain of the site + * + * @generated from field: string domain = 5; + */ + domain = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DeployTarget'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'deployment_provider', + kind: 'enum', + T: proto3.getEnumType(DeploymentProvider), + }, + { + no: 2, + name: 'is_sandbox', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'provider_team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'provider_team_slug', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'domain', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _DeployTarget().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DeployTarget().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DeployTarget().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DeployTarget, a, b); + } +}; +var WebDocsOption = class _WebDocsOption extends Message { + /** + * The label of the option. This must not contain any spaces. This is what + * will be rendered in `[@docs:label](docs_url)`. Allowed characters: a-z, + * A-Z, 0-9, _, -. + * + * @generated from field: string label = 1; + */ + label = ''; + /** + * The URL of the documentation or human-language instructions to prompt the + * LLM to lookup live documentation via web search. + * + * @generated from oneof exa.codeium_common_pb.WebDocsOption.value + */ + value = { case: void 0 }; + /** + * A space-separated list of synonyms for the option. This is used for + * searching through options if the user does not enter a match to the + * `label`. + * + * @generated from field: repeated string synonyms = 4; + */ + synonyms = []; + /** + * Whether this is a featured docs provider. + * + * @generated from field: bool is_featured = 5; + */ + isFeatured = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.WebDocsOption'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'label', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'docs_url', kind: 'scalar', T: 9, oneof: 'value' }, + { no: 3, name: 'docs_search_domain', kind: 'scalar', T: 9, oneof: 'value' }, + { no: 4, name: 'synonyms', kind: 'scalar', T: 9, repeated: true }, + { + no: 5, + name: 'is_featured', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _WebDocsOption().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WebDocsOption().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WebDocsOption().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WebDocsOption, a, b); + } +}; +var TeamConfig = class _TeamConfig extends Message { + /** + * @generated from field: string team_id = 1; + */ + teamId = ''; + /** + * @generated from field: int32 user_prompt_credit_cap = 2; + */ + userPromptCreditCap = 0; + /** + * @generated from field: int32 user_flow_credit_cap = 3; + */ + userFlowCreditCap = 0; + /** + * @generated from field: bool auto_provision_cascade_seat = 4; + */ + autoProvisionCascadeSeat = false; + /** + * @generated from field: bool allow_mcp_servers = 5; + */ + allowMcpServers = false; + /** + * TODO(michaelli): Move web search from teams table to team config. + * bool allow_web_search = 6; + * + * @generated from field: bool allow_auto_run_commands = 7; + */ + allowAutoRunCommands = false; + /** + * Maximum number of unclaimed sites for Antigravity deployments a user can + * have. + * Moved from PlanInfo to TeamConfig. This is disconnected from + * allow_app_deployments and can be > 0 even if allow_app_deployments is + * false. + * + * @generated from field: int32 max_unclaimed_sites = 9; + */ + maxUnclaimedSites = 0; + /** + * Whether app deployments are allowed for this team. + * + * @generated from field: bool allow_app_deployments = 10; + */ + allowAppDeployments = false; + /** + * Whether deployment to the shared sandbox/umbrella account is allowed. + * + * @generated from field: bool allow_sandbox_app_deployments = 19; + */ + allowSandboxAppDeployments = false; + /** + * Whether deployment directly to user-connected team accounts is allowed. + * + * @generated from field: bool allow_teams_app_deployments = 20; + */ + allowTeamsAppDeployments = false; + /** + * Maximum number of new sites a user can create per day. This limits the rate + * at which users can create new domains. The client should use + * max_unclaimed_sites and allow_app_deployments to determine if the Deploys + * feature is enabled. + * + * @generated from field: int32 max_new_sites_per_day = 11; + */ + maxNewSitesPerDay = 0; + /** + * Whether Antigravity is allowed to create pull request reviews on GitHub for + * this team. + * + * @generated from field: bool allow_github_reviews = 12; + */ + allowGithubReviews = false; + /** + * Whether Antigravity is allowed to edit pull request descriptions on GitHub + * for this team. + * + * @generated from field: bool allow_github_description_edits = 13; + */ + allowGithubDescriptionEdits = false; + /** + * Guidelines that Antigravity will use when reviewing pull requests. + * + * @generated from field: string pull_request_review_guidelines = 14; + */ + pullRequestReviewGuidelines = ''; + /** + * Guidelines that Antigravity will use when editing pull request + * descriptions. + * + * @generated from field: string pull_request_description_guidelines = 16; + */ + pullRequestDescriptionGuidelines = ''; + /** + * Whether tool calls are disabled for this team. + * + * @generated from field: bool disable_tool_calls = 15; + */ + disableToolCalls = false; + /** + * Whether individual level analytics are allowed for this team. + * + * @generated from field: bool allow_individual_level_analytics = 17; + */ + allowIndividualLevelAnalytics = false; + /** + * Whether conversation sharing is allowed for this team. + * Note that this is an optional because we need to treat the 'not set' + * case differently based on the user's team tier. For example, SAAS teams + * will have this enabled by default, while enterprise teams will have it + * disabled. + * + * @generated from field: optional bool allow_conversation_sharing = 18; + */ + allowConversationSharing; + /** + * Rate limit for number of pull request reviews per month + * Currently used only for boosting a team's quota on case-by-case basis. + * When it's not set, we use the default `DefaultMaxRequestsPerTimeWindow`. + * + * @generated from field: optional int32 pull_request_review_rate_limit = 21; + */ + pullRequestReviewRateLimit; + /** + * Whether attribution is allowed for this team. + * + * @generated from field: bool allow_attribution = 22; + */ + allowAttribution = false; + /** + * MCP servers that are allowed for this team. + * + * @generated from field: repeated exa.codeium_common_pb.McpServerConfig allowed_mcp_servers = 23; + */ + allowedMcpServers = []; + /** + * Whether auto reviews are allowed for this team. + * + * @generated from field: bool allow_github_auto_reviews = 24; + */ + allowGithubAutoReviews = false; + /** + * Whether browser experimental features are allowed for this team. + * + * @generated from field: bool allow_browser_experimental_features = 25; + */ + allowBrowserExperimentalFeatures = false; + /** + * Whether tool call execution outside of the workspace is disabled for this + * team. + * + * @generated from field: bool disable_tool_call_execution_outside_workspace = 26; + */ + disableToolCallExecutionOutsideWorkspace = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TeamConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'user_prompt_credit_cap', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'user_flow_credit_cap', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'auto_provision_cascade_seat', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'allow_mcp_servers', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'allow_auto_run_commands', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 9, + name: 'max_unclaimed_sites', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 10, + name: 'allow_app_deployments', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 19, + name: 'allow_sandbox_app_deployments', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 20, + name: 'allow_teams_app_deployments', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'max_new_sites_per_day', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 12, + name: 'allow_github_reviews', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 13, + name: 'allow_github_description_edits', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'pull_request_review_guidelines', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 16, + name: 'pull_request_description_guidelines', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 15, + name: 'disable_tool_calls', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 17, + name: 'allow_individual_level_analytics', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 18, + name: 'allow_conversation_sharing', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 21, + name: 'pull_request_review_rate_limit', + kind: 'scalar', + T: 5, + opt: true, + }, + { + no: 22, + name: 'allow_attribution', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 23, + name: 'allowed_mcp_servers', + kind: 'message', + T: McpServerConfig, + repeated: true, + }, + { + no: 24, + name: 'allow_github_auto_reviews', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 25, + name: 'allow_browser_experimental_features', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 26, + name: 'disable_tool_call_execution_outside_workspace', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _TeamConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TeamConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TeamConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TeamConfig, a, b); + } +}; +var WebAppDeploymentConfig = class _WebAppDeploymentConfig extends Message { + /** + * The ID of the project (different from project name) on the provider's + * system. This is populated as a way to update existing deployments. + * + * @generated from field: string project_id = 1; + */ + projectId = ''; + /** + * The framework used for the app (examples: nextjs, sveltekit, etc.). + * + * @generated from field: string framework = 2; + */ + framework = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.WebAppDeploymentConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'framework', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _WebAppDeploymentConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WebAppDeploymentConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WebAppDeploymentConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WebAppDeploymentConfig, a, b); + } +}; +var McpServerTemplate = class _McpServerTemplate extends Message { + /** + * @generated from field: string title = 1; + */ + title = ''; + /** + * @generated from field: string id = 2; + */ + id = ''; + /** + * @generated from field: string link = 3; + */ + link = ''; + /** + * @generated from field: string description = 4; + */ + description = ''; + /** + * Key is the command type (e.g., "npx", "docker") + * + * @generated from field: map commands = 5; + */ + commands = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.McpServerTemplate'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'link', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'commands', + kind: 'map', + K: 9, + V: { kind: 'message', T: McpServerCommand }, + }, + ]); + static fromBinary(bytes, options) { + return new _McpServerTemplate().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpServerTemplate().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpServerTemplate().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpServerTemplate, a, b); + } +}; +var McpServerCommand = class _McpServerCommand extends Message { + /** + * @generated from field: exa.codeium_common_pb.McpCommandTemplate template = 1; + */ + template; + /** + * @generated from field: repeated exa.codeium_common_pb.McpCommandVariable variables = 2; + */ + variables = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.McpServerCommand'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'template', kind: 'message', T: McpCommandTemplate }, + { + no: 2, + name: 'variables', + kind: 'message', + T: McpCommandVariable, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _McpServerCommand().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpServerCommand().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpServerCommand().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpServerCommand, a, b); + } +}; +var McpCommandTemplate = class _McpCommandTemplate extends Message { + /** + * @generated from field: string command = 1; + */ + command = ''; + /** + * @generated from field: repeated string args = 2; + */ + args = []; + /** + * @generated from field: map env = 3; + */ + env = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.McpCommandTemplate'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'command', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'args', kind: 'scalar', T: 9, repeated: true }, + { + no: 3, + name: 'env', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { - no: 63, - name: 'annotations_config', - kind: 'enum', - T: a.getEnumType(_t), - }, - { - no: 66, - name: 'relative_working_dir_paths', + }, + ]); + static fromBinary(bytes, options) { + return new _McpCommandTemplate().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpCommandTemplate().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpCommandTemplate().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpCommandTemplate, a, b); + } +}; +var McpCommandVariable = class _McpCommandVariable extends Message { + /** + * @generated from field: string name = 1; + */ + name = ''; + /** + * @generated from field: string title = 2; + */ + title = ''; + /** + * @generated from field: string description = 3; + */ + description = ''; + /** + * @generated from field: string link = 4; + */ + link = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.McpCommandVariable'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'link', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _McpCommandVariable().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpCommandVariable().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpCommandVariable().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpCommandVariable, a, b); + } +}; +var McpServerConfig = class _McpServerConfig extends Message { + /** + * @generated from field: string server_id = 1; + */ + serverId = ''; + /** + * @generated from oneof exa.codeium_common_pb.McpServerConfig.configuration + */ + configuration = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.McpServerConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'server_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'local', + kind: 'message', + T: McpLocalServer, + oneof: 'configuration', + }, + { + no: 3, + name: 'remote', + kind: 'message', + T: McpRemoteServer, + oneof: 'configuration', + }, + ]); + static fromBinary(bytes, options) { + return new _McpServerConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpServerConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpServerConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpServerConfig, a, b); + } +}; +var McpLocalServer = class _McpLocalServer extends Message { + /** + * @generated from field: string command = 1; + */ + command = ''; + /** + * @generated from field: repeated string args = 2; + */ + args = []; + /** + * @generated from field: map env = 3; + */ + env = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.McpLocalServer'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'command', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'args', kind: 'scalar', T: 9, repeated: true }, + { + no: 3, + name: 'env', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { - no: 68, - name: 'custom_models', - kind: 'map', - K: 9, - V: { kind: 'message', T: tn }, - }, - { no: 69, name: 'disable_code_snippet_telemetry', kind: 'scalar', T: 8 }, - { no: 70, name: 'planning_mode', kind: 'enum', T: a.getEnumType(tt) }, - { - no: 71, - name: 'agent_browser_tools', - kind: 'enum', - T: a.getEnumType(mt), - }, - { - no: 72, - name: 'artifact_review_mode', - kind: 'enum', - T: a.getEnumType(ln), - }, - { - no: 75, - name: 'allow_tab_access_gitignore_files', - kind: 'scalar', - T: 8, - }, - { no: 76, name: 'browser_chrome_path', kind: 'scalar', T: 9 }, - { no: 77, name: 'browser_user_profile_path', kind: 'scalar', T: 9 }, - { no: 78, name: 'browser_cdp_port', kind: 'scalar', T: 5 }, - { no: 80, name: 'demo_mode_enabled', kind: 'scalar', T: 8 }, - { - no: 81, - name: 'browser_js_execution_policy', - kind: 'enum', - T: a.getEnumType(En), - }, - { no: 82, name: 'secure_mode_enabled', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - kf = class e extends r { - disableCodeSnippetTelemetry = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.UserAccountSettings'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'disable_code_snippet_telemetry', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nc = class e extends r { - supportsContextTokens = !1; - requiresInstructTags = !1; - requiresFimContext = !1; - requiresContextSnippetPrefix = !1; - requiresContextRelevanceTags = !1; - requiresLlama3Tokens = !1; - zeroShotCapable = !1; - requiresAutocompleteAsCommand = !1; - supportsCursorAwareSupercomplete = !1; - supportsImages = !1; - supportsPdf = !1; - supportsVideo = !1; - supportedMimeTypes = {}; - supportsToolCalls = !1; - doesNotSupportToolChoice = !1; - supportsCumulativeContext = !1; - tabJumpPrintLineRange = !1; - supportsThinking = !1; - supportsRawThinking = !1; - supportsEstimateTokenCounter = !1; - addCursorToFindReplaceTarget = !1; - supportsTabJumpUseWholeDocument = !1; - supportsModelInfoOverride = !1; - requiresLeadInGeneration = !1; - requiresNoXmlToolExamples = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ModelFeatures'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'supports_context_tokens', kind: 'scalar', T: 8 }, - { no: 3, name: 'requires_instruct_tags', kind: 'scalar', T: 8 }, - { no: 4, name: 'requires_fim_context', kind: 'scalar', T: 8 }, - { no: 5, name: 'requires_context_snippet_prefix', kind: 'scalar', T: 8 }, - { no: 6, name: 'requires_context_relevance_tags', kind: 'scalar', T: 8 }, - { no: 7, name: 'requires_llama3_tokens', kind: 'scalar', T: 8 }, - { no: 8, name: 'zero_shot_capable', kind: 'scalar', T: 8 }, - { no: 9, name: 'requires_autocomplete_as_command', kind: 'scalar', T: 8 }, - { - no: 10, - name: 'supports_cursor_aware_supercomplete', - kind: 'scalar', - T: 8, - }, - { no: 11, name: 'supports_images', kind: 'scalar', T: 8 }, - { no: 22, name: 'supports_pdf', kind: 'scalar', T: 8 }, - { no: 23, name: 'supports_video', kind: 'scalar', T: 8 }, - { - no: 28, - name: 'supported_mime_types', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 8 }, - }, - { no: 12, name: 'supports_tool_calls', kind: 'scalar', T: 8 }, - { no: 27, name: 'does_not_support_tool_choice', kind: 'scalar', T: 8 }, - { no: 13, name: 'supports_cumulative_context', kind: 'scalar', T: 8 }, - { no: 14, name: 'tab_jump_print_line_range', kind: 'scalar', T: 8 }, - { no: 15, name: 'supports_thinking', kind: 'scalar', T: 8 }, - { no: 21, name: 'supports_raw_thinking', kind: 'scalar', T: 8 }, - { no: 17, name: 'supports_estimate_token_counter', kind: 'scalar', T: 8 }, - { - no: 18, - name: 'add_cursor_to_find_replace_target', - kind: 'scalar', - T: 8, - }, - { - no: 19, - name: 'supports_tab_jump_use_whole_document', - kind: 'scalar', - T: 8, - }, - { no: 24, name: 'supports_model_info_override', kind: 'scalar', T: 8 }, - { no: 25, name: 'requires_lead_in_generation', kind: 'scalar', T: 8 }, - { no: 26, name: 'requires_no_xml_tool_examples', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gf = class e extends r { - isInternal = !1; - modelId = f.UNSPECIFIED; - modelName = ''; - baseUrl = ''; - apiKey = ''; - accessKey = ''; - secretAccessKey = ''; - region = ''; - projectId = ''; - id = 0; - maxCompletionTokens = 0; - maxInputTokens = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ExternalModel'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'is_internal', kind: 'scalar', T: 8 }, - { no: 2, name: 'model_id', kind: 'enum', T: a.getEnumType(f) }, - { no: 3, name: 'model_name', kind: 'scalar', T: 9 }, - { no: 4, name: 'base_url', kind: 'scalar', T: 9 }, - { no: 5, name: 'api_key', kind: 'scalar', T: 9 }, - { no: 6, name: 'access_key', kind: 'scalar', T: 9 }, - { no: 7, name: 'secret_access_key', kind: 'scalar', T: 9 }, - { no: 8, name: 'region', kind: 'scalar', T: 9 }, - { no: 9, name: 'project_id', kind: 'scalar', T: 9 }, - { no: 10, name: 'id', kind: 'scalar', T: 13 }, - { no: 11, name: 'max_completion_tokens', kind: 'scalar', T: 5 }, - { no: 12, name: 'max_input_tokens', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tn = class e extends r { - modelId = f.UNSPECIFIED; - isInternal = !1; - modelType = Tt.UNSPECIFIED; - maxTokens = 0; - tokenizerType = ''; - modelFeatures; - apiProvider = kn.API_PROVIDER_UNSPECIFIED; - modelName = ''; - supportsContext = !1; - embedDim = 0; - baseUrl = ''; - chatModelName = ''; - maxOutputTokens = 0; - promptTemplaterType = Ot.UNSPECIFIED; - toolFormatterType = At.UNSPECIFIED; - thinkingBudget = 0; - minThinkingBudget = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ModelInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model_id', kind: 'enum', T: a.getEnumType(f) }, - { no: 2, name: 'is_internal', kind: 'scalar', T: 8 }, - { no: 3, name: 'model_type', kind: 'enum', T: a.getEnumType(Tt) }, - { no: 4, name: 'max_tokens', kind: 'scalar', T: 5 }, - { no: 5, name: 'tokenizer_type', kind: 'scalar', T: 9 }, - { no: 6, name: 'model_features', kind: 'message', T: nc }, - { no: 7, name: 'api_provider', kind: 'enum', T: a.getEnumType(kn) }, - { no: 8, name: 'model_name', kind: 'scalar', T: 9 }, - { no: 9, name: 'supports_context', kind: 'scalar', T: 8 }, - { no: 10, name: 'embed_dim', kind: 'scalar', T: 5 }, - { no: 11, name: 'base_url', kind: 'scalar', T: 9 }, - { no: 12, name: 'chat_model_name', kind: 'scalar', T: 9 }, - { no: 13, name: 'max_output_tokens', kind: 'scalar', T: 5 }, - { - no: 14, - name: 'prompt_templater_type', - kind: 'enum', - T: a.getEnumType(Ot), - }, - { - no: 15, - name: 'tool_formatter_type', - kind: 'enum', - T: a.getEnumType(At), - }, - { no: 16, name: 'thinking_budget', kind: 'scalar', T: 5 }, - { no: 17, name: 'min_thinking_budget', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wf = class e extends r { - modelMap = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ApiProviderRoutingConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'model_map', - kind: 'map', - K: 9, - V: { kind: 'message', T: ec }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ec = class e extends r { - providerMap = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ApiProviderConfigMap'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'provider_map', - kind: 'map', - K: 9, - V: { kind: 'message', T: tc }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tc = class e extends r { - weight = 0; - cacheTtlMinutes = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ApiProviderConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'weight', kind: 'scalar', T: 13 }, - { no: 2, name: 'cache_ttl_minutes', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jf = class e extends r { - generationModel; - contextCheckModel; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ModelConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'generation_model', kind: 'message', T: tn }, - { no: 2, name: 'context_check_model', kind: 'message', T: tn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xf = class e extends r { - model = f.UNSPECIFIED; - message = ''; - status = ft.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ModelStatusInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - { no: 2, name: 'message', kind: 'scalar', T: 9 }, - { no: 3, name: 'status', kind: 'enum', T: a.getEnumType(ft) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ac = class e extends r { - uid = ''; - completionId = ''; - filePath = ''; - shortPrefix = ''; - completionText = ''; - shortSuffix = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionExample'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'uid', kind: 'scalar', T: 9 }, - { no: 2, name: 'completion_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'file_path', kind: 'scalar', T: 9 }, - { no: 4, name: 'short_prefix', kind: 'scalar', T: 9 }, - { no: 5, name: 'completion_text', kind: 'scalar', T: 9 }, - { no: 6, name: 'short_suffix', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Uf = class e extends r { - example; - name = ''; - time; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionExampleWithMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'example', kind: 'message', T: ac }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 4, name: 'time', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - X = class e extends r { - cci; - subrange; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CciWithSubrange'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cci', kind: 'message', T: I }, - { no: 2, name: 'subrange', kind: 'message', T: rc }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rc = class e extends r { - snippetType = cn.UNSPECIFIED; - startOffset = o.zero; - endOffset = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ContextSubrange'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'snippet_type', kind: 'enum', T: a.getEnumType(cn) }, - { no: 2, name: 'start_offset', kind: 'scalar', T: 3 }, - { no: 3, name: 'end_offset', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dn = class e extends r { - absolutePathMigrateMeToUri = ''; - absoluteUri = ''; - workspaceRelativePathsMigrateMeToWorkspaceUris = {}; - workspaceUrisToRelativePaths = {}; - numFiles = 0; - numBytes = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PathScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path_migrate_me_to_uri', kind: 'scalar', T: 9 }, - { no: 5, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'workspace_relative_paths_migrate_me_to_workspace_uris', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { - no: 6, - name: 'workspace_uris_to_relative_paths', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { no: 3, name: 'num_files', kind: 'scalar', T: 13 }, - { no: 4, name: 'num_bytes', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ft = class e extends r { - absoluteUri = ''; - startLine = 0; - endLine = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.FileLineRange'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'start_line', kind: 'scalar', T: 13 }, - { no: 3, name: 'end_line', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sc = class e extends r { - content = ''; - identifier = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TextBlock'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'file_line_range', - kind: 'message', - T: Ft, - oneof: 'identifier', - }, - { no: 3, name: 'label', kind: 'scalar', T: 9, oneof: 'identifier' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ic = class e extends r { - repoInfo; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RepositoryScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repo_info', kind: 'message', T: J }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - oc = class e extends r { - repoInfo; - relativePath = ''; - isDir = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RepositoryPathScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repo_info', kind: 'message', T: J }, - { no: 2, name: 'relative_path', kind: 'scalar', T: 9 }, - { no: 3, name: 'is_dir', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - H = class e extends r { - documentId = ''; - index = _n.UNSPECIFIED; - documentType = V.UNSPECIFIED; - displayName = ''; - description = ''; - displaySource = ''; - url = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.KnowledgeBaseScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'document_id', kind: 'scalar', T: 9 }, - { no: 7, name: 'index', kind: 'enum', T: a.getEnumType(_n) }, - { no: 8, name: 'document_type', kind: 'enum', T: a.getEnumType(V) }, - { no: 3, name: 'display_name', kind: 'scalar', T: 9 }, - { no: 4, name: 'description', kind: 'scalar', T: 9 }, - { no: 5, name: 'display_source', kind: 'scalar', T: 9 }, - { no: 6, name: 'url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mc = class e extends r { - timestampStr = ''; - type = ''; - output = ''; - location = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ConsoleLogLine'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'timestamp_str', kind: 'scalar', T: 9 }, - { no: 2, name: 'type', kind: 'scalar', T: 9 }, - { no: 3, name: 'output', kind: 'scalar', T: 9 }, - { no: 4, name: 'location', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jn = class e extends r { - lines = []; - serverAddress = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ConsoleLogScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'lines', kind: 'message', T: mc, repeated: !0 }, - { no: 2, name: 'server_address', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cc = class e extends r { - tagName = ''; - outerHtml = ''; - id = ''; - reactComponentName = ''; - fileLineRange; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DOMElementScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'tag_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'outer_html', kind: 'scalar', T: 9 }, - { no: 3, name: 'id', kind: 'scalar', T: 9 }, - { no: 4, name: 'react_component_name', kind: 'scalar', T: 9 }, - { no: 5, name: 'file_line_range', kind: 'message', T: Ft }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - uc = class e extends r { - isVisible = !1; - nodeData = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DOMNode'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'is_visible', kind: 'scalar', T: 8 }, - { no: 2, name: 'element', kind: 'message', T: lc, oneof: 'node_data' }, - { no: 3, name: 'text', kind: 'message', T: Ec, oneof: 'node_data' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - lc = class e extends r { - tagName = ''; - xpath = ''; - children = []; - attributes = {}; - isInteractive = !1; - isTopElement = !1; - highlightIndex = 0; - centralX = 0; - centralY = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DOMNode.ElementNode'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'tag_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'xpath', kind: 'scalar', T: 9 }, - { no: 3, name: 'children', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 4, - name: 'attributes', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { no: 5, name: 'is_interactive', kind: 'scalar', T: 8 }, - { no: 6, name: 'is_top_element', kind: 'scalar', T: 8 }, - { no: 7, name: 'highlight_index', kind: 'scalar', T: 5 }, - { no: 8, name: 'central_x', kind: 'scalar', T: 5 }, - { no: 9, name: 'central_y', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ec = class e extends r { - text = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DOMNode.TextNode'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xn = class e extends r { - rootId = ''; - map = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DOMTree'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'root_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'map', kind: 'map', K: 9, V: { kind: 'message', T: uc } }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hr = class e extends r { - x = 0; - y = 0; - width = 0; - height = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Viewport'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'x', kind: 'scalar', T: 5 }, - { no: 2, name: 'y', kind: 'scalar', T: 5 }, - { no: 3, name: 'width', kind: 'scalar', T: 5 }, - { no: 4, name: 'height', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _c = class e extends r { - recipeId = ''; - title = ''; - description = ''; - systemPrompt = ''; - uri; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RecipeScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'recipe_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'title', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - { no: 4, name: 'system_prompt', kind: 'scalar', T: 9 }, - { no: 5, name: 'uri', kind: 'scalar', T: 9, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dc = class e extends r { - rulePath = ''; - ruleName = ''; - description = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RuleScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'rule_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'rule_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Tc = class e extends r { - uri = ''; - name = ''; - description; - mimeType; - serverName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.McpResourceItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9, opt: !0 }, - { no: 4, name: 'mime_type', kind: 'scalar', T: 9, opt: !0 }, - { no: 5, name: 'server_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fc = class e extends r { - url = ''; - title = ''; - visibleTextContent = ''; - pageId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.BrowserPageScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'url', kind: 'scalar', T: 9 }, - { no: 2, name: 'title', kind: 'scalar', T: 9 }, - { no: 3, name: 'visible_text_content', kind: 'scalar', T: 9 }, - { no: 4, name: 'page_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Nc = class e extends r { - url = ''; - title = ''; - codeContent = ''; - language = O.UNSPECIFIED; - contextText; - pageId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.BrowserCodeBlockScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'url', kind: 'scalar', T: 9 }, - { no: 2, name: 'title', kind: 'scalar', T: 9 }, - { no: 3, name: 'code_content', kind: 'scalar', T: 9 }, - { no: 4, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 5, name: 'context_text', kind: 'scalar', T: 9, opt: !0 }, - { no: 6, name: 'page_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Sc = class e extends r { - url = ''; - visibleText = ''; - pageId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.BrowserTextScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'url', kind: 'scalar', T: 9 }, - { no: 2, name: 'visible_text', kind: 'scalar', T: 9 }, - { no: 3, name: 'page_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ic = class e extends r { - id = ''; - title = ''; - lastModifiedTime; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ConversationScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'title', kind: 'scalar', T: 9 }, - { no: 3, name: 'last_modified_time', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pc = class e extends r { - id = ''; - branch = ''; - current = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.UserActivityScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'branch', kind: 'scalar', T: 9 }, - { no: 3, name: 'current', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Oc = class e extends r { - processId = ''; - name = ''; - lastCommand = ''; - selectionContent; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TerminalScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'process_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'last_command', kind: 'scalar', T: 9 }, - { no: 4, name: 'selectionContent', kind: 'scalar', T: 9, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Un = class e extends r { - scopeItem = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ContextScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'file', kind: 'message', T: dn, oneof: 'scope_item' }, - { no: 2, name: 'directory', kind: 'message', T: dn, oneof: 'scope_item' }, - { - no: 3, - name: 'repository', - kind: 'message', - T: ic, - oneof: 'scope_item', - }, - { - no: 4, - name: 'code_context', - kind: 'message', - T: I, - oneof: 'scope_item', - }, - { - no: 6, - name: 'cci_with_subrange', - kind: 'message', - T: X, - oneof: 'scope_item', - }, - { - no: 7, - name: 'repository_path', - kind: 'message', - T: oc, - oneof: 'scope_item', - }, - { no: 8, name: 'slack', kind: 'message', T: H, oneof: 'scope_item' }, - { no: 9, name: 'github', kind: 'message', T: H, oneof: 'scope_item' }, - { - no: 10, - name: 'file_line_range', - kind: 'message', - T: Ft, - oneof: 'scope_item', - }, - { - no: 11, - name: 'text_block', - kind: 'message', - T: sc, - oneof: 'scope_item', - }, - { no: 12, name: 'jira', kind: 'message', T: H, oneof: 'scope_item' }, - { - no: 13, - name: 'google_drive', - kind: 'message', - T: H, - oneof: 'scope_item', - }, - { - no: 14, - name: 'console_log', - kind: 'message', - T: Jn, - oneof: 'scope_item', - }, - { - no: 15, - name: 'dom_element', - kind: 'message', - T: cc, - oneof: 'scope_item', - }, - { no: 16, name: 'recipe', kind: 'message', T: _c, oneof: 'scope_item' }, - { no: 17, name: 'knowledge', kind: 'message', T: H, oneof: 'scope_item' }, - { no: 18, name: 'rule', kind: 'message', T: dc, oneof: 'scope_item' }, - { - no: 19, - name: 'mcp_resource', - kind: 'message', - T: Tc, - oneof: 'scope_item', - }, - { - no: 20, - name: 'browser_page', - kind: 'message', - T: fc, - oneof: 'scope_item', - }, - { - no: 21, - name: 'browser_code_block', - kind: 'message', - T: Nc, - oneof: 'scope_item', - }, - { - no: 22, - name: 'browser_text', - kind: 'message', - T: Sc, - oneof: 'scope_item', - }, - { - no: 23, - name: 'conversation', - kind: 'message', - T: Ic, - oneof: 'scope_item', - }, - { - no: 24, - name: 'user_activity', - kind: 'message', - T: pc, - oneof: 'scope_item', - }, - { no: 25, name: 'terminal', kind: 'message', T: Oc, oneof: 'scope_item' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $n = class e extends r { - items = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ContextScope'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'items', kind: 'message', T: Un, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yr = class e extends r { - nodeName = ''; - startTime; - endTime; - graphStateJson = new Uint8Array(0); - graphStateJsonNumBytes = o.zero; - subgraphExecution; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.NodeExecutionRecord'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'node_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'start_time', kind: 'message', T: _ }, - { no: 3, name: 'end_time', kind: 'message', T: _ }, - { no: 5, name: 'graph_state_json', kind: 'scalar', T: 12 }, - { no: 6, name: 'graph_state_json_num_bytes', kind: 'scalar', T: 4 }, - { no: 4, name: 'subgraph_execution', kind: 'message', T: Mt }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mt = class e extends r { - current; - history = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.GraphExecutionState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'current', kind: 'message', T: Yr }, - { no: 2, name: 'history', kind: 'message', T: Yr, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ne = class e extends r { - items = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Guideline'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'items', kind: 'message', T: Ac, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ac = class e extends r { - guideline = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.GuidelineItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'guideline', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yt = class e extends r { - model = f.UNSPECIFIED; - maxInputTokens = 0; - temperature = 0; - maxOutputTokens = 0; - orderSnippetsByFile = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ChatNodeConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - { no: 2, name: 'max_input_tokens', kind: 'scalar', T: 13 }, - { no: 3, name: 'temperature', kind: 'scalar', T: 2 }, - { no: 4, name: 'max_output_tokens', kind: 'scalar', T: 13 }, - { no: 5, name: 'order_snippets_by_file', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ee = class e extends r { - shouldBatchCcis = !1; - maxTokensPerSubrange = o.zero; - numParserWorkers = o.zero; - numWorkersPerDistributedScorer = o.zero; - verbose = !1; - ignoreExtensions = []; - ignoreDirectoryStubs = []; - minTokenSpaceForContext = 0; - maxTargetFiles = 0; - topCciCount = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.MQueryConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'should_batch_ccis', kind: 'scalar', T: 8 }, - { no: 2, name: 'max_tokens_per_subrange', kind: 'scalar', T: 3 }, - { no: 3, name: 'num_parser_workers', kind: 'scalar', T: 3 }, - { - no: 4, - name: 'num_workers_per_distributed_scorer', - kind: 'scalar', - T: 3, - }, - { no: 5, name: 'verbose', kind: 'scalar', T: 8 }, - { no: 6, name: 'ignore_extensions', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 7, - name: 'ignore_directory_stubs', + }, + ]); + static fromBinary(bytes, options) { + return new _McpLocalServer().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpLocalServer().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpLocalServer().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpLocalServer, a, b); + } +}; +var McpRemoteServer = class _McpRemoteServer extends Message { + /** + * @generated from field: string type = 1; + */ + type = ''; + /** + * @generated from field: string url = 2; + */ + url = ''; + /** + * @generated from field: map headers = 3; + */ + headers = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.McpRemoteServer'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'headers', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { no: 8, name: 'min_token_space_for_context', kind: 'scalar', T: 13 }, - { no: 9, name: 'max_target_files', kind: 'scalar', T: 13 }, - { no: 10, name: 'top_cci_count', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Cc = class e extends r { - deltaText = ''; - deltaRawGeneration = ''; - deltaTokens = 0; - stopReason = F.UNSPECIFIED; - usage; - deltaToolCalls = []; - deltaThinking = ''; - deltaSignature = new Uint8Array(0); - thinkingRedacted = !1; - citationMetadata; - traceId = ''; - stopMessage = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionDelta'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'delta_text', kind: 'scalar', T: 9 }, - { no: 12, name: 'delta_raw_generation', kind: 'scalar', T: 9 }, - { no: 2, name: 'delta_tokens', kind: 'scalar', T: 13 }, - { no: 3, name: 'stop_reason', kind: 'enum', T: a.getEnumType(F) }, - { no: 4, name: 'usage', kind: 'message', T: fn }, - { no: 5, name: 'delta_tool_calls', kind: 'message', T: x, repeated: !0 }, - { no: 6, name: 'delta_thinking', kind: 'scalar', T: 9 }, - { no: 7, name: 'delta_signature', kind: 'scalar', T: 12 }, - { no: 8, name: 'thinking_redacted', kind: 'scalar', T: 8 }, - { no: 11, name: 'citation_metadata', kind: 'message', T: Gm }, - { no: 13, name: 'trace_id', kind: 'scalar', T: 9 }, - { no: 14, name: 'stop_message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bf = class e extends r { - deltas = {}; - prompt = ''; - completionProfile; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CompletionDeltaMap'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'deltas', - kind: 'map', - K: 5, - V: { kind: 'message', T: Cc }, - }, - { no: 2, name: 'prompt', kind: 'scalar', T: 9 }, - { no: 3, name: 'completion_profile', kind: 'message', T: xt }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ff = class e extends r { - prompt = ''; - inferenceAddress = ''; - serializedPrompt = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ChatCompletionInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'prompt', kind: 'scalar', T: 9 }, - { no: 2, name: 'inference_address', kind: 'scalar', T: 9 }, - { no: 3, name: 'serialized_prompt', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - x = class e extends r { - id = ''; - name = ''; - argumentsJson = ''; - invalidJsonStr = ''; - invalidJsonErr = ''; - thoughtSignature = ''; - thinkingSignature = new Uint8Array(0); - originalArgumentsJson = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ChatToolCall'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'arguments_json', kind: 'scalar', T: 9 }, - { no: 4, name: 'invalid_json_str', kind: 'scalar', T: 9 }, - { no: 5, name: 'invalid_json_err', kind: 'scalar', T: 9 }, - { no: 6, name: 'thought_signature', kind: 'scalar', T: 9 }, - { no: 7, name: 'thinking_signature', kind: 'scalar', T: 12 }, - { no: 8, name: 'original_arguments_json', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mf = class e extends r { - level = Nt.UNSPECIFIED; - message = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Status'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'level', kind: 'enum', T: a.getEnumType(Nt) }, - { no: 2, name: 'message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ht = class e extends r { - row = o.zero; - col = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DocumentPosition'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'row', kind: 'scalar', T: 4 }, - { no: 2, name: 'col', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - te = class e extends r { - startOffset = o.zero; - endOffset = o.zero; - startPosition; - endPosition; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Range'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'start_offset', kind: 'scalar', T: 4 }, - { no: 2, name: 'end_offset', kind: 'scalar', T: 4 }, - { no: 3, name: 'start_position', kind: 'message', T: ht }, - { no: 4, name: 'end_position', kind: 'message', T: ht }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - g = class e extends r { - absolutePathMigrateMeToUri = ''; - absoluteUri = ''; - relativePathMigrateMeToWorkspaceUri = ''; - workspaceUri = ''; - text = ''; - editorLanguage = ''; - language = O.UNSPECIFIED; - cursorOffset = o.zero; - cursorPosition; - lineEnding = ''; - visibleRange; - isCutoffStart = !1; - isCutoffEnd = !1; - linesCutoffStart = 0; - linesCutoffEnd = 0; - timestamp; - isDirty = !1; - isSynthetic = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Document'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path_migrate_me_to_uri', kind: 'scalar', T: 9 }, - { no: 12, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'relative_path_migrate_me_to_workspace_uri', + }, + ]); + static fromBinary(bytes, options) { + return new _McpRemoteServer().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpRemoteServer().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpRemoteServer().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpRemoteServer, a, b); + } +}; +var UnleashContext = class _UnleashContext extends Message { + /** + * @generated from field: string user_id = 1; + */ + userId = ''; + /** + * @generated from field: string session_id = 2; + */ + sessionId = ''; + /** + * @generated from field: map properties = 3; + */ + properties = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.UnleashContext'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'user_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'session_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'properties', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, + /* ScalarType.STRING */ }, - { no: 13, name: 'workspace_uri', kind: 'scalar', T: 9 }, - { no: 3, name: 'text', kind: 'scalar', T: 9 }, - { no: 4, name: 'editor_language', kind: 'scalar', T: 9 }, - { no: 5, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 6, name: 'cursor_offset', kind: 'scalar', T: 4 }, - { no: 8, name: 'cursor_position', kind: 'message', T: ht }, - { no: 7, name: 'line_ending', kind: 'scalar', T: 9 }, - { no: 9, name: 'visible_range', kind: 'message', T: te }, - { no: 10, name: 'is_cutoff_start', kind: 'scalar', T: 8 }, - { no: 11, name: 'is_cutoff_end', kind: 'scalar', T: 8 }, - { no: 14, name: 'lines_cutoff_start', kind: 'scalar', T: 5 }, - { no: 15, name: 'lines_cutoff_end', kind: 'scalar', T: 5 }, - { no: 16, name: 'timestamp', kind: 'message', T: _ }, - { no: 17, name: 'is_dirty', kind: 'scalar', T: 8 }, - { no: 18, name: 'is_synthetic', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yf = class e extends r { - document; - otherDocuments = []; - codeContextItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PromptComponents'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'document', kind: 'message', T: g }, - { no: 2, name: 'other_documents', kind: 'message', T: g, repeated: !0 }, - { - no: 3, - name: 'code_context_items', - kind: 'message', - T: I, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Tn = class e extends r { - chunk = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TextOrScopeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9, oneof: 'chunk' }, - { no: 2, name: 'item', kind: 'message', T: Un, oneof: 'chunk' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Rc = class e extends r { - matchRepoName = ''; - matchPath = ''; - pinnedContexts = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PinnedContextConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'match_repo_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'match_path', kind: 'scalar', T: 9 }, - { no: 3, name: 'pinned_contexts', kind: 'message', T: Lc, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Lc = class e extends r { - contextItem = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PinnedContext'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'repository_path', - kind: 'message', - T: Pc, - oneof: 'context_item', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Pc = class e extends r { - remoteRepoName = ''; - version = ''; - relativePath = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RepositoryPath'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'remote_repo_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'version', kind: 'scalar', T: 9 }, - { no: 3, name: 'relative_path', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hf = class e extends r { - pinnedContextConfigs = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DefaultPinnedContextConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'pinned_context_configs', - kind: 'message', - T: Rc, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Dc = class e extends r { - id = ''; - prompt = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Rule'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'prompt', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gf = class e extends r { - id = ''; - rule; - startLine = 0; - endLine = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.RuleViolation'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'rule', kind: 'message', T: Dc }, - { no: 3, name: 'start_line', kind: 'scalar', T: 5 }, - { no: 4, name: 'end_line', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bf = class e extends r { - logs = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.LanguageServerDiagnostics'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'logs', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qf = class e extends r { - database; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.IndexerStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'database', kind: 'message', T: kc }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - kc = class e extends r { - backend = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.IndexerDbStats'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'local_sqlite_faiss', - kind: 'message', - T: gc, - oneof: 'backend', - }, - { no: 2, name: 'postgres', kind: 'message', T: Jc, oneof: 'backend' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gc = class e extends r { - faissStateStats = []; - totalItemCount = o.zero; - quantized = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.LocalSqliteFaissDbStats'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'faiss_state_stats', - kind: 'message', - T: wc, - repeated: !0, - }, - { no: 2, name: 'total_item_count', kind: 'scalar', T: 3 }, - { no: 3, name: 'quantized', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wc = class e extends r { - embeddingSource = qe.UNSPECIFIED; - workspace = ''; - itemCount = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.FaissStateStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'embedding_source', kind: 'enum', T: a.getEnumType(qe) }, - { no: 2, name: 'workspace', kind: 'scalar', T: 9 }, - { no: 3, name: 'item_count', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jc = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PostgresDbStats'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hf = class e extends r { - time; - type = St.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.LastUpdateRecord'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'time', kind: 'message', T: _ }, - { no: 2, name: 'type', kind: 'enum', T: a.getEnumType(St) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fn = class e extends r { - model = f.UNSPECIFIED; - inputTokens = o.zero; - outputTokens = o.zero; - thinkingOutputTokens = o.zero; - responseOutputTokens = o.zero; - cacheReadTokens = o.zero; - apiProvider = kn.API_PROVIDER_UNSPECIFIED; - messageId = ''; - responseHeader = {}; - responseId = ''; - cacheWriteTokens = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ModelUsageStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - { no: 2, name: 'input_tokens', kind: 'scalar', T: 4 }, - { no: 3, name: 'output_tokens', kind: 'scalar', T: 4 }, - { no: 9, name: 'thinking_output_tokens', kind: 'scalar', T: 4 }, - { no: 10, name: 'response_output_tokens', kind: 'scalar', T: 4 }, - { no: 5, name: 'cache_read_tokens', kind: 'scalar', T: 4 }, - { no: 6, name: 'api_provider', kind: 'enum', T: a.getEnumType(kn) }, - { no: 7, name: 'message_id', kind: 'scalar', T: 9 }, - { - no: 8, - name: 'response_header', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { no: 11, name: 'response_id', kind: 'scalar', T: 9 }, - { no: 4, name: 'cache_write_tokens', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yf = class e extends r { - reason = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.SuperCompleteFilterReason'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'reason', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ae = class e extends r { - range; - message = ''; - severity = ''; - source = ''; - uri = ''; - id; - language = O.UNSPECIFIED; - score = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CodeDiagnostic'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'range', kind: 'message', T: te }, - { no: 2, name: 'message', kind: 'scalar', T: 9 }, - { no: 3, name: 'severity', kind: 'scalar', T: 9 }, - { no: 4, name: 'source', kind: 'scalar', T: 9 }, - { no: 5, name: 'uri', kind: 'scalar', T: 9 }, - { no: 6, name: 'id', kind: 'scalar', T: 9, opt: !0 }, - { no: 7, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 8, name: 'score', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wf = class e extends r { - range; - text = ''; - label = ''; - labelDetail = ''; - description = ''; - detail = ''; - documentation = ''; - kind = ''; - selected = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.IntellisenseSuggestion'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'range', kind: 'message', T: te }, - { no: 2, name: 'text', kind: 'scalar', T: 9 }, - { no: 3, name: 'label', kind: 'scalar', T: 9 }, - { no: 4, name: 'label_detail', kind: 'scalar', T: 9 }, - { no: 5, name: 'description', kind: 'scalar', T: 9 }, - { no: 6, name: 'detail', kind: 'scalar', T: 9 }, - { no: 7, name: 'documentation', kind: 'scalar', T: 9 }, - { no: 8, name: 'kind', kind: 'scalar', T: 9 }, - { no: 9, name: 'selected', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xc = class e extends r { - documentQuery; - overlappedCodeContextItems = []; - firstElementSuffixOverlap = 0; - lastElementPrefixOverlap = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DocumentLinesElement'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'document_query', kind: 'message', T: Uc }, - { - no: 2, - name: 'overlapped_code_context_items', - kind: 'message', - T: I, - repeated: !0, - }, - { no: 3, name: 'first_element_suffix_overlap', kind: 'scalar', T: 13 }, - { no: 4, name: 'last_element_prefix_overlap', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Uc = class e extends r { - text = ''; - cursorOffset = 0; - startLine = 0; - endLine = 0; - useCharacterPosition = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DocumentQuery'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'cursor_offset', kind: 'scalar', T: 5 }, - { no: 3, name: 'start_line', kind: 'scalar', T: 13 }, - { no: 4, name: 'end_line', kind: 'scalar', T: 13 }, - { no: 5, name: 'use_character_position', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bc = class e extends r { - element = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DocumentOutlineElement'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'code_context_item', - kind: 'message', - T: I, - oneof: 'element', - }, - { - no: 2, - name: 'document_lines_element', - kind: 'message', - T: xc, - oneof: 'element', - }, - { no: 3, name: 'text', kind: 'scalar', T: 9, oneof: 'element' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - re = class e extends r { - elements = []; - startIndex = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DocumentOutline'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'elements', kind: 'message', T: Bc, repeated: !0 }, - { no: 2, name: 'start_index', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vf = class e extends r { - eventName = ''; - apiKey = ''; - installationId = ''; - ideName = ''; - os = ''; - codeiumVersion = ''; - ideVersion = ''; - durationMs = o.zero; - extra = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ProductEvent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'event_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'api_key', kind: 'scalar', T: 9 }, - { no: 3, name: 'installation_id', kind: 'scalar', T: 9 }, - { no: 4, name: 'ide_name', kind: 'scalar', T: 9 }, - { no: 5, name: 'os', kind: 'scalar', T: 9 }, - { no: 6, name: 'codeium_version', kind: 'scalar', T: 9 }, - { no: 7, name: 'ide_version', kind: 'scalar', T: 9 }, - { no: 8, name: 'duration_ms', kind: 'scalar', T: 4 }, - { no: 9, name: 'extra', kind: 'map', K: 9, V: { kind: 'scalar', T: 9 } }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fc = class e extends r { - chunkType = { case: void 0 }; - position = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.KnowledgeBaseChunk'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9, oneof: 'chunk_type' }, - { - no: 3, - name: 'markdown_chunk', - kind: 'message', - T: yc, - oneof: 'chunk_type', - }, - { no: 2, name: 'position', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - G = class e extends r { - documentId = ''; - url = ''; - title = ''; - timestamp; - chunks = []; - summary = ''; - domTree; - image; - media; - text = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.KnowledgeBaseItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'document_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'url', kind: 'scalar', T: 9 }, - { no: 4, name: 'title', kind: 'scalar', T: 9 }, - { no: 5, name: 'timestamp', kind: 'message', T: _ }, - { no: 6, name: 'chunks', kind: 'message', T: Fc, repeated: !0 }, - { no: 7, name: 'summary', kind: 'scalar', T: 9 }, - { no: 9, name: 'dom_tree', kind: 'message', T: xn }, - { no: 8, name: 'image', kind: 'message', T: P }, - { no: 10, name: 'media', kind: 'message', T: C }, - { no: 2, name: 'text', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - K = class e extends r { - knowledgeBaseItem; - score = 0; - indexName = ''; - documentSourceName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.KnowledgeBaseItemWithMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'knowledge_base_item', kind: 'message', T: G }, - { no: 2, name: 'score', kind: 'scalar', T: 2 }, - { no: 3, name: 'index_name', kind: 'scalar', T: 9 }, - { no: 4, name: 'document_source_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - se = class e extends r { - description = ''; - item; - children = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.KnowledgeBaseGroup'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'description', kind: 'scalar', T: 9 }, - { no: 2, name: 'item', kind: 'message', T: K }, - { no: 3, name: 'children', kind: 'message', T: e, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - P = class e extends r { - base64Data = ''; - mimeType = ''; - caption = ''; - uri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ImageData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'base64_data', kind: 'scalar', T: 9 }, - { no: 2, name: 'mime_type', kind: 'scalar', T: 9 }, - { no: 3, name: 'caption', kind: 'scalar', T: 9 }, - { no: 4, name: 'uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mc = class e extends r { - blobId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Blobref'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'blob_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - C = class e extends r { - mimeType = ''; - description = ''; - payload = { case: void 0 }; - uri = ''; - thumbnail = new Uint8Array(0); - durationSeconds = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Media'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'mime_type', kind: 'scalar', T: 9 }, - { no: 4, name: 'description', kind: 'scalar', T: 9 }, - { no: 2, name: 'inline_data', kind: 'scalar', T: 12, oneof: 'payload' }, - { no: 3, name: 'blobref', kind: 'message', T: Mc, oneof: 'payload' }, - { no: 5, name: 'uri', kind: 'scalar', T: 9 }, - { no: 6, name: 'thumbnail', kind: 'scalar', T: 12 }, - { no: 7, name: 'duration_seconds', kind: 'scalar', T: 2 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wr = class e extends r { - text = ''; - mimeType = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TextData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'mime_type', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yc = class e extends r { - headers = []; - text = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.MarkdownChunk'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'headers', kind: 'message', T: hc, repeated: !0 }, - { no: 2, name: 'text', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hc = class e extends r { - type = It.UNSPECIFIED; - text = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.MarkdownChunk.MarkdownHeader'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'enum', T: a.getEnumType(It) }, - { no: 2, name: 'text', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gc = class e extends r { - metadata; - terminalId = ''; - shellPid = 0; - commandLine = ''; - cwd = ''; - startTime; - source = gn.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TerminalShellCommandHeader'; - static fields = a.util.newFieldList(() => [ - { no: 7, name: 'metadata', kind: 'message', T: w }, - { no: 1, name: 'terminal_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'shell_pid', kind: 'scalar', T: 13 }, - { no: 3, name: 'command_line', kind: 'scalar', T: 9 }, - { no: 4, name: 'cwd', kind: 'scalar', T: 9 }, - { no: 5, name: 'start_time', kind: 'message', T: _ }, - { no: 6, name: 'source', kind: 'enum', T: a.getEnumType(gn) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bc = class e extends r { - rawData = new Uint8Array(0); - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TerminalShellCommandData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'raw_data', kind: 'scalar', T: 12 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qc = class e extends r { - exitCode; - endTime; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TerminalShellCommandTrailer'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'exit_code', kind: 'scalar', T: 5, opt: !0 }, - { no: 2, name: 'end_time', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xf = class e extends r { - value = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TerminalShellCommandStreamChunk'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'header', kind: 'message', T: Gc, oneof: 'value' }, - { no: 2, name: 'data', kind: 'message', T: bc, oneof: 'value' }, - { no: 3, name: 'trailer', kind: 'message', T: qc, oneof: 'value' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vr = class e extends r { - id = ''; - shellPid = 0; - commandLine = ''; - cwd = ''; - output = new Uint8Array(0); - exitCode; - startTime; - endTime; - lastUpdatedTime; - status = pt.UNSPECIFIED; - source = gn.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TerminalShellCommand'; - static fields = a.util.newFieldList(() => [ - { no: 10, name: 'id', kind: 'scalar', T: 9 }, - { no: 1, name: 'shell_pid', kind: 'scalar', T: 13 }, - { no: 2, name: 'command_line', kind: 'scalar', T: 9 }, - { no: 3, name: 'cwd', kind: 'scalar', T: 9 }, - { no: 4, name: 'output', kind: 'scalar', T: 12 }, - { no: 5, name: 'exit_code', kind: 'scalar', T: 5, opt: !0 }, - { no: 6, name: 'start_time', kind: 'message', T: _ }, - { no: 7, name: 'end_time', kind: 'message', T: _ }, - { no: 11, name: 'last_updated_time', kind: 'message', T: _ }, - { no: 8, name: 'status', kind: 'enum', T: a.getEnumType(pt) }, - { no: 9, name: 'source', kind: 'enum', T: a.getEnumType(gn) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Kf = class e extends r { - terminalId = ''; - platform = ''; - cwd = ''; - shellName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TerminalCommandData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'terminal_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'platform', kind: 'scalar', T: 9 }, - { no: 3, name: 'cwd', kind: 'scalar', T: 9 }, - { no: 4, name: 'shell_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vf = class e extends r { - antigravityProjectId = ''; - authUid = ''; - deploymentProvider = $.UNSPECIFIED; - providerProjectId = ''; - projectName = ''; - createdAt; - updatedAt; - domain = ''; - subdomainName = ''; - expiresAt; - claimedAt; - deprovisionedAt; - providerTeamId = ''; - projectUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.AntigravityProject'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'antigravity_project_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'auth_uid', kind: 'scalar', T: 9 }, - { no: 3, name: 'deployment_provider', kind: 'enum', T: a.getEnumType($) }, - { no: 4, name: 'provider_project_id', kind: 'scalar', T: 9 }, - { no: 5, name: 'project_name', kind: 'scalar', T: 9 }, - { no: 6, name: 'created_at', kind: 'message', T: _ }, - { no: 7, name: 'updated_at', kind: 'message', T: _ }, - { no: 8, name: 'domain', kind: 'scalar', T: 9 }, - { no: 9, name: 'subdomain_name', kind: 'scalar', T: 9 }, - { no: 10, name: 'expires_at', kind: 'message', T: _ }, - { no: 11, name: 'claimed_at', kind: 'message', T: _ }, - { no: 12, name: 'deprovisioned_at', kind: 'message', T: _ }, - { no: 14, name: 'provider_team_id', kind: 'scalar', T: 9 }, - { no: 13, name: 'project_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gt = class e extends r { - antigravityDeploymentId = ''; - authUid = ''; - deploymentProvider = $.UNSPECIFIED; - providerDeploymentId = ''; - antigravityProjectId = ''; - projectId = ''; - projectName = ''; - workspacePath = ''; - createdAt; - updatedAt; - domain = ''; - subdomainName = ''; - providerTeamId = ''; - expiresAt; - deploymentUrl = ''; - claimedAt; - deprovisionedAt; - buildStatusUrl = ''; - projectUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.AntigravityDeployment'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'antigravity_deployment_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'auth_uid', kind: 'scalar', T: 9 }, - { no: 3, name: 'deployment_provider', kind: 'enum', T: a.getEnumType($) }, - { no: 14, name: 'provider_deployment_id', kind: 'scalar', T: 9 }, - { no: 19, name: 'antigravity_project_id', kind: 'scalar', T: 9 }, - { no: 4, name: 'project_id', kind: 'scalar', T: 9 }, - { no: 5, name: 'project_name', kind: 'scalar', T: 9 }, - { no: 6, name: 'workspace_path', kind: 'scalar', T: 9 }, - { no: 7, name: 'created_at', kind: 'message', T: _ }, - { no: 8, name: 'updated_at', kind: 'message', T: _ }, - { no: 16, name: 'domain', kind: 'scalar', T: 9 }, - { no: 17, name: 'subdomain_name', kind: 'scalar', T: 9 }, - { no: 20, name: 'provider_team_id', kind: 'scalar', T: 9 }, - { no: 11, name: 'expires_at', kind: 'message', T: _ }, - { no: 12, name: 'deployment_url', kind: 'scalar', T: 9 }, - { no: 15, name: 'claimed_at', kind: 'message', T: _ }, - { no: 13, name: 'deprovisioned_at', kind: 'message', T: _ }, - { no: 9, name: 'build_status_url', kind: 'scalar', T: 9 }, - { no: 10, name: 'project_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Nn = class e extends r { - deploymentProvider = $.UNSPECIFIED; - isSandbox = !1; - providerTeamId = ''; - providerTeamSlug = ''; - domain = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DeployTarget'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'deployment_provider', kind: 'enum', T: a.getEnumType($) }, - { no: 2, name: 'is_sandbox', kind: 'scalar', T: 8 }, - { no: 3, name: 'provider_team_id', kind: 'scalar', T: 9 }, - { no: 4, name: 'provider_team_slug', kind: 'scalar', T: 9 }, - { no: 5, name: 'domain', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zf = class e extends r { - label = ''; - value = { case: void 0 }; - synonyms = []; - isFeatured = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.WebDocsOption'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'label', kind: 'scalar', T: 9 }, - { no: 2, name: 'docs_url', kind: 'scalar', T: 9, oneof: 'value' }, - { - no: 3, - name: 'docs_search_domain', + }, + ]); + static fromBinary(bytes, options) { + return new _UnleashContext().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UnleashContext().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UnleashContext().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UnleashContext, a, b); + } +}; +var BrowserStateSnapshot = class _BrowserStateSnapshot extends Message { + /** + * @generated from field: google.protobuf.Timestamp timestamp = 1; + */ + timestamp; + /** + * @generated from field: string user_active_page_id = 2; + */ + userActivePageId = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.BrowserPageMetadata pages = 3; + */ + pages = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.BrowserStateSnapshot'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'timestamp', kind: 'message', T: Timestamp }, + { + no: 2, + name: 'user_active_page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'pages', + kind: 'message', + T: BrowserPageMetadata, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserStateSnapshot().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserStateSnapshot().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserStateSnapshot().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserStateSnapshot, a, b); + } +}; +var BrowserPageMetadata = class _BrowserPageMetadata extends Message { + /** + * URL of the page. + * + * @generated from field: string url = 1; + */ + url = ''; + /** + * Playwright page identifier. + * + * @generated from field: string page_id = 2; + */ + pageId = ''; + /** + * Title of the page. + * + * @generated from field: string page_title = 3; + */ + pageTitle = ''; + /** + * Width of the viewport in pixels. + * + * @generated from field: uint32 viewport_width = 4; + */ + viewportWidth = 0; + /** + * Height of the viewport in pixels. + * + * @generated from field: uint32 viewport_height = 5; + */ + viewportHeight = 0; + /** + * Total scrollable document height in pixels. + * + * @generated from field: uint32 page_height = 9; + */ + pageHeight = 0; + /** + * URL of the favicon, if available. + * + * @generated from field: string favicon_url = 6; + */ + faviconUrl = ''; + /** + * Device pixel ratio of the page. + * + * @generated from field: float device_pixel_ratio = 8; + */ + devicePixelRatio = 0; + /** + * Time the page was last visited. + * + * @generated from field: google.protobuf.Timestamp last_visited_time = 7; + */ + lastVisitedTime; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.BrowserPageMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'page_title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'viewport_width', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'viewport_height', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 9, + name: 'page_height', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 6, + name: 'favicon_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'device_pixel_ratio', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { no: 7, name: 'last_visited_time', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _BrowserPageMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserPageMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserPageMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserPageMetadata, a, b); + } +}; +var BrowserClickInteraction = class _BrowserClickInteraction extends Message { + /** + * Viewport metadata at the time of the click. + * + * Horizontal scroll position of the viewport. + * + * @generated from field: uint32 viewport_scroll_x = 1; + */ + viewportScrollX = 0; + /** + * Vertical scroll position of the viewport. + * + * @generated from field: uint32 viewport_scroll_y = 2; + */ + viewportScrollY = 0; + /** + * Click position relative to the viewport. + * + * X position of the click relative to the viewport. + * + * @generated from field: uint32 click_x = 3; + */ + clickX = 0; + /** + * Y position of the click relative to the viewport. + * + * @generated from field: uint32 click_y = 4; + */ + clickY = 0; + /** + * Target element that was clicked. + * + * @generated from field: string target_element_tag_name = 5; + */ + targetElementTagName = ''; + /** + * @generated from field: string target_element_x_path = 6; + */ + targetElementXPath = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.BrowserClickInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'viewport_scroll_x', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'viewport_scroll_y', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'click_x', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'click_y', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'target_element_tag_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'target_element_x_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserClickInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserClickInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserClickInteraction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserClickInteraction, a, b); + } +}; +var BrowserScrollInteraction = class _BrowserScrollInteraction extends Message { + /** + * Viewport metadata after the scroll. + * + * Horizontal scroll position of the viewport. + * + * @generated from field: uint32 viewport_scroll_x = 1; + */ + viewportScrollX = 0; + /** + * Vertical scroll position of the viewport. + * + * @generated from field: uint32 viewport_scroll_y = 2; + */ + viewportScrollY = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.BrowserScrollInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'viewport_scroll_x', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'viewport_scroll_y', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserScrollInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserScrollInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserScrollInteraction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserScrollInteraction, a, b); + } +}; +var BrowserInteraction = class _BrowserInteraction extends Message { + /** + * Timestamp of the interaction. + * + * @generated from field: google.protobuf.Timestamp timestamp = 1; + */ + timestamp; + /** + * Metadata associated with the page at the time of the interaction. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 2; + */ + pageMetadata; + /** + * The interaction that occurred. + * + * @generated from oneof exa.codeium_common_pb.BrowserInteraction.interaction + */ + interaction = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.BrowserInteraction'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'timestamp', kind: 'message', T: Timestamp }, + { no: 2, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 3, + name: 'click', + kind: 'message', + T: BrowserClickInteraction, + oneof: 'interaction', + }, + { + no: 4, + name: 'scroll', + kind: 'message', + T: BrowserScrollInteraction, + oneof: 'interaction', + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserInteraction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserInteraction, a, b); + } +}; +var MetricsMetadata = class _MetricsMetadata extends Message { + /** + * Version should be incremented if the metadata or implementation of the + * metric changes. + * + * @generated from field: int32 version = 1; + */ + version = 0; + /** + * Human readable description on how to interpret this metric. + * + * @generated from field: string description = 2; + */ + description = ''; + /** + * In which direction is this metric considered better. Leave unspecified if + * no direction. + * + * @generated from field: exa.codeium_common_pb.BetterDirection better_direction = 3; + */ + betterDirection = BetterDirection.UNSPECIFIED; + /** + * If 1 should be interpreted as true and 0 as false. + * + * @generated from field: bool is_bool = 4; + */ + isBool = false; + /** + * For aggregation purposes, consider the absence of this metric as this + * default value. Nulls are ignored if not specified. + * + * @generated from field: optional float null_default_value = 5; + */ + nullDefaultValue; + /** + * The scope of this metric. + * + * @generated from field: exa.codeium_common_pb.MetricsScope scope = 6; + */ + scope = MetricsScope.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.MetricsMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'version', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'better_direction', + kind: 'enum', + T: proto3.getEnumType(BetterDirection), + }, + { + no: 4, + name: 'is_bool', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 5, name: 'null_default_value', kind: 'scalar', T: 2, opt: true }, + { no: 6, name: 'scope', kind: 'enum', T: proto3.getEnumType(MetricsScope) }, + ]); + static fromBinary(bytes, options) { + return new _MetricsMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MetricsMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MetricsMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MetricsMetadata, a, b); + } +}; +var MetricsRecord = class _MetricsRecord extends Message { + /** + * Primary identifier of the metric. + * + * @generated from field: string name = 1; + */ + name = ''; + /** + * Metadata relating to the generation and definition of the metric. + * + * @generated from field: exa.codeium_common_pb.MetricsMetadata metadata = 9; + */ + metadata; + /** + * Main data payload of the metric. + * + * @generated from field: float value = 2; + */ + value = 0; + /** + * @generated from field: map details = 3; + */ + details = {}; + /** + * If non-empty, then will be considered an error. + * + * @generated from field: string error = 6; + */ + error = ''; + /** + * Trajectory id corresponding to the generator metadata producing this + * record. Used primarily for LLM judge-based metrics. Empty if not + * applicable. If populated assumed to be metadata index 0. + * + * @generated from field: string trajectory_id = 7; + */ + trajectoryId = ''; + /** + * If a lower value is considered better. + * + * @generated from field: bool lower_better = 4 [deprecated = true]; + * @deprecated + */ + lowerBetter = false; + /** + * If 1 should be interpreted as true and 0 as false. + * + * @generated from field: bool is_bool = 5 [deprecated = true]; + * @deprecated + */ + isBool = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.MetricsRecord'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 9, name: 'metadata', kind: 'message', T: MetricsMetadata }, + { + no: 2, + name: 'value', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 3, + name: 'details', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - oneof: 'value', + /* ScalarType.STRING */ }, - { no: 4, name: 'synonyms', kind: 'scalar', T: 9, repeated: !0 }, - { no: 5, name: 'is_featured', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xr = class e extends r { - teamId = ''; - userPromptCreditCap = 0; - userFlowCreditCap = 0; - autoProvisionCascadeSeat = !1; - allowMcpServers = !1; - allowAutoRunCommands = !1; - maxUnclaimedSites = 0; - allowAppDeployments = !1; - allowSandboxAppDeployments = !1; - allowTeamsAppDeployments = !1; - maxNewSitesPerDay = 0; - allowGithubReviews = !1; - allowGithubDescriptionEdits = !1; - pullRequestReviewGuidelines = ''; - pullRequestDescriptionGuidelines = ''; - disableToolCalls = !1; - allowIndividualLevelAnalytics = !1; - allowConversationSharing; - pullRequestReviewRateLimit; - allowAttribution = !1; - allowedMcpServers = []; - allowGithubAutoReviews = !1; - allowBrowserExperimentalFeatures = !1; - disableToolCallExecutionOutsideWorkspace = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TeamConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'team_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'user_prompt_credit_cap', kind: 'scalar', T: 5 }, - { no: 3, name: 'user_flow_credit_cap', kind: 'scalar', T: 5 }, - { no: 4, name: 'auto_provision_cascade_seat', kind: 'scalar', T: 8 }, - { no: 5, name: 'allow_mcp_servers', kind: 'scalar', T: 8 }, - { no: 7, name: 'allow_auto_run_commands', kind: 'scalar', T: 8 }, - { no: 9, name: 'max_unclaimed_sites', kind: 'scalar', T: 5 }, - { no: 10, name: 'allow_app_deployments', kind: 'scalar', T: 8 }, - { no: 19, name: 'allow_sandbox_app_deployments', kind: 'scalar', T: 8 }, - { no: 20, name: 'allow_teams_app_deployments', kind: 'scalar', T: 8 }, - { no: 11, name: 'max_new_sites_per_day', kind: 'scalar', T: 5 }, - { no: 12, name: 'allow_github_reviews', kind: 'scalar', T: 8 }, - { no: 13, name: 'allow_github_description_edits', kind: 'scalar', T: 8 }, - { no: 14, name: 'pull_request_review_guidelines', kind: 'scalar', T: 9 }, - { - no: 16, - name: 'pull_request_description_guidelines', - kind: 'scalar', - T: 9, - }, - { no: 15, name: 'disable_tool_calls', kind: 'scalar', T: 8 }, - { - no: 17, - name: 'allow_individual_level_analytics', - kind: 'scalar', - T: 8, - }, - { - no: 18, - name: 'allow_conversation_sharing', - kind: 'scalar', - T: 8, - opt: !0, - }, - { - no: 21, - name: 'pull_request_review_rate_limit', - kind: 'scalar', - T: 5, - opt: !0, - }, - { no: 22, name: 'allow_attribution', kind: 'scalar', T: 8 }, - { - no: 23, - name: 'allowed_mcp_servers', - kind: 'message', - T: Vc, - repeated: !0, - }, - { no: 24, name: 'allow_github_auto_reviews', kind: 'scalar', T: 8 }, - { - no: 25, - name: 'allow_browser_experimental_features', - kind: 'scalar', - T: 8, - }, - { - no: 26, - name: 'disable_tool_call_execution_outside_workspace', - kind: 'scalar', - T: 8, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bt = class e extends r { - projectId = ''; - framework = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.WebAppDeploymentConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'project_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'framework', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jf = class e extends r { - title = ''; - id = ''; - link = ''; - description = ''; - commands = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.McpServerTemplate'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'title', kind: 'scalar', T: 9 }, - { no: 2, name: 'id', kind: 'scalar', T: 9 }, - { no: 3, name: 'link', kind: 'scalar', T: 9 }, - { no: 4, name: 'description', kind: 'scalar', T: 9 }, - { - no: 5, - name: 'commands', - kind: 'map', - K: 9, - V: { kind: 'message', T: Hc }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hc = class e extends r { - template; - variables = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.McpServerCommand'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'template', kind: 'message', T: Yc }, - { no: 2, name: 'variables', kind: 'message', T: Wc, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yc = class e extends r { - command = ''; - args = []; - env = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.McpCommandTemplate'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'command', kind: 'scalar', T: 9 }, - { no: 2, name: 'args', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'env', kind: 'map', K: 9, V: { kind: 'scalar', T: 9 } }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wc = class e extends r { - name = ''; - title = ''; - description = ''; - link = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.McpCommandVariable'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'title', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - { no: 4, name: 'link', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vc = class e extends r { - serverId = ''; - configuration = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.McpServerConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'server_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'local', kind: 'message', T: Xc, oneof: 'configuration' }, - { no: 3, name: 'remote', kind: 'message', T: Kc, oneof: 'configuration' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xc = class e extends r { - command = ''; - args = []; - env = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.McpLocalServer'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'command', kind: 'scalar', T: 9 }, - { no: 2, name: 'args', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'env', kind: 'map', K: 9, V: { kind: 'scalar', T: 9 } }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Kc = class e extends r { - type = ''; - url = ''; - headers = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.McpRemoteServer'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'scalar', T: 9 }, - { no: 2, name: 'url', kind: 'scalar', T: 9 }, - { - no: 3, - name: 'headers', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Qf = class e extends r { - userId = ''; - sessionId = ''; - properties = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.UnleashContext'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'user_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'session_id', kind: 'scalar', T: 9 }, - { - no: 3, - name: 'properties', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Kr = class e extends r { - timestamp; - userActivePageId = ''; - pages = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.BrowserStateSnapshot'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'timestamp', kind: 'message', T: _ }, - { no: 2, name: 'user_active_page_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'pages', kind: 'message', T: A, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - A = class e extends r { - url = ''; - pageId = ''; - pageTitle = ''; - viewportWidth = 0; - viewportHeight = 0; - pageHeight = 0; - faviconUrl = ''; - devicePixelRatio = 0; - lastVisitedTime; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.BrowserPageMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'url', kind: 'scalar', T: 9 }, - { no: 2, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'page_title', kind: 'scalar', T: 9 }, - { no: 4, name: 'viewport_width', kind: 'scalar', T: 13 }, - { no: 5, name: 'viewport_height', kind: 'scalar', T: 13 }, - { no: 9, name: 'page_height', kind: 'scalar', T: 13 }, - { no: 6, name: 'favicon_url', kind: 'scalar', T: 9 }, - { no: 8, name: 'device_pixel_ratio', kind: 'scalar', T: 2 }, - { no: 7, name: 'last_visited_time', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vc = class e extends r { - viewportScrollX = 0; - viewportScrollY = 0; - clickX = 0; - clickY = 0; - targetElementTagName = ''; - targetElementXPath = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.BrowserClickInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'viewport_scroll_x', kind: 'scalar', T: 13 }, - { no: 2, name: 'viewport_scroll_y', kind: 'scalar', T: 13 }, - { no: 3, name: 'click_x', kind: 'scalar', T: 13 }, - { no: 4, name: 'click_y', kind: 'scalar', T: 13 }, - { no: 5, name: 'target_element_tag_name', kind: 'scalar', T: 9 }, - { no: 6, name: 'target_element_x_path', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zc = class e extends r { - viewportScrollX = 0; - viewportScrollY = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.BrowserScrollInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'viewport_scroll_x', kind: 'scalar', T: 13 }, - { no: 2, name: 'viewport_scroll_y', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zf = class e extends r { - timestamp; - pageMetadata; - interaction = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.BrowserInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'timestamp', kind: 'message', T: _ }, - { no: 2, name: 'page_metadata', kind: 'message', T: A }, - { no: 3, name: 'click', kind: 'message', T: vc, oneof: 'interaction' }, - { no: 4, name: 'scroll', kind: 'message', T: zc, oneof: 'interaction' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jc = class e extends r { - version = 0; - description = ''; - betterDirection = Ct.UNSPECIFIED; - isBool = !1; - nullDefaultValue; - scope = Rt.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.MetricsMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'version', kind: 'scalar', T: 5 }, - { no: 2, name: 'description', kind: 'scalar', T: 9 }, - { no: 3, name: 'better_direction', kind: 'enum', T: a.getEnumType(Ct) }, - { no: 4, name: 'is_bool', kind: 'scalar', T: 8 }, - { no: 5, name: 'null_default_value', kind: 'scalar', T: 2, opt: !0 }, - { no: 6, name: 'scope', kind: 'enum', T: a.getEnumType(Rt) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ie = class e extends r { - name = ''; - metadata; - value = 0; - details = {}; - error = ''; - trajectoryId = ''; - lowerBetter = !1; - isBool = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.MetricsRecord'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 9, name: 'metadata', kind: 'message', T: jc }, - { no: 2, name: 'value', kind: 'scalar', T: 2 }, - { - no: 3, - name: 'details', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { no: 6, name: 'error', kind: 'scalar', T: 9 }, - { no: 7, name: 'trajectory_id', kind: 'scalar', T: 9 }, - { no: 4, name: 'lower_better', kind: 'scalar', T: 8 }, - { no: 5, name: 'is_bool', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $f = class e extends r { - metrics = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.StepLevelMetricsRecord'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metrics', kind: 'message', T: ie, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Qc = class e extends r { - model = f.UNSPECIFIED; - message = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ModelNotification'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - { no: 2, name: 'message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nN = class e extends r { - modelNotifications = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.codeium_common_pb.ModelNotificationExperimentPayload'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'model_notifications', - kind: 'message', - T: Qc, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vr = class e extends r { - uri = ''; - range; - snippet; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.LspReference'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'range', kind: 'message', T: te }, - { no: 3, name: 'snippet', kind: 'scalar', T: 9, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - eN = class e extends r { - text = ''; - tooltipText = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.codeium_common_pb.CascadeModelHeaderWarningExperimentPayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'tooltip_text', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qt = class e extends r { - id = ''; - uri = ''; - line = 0; - content = ''; - createdAt; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CodeAnnotation'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'uri', kind: 'scalar', T: 9 }, - { no: 3, name: 'line', kind: 'scalar', T: 13 }, - { no: 4, name: 'content', kind: 'scalar', T: 9 }, - { no: 5, name: 'created_at', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tN = class e extends r { - annotations = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.CodeAnnotationsState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'annotations', kind: 'message', T: qt, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - aN = class e extends r { - description = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TrajectoryDescription'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'cascade_conversation_title', - kind: 'scalar', - T: 9, - oneof: 'description', - }, - { - no: 2, - name: 'mainline_branch_name', - kind: 'scalar', - T: 9, - oneof: 'description', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ht = class e extends r { - provider = Lt.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ThirdPartyWebSearchConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'provider', kind: 'enum', T: a.getEnumType(Lt) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rN = class e extends r { - code = 0; - message = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.GRPCStatus'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'code', kind: 'scalar', T: 5 }, - { no: 2, name: 'message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sN = class e extends r { - absoluteUri = ''; - relativePath = ''; - status = Pt.UNSPECIFIED; - error = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.WorkingDirectoryInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'relative_path', kind: 'scalar', T: 9 }, - { no: 3, name: 'status', kind: 'enum', T: a.getEnumType(Pt) }, - { no: 4, name: 'error', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zc = class e extends r { - image; - media; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ArtifactFullFileTarget'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'image', kind: 'message', T: P }, - { no: 2, name: 'media', kind: 'message', T: C }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - oe = class e extends r { - content = ''; - startLine = 0; - endLine = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.TextSelection'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - { no: 2, name: 'start_line', kind: 'scalar', T: 5 }, - { no: 3, name: 'end_line', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $c = class e extends r { - croppedImage; - x = 0; - y = 0; - width = 0; - height = 0; - croppedMedia; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ArtifactImageSelection'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cropped_image', kind: 'message', T: P }, - { no: 2, name: 'x', kind: 'scalar', T: 2 }, - { no: 3, name: 'y', kind: 'scalar', T: 2 }, - { no: 4, name: 'width', kind: 'scalar', T: 2 }, - { no: 5, name: 'height', kind: 'scalar', T: 2 }, - { no: 6, name: 'cropped_media', kind: 'message', T: C }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nu = class e extends r { - selection = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ArtifactSelection'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'text_selection', - kind: 'message', - T: oe, - oneof: 'selection', - }, - { - no: 2, - name: 'image_selection', - kind: 'message', - T: $c, - oneof: 'selection', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - eu = class e extends r { - selections = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ArtifactSelectionTarget'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'selections', kind: 'message', T: nu, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zr = class e extends r { - artifactUri = ''; - scope = { case: void 0 }; - comment = ''; - approvalStatus = Dt.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ArtifactComment'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'artifact_uri', kind: 'scalar', T: 9 }, - { no: 5, name: 'full_file', kind: 'message', T: Zc, oneof: 'scope' }, - { no: 6, name: 'selections', kind: 'message', T: eu, oneof: 'scope' }, - { no: 4, name: 'comment', kind: 'scalar', T: 9 }, - { no: 7, name: 'approval_status', kind: 'enum', T: a.getEnumType(Dt) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jr = class e extends r { - artifactType = kt.UNSPECIFIED; - summary = ''; - createdAt; - updatedAt; - version = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ArtifactMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'artifact_type', kind: 'enum', T: a.getEnumType(kt) }, - { no: 2, name: 'summary', kind: 'scalar', T: 9 }, - { no: 3, name: 'created_at', kind: 'message', T: _ }, - { no: 4, name: 'updated_at', kind: 'message', T: _ }, - { no: 5, name: 'version', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tu = class e extends r { - originalSelection; - modifiedSelection; - comment = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.DiffCommentInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'original_selection', kind: 'message', T: oe, opt: !0 }, - { no: 2, name: 'modified_selection', kind: 'message', T: oe, opt: !0 }, - { no: 3, name: 'comment', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Qr = class e extends r { - fileUri = ''; - diffCommentInfos = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.FileDiffComment'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'file_uri', kind: 'scalar', T: 9 }, - { - no: 3, - name: 'diff_comment_infos', - kind: 'message', - T: tu, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - au = class e extends r { - comment = ''; - selection; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.FileCommentInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'comment', kind: 'scalar', T: 9 }, - { no: 2, name: 'selection', kind: 'message', T: oe }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zr = class e extends r { - fileUri = ''; - fileCommentInfos = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.FileComment'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'file_uri', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'file_comment_infos', - kind: 'message', - T: au, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - iN = class e extends r { - userStepJudgeConfig; - planningModeJudgeConfig; - promptSectionJudgeConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.OnlineMetricsConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'user_step_judge_config', kind: 'message', T: ou }, - { no: 2, name: 'planning_mode_judge_config', kind: 'message', T: mu }, - { no: 3, name: 'prompt_section_judge_config', kind: 'message', T: iu }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yt = class e extends r { - samplingStrategy = { case: void 0 }; - randomSeed; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.MetricsSamplingConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'uniform', - kind: 'message', - T: ru, - oneof: 'sampling_strategy', - }, - { - no: 2, - name: 'generator_metadata_aware', - kind: 'message', - T: su, - oneof: 'sampling_strategy', - }, - { no: 3, name: 'random_seed', kind: 'scalar', T: 3, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ru = class e extends r { - samplingRate = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.SamplingStrategyUniform'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'sampling_rate', kind: 'scalar', T: 2 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - su = class e extends r { - targetSamplingRate = 0; - baselineSamplingRate = 0; - startGeneratorMetadataIndex = 0; - endGeneratorMetadataIndex = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.codeium_common_pb.SamplingStrategyGeneratorMetadataAware'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'target_sampling_rate', kind: 'scalar', T: 2 }, - { no: 2, name: 'baseline_sampling_rate', kind: 'scalar', T: 2 }, - { no: 3, name: 'start_generator_metadata_index', kind: 'scalar', T: 5 }, - { no: 4, name: 'end_generator_metadata_index', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - iu = class e extends r { - enabled = !1; - samplingConfig; - judgeModel = f.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PromptSectionJudgeConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8 }, - { no: 2, name: 'sampling_config', kind: 'message', T: Yt, opt: !0 }, - { no: 3, name: 'judge_model', kind: 'enum', T: a.getEnumType(f) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ou = class e extends r { - enabled = !1; - samplingConfig; - judgeModel = f.UNSPECIFIED; - maxTokens = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.UserStepJudgeConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8 }, - { no: 2, name: 'sampling_config', kind: 'message', T: Yt, opt: !0 }, - { no: 3, name: 'judge_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 4, name: 'max_tokens', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mu = class e extends r { - enabled; - samplingConfig; - judgeModel = f.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.PlanningModeJudgeConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'sampling_config', kind: 'message', T: Yt, opt: !0 }, - { no: 3, name: 'judge_model', kind: 'enum', T: a.getEnumType(f) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $r = class e extends r { - x = 0; - y = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Point2'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'x', kind: 'scalar', T: 5 }, - { no: 2, name: 'y', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - oN = class e extends r { - ideName = ''; - ideVersion = ''; - os = ''; - arch = ''; - userTierId = ''; - userTags = []; - isRedacted = !1; - payload = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.JetskiTelemetryExtension'; - static fields = a.util.newFieldList(() => [ - { no: 16, name: 'ide_name', kind: 'scalar', T: 9 }, - { no: 17, name: 'ide_version', kind: 'scalar', T: 9 }, - { no: 18, name: 'os', kind: 'scalar', T: 9 }, - { no: 19, name: 'arch', kind: 'scalar', T: 9 }, - { no: 22, name: 'user_tier_id', kind: 'scalar', T: 9 }, - { no: 23, name: 'user_tags', kind: 'scalar', T: 9, repeated: !0 }, - { no: 24, name: 'is_redacted', kind: 'scalar', T: 8 }, - { - no: 6, - name: 'analytics_event_metadata', - kind: 'message', - T: uu, - oneof: 'payload', - }, - { - no: 15, - name: 'error_trace_metadata', - kind: 'message', - T: lu, - oneof: 'payload', - }, - { - no: 26, - name: 'observability_data', - kind: 'message', - T: Eu, - oneof: 'payload', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wt = class e extends r { - key = ''; - value = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ExtraMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'key', kind: 'scalar', T: 9 }, - { no: 2, name: 'value', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cu = class e extends r { - key = ''; - enabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.Experiment'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'key', kind: 'scalar', T: 9 }, - { no: 2, name: 'enabled', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - uu = class e extends r { - eventType = ''; - extra = []; - experiments = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.AnalyticsEventMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'event_type', kind: 'scalar', T: 9 }, - { no: 2, name: 'extra', kind: 'message', T: Wt, repeated: !0 }, - { no: 3, name: 'experiments', kind: 'message', T: cu, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - lu = class e extends r { - errorTrace; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ErrorTraceMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'error_trace', kind: 'message', T: hm }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Eu = class e extends r { - type = ''; - nonSensitiveData = []; - sensitiveData = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ObservabilityData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'non_sensitive_data', - kind: 'message', - T: Wt, - repeated: !0, - }, - { no: 3, name: 'sensitive_data', kind: 'message', T: Wt, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _u = class e extends r { - eventTimeMs = o.zero; - sourceExtension = new Uint8Array(0); - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.LogEvent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'event_time_ms', kind: 'scalar', T: 3 }, - { no: 6, name: 'source_extension', kind: 'scalar', T: 12 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - du = class e extends r { - clientType = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.ClientInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'client_type', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mN = class e extends r { - clientInfo; - logSource = 0; - logEvents = []; - requestTimeMs = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.LogRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'client_info', kind: 'message', T: du }, - { no: 2, name: 'log_source', kind: 'scalar', T: 5 }, - { no: 3, name: 'log_events', kind: 'message', T: _u, repeated: !0 }, - { no: 4, name: 'request_time_ms', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cN = class e extends r { - nextRequestWaitMillis = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.codeium_common_pb.LogResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'next_request_wait_millis', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var Vt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.INSERT = 1)] = 'INSERT'), - (e[(e.DELETE = 2)] = 'DELETE'), - (e[(e.UNCHANGED = 3)] = 'UNCHANGED')); -})(Vt || (Vt = {})); -a.util.setEnumType(Vt, 'exa.diff_action_pb.UnifiedDiffLineType', [ - { no: 0, name: 'UNIFIED_DIFF_LINE_TYPE_UNSPECIFIED' }, - { no: 1, name: 'UNIFIED_DIFF_LINE_TYPE_INSERT' }, - { no: 2, name: 'UNIFIED_DIFF_LINE_TYPE_DELETE' }, - { no: 3, name: 'UNIFIED_DIFF_LINE_TYPE_UNCHANGED' }, -]); -var Bn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.INSERT = 1)] = 'INSERT'), - (e[(e.DELETE = 2)] = 'DELETE'), - (e[(e.UNCHANGED = 3)] = 'UNCHANGED')); -})(Bn || (Bn = {})); -a.util.setEnumType(Bn, 'exa.diff_action_pb.DiffChangeType', [ + }, + { + no: 6, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'trajectory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'lower_better', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'is_bool', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _MetricsRecord().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MetricsRecord().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MetricsRecord().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MetricsRecord, a, b); + } +}; +var StepLevelMetricsRecord = class _StepLevelMetricsRecord extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.MetricsRecord metrics = 1; + */ + metrics = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.StepLevelMetricsRecord'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'metrics', + kind: 'message', + T: MetricsRecord, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _StepLevelMetricsRecord().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StepLevelMetricsRecord().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StepLevelMetricsRecord().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StepLevelMetricsRecord, a, b); + } +}; +var ModelNotification = class _ModelNotification extends Message { + /** + * @generated from field: exa.codeium_common_pb.Model model = 1; + */ + model = Model.UNSPECIFIED; + /** + * @generated from field: string message = 2; + */ + message = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ModelNotification'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 2, + name: 'message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ModelNotification().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelNotification().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelNotification().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelNotification, a, b); + } +}; +var ModelNotificationExperimentPayload = class _ModelNotificationExperimentPayload extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.ModelNotification model_notifications = 1; + */ + modelNotifications = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ModelNotificationExperimentPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'model_notifications', + kind: 'message', + T: ModelNotification, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ModelNotificationExperimentPayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelNotificationExperimentPayload().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _ModelNotificationExperimentPayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ModelNotificationExperimentPayload, a, b); + } +}; +var LspReference = class _LspReference extends Message { + /** + * URI string of the file containing the reference + * + * @generated from field: string uri = 1; + */ + uri = ''; + /** + * Range in the file + * + * @generated from field: exa.codeium_common_pb.Range range = 2; + */ + range; + /** + * Optional snippet of surrounding text that contains the reference + * + * @generated from field: optional string snippet = 3; + */ + snippet; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.LspReference'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'range', kind: 'message', T: Range }, + { no: 3, name: 'snippet', kind: 'scalar', T: 9, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _LspReference().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LspReference().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LspReference().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LspReference, a, b); + } +}; +var CascadeModelHeaderWarningExperimentPayload = class _CascadeModelHeaderWarningExperimentPayload extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + /** + * @generated from field: string tooltip_text = 2; + */ + tooltipText = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.codeium_common_pb.CascadeModelHeaderWarningExperimentPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'tooltip_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeModelHeaderWarningExperimentPayload().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeModelHeaderWarningExperimentPayload().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeModelHeaderWarningExperimentPayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _CascadeModelHeaderWarningExperimentPayload, + a, + b, + ); + } +}; +var CodeAnnotation = class _CodeAnnotation extends Message { + /** + * @generated from field: string id = 1; + */ + id = ''; + /** + * @generated from field: string uri = 2; + */ + uri = ''; + /** + * @generated from field: uint32 line = 3; + */ + line = 0; + /** + * @generated from field: string content = 4; + */ + content = ''; + /** + * @generated from field: google.protobuf.Timestamp created_at = 5; + */ + createdAt; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CodeAnnotation'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'created_at', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _CodeAnnotation().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeAnnotation().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeAnnotation().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeAnnotation, a, b); + } +}; +var CodeAnnotationsState = class _CodeAnnotationsState extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.CodeAnnotation annotations = 1; + */ + annotations = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.CodeAnnotationsState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'annotations', + kind: 'message', + T: CodeAnnotation, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CodeAnnotationsState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeAnnotationsState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeAnnotationsState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeAnnotationsState, a, b); + } +}; +var TrajectoryDescription = class _TrajectoryDescription extends Message { + /** + * @generated from oneof exa.codeium_common_pb.TrajectoryDescription.description + */ + description = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TrajectoryDescription'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cascade_conversation_title', + kind: 'scalar', + T: 9, + oneof: 'description', + }, + { + no: 2, + name: 'mainline_branch_name', + kind: 'scalar', + T: 9, + oneof: 'description', + }, + ]); + static fromBinary(bytes, options) { + return new _TrajectoryDescription().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TrajectoryDescription().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TrajectoryDescription().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TrajectoryDescription, a, b); + } +}; +var ThirdPartyWebSearchConfig = class _ThirdPartyWebSearchConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.ThirdPartyWebSearchProvider provider = 1; + */ + provider = ThirdPartyWebSearchProvider.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ThirdPartyWebSearchConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'provider', + kind: 'enum', + T: proto3.getEnumType(ThirdPartyWebSearchProvider), + }, + ]); + static fromBinary(bytes, options) { + return new _ThirdPartyWebSearchConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ThirdPartyWebSearchConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ThirdPartyWebSearchConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ThirdPartyWebSearchConfig, a, b); + } +}; +var GRPCStatus = class _GRPCStatus extends Message { + /** + * @generated from field: int32 code = 1; + */ + code = 0; + /** + * @generated from field: string message = 2; + */ + message = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.GRPCStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'code', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GRPCStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GRPCStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GRPCStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GRPCStatus, a, b); + } +}; +var WorkingDirectoryInfo = class _WorkingDirectoryInfo extends Message { + /** + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * @generated from field: string relative_path = 2; + */ + relativePath = ''; + /** + * @generated from field: exa.codeium_common_pb.WorkingDirectoryStatus status = 3; + */ + status = WorkingDirectoryStatus.UNSPECIFIED; + /** + * Only populated if error is status. + * + * @generated from field: string error = 4; + */ + error = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.WorkingDirectoryInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'relative_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(WorkingDirectoryStatus), + }, + { + no: 4, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _WorkingDirectoryInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkingDirectoryInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkingDirectoryInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WorkingDirectoryInfo, a, b); + } +}; +var ArtifactFullFileTarget = class _ArtifactFullFileTarget extends Message { + /** + * Deprecated: Use media instead + * + * @generated from field: exa.codeium_common_pb.ImageData image = 1 [deprecated = true]; + * @deprecated + */ + image; + /** + * If the file is an image file, this will be populated. + * + * @generated from field: exa.codeium_common_pb.Media media = 2; + */ + media; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ArtifactFullFileTarget'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'image', kind: 'message', T: ImageData }, + { no: 2, name: 'media', kind: 'message', T: Media }, + ]); + static fromBinary(bytes, options) { + return new _ArtifactFullFileTarget().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ArtifactFullFileTarget().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ArtifactFullFileTarget().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ArtifactFullFileTarget, a, b); + } +}; +var TextSelection = class _TextSelection extends Message { + /** + * Content of the selection. + * + * @generated from field: string content = 1; + */ + content = ''; + /** + * Inclusive + * + * @generated from field: int32 start_line = 2; + */ + startLine = 0; + /** + * Exclusive + * + * @generated from field: int32 end_line = 3; + */ + endLine = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.TextSelection'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'end_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _TextSelection().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TextSelection().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TextSelection().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TextSelection, a, b); + } +}; +var ArtifactImageSelection = class _ArtifactImageSelection extends Message { + /** + * Deprecated: Use cropped_media instead + * + * @generated from field: exa.codeium_common_pb.ImageData cropped_image = 1 [deprecated = true]; + * @deprecated + */ + croppedImage; + /** + * Bounding box coordinates in normalized image space (0.0 to 1.0). + * + * @generated from field: float x = 2; + */ + x = 0; + /** + * @generated from field: float y = 3; + */ + y = 0; + /** + * Bounding box dimensions in normalized image space (0.0 to 1.0). + * + * @generated from field: float width = 4; + */ + width = 0; + /** + * @generated from field: float height = 5; + */ + height = 0; + /** + * Cropped media after the bounding box is applied. + * + * @generated from field: exa.codeium_common_pb.Media cropped_media = 6; + */ + croppedMedia; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ArtifactImageSelection'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'cropped_image', kind: 'message', T: ImageData }, + { + no: 2, + name: 'x', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 3, + name: 'y', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 4, + name: 'width', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 5, + name: 'height', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { no: 6, name: 'cropped_media', kind: 'message', T: Media }, + ]); + static fromBinary(bytes, options) { + return new _ArtifactImageSelection().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ArtifactImageSelection().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ArtifactImageSelection().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ArtifactImageSelection, a, b); + } +}; +var ArtifactSelection = class _ArtifactSelection extends Message { + /** + * @generated from oneof exa.codeium_common_pb.ArtifactSelection.selection + */ + selection = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ArtifactSelection'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text_selection', + kind: 'message', + T: TextSelection, + oneof: 'selection', + }, + { + no: 2, + name: 'image_selection', + kind: 'message', + T: ArtifactImageSelection, + oneof: 'selection', + }, + ]); + static fromBinary(bytes, options) { + return new _ArtifactSelection().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ArtifactSelection().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ArtifactSelection().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ArtifactSelection, a, b); + } +}; +var ArtifactSelectionTarget = class _ArtifactSelectionTarget extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.ArtifactSelection selections = 1; + */ + selections = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ArtifactSelectionTarget'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'selections', + kind: 'message', + T: ArtifactSelection, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ArtifactSelectionTarget().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ArtifactSelectionTarget().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ArtifactSelectionTarget().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ArtifactSelectionTarget, a, b); + } +}; +var ArtifactComment = class _ArtifactComment extends Message { + /** + * @generated from field: string artifact_uri = 1; + */ + artifactUri = ''; + /** + * Scope of the comment. + * + * @generated from oneof exa.codeium_common_pb.ArtifactComment.scope + */ + scope = { case: void 0 }; + /** + * @generated from field: string comment = 4; + */ + comment = ''; + /** + * This reflects whether the user has approved or requested changes on + * the artifact. This is only populated if the scope is full_file. + * + * @generated from field: exa.codeium_common_pb.ArtifactApprovalStatus approval_status = 7 [deprecated = true]; + * @deprecated + */ + approvalStatus = ArtifactApprovalStatus.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ArtifactComment'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'artifact_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'full_file', + kind: 'message', + T: ArtifactFullFileTarget, + oneof: 'scope', + }, + { + no: 6, + name: 'selections', + kind: 'message', + T: ArtifactSelectionTarget, + oneof: 'scope', + }, + { + no: 4, + name: 'comment', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'approval_status', + kind: 'enum', + T: proto3.getEnumType(ArtifactApprovalStatus), + }, + ]); + static fromBinary(bytes, options) { + return new _ArtifactComment().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ArtifactComment().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ArtifactComment().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ArtifactComment, a, b); + } +}; +var ArtifactMetadata = class _ArtifactMetadata extends Message { + /** + * @generated from field: exa.codeium_common_pb.ArtifactType artifact_type = 1; + */ + artifactType = ArtifactType.UNSPECIFIED; + /** + * Short summary of the artifact, used to display UI summaries + * when review is requested. + * + * @generated from field: string summary = 2; + */ + summary = ''; + /** + * @generated from field: google.protobuf.Timestamp created_at = 3; + */ + createdAt; + /** + * @generated from field: google.protobuf.Timestamp updated_at = 4; + */ + updatedAt; + /** + * @generated from field: int64 version = 5; + */ + version = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ArtifactMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'artifact_type', + kind: 'enum', + T: proto3.getEnumType(ArtifactType), + }, + { + no: 2, + name: 'summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'created_at', kind: 'message', T: Timestamp }, + { no: 4, name: 'updated_at', kind: 'message', T: Timestamp }, + { + no: 5, + name: 'version', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ArtifactMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ArtifactMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ArtifactMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ArtifactMetadata, a, b); + } +}; +var DiffCommentInfo = class _DiffCommentInfo extends Message { + /** + * @generated from field: optional exa.codeium_common_pb.TextSelection original_selection = 1; + */ + originalSelection; + /** + * @generated from field: optional exa.codeium_common_pb.TextSelection modified_selection = 2; + */ + modifiedSelection; + /** + * @generated from field: string comment = 3; + */ + comment = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.DiffCommentInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'original_selection', + kind: 'message', + T: TextSelection, + opt: true, + }, + { + no: 2, + name: 'modified_selection', + kind: 'message', + T: TextSelection, + opt: true, + }, + { + no: 3, + name: 'comment', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _DiffCommentInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DiffCommentInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DiffCommentInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DiffCommentInfo, a, b); + } +}; +var FileDiffComment = class _FileDiffComment extends Message { + /** + * @generated from field: string file_uri = 1; + */ + fileUri = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.DiffCommentInfo diff_comment_infos = 3; + */ + diffCommentInfos = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.FileDiffComment'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'file_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'diff_comment_infos', + kind: 'message', + T: DiffCommentInfo, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _FileDiffComment().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileDiffComment().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileDiffComment().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileDiffComment, a, b); + } +}; +var FileCommentInfo = class _FileCommentInfo extends Message { + /** + * @generated from field: string comment = 1; + */ + comment = ''; + /** + * @generated from field: exa.codeium_common_pb.TextSelection selection = 2; + */ + selection; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.FileCommentInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'comment', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'selection', kind: 'message', T: TextSelection }, + ]); + static fromBinary(bytes, options) { + return new _FileCommentInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileCommentInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileCommentInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileCommentInfo, a, b); + } +}; +var FileComment = class _FileComment extends Message { + /** + * @generated from field: string file_uri = 1; + */ + fileUri = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.FileCommentInfo file_comment_infos = 2; + */ + fileCommentInfos = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.FileComment'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'file_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'file_comment_infos', + kind: 'message', + T: FileCommentInfo, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _FileComment().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileComment().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileComment().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileComment, a, b); + } +}; +var OnlineMetricsConfig = class _OnlineMetricsConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.UserStepJudgeConfig user_step_judge_config = 1; + */ + userStepJudgeConfig; + /** + * @generated from field: exa.codeium_common_pb.PlanningModeJudgeConfig planning_mode_judge_config = 2; + */ + planningModeJudgeConfig; + /** + * @generated from field: exa.codeium_common_pb.PromptSectionJudgeConfig prompt_section_judge_config = 3; + */ + promptSectionJudgeConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.OnlineMetricsConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'user_step_judge_config', + kind: 'message', + T: UserStepJudgeConfig, + }, + { + no: 2, + name: 'planning_mode_judge_config', + kind: 'message', + T: PlanningModeJudgeConfig, + }, + { + no: 3, + name: 'prompt_section_judge_config', + kind: 'message', + T: PromptSectionJudgeConfig, + }, + ]); + static fromBinary(bytes, options) { + return new _OnlineMetricsConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _OnlineMetricsConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _OnlineMetricsConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_OnlineMetricsConfig, a, b); + } +}; +var MetricsSamplingConfig = class _MetricsSamplingConfig extends Message { + /** + * The sampling strategy to use + * + * @generated from oneof exa.codeium_common_pb.MetricsSamplingConfig.sampling_strategy + */ + samplingStrategy = { case: void 0 }; + /** + * @generated from field: optional int64 random_seed = 3; + */ + randomSeed; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.MetricsSamplingConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uniform', + kind: 'message', + T: SamplingStrategyUniform, + oneof: 'sampling_strategy', + }, + { + no: 2, + name: 'generator_metadata_aware', + kind: 'message', + T: SamplingStrategyGeneratorMetadataAware, + oneof: 'sampling_strategy', + }, + { no: 3, name: 'random_seed', kind: 'scalar', T: 3, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _MetricsSamplingConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MetricsSamplingConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MetricsSamplingConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MetricsSamplingConfig, a, b); + } +}; +var SamplingStrategyUniform = class _SamplingStrategyUniform extends Message { + /** + * Sampling rate must be between 0.0 and 1.0 + * + * @generated from field: float sampling_rate = 1; + */ + samplingRate = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.SamplingStrategyUniform'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'sampling_rate', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + ]); + static fromBinary(bytes, options) { + return new _SamplingStrategyUniform().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SamplingStrategyUniform().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SamplingStrategyUniform().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SamplingStrategyUniform, a, b); + } +}; +var SamplingStrategyGeneratorMetadataAware = class _SamplingStrategyGeneratorMetadataAware extends Message { + /** + * Target rate if the generator metadata index is within the range + * [start_generator_metadata_index, end_generator_metadata_index] + * + * @generated from field: float target_sampling_rate = 1; + */ + targetSamplingRate = 0; + /** + * Baseline rate if the generator metadata index is outside the range + * [start_generator_metadata_index, end_generator_metadata_index] + * + * @generated from field: float baseline_sampling_rate = 2; + */ + baselineSamplingRate = 0; + /** + * Start of selected range (inclusive) + * + * @generated from field: int32 start_generator_metadata_index = 3; + */ + startGeneratorMetadataIndex = 0; + /** + * End of selected range (inclusive) + * + * @generated from field: int32 end_generator_metadata_index = 4; + */ + endGeneratorMetadataIndex = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.codeium_common_pb.SamplingStrategyGeneratorMetadataAware'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'target_sampling_rate', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 2, + name: 'baseline_sampling_rate', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 3, + name: 'start_generator_metadata_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'end_generator_metadata_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _SamplingStrategyGeneratorMetadataAware().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _SamplingStrategyGeneratorMetadataAware().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _SamplingStrategyGeneratorMetadataAware().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_SamplingStrategyGeneratorMetadataAware, a, b); + } +}; +var PromptSectionJudgeConfig = class _PromptSectionJudgeConfig extends Message { + /** + * @generated from field: bool enabled = 1; + */ + enabled = false; + /** + * @generated from field: optional exa.codeium_common_pb.MetricsSamplingConfig sampling_config = 2; + */ + samplingConfig; + /** + * @generated from field: exa.codeium_common_pb.Model judge_model = 3; + */ + judgeModel = Model.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PromptSectionJudgeConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'sampling_config', + kind: 'message', + T: MetricsSamplingConfig, + opt: true, + }, + { no: 3, name: 'judge_model', kind: 'enum', T: proto3.getEnumType(Model) }, + ]); + static fromBinary(bytes, options) { + return new _PromptSectionJudgeConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptSectionJudgeConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptSectionJudgeConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptSectionJudgeConfig, a, b); + } +}; +var UserStepJudgeConfig = class _UserStepJudgeConfig extends Message { + /** + * @generated from field: bool enabled = 1; + */ + enabled = false; + /** + * @generated from field: optional exa.codeium_common_pb.MetricsSamplingConfig sampling_config = 2; + */ + samplingConfig; + /** + * @generated from field: exa.codeium_common_pb.Model judge_model = 3; + */ + judgeModel = Model.UNSPECIFIED; + /** + * @generated from field: uint32 max_tokens = 4; + */ + maxTokens = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.UserStepJudgeConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'sampling_config', + kind: 'message', + T: MetricsSamplingConfig, + opt: true, + }, + { no: 3, name: 'judge_model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 4, + name: 'max_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserStepJudgeConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserStepJudgeConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserStepJudgeConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserStepJudgeConfig, a, b); + } +}; +var PlanningModeJudgeConfig = class _PlanningModeJudgeConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * @generated from field: optional exa.codeium_common_pb.MetricsSamplingConfig sampling_config = 2; + */ + samplingConfig; + /** + * @generated from field: exa.codeium_common_pb.Model judge_model = 3; + */ + judgeModel = Model.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.PlanningModeJudgeConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'sampling_config', + kind: 'message', + T: MetricsSamplingConfig, + opt: true, + }, + { no: 3, name: 'judge_model', kind: 'enum', T: proto3.getEnumType(Model) }, + ]); + static fromBinary(bytes, options) { + return new _PlanningModeJudgeConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlanningModeJudgeConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlanningModeJudgeConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlanningModeJudgeConfig, a, b); + } +}; +var Point2 = class _Point2 extends Message { + /** + * @generated from field: int32 x = 1; + */ + x = 0; + /** + * @generated from field: int32 y = 2; + */ + y = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Point2'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'x', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'y', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _Point2().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Point2().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Point2().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Point2, a, b); + } +}; +var JetskiTelemetryExtension = class _JetskiTelemetryExtension extends Message { + /** + * @generated from field: string ide_name = 16; + */ + ideName = ''; + /** + * @generated from field: string ide_version = 17; + */ + ideVersion = ''; + /** + * @generated from field: string os = 18; + */ + os = ''; + /** + * @generated from field: string arch = 19; + */ + arch = ''; + /** + * @generated from field: string user_tier_id = 22; + */ + userTierId = ''; + /** + * @generated from field: repeated string user_tags = 23; + */ + userTags = []; + /** + * @generated from field: bool is_redacted = 24; + */ + isRedacted = false; + /** + * @generated from oneof exa.codeium_common_pb.JetskiTelemetryExtension.payload + */ + payload = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.JetskiTelemetryExtension'; + static fields = proto3.util.newFieldList(() => [ + { + no: 16, + name: 'ide_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 17, + name: 'ide_version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 18, + name: 'os', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 19, + name: 'arch', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 22, + name: 'user_tier_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 23, name: 'user_tags', kind: 'scalar', T: 9, repeated: true }, + { + no: 24, + name: 'is_redacted', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'analytics_event_metadata', + kind: 'message', + T: AnalyticsEventMetadata, + oneof: 'payload', + }, + { + no: 15, + name: 'error_trace_metadata', + kind: 'message', + T: ErrorTraceMetadata, + oneof: 'payload', + }, + { + no: 26, + name: 'observability_data', + kind: 'message', + T: ObservabilityData, + oneof: 'payload', + }, + ]); + static fromBinary(bytes, options) { + return new _JetskiTelemetryExtension().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _JetskiTelemetryExtension().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _JetskiTelemetryExtension().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_JetskiTelemetryExtension, a, b); + } +}; +var ExtraMetadata = class _ExtraMetadata extends Message { + /** + * @generated from field: string key = 1; + */ + key = ''; + /** + * @generated from field: string value = 2; + */ + value = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ExtraMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'value', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ExtraMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ExtraMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ExtraMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ExtraMetadata, a, b); + } +}; +var Experiment = class _Experiment extends Message { + /** + * @generated from field: string key = 1; + */ + key = ''; + /** + * @generated from field: bool enabled = 2; + */ + enabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.Experiment'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _Experiment().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Experiment().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Experiment().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Experiment, a, b); + } +}; +var AnalyticsEventMetadata = class _AnalyticsEventMetadata extends Message { + /** + * The type of the event. + * + * @generated from field: string event_type = 1; + */ + eventType = ''; + /** + * Additional metadata associated with the event. + * + * @generated from field: repeated exa.codeium_common_pb.ExtraMetadata extra = 2; + */ + extra = []; + /** + * Experiments active at the time of the event. + * + * @generated from field: repeated exa.codeium_common_pb.Experiment experiments = 3; + */ + experiments = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.AnalyticsEventMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'event_type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'extra', kind: 'message', T: ExtraMetadata, repeated: true }, + { + no: 3, + name: 'experiments', + kind: 'message', + T: Experiment, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _AnalyticsEventMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AnalyticsEventMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AnalyticsEventMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AnalyticsEventMetadata, a, b); + } +}; +var ErrorTraceMetadata = class _ErrorTraceMetadata extends Message { + /** + * @generated from field: exa.codeium_common_pb.ErrorTrace error_trace = 1; + */ + errorTrace; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ErrorTraceMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'error_trace', kind: 'message', T: ErrorTrace }, + ]); + static fromBinary(bytes, options) { + return new _ErrorTraceMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ErrorTraceMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ErrorTraceMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ErrorTraceMetadata, a, b); + } +}; +var ObservabilityData = class _ObservabilityData extends Message { + /** + * @generated from field: string type = 1; + */ + type = ''; + /** + * Data that is safe to retain without redaction. + * + * @generated from field: repeated exa.codeium_common_pb.ExtraMetadata non_sensitive_data = 2; + */ + nonSensitiveData = []; + /** + * Data that may contain sensitive information and should be redacted in + * certain contexts. + * + * @generated from field: repeated exa.codeium_common_pb.ExtraMetadata sensitive_data = 3; + */ + sensitiveData = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ObservabilityData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'non_sensitive_data', + kind: 'message', + T: ExtraMetadata, + repeated: true, + }, + { + no: 3, + name: 'sensitive_data', + kind: 'message', + T: ExtraMetadata, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ObservabilityData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ObservabilityData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ObservabilityData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ObservabilityData, a, b); + } +}; +var LogEvent = class _LogEvent extends Message { + /** + * @generated from field: int64 event_time_ms = 1; + */ + eventTimeMs = protoInt64.zero; + /** + * @generated from field: bytes source_extension = 6; + */ + sourceExtension = new Uint8Array(0); + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.LogEvent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'event_time_ms', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 6, + name: 'source_extension', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + ]); + static fromBinary(bytes, options) { + return new _LogEvent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LogEvent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LogEvent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LogEvent, a, b); + } +}; +var ClientInfo = class _ClientInfo extends Message { + /** + * We use int to avoid leaking the real enum + * + * @generated from field: int32 client_type = 1; + */ + clientType = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.ClientInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'client_type', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ClientInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClientInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClientInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ClientInfo, a, b); + } +}; +var LogRequest = class _LogRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.ClientInfo client_info = 1; + */ + clientInfo; + /** + * We use int to avoid leaking the real enum + * + * @generated from field: int32 log_source = 2; + */ + logSource = 0; + /** + * @generated from field: repeated exa.codeium_common_pb.LogEvent log_events = 3; + */ + logEvents = []; + /** + * @generated from field: int64 request_time_ms = 4; + */ + requestTimeMs = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.LogRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'client_info', kind: 'message', T: ClientInfo }, + { + no: 2, + name: 'log_source', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 3, name: 'log_events', kind: 'message', T: LogEvent, repeated: true }, + { + no: 4, + name: 'request_time_ms', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _LogRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LogRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LogRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LogRequest, a, b); + } +}; +var LogResponse = class _LogResponse extends Message { + /** + * @generated from field: int64 next_request_wait_millis = 1; + */ + nextRequestWaitMillis = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.codeium_common_pb.LogResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'next_request_wait_millis', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _LogResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LogResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LogResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LogResponse, a, b); + } +}; + +// exa/proto_ts/dist/exa/diff_action_pb/diff_action_pb.js +var UnifiedDiffLineType; +(function (UnifiedDiffLineType2) { + UnifiedDiffLineType2[(UnifiedDiffLineType2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + UnifiedDiffLineType2[(UnifiedDiffLineType2['INSERT'] = 1)] = 'INSERT'; + UnifiedDiffLineType2[(UnifiedDiffLineType2['DELETE'] = 2)] = 'DELETE'; + UnifiedDiffLineType2[(UnifiedDiffLineType2['UNCHANGED'] = 3)] = 'UNCHANGED'; +})(UnifiedDiffLineType || (UnifiedDiffLineType = {})); +proto3.util.setEnumType( + UnifiedDiffLineType, + 'exa.diff_action_pb.UnifiedDiffLineType', + [ + { no: 0, name: 'UNIFIED_DIFF_LINE_TYPE_UNSPECIFIED' }, + { no: 1, name: 'UNIFIED_DIFF_LINE_TYPE_INSERT' }, + { no: 2, name: 'UNIFIED_DIFF_LINE_TYPE_DELETE' }, + { no: 3, name: 'UNIFIED_DIFF_LINE_TYPE_UNCHANGED' }, + ], +); +var DiffChangeType; +(function (DiffChangeType2) { + DiffChangeType2[(DiffChangeType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + DiffChangeType2[(DiffChangeType2['INSERT'] = 1)] = 'INSERT'; + DiffChangeType2[(DiffChangeType2['DELETE'] = 2)] = 'DELETE'; + DiffChangeType2[(DiffChangeType2['UNCHANGED'] = 3)] = 'UNCHANGED'; +})(DiffChangeType || (DiffChangeType = {})); +proto3.util.setEnumType(DiffChangeType, 'exa.diff_action_pb.DiffChangeType', [ { no: 0, name: 'DIFF_CHANGE_TYPE_UNSPECIFIED' }, { no: 1, name: 'DIFF_CHANGE_TYPE_INSERT' }, { no: 2, name: 'DIFF_CHANGE_TYPE_DELETE' }, { no: 3, name: 'DIFF_CHANGE_TYPE_UNCHANGED' }, ]); -var Tu; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.UNIFIED = 1)] = 'UNIFIED'), - (e[(e.CHARACTER = 2)] = 'CHARACTER'), - (e[(e.COMBO = 3)] = 'COMBO'), - (e[(e.TMP_SUPERCOMPLETE = 4)] = 'TMP_SUPERCOMPLETE'), - (e[(e.TMP_TAB_JUMP = 5)] = 'TMP_TAB_JUMP')); -})(Tu || (Tu = {})); -a.util.setEnumType(Tu, 'exa.diff_action_pb.DiffType', [ +var DiffType; +(function (DiffType2) { + DiffType2[(DiffType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + DiffType2[(DiffType2['UNIFIED'] = 1)] = 'UNIFIED'; + DiffType2[(DiffType2['CHARACTER'] = 2)] = 'CHARACTER'; + DiffType2[(DiffType2['COMBO'] = 3)] = 'COMBO'; + DiffType2[(DiffType2['TMP_SUPERCOMPLETE'] = 4)] = 'TMP_SUPERCOMPLETE'; + DiffType2[(DiffType2['TMP_TAB_JUMP'] = 5)] = 'TMP_TAB_JUMP'; +})(DiffType || (DiffType = {})); +proto3.util.setEnumType(DiffType, 'exa.diff_action_pb.DiffType', [ { no: 0, name: 'DIFF_TYPE_UNSPECIFIED' }, { no: 1, name: 'DIFF_TYPE_UNIFIED' }, { no: 2, name: 'DIFF_TYPE_CHARACTER' }, @@ -14524,242 +28310,392 @@ a.util.setEnumType(Tu, 'exa.diff_action_pb.DiffType', [ { no: 4, name: 'DIFF_TYPE_TMP_SUPERCOMPLETE' }, { no: 5, name: 'DIFF_TYPE_TMP_TAB_JUMP' }, ]); -var me = class e extends r { - lines = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.UnifiedDiff'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'lines', kind: 'message', T: fu, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fu = class e extends r { - text = ''; - type = Vt.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.UnifiedDiff.UnifiedDiffLine'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'type', kind: 'enum', T: a.getEnumType(Vt) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - an = class e extends r { - startLine = 0; - endLine = 0; - unifiedDiff; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.DiffBlock'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'start_line', kind: 'scalar', T: 5 }, - { no: 2, name: 'end_line', kind: 'scalar', T: 5 }, - { no: 3, name: 'unified_diff', kind: 'message', T: me }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Nu = class e extends r { - text = ''; - type = Bn.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.CharacterDiffChange'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'type', kind: 'enum', T: a.getEnumType(Bn) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ns = class e extends r { - changes = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.CharacterDiff'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'changes', kind: 'message', T: Nu, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Su = class e extends r { - text = ''; - type = Bn.UNSPECIFIED; - characterDiff; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.ComboDiffLine'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'type', kind: 'enum', T: a.getEnumType(Bn) }, - { no: 3, name: 'character_diff', kind: 'message', T: ns }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Iu = class e extends r { - lines = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.ComboDiff'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'lines', kind: 'message', T: Su, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - uN = class e extends r { - unifiedDiff; - characterDiff; - comboDiff; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.DiffSet'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'unified_diff', kind: 'message', T: me }, - { no: 2, name: 'character_diff', kind: 'message', T: ns }, - { no: 3, name: 'combo_diff', kind: 'message', T: Iu }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - es = class e extends r { - diffs = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.diff_action_pb.DiffList'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'diffs', kind: 'message', T: an, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var pu; -(function (e) { - ((e[(e.FEEDBACK_TYPE_UNSPECIFIED = 0)] = 'FEEDBACK_TYPE_UNSPECIFIED'), - (e[(e.FEEDBACK_TYPE_ACCEPT = 1)] = 'FEEDBACK_TYPE_ACCEPT'), - (e[(e.FEEDBACK_TYPE_REJECT = 2)] = 'FEEDBACK_TYPE_REJECT'), - (e[(e.FEEDBACK_TYPE_COPIED = 3)] = 'FEEDBACK_TYPE_COPIED'), - (e[(e.FEEDBACK_TYPE_ACCEPT_DIFF = 4)] = 'FEEDBACK_TYPE_ACCEPT_DIFF'), - (e[(e.FEEDBACK_TYPE_REJECT_DIFF = 5)] = 'FEEDBACK_TYPE_REJECT_DIFF'), - (e[(e.FEEDBACK_TYPE_APPLY_DIFF = 6)] = 'FEEDBACK_TYPE_APPLY_DIFF'), - (e[(e.FEEDBACK_TYPE_INSERT_AT_CURSOR = 7)] = - 'FEEDBACK_TYPE_INSERT_AT_CURSOR')); -})(pu || (pu = {})); -a.util.setEnumType(pu, 'exa.chat_pb.ChatFeedbackType', [ +var UnifiedDiff = class _UnifiedDiff extends Message { + /** + * @generated from field: repeated exa.diff_action_pb.UnifiedDiff.UnifiedDiffLine lines = 3; + */ + lines = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.UnifiedDiff'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'lines', + kind: 'message', + T: UnifiedDiff_UnifiedDiffLine, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _UnifiedDiff().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UnifiedDiff().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UnifiedDiff().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UnifiedDiff, a, b); + } +}; +var UnifiedDiff_UnifiedDiffLine = class _UnifiedDiff_UnifiedDiffLine extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + /** + * @generated from field: exa.diff_action_pb.UnifiedDiffLineType type = 2; + */ + type = UnifiedDiffLineType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.UnifiedDiff.UnifiedDiffLine'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(UnifiedDiffLineType), + }, + ]); + static fromBinary(bytes, options) { + return new _UnifiedDiff_UnifiedDiffLine().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UnifiedDiff_UnifiedDiffLine().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UnifiedDiff_UnifiedDiffLine().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_UnifiedDiff_UnifiedDiffLine, a, b); + } +}; +var DiffBlock = class _DiffBlock extends Message { + /** + * 0-indexed (start & end). + * Negative value means append at the end. + * + * @generated from field: int32 start_line = 1; + */ + startLine = 0; + /** + * @generated from field: int32 end_line = 2; + */ + endLine = 0; + /** + * @generated from field: exa.diff_action_pb.UnifiedDiff unified_diff = 3; + */ + unifiedDiff; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.DiffBlock'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'end_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 3, name: 'unified_diff', kind: 'message', T: UnifiedDiff }, + ]); + static fromBinary(bytes, options) { + return new _DiffBlock().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DiffBlock().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DiffBlock().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DiffBlock, a, b); + } +}; +var CharacterDiffChange = class _CharacterDiffChange extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + /** + * @generated from field: exa.diff_action_pb.DiffChangeType type = 2; + */ + type = DiffChangeType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.CharacterDiffChange'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(DiffChangeType), + }, + ]); + static fromBinary(bytes, options) { + return new _CharacterDiffChange().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CharacterDiffChange().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CharacterDiffChange().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CharacterDiffChange, a, b); + } +}; +var CharacterDiff = class _CharacterDiff extends Message { + /** + * Must be in order from start to end of the diff. If you iterated through the + * array in order, you could construct the new version of the diff (accept + * command) by using the unchanged and insertions, and you could construct the + * old version (reject command) by using unchanged and deletions. + * + * @generated from field: repeated exa.diff_action_pb.CharacterDiffChange changes = 1; + */ + changes = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.CharacterDiff'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'changes', + kind: 'message', + T: CharacterDiffChange, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CharacterDiff().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CharacterDiff().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CharacterDiff().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CharacterDiff, a, b); + } +}; +var ComboDiffLine = class _ComboDiffLine extends Message { + /** + * The full line of text + * + * @generated from field: string text = 1; + */ + text = ''; + /** + * Whether the line contains insertions/deletions or is unchanged. + * + * @generated from field: exa.diff_action_pb.DiffChangeType type = 2; + */ + type = DiffChangeType.UNSPECIFIED; + /** + * The character by character diff of the line which stores the specific + * characters that are of the same change type as the type field. To further + * clarify, the only types of changes within this characterDiff should be + * unchanged and the type specfied in the type field because each line should + * only have one type of change (and unchanged for parts if its insert or + * delete). + * + * @generated from field: exa.diff_action_pb.CharacterDiff character_diff = 3; + */ + characterDiff; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.ComboDiffLine'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(DiffChangeType), + }, + { no: 3, name: 'character_diff', kind: 'message', T: CharacterDiff }, + ]); + static fromBinary(bytes, options) { + return new _ComboDiffLine().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ComboDiffLine().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ComboDiffLine().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ComboDiffLine, a, b); + } +}; +var ComboDiff = class _ComboDiff extends Message { + /** + * For modified lines, deletions always come before insertions. + * + * @generated from field: repeated exa.diff_action_pb.ComboDiffLine lines = 1; + */ + lines = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.ComboDiff'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'lines', kind: 'message', T: ComboDiffLine, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _ComboDiff().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ComboDiff().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ComboDiff().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ComboDiff, a, b); + } +}; +var DiffSet = class _DiffSet extends Message { + /** + * @generated from field: exa.diff_action_pb.UnifiedDiff unified_diff = 1; + */ + unifiedDiff; + /** + * @generated from field: exa.diff_action_pb.CharacterDiff character_diff = 2; + */ + characterDiff; + /** + * @generated from field: exa.diff_action_pb.ComboDiff combo_diff = 3; + */ + comboDiff; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.DiffSet'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'unified_diff', kind: 'message', T: UnifiedDiff }, + { no: 2, name: 'character_diff', kind: 'message', T: CharacterDiff }, + { no: 3, name: 'combo_diff', kind: 'message', T: ComboDiff }, + ]); + static fromBinary(bytes, options) { + return new _DiffSet().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DiffSet().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DiffSet().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DiffSet, a, b); + } +}; +var DiffList = class _DiffList extends Message { + /** + * @generated from field: repeated exa.diff_action_pb.DiffBlock diffs = 2; + */ + diffs = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.diff_action_pb.DiffList'; + static fields = proto3.util.newFieldList(() => [ + { no: 2, name: 'diffs', kind: 'message', T: DiffBlock, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _DiffList().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DiffList().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DiffList().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DiffList, a, b); + } +}; + +// exa/proto_ts/dist/exa/chat_pb/chat_pb.js +var ChatFeedbackType; +(function (ChatFeedbackType2) { + ChatFeedbackType2[(ChatFeedbackType2['FEEDBACK_TYPE_UNSPECIFIED'] = 0)] = + 'FEEDBACK_TYPE_UNSPECIFIED'; + ChatFeedbackType2[(ChatFeedbackType2['FEEDBACK_TYPE_ACCEPT'] = 1)] = + 'FEEDBACK_TYPE_ACCEPT'; + ChatFeedbackType2[(ChatFeedbackType2['FEEDBACK_TYPE_REJECT'] = 2)] = + 'FEEDBACK_TYPE_REJECT'; + ChatFeedbackType2[(ChatFeedbackType2['FEEDBACK_TYPE_COPIED'] = 3)] = + 'FEEDBACK_TYPE_COPIED'; + ChatFeedbackType2[(ChatFeedbackType2['FEEDBACK_TYPE_ACCEPT_DIFF'] = 4)] = + 'FEEDBACK_TYPE_ACCEPT_DIFF'; + ChatFeedbackType2[(ChatFeedbackType2['FEEDBACK_TYPE_REJECT_DIFF'] = 5)] = + 'FEEDBACK_TYPE_REJECT_DIFF'; + ChatFeedbackType2[(ChatFeedbackType2['FEEDBACK_TYPE_APPLY_DIFF'] = 6)] = + 'FEEDBACK_TYPE_APPLY_DIFF'; + ChatFeedbackType2[(ChatFeedbackType2['FEEDBACK_TYPE_INSERT_AT_CURSOR'] = 7)] = + 'FEEDBACK_TYPE_INSERT_AT_CURSOR'; +})(ChatFeedbackType || (ChatFeedbackType = {})); +proto3.util.setEnumType(ChatFeedbackType, 'exa.chat_pb.ChatFeedbackType', [ { no: 0, name: 'FEEDBACK_TYPE_UNSPECIFIED' }, { no: 1, name: 'FEEDBACK_TYPE_ACCEPT' }, { no: 2, name: 'FEEDBACK_TYPE_REJECT' }, @@ -14769,2024 +28705,3885 @@ a.util.setEnumType(pu, 'exa.chat_pb.ChatFeedbackType', [ { no: 6, name: 'FEEDBACK_TYPE_APPLY_DIFF' }, { no: 7, name: 'FEEDBACK_TYPE_INSERT_AT_CURSOR' }, ]); -var Xt; -(function (e) { - ((e[(e.CHAT_INTENT_UNSPECIFIED = 0)] = 'CHAT_INTENT_UNSPECIFIED'), - (e[(e.CHAT_INTENT_GENERIC = 1)] = 'CHAT_INTENT_GENERIC'), - (e[(e.CHAT_INTENT_CODE_BLOCK_REFACTOR = 6)] = - 'CHAT_INTENT_CODE_BLOCK_REFACTOR'), - (e[(e.CHAT_INTENT_GENERATE_CODE = 9)] = 'CHAT_INTENT_GENERATE_CODE'), - (e[(e.CHAT_INTENT_FAST_APPLY = 12)] = 'CHAT_INTENT_FAST_APPLY')); -})(Xt || (Xt = {})); -a.util.setEnumType(Xt, 'exa.chat_pb.ChatIntentType', [ +var ChatIntentType; +(function (ChatIntentType2) { + ChatIntentType2[(ChatIntentType2['CHAT_INTENT_UNSPECIFIED'] = 0)] = + 'CHAT_INTENT_UNSPECIFIED'; + ChatIntentType2[(ChatIntentType2['CHAT_INTENT_GENERIC'] = 1)] = + 'CHAT_INTENT_GENERIC'; + ChatIntentType2[(ChatIntentType2['CHAT_INTENT_CODE_BLOCK_REFACTOR'] = 6)] = + 'CHAT_INTENT_CODE_BLOCK_REFACTOR'; + ChatIntentType2[(ChatIntentType2['CHAT_INTENT_GENERATE_CODE'] = 9)] = + 'CHAT_INTENT_GENERATE_CODE'; + ChatIntentType2[(ChatIntentType2['CHAT_INTENT_FAST_APPLY'] = 12)] = + 'CHAT_INTENT_FAST_APPLY'; +})(ChatIntentType || (ChatIntentType = {})); +proto3.util.setEnumType(ChatIntentType, 'exa.chat_pb.ChatIntentType', [ { no: 0, name: 'CHAT_INTENT_UNSPECIFIED' }, { no: 1, name: 'CHAT_INTENT_GENERIC' }, { no: 6, name: 'CHAT_INTENT_CODE_BLOCK_REFACTOR' }, { no: 9, name: 'CHAT_INTENT_GENERATE_CODE' }, { no: 12, name: 'CHAT_INTENT_FAST_APPLY' }, ]); -var Kt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.EPHEMERAL = 1)] = 'EPHEMERAL')); -})(Kt || (Kt = {})); -a.util.setEnumType(Kt, 'exa.chat_pb.CacheControlType', [ +var CacheControlType; +(function (CacheControlType2) { + CacheControlType2[(CacheControlType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CacheControlType2[(CacheControlType2['EPHEMERAL'] = 1)] = 'EPHEMERAL'; +})(CacheControlType || (CacheControlType = {})); +proto3.util.setEnumType(CacheControlType, 'exa.chat_pb.CacheControlType', [ { no: 0, name: 'CACHE_CONTROL_TYPE_UNSPECIFIED' }, { no: 1, name: 'CACHE_CONTROL_TYPE_EPHEMERAL' }, ]); -var ts = class e extends r { - rawSource = ''; - startLine = 0; - startCol = 0; - endLine = 0; - endCol = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.CodeBlockInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'raw_source', kind: 'scalar', T: 9 }, - { no: 2, name: 'start_line', kind: 'scalar', T: 5 }, - { no: 3, name: 'start_col', kind: 'scalar', T: 5 }, - { no: 4, name: 'end_line', kind: 'scalar', T: 5 }, - { no: 5, name: 'end_col', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ou = class e extends r { - responseStreamLatencyMs = o.zero; - refreshContextLatencyMs = o.zero; - shouldGetLocalContextForChatLatencyMs = o.zero; - shouldGetLocalContextForChat = !1; - computeChangeEventsLatencyMs = o.zero; - contextToChatPromptLatencyMs = o.zero; - numPromptTokens = 0; - numSystemPromptTokens = 0; - numInputTokens = o.zero; - startTimestamp; - endTimestamp; - activeDocumentAbsolutePath = ''; - lastActiveCodeContextItem; - numIndexedFiles = o.zero; - numIndexedCodeContextItems = o.zero; - model = f.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMetrics'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'response_stream_latency_ms', kind: 'scalar', T: 4 }, - { no: 2, name: 'refresh_context_latency_ms', kind: 'scalar', T: 4 }, - { - no: 3, - name: 'should_get_local_context_for_chat_latency_ms', - kind: 'scalar', - T: 4, - }, - { - no: 4, - name: 'should_get_local_context_for_chat', - kind: 'scalar', - T: 8, - }, - { no: 5, name: 'compute_change_events_latency_ms', kind: 'scalar', T: 4 }, - { - no: 6, - name: 'context_to_chat_prompt_latency_ms', - kind: 'scalar', - T: 4, - }, - { no: 7, name: 'num_prompt_tokens', kind: 'scalar', T: 5 }, - { no: 8, name: 'num_system_prompt_tokens', kind: 'scalar', T: 5 }, - { no: 16, name: 'num_input_tokens', kind: 'scalar', T: 4 }, - { no: 9, name: 'start_timestamp', kind: 'message', T: _ }, - { no: 10, name: 'end_timestamp', kind: 'message', T: _ }, - { no: 11, name: 'active_document_absolute_path', kind: 'scalar', T: 9 }, - { no: 12, name: 'last_active_code_context_item', kind: 'message', T: I }, - { no: 13, name: 'num_indexed_files', kind: 'scalar', T: 4 }, - { no: 14, name: 'num_indexed_code_context_items', kind: 'scalar', T: 4 }, - { no: 15, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Au = class e extends r { - text = ''; - items = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.IntentGeneric'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'items', kind: 'message', T: Tn, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Cu = class e extends r { - codeBlockInfo; - language = O.UNSPECIFIED; - filePathMigrateMeToUri = ''; - uri = ''; - refactorDescription = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.IntentCodeBlockRefactor'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'code_block_info', kind: 'message', T: ts }, - { no: 2, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 3, name: 'file_path_migrate_me_to_uri', kind: 'scalar', T: 9 }, - { no: 5, name: 'uri', kind: 'scalar', T: 9 }, - { no: 4, name: 'refactor_description', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ru = class e extends r { - instruction = ''; - language = O.UNSPECIFIED; - filePathMigrateMeToUri = ''; - uri = ''; - lineNumber = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.IntentGenerateCode'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'instruction', kind: 'scalar', T: 9 }, - { no: 2, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 3, name: 'file_path_migrate_me_to_uri', kind: 'scalar', T: 9 }, - { no: 5, name: 'uri', kind: 'scalar', T: 9 }, - { no: 4, name: 'line_number', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Lu = class e extends r { - diffOutline = ''; - language = O.UNSPECIFIED; - oldCode; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.IntentFastApply'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'diff_outline', kind: 'scalar', T: 9 }, - { no: 2, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 3, name: 'old_code', kind: 'message', T: ts }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Pu = class e extends r { - intent = { case: void 0 }; - numTokens = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageIntent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'generic', kind: 'message', T: Au, oneof: 'intent' }, - { - no: 6, - name: 'code_block_refactor', - kind: 'message', - T: Cu, - oneof: 'intent', - }, - { no: 9, name: 'generate_code', kind: 'message', T: Ru, oneof: 'intent' }, - { no: 13, name: 'fast_apply', kind: 'message', T: Lu, oneof: 'intent' }, - { no: 12, name: 'num_tokens', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Du = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageActionSearch'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ku = class e extends r { - filePathMigrateMeToUri = ''; - uri = ''; - diff; - language = O.UNSPECIFIED; - textPre = ''; - textPost = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageActionEdit'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'file_path_migrate_me_to_uri', kind: 'scalar', T: 9 }, - { no: 6, name: 'uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'diff', kind: 'message', T: an }, - { no: 3, name: 'language', kind: 'enum', T: a.getEnumType(O) }, - { no: 4, name: 'text_pre', kind: 'scalar', T: 9 }, - { no: 5, name: 'text_post', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gu = class e extends r { - text = ''; - displayText = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageActionGeneric'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'display_text', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wu = class e extends r { - isLoading = !1; - isRelevant = !1; - querySuggestions = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageStatusContextRelevancy'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'is_loading', kind: 'scalar', T: 8 }, - { no: 2, name: 'is_relevant', kind: 'scalar', T: 8 }, - { no: 3, name: 'query_suggestions', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ju = class e extends r { - status = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageStatus'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'context_relevancy', - kind: 'message', - T: wu, - oneof: 'status', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xu = class e extends r { - text = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageError'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Uu = class e extends r { - action = { case: void 0 }; - numTokens = 0; - contextItems = []; - latestIntent = Xt.CHAT_INTENT_UNSPECIFIED; - generationStats; - knowledgeBaseItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageAction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'generic', kind: 'message', T: gu, oneof: 'action' }, - { no: 3, name: 'edit', kind: 'message', T: ku, oneof: 'action' }, - { no: 5, name: 'search', kind: 'message', T: Du, oneof: 'action' }, - { no: 2, name: 'num_tokens', kind: 'scalar', T: 13 }, - { no: 4, name: 'context_items', kind: 'message', T: I, repeated: !0 }, - { no: 6, name: 'latest_intent', kind: 'enum', T: a.getEnumType(Xt) }, - { no: 7, name: 'generation_stats', kind: 'message', T: Ou }, - { - no: 8, - name: 'knowledge_base_items', - kind: 'message', - T: K, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ce = class e extends r { - messageId = ''; - source = Y.UNSPECIFIED; - timestamp; - conversationId = ''; - content = { case: void 0 }; - inProgress = !1; - request; - redact = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessage'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'message_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'source', kind: 'enum', T: a.getEnumType(Y) }, - { no: 3, name: 'timestamp', kind: 'message', T: _ }, - { no: 4, name: 'conversation_id', kind: 'scalar', T: 9 }, - { no: 5, name: 'intent', kind: 'message', T: Pu, oneof: 'content' }, - { no: 6, name: 'action', kind: 'message', T: Uu, oneof: 'content' }, - { no: 7, name: 'error', kind: 'message', T: xu, oneof: 'content' }, - { no: 8, name: 'status', kind: 'message', T: Ju, oneof: 'content' }, - { no: 9, name: 'in_progress', kind: 'scalar', T: 8 }, - { no: 10, name: 'request', kind: 'message', T: Bu }, - { no: 11, name: 'redact', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - lN = class e extends r { - messages = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.Conversation'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'messages', kind: 'message', T: ce, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - v = class e extends r { - messageId = ''; - source = Y.UNSPECIFIED; - prompt = ''; - numTokens = 0; - safeForCodeTelemetry = !1; - toolCalls = []; - toolCallId = ''; - promptCacheOptions; - toolResultIsError = !1; - images = []; - media = []; - thinking = ''; - rawThinking = ''; - signature = ''; - thinkingSignature = new Uint8Array(0); - thinkingRedacted = !1; - promptAnnotationRanges = []; - stepIdx = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessagePrompt'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'message_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'source', kind: 'enum', T: a.getEnumType(Y) }, - { no: 3, name: 'prompt', kind: 'scalar', T: 9 }, - { no: 4, name: 'num_tokens', kind: 'scalar', T: 13 }, - { no: 5, name: 'safe_for_code_telemetry', kind: 'scalar', T: 8 }, - { no: 6, name: 'tool_calls', kind: 'message', T: x, repeated: !0 }, - { no: 7, name: 'tool_call_id', kind: 'scalar', T: 9 }, - { no: 8, name: 'prompt_cache_options', kind: 'message', T: vt }, - { no: 9, name: 'tool_result_is_error', kind: 'scalar', T: 8 }, - { no: 10, name: 'images', kind: 'message', T: P, repeated: !0 }, - { no: 19, name: 'media', kind: 'message', T: C, repeated: !0 }, - { no: 11, name: 'thinking', kind: 'scalar', T: 9 }, - { no: 17, name: 'raw_thinking', kind: 'scalar', T: 9 }, - { no: 12, name: 'signature', kind: 'scalar', T: 9 }, - { no: 20, name: 'thinking_signature', kind: 'scalar', T: 12 }, - { no: 13, name: 'thinking_redacted', kind: 'scalar', T: 8 }, - { - no: 14, - name: 'prompt_annotation_ranges', - kind: 'message', - T: wt, - repeated: !0, - }, - { no: 18, name: 'step_idx', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - EN = class e extends r { - prompts = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessagePrompts'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'prompts', kind: 'message', T: v, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vt = class e extends r { - type = Kt.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.PromptCacheOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'enum', T: a.getEnumType(Kt) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ue = class e extends r { - name = ''; - description = ''; - jsonSchemaString = ''; - strict = !1; - attributionFieldNames = []; - serverName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatToolDefinition'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'description', kind: 'scalar', T: 9 }, - { no: 3, name: 'json_schema_string', kind: 'scalar', T: 9 }, - { no: 4, name: 'strict', kind: 'scalar', T: 8 }, - { - no: 5, - name: 'attribution_field_names', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { no: 6, name: 'server_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zt = class e extends r { - choice = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatToolChoice'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'option_name', kind: 'scalar', T: 9, oneof: 'choice' }, - { no: 2, name: 'tool_name', kind: 'scalar', T: 9, oneof: 'choice' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _N = class e extends r { - query = ''; - allowedTypes = []; - includeRepoInfo = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMentionsSearchRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'allowed_types', - kind: 'enum', - T: a.getEnumType(W), - repeated: !0, - }, - { no: 3, name: 'include_repo_info', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dN = class e extends r { - cciItems = []; - repoInfos = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMentionsSearchResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cci_items', kind: 'message', T: I, repeated: !0 }, - { no: 2, name: 'repo_infos', kind: 'message', T: J, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bu = class e extends r { - metadata; - chatMessages = []; - activeDocument; - openDocumentUris = []; - workspaceUris = []; - activeSelection = ''; - contextInclusionType = vn.UNSPECIFIED; - chatModel = f.UNSPECIFIED; - systemPromptOverride = ''; - chatModelName = ''; - enterpriseChatModelConfig; - experimentConfig; - openDocumentPathsMigrateMeToUris = []; - workspacePathsMigrateMeToUris = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.GetChatMessageRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: w }, - { no: 3, name: 'chat_messages', kind: 'message', T: ce, repeated: !0 }, - { no: 5, name: 'active_document', kind: 'message', T: g }, - { - no: 12, - name: 'open_document_uris', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { no: 13, name: 'workspace_uris', kind: 'scalar', T: 9, repeated: !0 }, - { no: 11, name: 'active_selection', kind: 'scalar', T: 9 }, - { - no: 8, - name: 'context_inclusion_type', - kind: 'enum', - T: a.getEnumType(vn), - }, - { no: 9, name: 'chat_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 10, name: 'system_prompt_override', kind: 'scalar', T: 9 }, - { no: 14, name: 'chat_model_name', kind: 'scalar', T: 9 }, - { no: 15, name: 'enterprise_chat_model_config', kind: 'message', T: Fu }, - { no: 4, name: 'experiment_config', kind: 'message', T: Zn }, - { - no: 6, - name: 'open_document_paths_migrate_me_to_uris', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { - no: 7, - name: 'workspace_paths_migrate_me_to_uris', - kind: 'scalar', - T: 9, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fu = class e extends r { - maxOutputTokens = 0; - maxInputTokens = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.chat_pb.GetChatMessageRequest.EnterpriseExternalModelConfig'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'max_output_tokens', kind: 'scalar', T: 5 }, - { no: 3, name: 'max_input_tokens', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - TN = class e extends r { - experimentKey = B.UNSPECIFIED; - enabled = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatExperimentStatus'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'experiment_key', kind: 'enum', T: a.getEnumType(B) }, - { no: 2, name: 'enabled', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fN = class e extends r { - role = Y.UNSPECIFIED; - header = ''; - content = ''; - footer = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.FormattedChatMessage'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'role', kind: 'enum', T: a.getEnumType(Y) }, - { no: 2, name: 'header', kind: 'scalar', T: 9 }, - { no: 3, name: 'content', kind: 'scalar', T: 9 }, - { no: 4, name: 'footer', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mu = class e extends r { - indexMap = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.IndexMap'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'index_map', - kind: 'map', - K: 5, - V: { kind: 'message', T: yu }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yu = class e extends r { - indices = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.IndexMap.IndexList'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'indices', kind: 'scalar', T: 5, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - NN = class e extends r { - systemPrompt = ''; - tools = []; - toolChoice; - inputChatMessages = []; - outputChatMessages = []; - trajectoryToChatMessageIndexMap; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.ChatMessageRollout'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'system_prompt', kind: 'scalar', T: 9 }, - { no: 2, name: 'tools', kind: 'message', T: ue, repeated: !0 }, - { no: 3, name: 'tool_choice', kind: 'message', T: zt }, - { - no: 4, - name: 'input_chat_messages', - kind: 'message', - T: v, - repeated: !0, - }, - { - no: 5, - name: 'output_chat_messages', - kind: 'message', - T: v, - repeated: !0, - }, - { - no: 6, - name: 'trajectory_to_chat_message_index_map', - kind: 'message', - T: Mu, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - SN = class e extends r { - modelName = ''; - modelEnum = ''; - geminiExample; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.XboxInferenceToolRequest'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'model_name', kind: 'scalar', T: 9 }, - { no: 4, name: 'model_enum', kind: 'scalar', T: 9 }, - { no: 2, name: 'gemini_example', kind: 'message', T: hu }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hu = class e extends r { - messages = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.Example'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'messages', kind: 'message', T: Gu, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gu = class e extends r { - role = ''; - chunks = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.Message'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'role', kind: 'scalar', T: 9 }, - { no: 2, name: 'chunks', kind: 'message', T: bu, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bu = class e extends r { - value = { case: void 0 }; - trainable = jt.UNKNOWN_TRAINABLE; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.Chunk'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'text', kind: 'scalar', T: 9, oneof: 'value' }, - { no: 4, name: 'image', kind: 'message', T: qu, oneof: 'value' }, - { no: 10, name: 'trainable', kind: 'enum', T: a.getEnumType(jt) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jt; -(function (e) { - ((e[(e.UNKNOWN_TRAINABLE = 0)] = 'UNKNOWN_TRAINABLE'), - (e[(e.FORMATTER_DEFINED = 1)] = 'FORMATTER_DEFINED'), - (e[(e.ALWAYS = 2)] = 'ALWAYS'), - (e[(e.NEVER = 3)] = 'NEVER')); -})(jt || (jt = {})); -a.util.setEnumType(jt, 'exa.chat_pb.Chunk.Trainable', [ +var CodeBlockInfo = class _CodeBlockInfo extends Message { + /** + * @generated from field: string raw_source = 1; + */ + rawSource = ''; + /** + * 0-indexed (start & end). + * Start position of the code block. + * + * @generated from field: int32 start_line = 2; + */ + startLine = 0; + /** + * @generated from field: int32 start_col = 3; + */ + startCol = 0; + /** + * End position of the code block. + * + * @generated from field: int32 end_line = 4; + */ + endLine = 0; + /** + * Exclusive of (end_line, end_col). + * + * @generated from field: int32 end_col = 5; + */ + endCol = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.CodeBlockInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'raw_source', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'start_col', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'end_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'end_col', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodeBlockInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeBlockInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeBlockInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeBlockInfo, a, b); + } +}; +var ChatMetrics = class _ChatMetrics extends Message { + /** + * Duration of the actual chat response generation stream. + * + * @generated from field: uint64 response_stream_latency_ms = 1; + */ + responseStreamLatencyMs = protoInt64.zero; + /** + * Duration of the RefreshContext() call. + * + * @generated from field: uint64 refresh_context_latency_ms = 2; + */ + refreshContextLatencyMs = protoInt64.zero; + /** + * Breakdown of steps within RefreshContext(). + * + * @generated from field: uint64 should_get_local_context_for_chat_latency_ms = 3; + */ + shouldGetLocalContextForChatLatencyMs = protoInt64.zero; + /** + * @generated from field: bool should_get_local_context_for_chat = 4; + */ + shouldGetLocalContextForChat = false; + /** + * @generated from field: uint64 compute_change_events_latency_ms = 5; + */ + computeChangeEventsLatencyMs = protoInt64.zero; + /** + * Duration of the ContextToChatPrompt() call. + * + * @generated from field: uint64 context_to_chat_prompt_latency_ms = 6; + */ + contextToChatPromptLatencyMs = protoInt64.zero; + /** + * Number of tokens ultimately used in the prompt. + * + * @generated from field: int32 num_prompt_tokens = 7; + */ + numPromptTokens = 0; + /** + * @generated from field: int32 num_system_prompt_tokens = 8; + */ + numSystemPromptTokens = 0; + /** + * May not be exactly equal to prompt + system prompts. Since in some cases, + * we will use approximate tokenizers for the above two token counts. Whereas + * for model providers that support returning the exact input token count, we + * will override it with that value. + * + * @generated from field: uint64 num_input_tokens = 16; + */ + numInputTokens = protoInt64.zero; + /** + * Timestamp when the chat request hit the language server. + * + * @generated from field: google.protobuf.Timestamp start_timestamp = 9; + */ + startTimestamp; + /** + * End timestamp upon which the chat response was completely generated and + * sent back to the client. + * + * @generated from field: google.protobuf.Timestamp end_timestamp = 10; + */ + endTimestamp; + /** + * Absolute path of the active document when the chat request was made. + * + * @generated from field: string active_document_absolute_path = 11; + */ + activeDocumentAbsolutePath = ''; + /** + * The last code context item that was active when the chat request was made. + * + * @generated from field: exa.codeium_common_pb.CodeContextItem last_active_code_context_item = 12; + */ + lastActiveCodeContextItem; + /** + * Number of files that were in the index. + * + * @generated from field: uint64 num_indexed_files = 13; + */ + numIndexedFiles = protoInt64.zero; + /** + * Number of code context items in the index. + * + * @generated from field: uint64 num_indexed_code_context_items = 14; + */ + numIndexedCodeContextItems = protoInt64.zero; + /** + * The model used to generate the chat response. + * + * @generated from field: exa.codeium_common_pb.Model model = 15; + */ + model = Model.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMetrics'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'response_stream_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'refresh_context_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'should_get_local_context_for_chat_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 4, + name: 'should_get_local_context_for_chat', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'compute_change_events_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 6, + name: 'context_to_chat_prompt_latency_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 7, + name: 'num_prompt_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 8, + name: 'num_system_prompt_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 16, + name: 'num_input_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { no: 9, name: 'start_timestamp', kind: 'message', T: Timestamp }, + { no: 10, name: 'end_timestamp', kind: 'message', T: Timestamp }, + { + no: 11, + name: 'active_document_absolute_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'last_active_code_context_item', + kind: 'message', + T: CodeContextItem, + }, + { + no: 13, + name: 'num_indexed_files', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 14, + name: 'num_indexed_code_context_items', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { no: 15, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + ]); + static fromBinary(bytes, options) { + return new _ChatMetrics().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMetrics().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMetrics().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMetrics, a, b); + } +}; +var IntentGeneric = class _IntentGeneric extends Message { + /** + * TODO(matt): Deprecate text in favor of items. + * + * @generated from field: string text = 1; + */ + text = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.TextOrScopeItem items = 2; + */ + items = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.IntentGeneric'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'items', + kind: 'message', + T: TextOrScopeItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _IntentGeneric().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IntentGeneric().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IntentGeneric().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IntentGeneric, a, b); + } +}; +var IntentCodeBlockRefactor = class _IntentCodeBlockRefactor extends Message { + /** + * @generated from field: exa.chat_pb.CodeBlockInfo code_block_info = 1; + */ + codeBlockInfo; + /** + * @generated from field: exa.codeium_common_pb.Language language = 2; + */ + language = Language.UNSPECIFIED; + /** + * @generated from field: string file_path_migrate_me_to_uri = 3 [deprecated = true]; + * @deprecated + */ + filePathMigrateMeToUri = ''; + /** + * @generated from field: string uri = 5; + */ + uri = ''; + /** + * @generated from field: string refactor_description = 4; + */ + refactorDescription = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.IntentCodeBlockRefactor'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'code_block_info', kind: 'message', T: CodeBlockInfo }, + { no: 2, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 3, + name: 'file_path_migrate_me_to_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'refactor_description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IntentCodeBlockRefactor().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IntentCodeBlockRefactor().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IntentCodeBlockRefactor().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IntentCodeBlockRefactor, a, b); + } +}; +var IntentGenerateCode = class _IntentGenerateCode extends Message { + /** + * @generated from field: string instruction = 1; + */ + instruction = ''; + /** + * @generated from field: exa.codeium_common_pb.Language language = 2; + */ + language = Language.UNSPECIFIED; + /** + * @generated from field: string file_path_migrate_me_to_uri = 3 [deprecated = true]; + * @deprecated + */ + filePathMigrateMeToUri = ''; + /** + * @generated from field: string uri = 5; + */ + uri = ''; + /** + * Line to insert the generated code into. + * + * @generated from field: int32 line_number = 4; + */ + lineNumber = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.IntentGenerateCode'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'instruction', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 3, + name: 'file_path_migrate_me_to_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'line_number', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _IntentGenerateCode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IntentGenerateCode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IntentGenerateCode().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IntentGenerateCode, a, b); + } +}; +var IntentFastApply = class _IntentFastApply extends Message { + /** + * @generated from field: string diff_outline = 1; + */ + diffOutline = ''; + /** + * @generated from field: exa.codeium_common_pb.Language language = 2; + */ + language = Language.UNSPECIFIED; + /** + * @generated from field: exa.chat_pb.CodeBlockInfo old_code = 3; + */ + oldCode; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.IntentFastApply'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'diff_outline', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { no: 3, name: 'old_code', kind: 'message', T: CodeBlockInfo }, + ]); + static fromBinary(bytes, options) { + return new _IntentFastApply().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IntentFastApply().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IntentFastApply().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IntentFastApply, a, b); + } +}; +var ChatMessageIntent = class _ChatMessageIntent extends Message { + /** + * @generated from oneof exa.chat_pb.ChatMessageIntent.intent + */ + intent = { case: void 0 }; + /** + * The number of tokens in the intent prompt. This will only be populated + * after the language server has processed the intent message. + * + * @generated from field: uint32 num_tokens = 12; + */ + numTokens = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageIntent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'generic', + kind: 'message', + T: IntentGeneric, + oneof: 'intent', + }, + { + no: 6, + name: 'code_block_refactor', + kind: 'message', + T: IntentCodeBlockRefactor, + oneof: 'intent', + }, + { + no: 9, + name: 'generate_code', + kind: 'message', + T: IntentGenerateCode, + oneof: 'intent', + }, + { + no: 13, + name: 'fast_apply', + kind: 'message', + T: IntentFastApply, + oneof: 'intent', + }, + { + no: 12, + name: 'num_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessageIntent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageIntent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageIntent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageIntent, a, b); + } +}; +var ChatMessageActionSearch = class _ChatMessageActionSearch extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageActionSearch'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _ChatMessageActionSearch().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageActionSearch().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageActionSearch().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageActionSearch, a, b); + } +}; +var ChatMessageActionEdit = class _ChatMessageActionEdit extends Message { + /** + * Metadata to inform where the edit should be applied. + * + * @generated from field: string file_path_migrate_me_to_uri = 1 [deprecated = true]; + * @deprecated + */ + filePathMigrateMeToUri = ''; + /** + * @generated from field: string uri = 6; + */ + uri = ''; + /** + * The diff that should be applied on the file. + * + * @generated from field: exa.diff_action_pb.DiffBlock diff = 2; + */ + diff; + /** + * Additional metadata about the edit action. + * + * TODO: Deprecate this in favor of diff-level language. + * + * @generated from field: exa.codeium_common_pb.Language language = 3; + */ + language = Language.UNSPECIFIED; + /** + * Generic text to pass along with the edit (ie. an explanation). Text can be + * either before or after the diff. This primarily impacts rendering. + * + * @generated from field: string text_pre = 4; + */ + textPre = ''; + /** + * @generated from field: string text_post = 5; + */ + textPost = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageActionEdit'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'file_path_migrate_me_to_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'diff', kind: 'message', T: DiffBlock }, + { no: 3, name: 'language', kind: 'enum', T: proto3.getEnumType(Language) }, + { + no: 4, + name: 'text_pre', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'text_post', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessageActionEdit().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageActionEdit().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageActionEdit().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageActionEdit, a, b); + } +}; +var ChatMessageActionGeneric = class _ChatMessageActionGeneric extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + /** + * Markdown text to be displayed on the client (includes citations) + * + * @generated from field: string display_text = 2; + */ + displayText = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageActionGeneric'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'display_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessageActionGeneric().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageActionGeneric().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageActionGeneric().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageActionGeneric, a, b); + } +}; +var ChatMessageStatusContextRelevancy = class _ChatMessageStatusContextRelevancy extends Message { + /** + * @generated from field: bool is_loading = 1; + */ + isLoading = false; + /** + * @generated from field: bool is_relevant = 2; + */ + isRelevant = false; + /** + * @generated from field: repeated string query_suggestions = 3; + */ + querySuggestions = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageStatusContextRelevancy'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'is_loading', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'is_relevant', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 3, name: 'query_suggestions', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessageStatusContextRelevancy().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageStatusContextRelevancy().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageStatusContextRelevancy().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageStatusContextRelevancy, a, b); + } +}; +var ChatMessageStatus = class _ChatMessageStatus extends Message { + /** + * @generated from oneof exa.chat_pb.ChatMessageStatus.status + */ + status = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'context_relevancy', + kind: 'message', + T: ChatMessageStatusContextRelevancy, + oneof: 'status', + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessageStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageStatus, a, b); + } +}; +var ChatMessageError = class _ChatMessageError extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageError'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessageError().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageError().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageError().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageError, a, b); + } +}; +var ChatMessageAction = class _ChatMessageAction extends Message { + /** + * @generated from oneof exa.chat_pb.ChatMessageAction.action + */ + action = { case: void 0 }; + /** + * @generated from field: uint32 num_tokens = 2; + */ + numTokens = 0; + /** + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem context_items = 4; + */ + contextItems = []; + /** + * @generated from field: exa.chat_pb.ChatIntentType latest_intent = 6; + */ + latestIntent = ChatIntentType.CHAT_INTENT_UNSPECIFIED; + /** + * Metadata about the chat generation. + * + * @generated from field: exa.chat_pb.ChatMetrics generation_stats = 7; + */ + generationStats; + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseItemWithMetadata knowledge_base_items = 8; + */ + knowledgeBaseItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageAction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'generic', + kind: 'message', + T: ChatMessageActionGeneric, + oneof: 'action', + }, + { + no: 3, + name: 'edit', + kind: 'message', + T: ChatMessageActionEdit, + oneof: 'action', + }, + { + no: 5, + name: 'search', + kind: 'message', + T: ChatMessageActionSearch, + oneof: 'action', + }, + { + no: 2, + name: 'num_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'context_items', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { + no: 6, + name: 'latest_intent', + kind: 'enum', + T: proto3.getEnumType(ChatIntentType), + }, + { no: 7, name: 'generation_stats', kind: 'message', T: ChatMetrics }, + { + no: 8, + name: 'knowledge_base_items', + kind: 'message', + T: KnowledgeBaseItemWithMetadata, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessageAction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageAction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageAction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageAction, a, b); + } +}; +var ChatMessage = class _ChatMessage extends Message { + /** + * UID for each chat message. + * + * @generated from field: string message_id = 1; + */ + messageId = ''; + /** + * Where the message came from (ie. user, bot, system, etc.) + * + * @generated from field: exa.codeium_common_pb.ChatMessageSource source = 2; + */ + source = ChatMessageSource.UNSPECIFIED; + /** + * @generated from field: google.protobuf.Timestamp timestamp = 3; + */ + timestamp; + /** + * UID for the conversation the message came from. This indiciates + * the history that was sent to the server. + * + * @generated from field: string conversation_id = 4; + */ + conversationId = ''; + /** + * @generated from oneof exa.chat_pb.ChatMessage.content + */ + content = { case: void 0 }; + /** + * Whether or not the message is still being streamed out. + * + * @generated from field: bool in_progress = 9; + */ + inProgress = false; + /** + * Optional. Used for retrying when the chat produces an error. + * + * @generated from field: exa.chat_pb.GetChatMessageRequest request = 10; + */ + request; + /** + * Whether or not code blocks in the message should be redacted. + * + * @generated from field: bool redact = 11; + */ + redact = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessage'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'message_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'source', + kind: 'enum', + T: proto3.getEnumType(ChatMessageSource), + }, + { no: 3, name: 'timestamp', kind: 'message', T: Timestamp }, + { + no: 4, + name: 'conversation_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'intent', + kind: 'message', + T: ChatMessageIntent, + oneof: 'content', + }, + { + no: 6, + name: 'action', + kind: 'message', + T: ChatMessageAction, + oneof: 'content', + }, + { + no: 7, + name: 'error', + kind: 'message', + T: ChatMessageError, + oneof: 'content', + }, + { + no: 8, + name: 'status', + kind: 'message', + T: ChatMessageStatus, + oneof: 'content', + }, + { + no: 9, + name: 'in_progress', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 10, name: 'request', kind: 'message', T: GetChatMessageRequest }, + { + no: 11, + name: 'redact', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessage().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessage, a, b); + } +}; +var Conversation = class _Conversation extends Message { + /** + * @generated from field: repeated exa.chat_pb.ChatMessage messages = 1; + */ + messages = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.Conversation'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'messages', + kind: 'message', + T: ChatMessage, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _Conversation().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Conversation().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Conversation().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Conversation, a, b); + } +}; +var ChatMessagePrompt = class _ChatMessagePrompt extends Message { + /** + * @generated from field: string message_id = 1; + */ + messageId = ''; + /** + * @generated from field: exa.codeium_common_pb.ChatMessageSource source = 2; + */ + source = ChatMessageSource.UNSPECIFIED; + /** + * Constructed prompt (no metadata). + * + * @generated from field: string prompt = 3; + */ + prompt = ''; + /** + * @generated from field: uint32 num_tokens = 4; + */ + numTokens = 0; + /** + * @generated from field: bool safe_for_code_telemetry = 5; + */ + safeForCodeTelemetry = false; + /** + * Only applicable for CHAT_MESSAGE_SOURCE_SYSTEM and for OpenAI models. + * + * @generated from field: repeated exa.codeium_common_pb.ChatToolCall tool_calls = 6; + */ + toolCalls = []; + /** + * Only applicable for CHAT_MESSAGE_SOURCE_TOOL. + * + * @generated from field: string tool_call_id = 7; + */ + toolCallId = ''; + /** + * @generated from field: exa.chat_pb.PromptCacheOptions prompt_cache_options = 8; + */ + promptCacheOptions; + /** + * Only consumed by Anthropic. + * + * @generated from field: bool tool_result_is_error = 9; + */ + toolResultIsError = false; + /** + * Images are deprecated. Use media instead. + * + * @generated from field: repeated exa.codeium_common_pb.ImageData images = 10 [deprecated = true]; + * @deprecated + */ + images = []; + /** + * @generated from field: repeated exa.codeium_common_pb.Media media = 19; + */ + media = []; + /** + * Optional thinking text + * + * @generated from field: string thinking = 11; + */ + thinking = ''; + /** + * Deprecated: No need for this field anymore, just always circulate the + * thinking text and signature. + * + * @generated from field: string raw_thinking = 17 [deprecated = true]; + * @deprecated + */ + rawThinking = ''; + /** + * Signature of the thinking string. + * Deprecated. Use thinking_signature instead. + * + * @generated from field: string signature = 12 [deprecated = true]; + * @deprecated + */ + signature = ''; + /** + * @generated from field: bytes thinking_signature = 20; + */ + thinkingSignature = new Uint8Array(0); + /** + * Whether the thought is redacted. + * + * @generated from field: bool thinking_redacted = 13; + */ + thinkingRedacted = false; + /** + * Optional prompt annotated ranges used only for internal inference. + * Byte offsets are relative inside the prompt bytes. + * This is only for speculative copy right now. + * For prompt caching, we should use prompt_cache_options. + * + * @generated from field: repeated exa.codeium_common_pb.PromptAnnotationRange prompt_annotation_ranges = 14; + */ + promptAnnotationRanges = []; + /** + * @generated from field: int32 step_idx = 18; + */ + stepIdx = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessagePrompt'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'message_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'source', + kind: 'enum', + T: proto3.getEnumType(ChatMessageSource), + }, + { + no: 3, + name: 'prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'num_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'safe_for_code_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'tool_calls', + kind: 'message', + T: ChatToolCall, + repeated: true, + }, + { + no: 7, + name: 'tool_call_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'prompt_cache_options', + kind: 'message', + T: PromptCacheOptions, + }, + { + no: 9, + name: 'tool_result_is_error', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 10, name: 'images', kind: 'message', T: ImageData, repeated: true }, + { no: 19, name: 'media', kind: 'message', T: Media, repeated: true }, + { + no: 11, + name: 'thinking', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 17, + name: 'raw_thinking', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'signature', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 20, + name: 'thinking_signature', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { + no: 13, + name: 'thinking_redacted', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'prompt_annotation_ranges', + kind: 'message', + T: PromptAnnotationRange, + repeated: true, + }, + { + no: 18, + name: 'step_idx', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessagePrompt().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessagePrompt().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessagePrompt().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessagePrompt, a, b); + } +}; +var ChatMessagePrompts = class _ChatMessagePrompts extends Message { + /** + * @generated from field: repeated exa.chat_pb.ChatMessagePrompt prompts = 1; + */ + prompts = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessagePrompts'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'prompts', + kind: 'message', + T: ChatMessagePrompt, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessagePrompts().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessagePrompts().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessagePrompts().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessagePrompts, a, b); + } +}; +var PromptCacheOptions = class _PromptCacheOptions extends Message { + /** + * @generated from field: exa.chat_pb.CacheControlType type = 1; + */ + type = CacheControlType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.PromptCacheOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(CacheControlType), + }, + ]); + static fromBinary(bytes, options) { + return new _PromptCacheOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptCacheOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptCacheOptions().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptCacheOptions, a, b); + } +}; +var ChatToolDefinition = class _ChatToolDefinition extends Message { + /** + * @generated from field: string name = 1; + */ + name = ''; + /** + * @generated from field: string description = 2; + */ + description = ''; + /** + * Should be convertible into json.RawMessage and interpreted as JSON Schema + * object. + * + * @generated from field: string json_schema_string = 3; + */ + jsonSchemaString = ''; + /** + * Forces structured outputs. Only applicable to OpenAI models including and + * later than MODEL_CHAT_GPT_4O_2024_08_06 Note that this limits the supported + * types in the JSON schema: + * https://platform.openai.com/docs/guides/structured-outputs/supported-types + * + * @generated from field: bool strict = 4; + */ + strict = false; + /** + * Field names to check for attribution. If empty, then this tool does not + * need to be checked for attribution. These must exactly match the field + * names in the JSON schema, and must map to string fields. + * + * @generated from field: repeated string attribution_field_names = 5; + */ + attributionFieldNames = []; + /** + * Name of the server if this is a MCP tool. + * + * @generated from field: string server_name = 6; + */ + serverName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatToolDefinition'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'json_schema_string', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'strict', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'attribution_field_names', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 6, + name: 'server_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatToolDefinition().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatToolDefinition().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatToolDefinition().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatToolDefinition, a, b); + } +}; +var ChatToolChoice = class _ChatToolChoice extends Message { + /** + * @generated from oneof exa.chat_pb.ChatToolChoice.choice + */ + choice = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatToolChoice'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'option_name', kind: 'scalar', T: 9, oneof: 'choice' }, + { no: 2, name: 'tool_name', kind: 'scalar', T: 9, oneof: 'choice' }, + ]); + static fromBinary(bytes, options) { + return new _ChatToolChoice().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatToolChoice().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatToolChoice().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatToolChoice, a, b); + } +}; +var ChatMentionsSearchRequest = class _ChatMentionsSearchRequest extends Message { + /** + * @generated from field: string query = 1; + */ + query = ''; + /** + * Filters on the types of code context items to search over. + * + * @generated from field: repeated exa.codeium_common_pb.CodeContextType allowed_types = 2; + */ + allowedTypes = []; + /** + * Whether to include repo info in the search results. + * + * @generated from field: bool include_repo_info = 3; + */ + includeRepoInfo = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMentionsSearchRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'allowed_types', + kind: 'enum', + T: proto3.getEnumType(CodeContextType), + repeated: true, + }, + { + no: 3, + name: 'include_repo_info', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMentionsSearchRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMentionsSearchRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMentionsSearchRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMentionsSearchRequest, a, b); + } +}; +var ChatMentionsSearchResponse = class _ChatMentionsSearchResponse extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem cci_items = 1; + */ + cciItems = []; + /** + * @generated from field: repeated exa.codeium_common_pb.GitRepoInfo repo_infos = 2; + */ + repoInfos = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMentionsSearchResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cci_items', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { + no: 2, + name: 'repo_infos', + kind: 'message', + T: GitRepoInfo, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMentionsSearchResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMentionsSearchResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMentionsSearchResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ChatMentionsSearchResponse, a, b); + } +}; +var GetChatMessageRequest = class _GetChatMessageRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; + */ + metadata; + /** + * Chat messages in ascending order of timestamp. + * + * @generated from field: repeated exa.chat_pb.ChatMessage chat_messages = 3; + */ + chatMessages = []; + /** + * Context + * + * @generated from field: exa.codeium_common_pb.Document active_document = 5; + */ + activeDocument; + /** + * @generated from field: repeated string open_document_uris = 12; + */ + openDocumentUris = []; + /** + * @generated from field: repeated string workspace_uris = 13; + */ + workspaceUris = []; + /** + * Optional extra context + * + * @generated from field: string active_selection = 11; + */ + activeSelection = ''; + /** + * @generated from field: exa.codeium_common_pb.ContextInclusionType context_inclusion_type = 8; + */ + contextInclusionType = ContextInclusionType.UNSPECIFIED; + /** + * Desired model type to be used for the generation. + * + * @generated from field: exa.codeium_common_pb.Model chat_model = 9; + */ + chatModel = Model.UNSPECIFIED; + /** + * Override the system prompt, regardless of whether or not there is context. + * + * @generated from field: string system_prompt_override = 10; + */ + systemPromptOverride = ''; + /** + * @generated from field: string chat_model_name = 14; + */ + chatModelName = ''; + /** + * @generated from field: exa.chat_pb.GetChatMessageRequest.EnterpriseExternalModelConfig enterprise_chat_model_config = 15; + */ + enterpriseChatModelConfig; + /** + * @generated from field: exa.codeium_common_pb.ExperimentConfig experiment_config = 4 [deprecated = true]; + * @deprecated + */ + experimentConfig; + /** + * @generated from field: repeated string open_document_paths_migrate_me_to_uris = 6 [deprecated = true]; + * @deprecated + */ + openDocumentPathsMigrateMeToUris = []; + /** + * @generated from field: repeated string workspace_paths_migrate_me_to_uris = 7 [deprecated = true]; + * @deprecated + */ + workspacePathsMigrateMeToUris = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.GetChatMessageRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: Metadata }, + { + no: 3, + name: 'chat_messages', + kind: 'message', + T: ChatMessage, + repeated: true, + }, + { no: 5, name: 'active_document', kind: 'message', T: Document }, + { + no: 12, + name: 'open_document_uris', + kind: 'scalar', + T: 9, + repeated: true, + }, + { no: 13, name: 'workspace_uris', kind: 'scalar', T: 9, repeated: true }, + { + no: 11, + name: 'active_selection', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'context_inclusion_type', + kind: 'enum', + T: proto3.getEnumType(ContextInclusionType), + }, + { no: 9, name: 'chat_model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 10, + name: 'system_prompt_override', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 14, + name: 'chat_model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 15, + name: 'enterprise_chat_model_config', + kind: 'message', + T: GetChatMessageRequest_EnterpriseExternalModelConfig, + }, + { no: 4, name: 'experiment_config', kind: 'message', T: ExperimentConfig }, + { + no: 6, + name: 'open_document_paths_migrate_me_to_uris', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 7, + name: 'workspace_paths_migrate_me_to_uris', + kind: 'scalar', + T: 9, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetChatMessageRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetChatMessageRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetChatMessageRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetChatMessageRequest, a, b); + } +}; +var GetChatMessageRequest_EnterpriseExternalModelConfig = class _GetChatMessageRequest_EnterpriseExternalModelConfig extends Message { + /** + * @generated from field: int32 max_output_tokens = 2; + */ + maxOutputTokens = 0; + /** + * @generated from field: int32 max_input_tokens = 3; + */ + maxInputTokens = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.chat_pb.GetChatMessageRequest.EnterpriseExternalModelConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'max_output_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'max_input_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _GetChatMessageRequest_EnterpriseExternalModelConfig().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _GetChatMessageRequest_EnterpriseExternalModelConfig().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetChatMessageRequest_EnterpriseExternalModelConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _GetChatMessageRequest_EnterpriseExternalModelConfig, + a, + b, + ); + } +}; +var ChatExperimentStatus = class _ChatExperimentStatus extends Message { + /** + * @generated from field: exa.codeium_common_pb.ExperimentKey experiment_key = 1; + */ + experimentKey = ExperimentKey.UNSPECIFIED; + /** + * @generated from field: bool enabled = 2; + */ + enabled = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatExperimentStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'experiment_key', + kind: 'enum', + T: proto3.getEnumType(ExperimentKey), + }, + { + no: 2, + name: 'enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ChatExperimentStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatExperimentStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatExperimentStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatExperimentStatus, a, b); + } +}; +var FormattedChatMessage = class _FormattedChatMessage extends Message { + /** + * @generated from field: exa.codeium_common_pb.ChatMessageSource role = 1; + */ + role = ChatMessageSource.UNSPECIFIED; + /** + * @generated from field: string header = 2; + */ + header = ''; + /** + * @generated from field: string content = 3; + */ + content = ''; + /** + * @generated from field: string footer = 4; + */ + footer = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.FormattedChatMessage'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'role', + kind: 'enum', + T: proto3.getEnumType(ChatMessageSource), + }, + { + no: 2, + name: 'header', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'footer', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _FormattedChatMessage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FormattedChatMessage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FormattedChatMessage().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FormattedChatMessage, a, b); + } +}; +var IndexMap = class _IndexMap extends Message { + /** + * @generated from field: map index_map = 1; + */ + indexMap = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.IndexMap'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'index_map', + kind: 'map', + K: 5, + V: { kind: 'message', T: IndexMap_IndexList }, + }, + ]); + static fromBinary(bytes, options) { + return new _IndexMap().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexMap().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexMap().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexMap, a, b); + } +}; +var IndexMap_IndexList = class _IndexMap_IndexList extends Message { + /** + * @generated from field: repeated int32 indices = 1; + */ + indices = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.IndexMap.IndexList'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'indices', kind: 'scalar', T: 5, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _IndexMap_IndexList().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexMap_IndexList().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexMap_IndexList().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexMap_IndexList, a, b); + } +}; +var ChatMessageRollout = class _ChatMessageRollout extends Message { + /** + * @generated from field: string system_prompt = 1; + */ + systemPrompt = ''; + /** + * @generated from field: repeated exa.chat_pb.ChatToolDefinition tools = 2; + */ + tools = []; + /** + * @generated from field: exa.chat_pb.ChatToolChoice tool_choice = 3; + */ + toolChoice; + /** + * @generated from field: repeated exa.chat_pb.ChatMessagePrompt input_chat_messages = 4; + */ + inputChatMessages = []; + /** + * @generated from field: repeated exa.chat_pb.ChatMessagePrompt output_chat_messages = 5; + */ + outputChatMessages = []; + /** + * Map from trajectory step index to chat message indices + * + * @generated from field: exa.chat_pb.IndexMap trajectory_to_chat_message_index_map = 6; + */ + trajectoryToChatMessageIndexMap; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.ChatMessageRollout'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'system_prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'tools', + kind: 'message', + T: ChatToolDefinition, + repeated: true, + }, + { no: 3, name: 'tool_choice', kind: 'message', T: ChatToolChoice }, + { + no: 4, + name: 'input_chat_messages', + kind: 'message', + T: ChatMessagePrompt, + repeated: true, + }, + { + no: 5, + name: 'output_chat_messages', + kind: 'message', + T: ChatMessagePrompt, + repeated: true, + }, + { + no: 6, + name: 'trajectory_to_chat_message_index_map', + kind: 'message', + T: IndexMap, + }, + ]); + static fromBinary(bytes, options) { + return new _ChatMessageRollout().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatMessageRollout().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatMessageRollout().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatMessageRollout, a, b); + } +}; +var XboxInferenceToolRequest = class _XboxInferenceToolRequest extends Message { + /** + * Model name from model.info object + * + * @generated from field: string model_name = 3; + */ + modelName = ''; + /** + * Codeium Model Enum, stringified + * + * @generated from field: string model_enum = 4; + */ + modelEnum = ''; + /** + * @generated from field: exa.chat_pb.Example gemini_example = 2; + */ + geminiExample; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.XboxInferenceToolRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'model_enum', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'gemini_example', kind: 'message', T: Example }, + ]); + static fromBinary(bytes, options) { + return new _XboxInferenceToolRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _XboxInferenceToolRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _XboxInferenceToolRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_XboxInferenceToolRequest, a, b); + } +}; +var Example = class _Example extends Message { + /** + * The messages that comprise the conversation + * + * @generated from field: repeated exa.chat_pb.Message messages = 1; + */ + messages = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.Example'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'messages', kind: 'message', T: Message2, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _Example().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Example().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Example().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Example, a, b); + } +}; +var Message2 = class _Message extends Message { + /** + * The role within the conversation, e.g., User, Assistant, System + * See go/gemini-proto-roles + * + * User, Assistant, System, ... + * + * @generated from field: string role = 1; + */ + role = ''; + /** + * Content of the message as a series of chunks. In the simplest case, + * could be a single chunk with a text value. + * + * @generated from field: repeated exa.chat_pb.Chunk chunks = 2; + */ + chunks = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.Message'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'role', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'chunks', kind: 'message', T: Chunk, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _Message().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Message().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Message().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Message, a, b); + } +}; +var Chunk = class _Chunk extends Message { + /** + * The main value of the chunk. One must be specified + * + * @generated from oneof exa.chat_pb.Chunk.value + */ + value = { case: void 0 }; + /** + * Whether to defer to the formatter to infer trainable masking, or to + * override explicitly. See go/gemini-proto-trainable + * + * @generated from field: exa.chat_pb.Chunk.Trainable trainable = 10; + */ + trainable = Chunk_Trainable.UNKNOWN_TRAINABLE; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.Chunk'; + static fields = proto3.util.newFieldList(() => [ + { no: 3, name: 'text', kind: 'scalar', T: 9, oneof: 'value' }, + { no: 4, name: 'image', kind: 'message', T: Image, oneof: 'value' }, + { + no: 10, + name: 'trainable', + kind: 'enum', + T: proto3.getEnumType(Chunk_Trainable), + }, + ]); + static fromBinary(bytes, options) { + return new _Chunk().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Chunk().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Chunk().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Chunk, a, b); + } +}; +var Chunk_Trainable; +(function (Chunk_Trainable2) { + Chunk_Trainable2[(Chunk_Trainable2['UNKNOWN_TRAINABLE'] = 0)] = + 'UNKNOWN_TRAINABLE'; + Chunk_Trainable2[(Chunk_Trainable2['FORMATTER_DEFINED'] = 1)] = + 'FORMATTER_DEFINED'; + Chunk_Trainable2[(Chunk_Trainable2['ALWAYS'] = 2)] = 'ALWAYS'; + Chunk_Trainable2[(Chunk_Trainable2['NEVER'] = 3)] = 'NEVER'; +})(Chunk_Trainable || (Chunk_Trainable = {})); +proto3.util.setEnumType(Chunk_Trainable, 'exa.chat_pb.Chunk.Trainable', [ { no: 0, name: 'UNKNOWN_TRAINABLE' }, { no: 1, name: 'FORMATTER_DEFINED' }, { no: 2, name: 'ALWAYS' }, { no: 3, name: 'NEVER' }, ]); -var qu = class e extends r { - value; - heightPx = 0; - widthPx = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.Image'; - static fields = a.util.newFieldList(() => [ - { no: 5, name: 'value', kind: 'message', T: Hu }, - { no: 3, name: 'height_px', kind: 'scalar', T: 5 }, - { no: 4, name: 'width_px', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hu = class e extends r { - content = new Uint8Array(0); - mimeType = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.FileData'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'content', kind: 'scalar', T: 12 }, - { no: 2, name: 'mime_type', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - IN = class e extends r { - request = { case: void 0 }; - id = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.RpcRequest'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'run_tool_request', - kind: 'message', - T: Yu, - oneof: 'request', - }, - { no: 3, name: 'id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pN = class e extends r { - response = { case: void 0 }; - requestId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.RpcResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'run_tool_response', - kind: 'message', - T: Wu, - oneof: 'response', - }, - { no: 2, name: 'request_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yu = class e extends r { - name = ''; - operationId = ''; - parameters = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.RunToolRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'operation_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'parameters', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wu = class e extends r { - response = ''; - status; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.RunToolResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'response', kind: 'scalar', T: 9 }, - { no: 2, name: 'status', kind: 'message', T: Vu }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vu = class e extends r { - code = 0; - statusMessage = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_pb.RunToolResponse.Status'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'code', kind: 'scalar', T: 5 }, - { no: 2, name: 'status_message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var Xu; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ACTIVE_DOCUMENT = 1)] = 'ACTIVE_DOCUMENT'), - (e[(e.CURSOR_POSITION = 2)] = 'CURSOR_POSITION'), - (e[(e.CHAT_MESSAGE_RECEIVED = 3)] = 'CHAT_MESSAGE_RECEIVED'), - (e[(e.OPEN_DOCUMENTS = 4)] = 'OPEN_DOCUMENTS'), - (e[(e.ORACLE_ITEMS = 5)] = 'ORACLE_ITEMS'), - (e[(e.PINNED_CONTEXT = 6)] = 'PINNED_CONTEXT'), - (e[(e.PINNED_GUIDELINE = 7)] = 'PINNED_GUIDELINE'), - (e[(e.ACTIVE_NODE = 9)] = 'ACTIVE_NODE')); -})(Xu || (Xu = {})); -a.util.setEnumType(Xu, 'exa.context_module_pb.ContextChangeType', [ - { no: 0, name: 'CONTEXT_CHANGE_TYPE_UNSPECIFIED' }, - { no: 1, name: 'CONTEXT_CHANGE_TYPE_ACTIVE_DOCUMENT' }, - { no: 2, name: 'CONTEXT_CHANGE_TYPE_CURSOR_POSITION' }, - { no: 3, name: 'CONTEXT_CHANGE_TYPE_CHAT_MESSAGE_RECEIVED' }, - { no: 4, name: 'CONTEXT_CHANGE_TYPE_OPEN_DOCUMENTS' }, - { no: 5, name: 'CONTEXT_CHANGE_TYPE_ORACLE_ITEMS' }, - { no: 6, name: 'CONTEXT_CHANGE_TYPE_PINNED_CONTEXT' }, - { no: 7, name: 'CONTEXT_CHANGE_TYPE_PINNED_GUIDELINE' }, - { no: 9, name: 'CONTEXT_CHANGE_TYPE_ACTIVE_NODE' }, -]); -var Ku; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.AUTOCOMPLETE = 1)] = 'AUTOCOMPLETE'), - (e[(e.CHAT = 2)] = 'CHAT'), - (e[(e.CHAT_COMPLETION = 3)] = 'CHAT_COMPLETION'), - (e[(e.CORTEX_RESEARCH = 4)] = 'CORTEX_RESEARCH'), - (e[(e.EVAL = 5)] = 'EVAL'), - (e[(e.CHAT_COMPLETION_GENERATE = 6)] = 'CHAT_COMPLETION_GENERATE'), - (e[(e.SUPERCOMPLETE = 7)] = 'SUPERCOMPLETE'), - (e[(e.FAST_APPLY = 8)] = 'FAST_APPLY'), - (e[(e.COMMAND_TERMINAL = 9)] = 'COMMAND_TERMINAL')); -})(Ku || (Ku = {})); -a.util.setEnumType(Ku, 'exa.context_module_pb.ContextUseCase', [ - { no: 0, name: 'CONTEXT_USE_CASE_UNSPECIFIED' }, - { no: 1, name: 'CONTEXT_USE_CASE_AUTOCOMPLETE' }, - { no: 2, name: 'CONTEXT_USE_CASE_CHAT' }, - { no: 3, name: 'CONTEXT_USE_CASE_CHAT_COMPLETION' }, - { no: 4, name: 'CONTEXT_USE_CASE_CORTEX_RESEARCH' }, - { no: 5, name: 'CONTEXT_USE_CASE_EVAL' }, - { no: 6, name: 'CONTEXT_USE_CASE_CHAT_COMPLETION_GENERATE' }, - { no: 7, name: 'CONTEXT_USE_CASE_SUPERCOMPLETE' }, - { no: 8, name: 'CONTEXT_USE_CASE_FAST_APPLY' }, - { no: 9, name: 'CONTEXT_USE_CASE_COMMAND_TERMINAL' }, -]); -var Qt; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.AUTOCOMPLETE = 1)] = 'AUTOCOMPLETE'), - (e[(e.CHAT = 2)] = 'CHAT'), - (e[(e.IDE_ACTION = 4)] = 'IDE_ACTION'), - (e[(e.CHAT_COMPLETION = 5)] = 'CHAT_COMPLETION')); -})(Qt || (Qt = {})); -a.util.setEnumType(Qt, 'exa.context_module_pb.ContextRefreshReason', [ - { no: 0, name: 'CONTEXT_REFRESH_REASON_UNSPECIFIED' }, - { no: 1, name: 'CONTEXT_REFRESH_REASON_AUTOCOMPLETE' }, - { no: 2, name: 'CONTEXT_REFRESH_REASON_CHAT' }, - { no: 4, name: 'CONTEXT_REFRESH_REASON_IDE_ACTION' }, - { no: 5, name: 'CONTEXT_REFRESH_REASON_CHAT_COMPLETION' }, -]); -var ON = class e extends r { - contextChangeEvent = { case: void 0 }; - contextRefreshReason = Qt.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangeEvent'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'context_change_active_document', - kind: 'message', - T: vu, - oneof: 'context_change_event', - }, - { - no: 2, - name: 'context_change_cursor_position', - kind: 'message', - T: zu, - oneof: 'context_change_event', - }, - { - no: 3, - name: 'context_change_chat_message_received', - kind: 'message', - T: ju, - oneof: 'context_change_event', - }, - { - no: 4, - name: 'context_change_open_documents', - kind: 'message', - T: Qu, - oneof: 'context_change_event', - }, - { - no: 5, - name: 'context_change_oracle_items', - kind: 'message', - T: Zu, - oneof: 'context_change_event', - }, - { - no: 7, - name: 'context_change_pinned_context', - kind: 'message', - T: $u, - oneof: 'context_change_event', - }, - { - no: 8, - name: 'context_change_pinned_guideline', - kind: 'message', - T: nl, - oneof: 'context_change_event', - }, - { - no: 10, - name: 'context_change_active_node', - kind: 'message', - T: el, - oneof: 'context_change_event', - }, - { - no: 6, - name: 'context_refresh_reason', - kind: 'enum', - T: a.getEnumType(Qt), - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vu = class e extends r { - document; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangeActiveDocument'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'document', kind: 'message', T: g }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zu = class e extends r { - document; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangeCursorPosition'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'document', kind: 'message', T: g }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ju = class e extends r { - chatMessages = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangeChatMessageReceived'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'chat_messages', kind: 'message', T: ce, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Qu = class e extends r { - otherOpenDocuments = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangeOpenDocuments'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'other_open_documents', - kind: 'message', - T: g, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zu = class e extends r { - oracleItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangeOracleItems'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'oracle_items', kind: 'message', T: I, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $u = class e extends r { - scope = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangePinnedContext'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'pinned_scope', kind: 'message', T: $n, oneof: 'scope' }, - { - no: 2, - name: 'mentioned_scope', - kind: 'message', - T: $n, - oneof: 'scope', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nl = class e extends r { - guideline; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangePinnedGuideline'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'guideline', kind: 'message', T: ne }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - el = class e extends r { - activeNode; - document; - actualNodeChange = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextChangeActiveNode'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'active_node', kind: 'message', T: I }, - { no: 2, name: 'document', kind: 'message', T: g }, - { no: 3, name: 'actual_node_change', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zt = class e extends r { - contextSources = []; - contextType = W.UNSPECIFIED; - scorer = ''; - score = 0; - providerMetadata = {}; - isInPinnedScope = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.RetrievedCodeContextItemMetadata'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'context_sources', - kind: 'enum', - T: a.getEnumType(ze), - repeated: !0, - }, - { no: 2, name: 'context_type', kind: 'enum', T: a.getEnumType(W) }, - { no: 3, name: 'scorer', kind: 'scalar', T: 9 }, - { no: 4, name: 'score', kind: 'scalar', T: 2 }, - { - no: 5, - name: 'provider_metadata', - kind: 'map', - K: 9, - V: { kind: 'message', T: tl }, - }, - { no: 6, name: 'is_in_pinned_scope', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fn = class e extends r { - cciWithSubrange; - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.context_module_pb.CciWithSubrangeWithRetrievalMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cci_with_subrange', kind: 'message', T: X }, - { no: 2, name: 'metadata', kind: 'message', T: Zt }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - AN = class e extends r { - codeContextItem; - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.context_module_pb.CodeContextItemWithRetrievalMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'code_context_item', kind: 'message', T: I }, - { no: 2, name: 'metadata', kind: 'message', T: Zt }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - CN = class e extends r { - absoluteUri = ''; - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.FileNameWithRetrievalMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'metadata', kind: 'message', T: Zt }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tl = class e extends r { - relativeWeight = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.CodeContextProviderMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'relative_weight', kind: 'scalar', T: 2 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - RN = class e extends r { - contextModuleStateStats; - codeContextItemIndexStats; - getStatsLatencyMs = o.zero; - contextModuleAgeS = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextModuleStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'context_module_state_stats', kind: 'message', T: al }, - { no: 2, name: 'code_context_item_index_stats', kind: 'message', T: rl }, - { no: 3, name: 'get_stats_latency_ms', kind: 'scalar', T: 3 }, - { no: 4, name: 'context_module_age_s', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - al = class e extends r { - cciPerSourceBytes = o.zero; - activeDocumentBytes = o.zero; - otherOpenDocumentsBytes = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextModuleStateStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cci_per_source_bytes', kind: 'scalar', T: 3 }, - { no: 2, name: 'active_document_bytes', kind: 'scalar', T: 3 }, - { no: 3, name: 'other_open_documents_bytes', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rl = class e extends r { - allCcisBytes = o.zero; - numCcisTracked = o.zero; - termFrequencyMapBytes = o.zero; - numTermsTracked = o.zero; - fileToCciMapBytes = o.zero; - numFilesTracked = o.zero; - lastModifiedBytes = o.zero; - hashMapBytes = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.CodeContextItemIndexStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'all_ccis_bytes', kind: 'scalar', T: 3 }, - { no: 2, name: 'num_ccis_tracked', kind: 'scalar', T: 3 }, - { no: 3, name: 'term_frequency_map_bytes', kind: 'scalar', T: 3 }, - { no: 4, name: 'num_terms_tracked', kind: 'scalar', T: 3 }, - { no: 5, name: 'file_to_cci_map_bytes', kind: 'scalar', T: 3 }, - { no: 6, name: 'num_files_tracked', kind: 'scalar', T: 3 }, - { no: 7, name: 'last_modified_bytes', kind: 'scalar', T: 3 }, - { no: 8, name: 'hash_map_bytes', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - LN = class e extends r { - pinnedGuideline; - pinnedContextScope; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.PersistentContextModuleState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'pinned_guideline', kind: 'message', T: ne }, - { no: 2, name: 'pinned_context_scope', kind: 'message', T: $n }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - as = class e extends r { - retrievedCciWithSubranges = []; - activeDocument; - activeDocumentOutline; - localNodeState; - guideline; - openDocuments = []; - runningTerminalCommands = []; - browserStateSnapshot; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.ContextModuleResult'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'retrieved_cci_with_subranges', - kind: 'message', - T: Fn, - repeated: !0, - }, - { no: 2, name: 'active_document', kind: 'message', T: g }, - { no: 5, name: 'active_document_outline', kind: 'message', T: re }, - { no: 3, name: 'local_node_state', kind: 'message', T: sl }, - { no: 4, name: 'guideline', kind: 'message', T: ne }, - { no: 6, name: 'open_documents', kind: 'message', T: g, repeated: !0 }, - { - no: 8, - name: 'running_terminal_commands', - kind: 'message', - T: Vr, - repeated: !0, - }, - { no: 9, name: 'browser_state_snapshot', kind: 'message', T: Kr }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sl = class e extends r { - currentNode; - closestAboveNode; - closestBelowNode; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.context_module_pb.LocalNodeState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'current_node', kind: 'message', T: I }, - { no: 2, name: 'closest_above_node', kind: 'message', T: I }, - { no: 3, name: 'closest_below_node', kind: 'message', T: I }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var Sn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.IDE = 1)] = 'IDE'), - (e[(e.BROWSER = 2)] = 'BROWSER')); -})(Sn || (Sn = {})); -a.util.setEnumType( - Sn, +var Image = class _Image extends Message { + /** + * value has ID 5 for backwards compat with gemini.rl.Image. IDs 1-4 are + * available. + * + * @generated from field: exa.chat_pb.FileData value = 5; + */ + value; + /** + * Best effort, may not be present. Can be used to compute how many tokens + * would be needed for this image. + * + * @generated from field: int32 height_px = 3; + */ + heightPx = 0; + /** + * @generated from field: int32 width_px = 4; + */ + widthPx = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.Image'; + static fields = proto3.util.newFieldList(() => [ + { no: 5, name: 'value', kind: 'message', T: FileData }, + { + no: 3, + name: 'height_px', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'width_px', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _Image().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Image().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Image().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Image, a, b); + } +}; +var FileData = class _FileData extends Message { + /** + * The actual bytes of the file + * + * @generated from field: bytes content = 3; + */ + content = new Uint8Array(0); + /** + * Pointers to a location of the file, as an alternate to the full value + * string location = 1; + * + * @generated from field: string mime_type = 2; + */ + mimeType = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.FileData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'content', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { + no: 2, + name: 'mime_type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _FileData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileData, a, b); + } +}; +var RpcRequest = class _RpcRequest extends Message { + /** + * @generated from oneof exa.chat_pb.RpcRequest.request + */ + request = { case: void 0 }; + /** + * Unique identifier for this RPC, used to track asynchronous requests. + * + * This field should be left empty. It will be assigned a unique value during + * RPC execution. Any existing value will be overwritten. + * + * @generated from field: string id = 3; + */ + id = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.RpcRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'run_tool_request', + kind: 'message', + T: RunToolRequest, + oneof: 'request', + }, + { + no: 3, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _RpcRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RpcRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RpcRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RpcRequest, a, b); + } +}; +var RpcResponse = class _RpcResponse extends Message { + /** + * @generated from oneof exa.chat_pb.RpcResponse.response + */ + response = { case: void 0 }; + /** + * The id of the original RpcRequest. + * + * @generated from field: string request_id = 2; + */ + requestId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.RpcResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'run_tool_response', + kind: 'message', + T: RunToolResponse, + oneof: 'response', + }, + { + no: 2, + name: 'request_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _RpcResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RpcResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RpcResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RpcResponse, a, b); + } +}; +var RunToolRequest = class _RunToolRequest extends Message { + /** + * Tool Name. + * + * Ex: + * name: "FlightService" + * + * REQUIRED + * + * @generated from field: string name = 1; + */ + name = ''; + /** + * One tool can support multiple operations/methods. `operation_id` clarifies + * the exact method to use. + * + * Ex: + * operation_id: SearchFlight + * + * REQUIRED + * + * @generated from field: string operation_id = 2; + */ + operationId = ''; + /** + * Parameters to be supplied to the tool method. These must be conformant with + * tool's manifest/OpenAPI spec. + * + * Leaving it as a string, to keep the format flexible. + * + * Ex: + * {origin: "SFO", destination = "LAX", date = "2023-01-01"} + * + * REQUIRED + * + * @generated from field: string parameters = 3; + */ + parameters = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.RunToolRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'operation_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'parameters', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _RunToolRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RunToolRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RunToolRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RunToolRequest, a, b); + } +}; +var RunToolResponse = class _RunToolResponse extends Message { + /** + * @generated from field: string response = 1; + */ + response = ''; + /** + * @generated from field: exa.chat_pb.RunToolResponse.Status status = 2; + */ + status; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.RunToolResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'response', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'status', kind: 'message', T: RunToolResponse_Status }, + ]); + static fromBinary(bytes, options) { + return new _RunToolResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RunToolResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RunToolResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RunToolResponse, a, b); + } +}; +var RunToolResponse_Status = class _RunToolResponse_Status extends Message { + /** + * @generated from field: int32 code = 1; + */ + code = 0; + /** + * A developer-facing status message. + * + * @generated from field: string status_message = 2; + */ + statusMessage = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_pb.RunToolResponse.Status'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'code', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'status_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _RunToolResponse_Status().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RunToolResponse_Status().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RunToolResponse_Status().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RunToolResponse_Status, a, b); + } +}; + +// exa/proto_ts/dist/exa/context_module_pb/context_module_pb.js +var ContextChangeType; +(function (ContextChangeType2) { + ContextChangeType2[(ContextChangeType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ContextChangeType2[(ContextChangeType2['ACTIVE_DOCUMENT'] = 1)] = + 'ACTIVE_DOCUMENT'; + ContextChangeType2[(ContextChangeType2['CURSOR_POSITION'] = 2)] = + 'CURSOR_POSITION'; + ContextChangeType2[(ContextChangeType2['CHAT_MESSAGE_RECEIVED'] = 3)] = + 'CHAT_MESSAGE_RECEIVED'; + ContextChangeType2[(ContextChangeType2['OPEN_DOCUMENTS'] = 4)] = + 'OPEN_DOCUMENTS'; + ContextChangeType2[(ContextChangeType2['ORACLE_ITEMS'] = 5)] = 'ORACLE_ITEMS'; + ContextChangeType2[(ContextChangeType2['PINNED_CONTEXT'] = 6)] = + 'PINNED_CONTEXT'; + ContextChangeType2[(ContextChangeType2['PINNED_GUIDELINE'] = 7)] = + 'PINNED_GUIDELINE'; + ContextChangeType2[(ContextChangeType2['ACTIVE_NODE'] = 9)] = 'ACTIVE_NODE'; +})(ContextChangeType || (ContextChangeType = {})); +proto3.util.setEnumType( + ContextChangeType, + 'exa.context_module_pb.ContextChangeType', + [ + { no: 0, name: 'CONTEXT_CHANGE_TYPE_UNSPECIFIED' }, + { no: 1, name: 'CONTEXT_CHANGE_TYPE_ACTIVE_DOCUMENT' }, + { no: 2, name: 'CONTEXT_CHANGE_TYPE_CURSOR_POSITION' }, + { no: 3, name: 'CONTEXT_CHANGE_TYPE_CHAT_MESSAGE_RECEIVED' }, + { no: 4, name: 'CONTEXT_CHANGE_TYPE_OPEN_DOCUMENTS' }, + { no: 5, name: 'CONTEXT_CHANGE_TYPE_ORACLE_ITEMS' }, + { no: 6, name: 'CONTEXT_CHANGE_TYPE_PINNED_CONTEXT' }, + { no: 7, name: 'CONTEXT_CHANGE_TYPE_PINNED_GUIDELINE' }, + { no: 9, name: 'CONTEXT_CHANGE_TYPE_ACTIVE_NODE' }, + ], +); +var ContextUseCase; +(function (ContextUseCase2) { + ContextUseCase2[(ContextUseCase2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ContextUseCase2[(ContextUseCase2['AUTOCOMPLETE'] = 1)] = 'AUTOCOMPLETE'; + ContextUseCase2[(ContextUseCase2['CHAT'] = 2)] = 'CHAT'; + ContextUseCase2[(ContextUseCase2['CHAT_COMPLETION'] = 3)] = 'CHAT_COMPLETION'; + ContextUseCase2[(ContextUseCase2['CORTEX_RESEARCH'] = 4)] = 'CORTEX_RESEARCH'; + ContextUseCase2[(ContextUseCase2['EVAL'] = 5)] = 'EVAL'; + ContextUseCase2[(ContextUseCase2['CHAT_COMPLETION_GENERATE'] = 6)] = + 'CHAT_COMPLETION_GENERATE'; + ContextUseCase2[(ContextUseCase2['SUPERCOMPLETE'] = 7)] = 'SUPERCOMPLETE'; + ContextUseCase2[(ContextUseCase2['FAST_APPLY'] = 8)] = 'FAST_APPLY'; + ContextUseCase2[(ContextUseCase2['COMMAND_TERMINAL'] = 9)] = + 'COMMAND_TERMINAL'; +})(ContextUseCase || (ContextUseCase = {})); +proto3.util.setEnumType( + ContextUseCase, + 'exa.context_module_pb.ContextUseCase', + [ + { no: 0, name: 'CONTEXT_USE_CASE_UNSPECIFIED' }, + { no: 1, name: 'CONTEXT_USE_CASE_AUTOCOMPLETE' }, + { no: 2, name: 'CONTEXT_USE_CASE_CHAT' }, + { no: 3, name: 'CONTEXT_USE_CASE_CHAT_COMPLETION' }, + { no: 4, name: 'CONTEXT_USE_CASE_CORTEX_RESEARCH' }, + { no: 5, name: 'CONTEXT_USE_CASE_EVAL' }, + { no: 6, name: 'CONTEXT_USE_CASE_CHAT_COMPLETION_GENERATE' }, + { no: 7, name: 'CONTEXT_USE_CASE_SUPERCOMPLETE' }, + { no: 8, name: 'CONTEXT_USE_CASE_FAST_APPLY' }, + { no: 9, name: 'CONTEXT_USE_CASE_COMMAND_TERMINAL' }, + ], +); +var ContextRefreshReason; +(function (ContextRefreshReason2) { + ContextRefreshReason2[(ContextRefreshReason2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + ContextRefreshReason2[(ContextRefreshReason2['AUTOCOMPLETE'] = 1)] = + 'AUTOCOMPLETE'; + ContextRefreshReason2[(ContextRefreshReason2['CHAT'] = 2)] = 'CHAT'; + ContextRefreshReason2[(ContextRefreshReason2['IDE_ACTION'] = 4)] = + 'IDE_ACTION'; + ContextRefreshReason2[(ContextRefreshReason2['CHAT_COMPLETION'] = 5)] = + 'CHAT_COMPLETION'; +})(ContextRefreshReason || (ContextRefreshReason = {})); +proto3.util.setEnumType( + ContextRefreshReason, + 'exa.context_module_pb.ContextRefreshReason', + [ + { no: 0, name: 'CONTEXT_REFRESH_REASON_UNSPECIFIED' }, + { no: 1, name: 'CONTEXT_REFRESH_REASON_AUTOCOMPLETE' }, + { no: 2, name: 'CONTEXT_REFRESH_REASON_CHAT' }, + { no: 4, name: 'CONTEXT_REFRESH_REASON_IDE_ACTION' }, + { no: 5, name: 'CONTEXT_REFRESH_REASON_CHAT_COMPLETION' }, + ], +); +var ContextChangeEvent = class _ContextChangeEvent extends Message { + /** + * @generated from oneof exa.context_module_pb.ContextChangeEvent.context_change_event + */ + contextChangeEvent = { case: void 0 }; + /** + * @generated from field: exa.context_module_pb.ContextRefreshReason context_refresh_reason = 6; + */ + contextRefreshReason = ContextRefreshReason.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangeEvent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'context_change_active_document', + kind: 'message', + T: ContextChangeActiveDocument, + oneof: 'context_change_event', + }, + { + no: 2, + name: 'context_change_cursor_position', + kind: 'message', + T: ContextChangeCursorPosition, + oneof: 'context_change_event', + }, + { + no: 3, + name: 'context_change_chat_message_received', + kind: 'message', + T: ContextChangeChatMessageReceived, + oneof: 'context_change_event', + }, + { + no: 4, + name: 'context_change_open_documents', + kind: 'message', + T: ContextChangeOpenDocuments, + oneof: 'context_change_event', + }, + { + no: 5, + name: 'context_change_oracle_items', + kind: 'message', + T: ContextChangeOracleItems, + oneof: 'context_change_event', + }, + { + no: 7, + name: 'context_change_pinned_context', + kind: 'message', + T: ContextChangePinnedContext, + oneof: 'context_change_event', + }, + { + no: 8, + name: 'context_change_pinned_guideline', + kind: 'message', + T: ContextChangePinnedGuideline, + oneof: 'context_change_event', + }, + { + no: 10, + name: 'context_change_active_node', + kind: 'message', + T: ContextChangeActiveNode, + oneof: 'context_change_event', + }, + { + no: 6, + name: 'context_refresh_reason', + kind: 'enum', + T: proto3.getEnumType(ContextRefreshReason), + }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangeEvent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangeEvent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangeEvent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangeEvent, a, b); + } +}; +var ContextChangeActiveDocument = class _ContextChangeActiveDocument extends Message { + /** + * @generated from field: exa.codeium_common_pb.Document document = 1; + */ + document; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangeActiveDocument'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'document', kind: 'message', T: Document }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangeActiveDocument().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangeActiveDocument().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangeActiveDocument().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangeActiveDocument, a, b); + } +}; +var ContextChangeCursorPosition = class _ContextChangeCursorPosition extends Message { + /** + * Includes DocumentPosition + * + * @generated from field: exa.codeium_common_pb.Document document = 2; + */ + document; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangeCursorPosition'; + static fields = proto3.util.newFieldList(() => [ + { no: 2, name: 'document', kind: 'message', T: Document }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangeCursorPosition().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangeCursorPosition().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangeCursorPosition().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangeCursorPosition, a, b); + } +}; +var ContextChangeChatMessageReceived = class _ContextChangeChatMessageReceived extends Message { + /** + * @generated from field: repeated exa.chat_pb.ChatMessage chat_messages = 1; + */ + chatMessages = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangeChatMessageReceived'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'chat_messages', + kind: 'message', + T: ChatMessage, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangeChatMessageReceived().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangeChatMessageReceived().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangeChatMessageReceived().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangeChatMessageReceived, a, b); + } +}; +var ContextChangeOpenDocuments = class _ContextChangeOpenDocuments extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.Document other_open_documents = 1; + */ + otherOpenDocuments = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangeOpenDocuments'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'other_open_documents', + kind: 'message', + T: Document, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangeOpenDocuments().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangeOpenDocuments().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangeOpenDocuments().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangeOpenDocuments, a, b); + } +}; +var ContextChangeOracleItems = class _ContextChangeOracleItems extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem oracle_items = 1; + */ + oracleItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangeOracleItems'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'oracle_items', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangeOracleItems().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangeOracleItems().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangeOracleItems().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangeOracleItems, a, b); + } +}; +var ContextChangePinnedContext = class _ContextChangePinnedContext extends Message { + /** + * @generated from oneof exa.context_module_pb.ContextChangePinnedContext.scope + */ + scope = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangePinnedContext'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'pinned_scope', + kind: 'message', + T: ContextScope, + oneof: 'scope', + }, + { + no: 2, + name: 'mentioned_scope', + kind: 'message', + T: ContextScope, + oneof: 'scope', + }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangePinnedContext().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangePinnedContext().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangePinnedContext().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangePinnedContext, a, b); + } +}; +var ContextChangePinnedGuideline = class _ContextChangePinnedGuideline extends Message { + /** + * @generated from field: exa.codeium_common_pb.Guideline guideline = 1; + */ + guideline; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangePinnedGuideline'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'guideline', kind: 'message', T: Guideline }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangePinnedGuideline().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangePinnedGuideline().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangePinnedGuideline().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangePinnedGuideline, a, b); + } +}; +var ContextChangeActiveNode = class _ContextChangeActiveNode extends Message { + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem active_node = 1; + */ + activeNode; + /** + * @generated from field: exa.codeium_common_pb.Document document = 2; + */ + document; + /** + * May be false if a change event was forcibly created even without an actual + * node change. + * + * @generated from field: bool actual_node_change = 3; + */ + actualNodeChange = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextChangeActiveNode'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'active_node', kind: 'message', T: CodeContextItem }, + { no: 2, name: 'document', kind: 'message', T: Document }, + { + no: 3, + name: 'actual_node_change', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ContextChangeActiveNode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextChangeActiveNode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextChangeActiveNode().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextChangeActiveNode, a, b); + } +}; +var RetrievedCodeContextItemMetadata = class _RetrievedCodeContextItemMetadata extends Message { + /** + * Which source(s) this context info came from. + * + * @generated from field: repeated exa.codeium_common_pb.CodeContextSource context_sources = 1; + */ + contextSources = []; + /** + * The type of the context item. + * + * @generated from field: exa.codeium_common_pb.CodeContextType context_type = 2; + */ + contextType = CodeContextType.UNSPECIFIED; + /** + * The scorer that was used to rank and retrieve this context. + * + * @generated from field: string scorer = 3; + */ + scorer = ''; + /** + * The score of this item given by that scorer. + * + * @generated from field: float score = 4; + */ + score = 0; + /** + * Map from source string name to provided metadata if it exists. + * + * @generated from field: map provider_metadata = 5; + */ + providerMetadata = {}; + /** + * Whether code context item comes from user's manually mentioned or pinned + * context scopes. In this case, we should up-weight its importance. + * + * @generated from field: bool is_in_pinned_scope = 6; + */ + isInPinnedScope = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.RetrievedCodeContextItemMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'context_sources', + kind: 'enum', + T: proto3.getEnumType(CodeContextSource), + repeated: true, + }, + { + no: 2, + name: 'context_type', + kind: 'enum', + T: proto3.getEnumType(CodeContextType), + }, + { + no: 3, + name: 'scorer', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'score', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 5, + name: 'provider_metadata', + kind: 'map', + K: 9, + V: { kind: 'message', T: CodeContextProviderMetadata }, + }, + { + no: 6, + name: 'is_in_pinned_scope', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _RetrievedCodeContextItemMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RetrievedCodeContextItemMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RetrievedCodeContextItemMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_RetrievedCodeContextItemMetadata, a, b); + } +}; +var CciWithSubrangeWithRetrievalMetadata = class _CciWithSubrangeWithRetrievalMetadata extends Message { + /** + * @generated from field: exa.codeium_common_pb.CciWithSubrange cci_with_subrange = 1; + */ + cciWithSubrange; + /** + * @generated from field: exa.context_module_pb.RetrievedCodeContextItemMetadata metadata = 2; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.context_module_pb.CciWithSubrangeWithRetrievalMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'cci_with_subrange', kind: 'message', T: CciWithSubrange }, + { + no: 2, + name: 'metadata', + kind: 'message', + T: RetrievedCodeContextItemMetadata, + }, + ]); + static fromBinary(bytes, options) { + return new _CciWithSubrangeWithRetrievalMetadata().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CciWithSubrangeWithRetrievalMetadata().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CciWithSubrangeWithRetrievalMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CciWithSubrangeWithRetrievalMetadata, a, b); + } +}; +var CodeContextItemWithRetrievalMetadata = class _CodeContextItemWithRetrievalMetadata extends Message { + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem code_context_item = 1; + */ + codeContextItem; + /** + * @generated from field: exa.context_module_pb.RetrievedCodeContextItemMetadata metadata = 2; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.context_module_pb.CodeContextItemWithRetrievalMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'code_context_item', kind: 'message', T: CodeContextItem }, + { + no: 2, + name: 'metadata', + kind: 'message', + T: RetrievedCodeContextItemMetadata, + }, + ]); + static fromBinary(bytes, options) { + return new _CodeContextItemWithRetrievalMetadata().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CodeContextItemWithRetrievalMetadata().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CodeContextItemWithRetrievalMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CodeContextItemWithRetrievalMetadata, a, b); + } +}; +var FileNameWithRetrievalMetadata = class _FileNameWithRetrievalMetadata extends Message { + /** + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * TODO(rmalde) rename this type to be + * RetrievedContextItemMetadata so it's not specific to CCI's + * + * @generated from field: exa.context_module_pb.RetrievedCodeContextItemMetadata metadata = 2; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.FileNameWithRetrievalMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'metadata', + kind: 'message', + T: RetrievedCodeContextItemMetadata, + }, + ]); + static fromBinary(bytes, options) { + return new _FileNameWithRetrievalMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileNameWithRetrievalMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileNameWithRetrievalMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_FileNameWithRetrievalMetadata, a, b); + } +}; +var CodeContextProviderMetadata = class _CodeContextProviderMetadata extends Message { + /** + * Relative weight of this context item as compared to other ones discovered + * by the same code context source. Should be between (0, 1]. + * + * @generated from field: float relative_weight = 1; + */ + relativeWeight = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.CodeContextProviderMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'relative_weight', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodeContextProviderMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeContextProviderMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeContextProviderMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CodeContextProviderMetadata, a, b); + } +}; +var ContextModuleStats = class _ContextModuleStats extends Message { + /** + * @generated from field: exa.context_module_pb.ContextModuleStateStats context_module_state_stats = 1; + */ + contextModuleStateStats; + /** + * @generated from field: exa.context_module_pb.CodeContextItemIndexStats code_context_item_index_stats = 2; + */ + codeContextItemIndexStats; + /** + * @generated from field: int64 get_stats_latency_ms = 3; + */ + getStatsLatencyMs = protoInt64.zero; + /** + * @generated from field: int64 context_module_age_s = 4; + */ + contextModuleAgeS = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextModuleStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'context_module_state_stats', + kind: 'message', + T: ContextModuleStateStats, + }, + { + no: 2, + name: 'code_context_item_index_stats', + kind: 'message', + T: CodeContextItemIndexStats, + }, + { + no: 3, + name: 'get_stats_latency_ms', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 4, + name: 'context_module_age_s', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ContextModuleStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextModuleStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextModuleStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextModuleStats, a, b); + } +}; +var ContextModuleStateStats = class _ContextModuleStateStats extends Message { + /** + * @generated from field: int64 cci_per_source_bytes = 1; + */ + cciPerSourceBytes = protoInt64.zero; + /** + * @generated from field: int64 active_document_bytes = 2; + */ + activeDocumentBytes = protoInt64.zero; + /** + * @generated from field: int64 other_open_documents_bytes = 3; + */ + otherOpenDocumentsBytes = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextModuleStateStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cci_per_source_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 2, + name: 'active_document_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'other_open_documents_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ContextModuleStateStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextModuleStateStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextModuleStateStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextModuleStateStats, a, b); + } +}; +var CodeContextItemIndexStats = class _CodeContextItemIndexStats extends Message { + /** + * Total memory footprint of the CCIs stored in the index. + * + * @generated from field: int64 all_ccis_bytes = 1; + */ + allCcisBytes = protoInt64.zero; + /** + * Total number of CCIs stored in the index. + * + * @generated from field: int64 num_ccis_tracked = 2; + */ + numCcisTracked = protoInt64.zero; + /** + * Memory footprint of the TF Map excluding the CCIs themselves. + * + * @generated from field: int64 term_frequency_map_bytes = 3; + */ + termFrequencyMapBytes = protoInt64.zero; + /** + * Number of "terms" tracked in the TF map + * + * @generated from field: int64 num_terms_tracked = 4; + */ + numTermsTracked = protoInt64.zero; + /** + * Memory footprint of the file to CCI map excluding the CCIs. + * + * @generated from field: int64 file_to_cci_map_bytes = 5; + */ + fileToCciMapBytes = protoInt64.zero; + /** + * @generated from field: int64 num_files_tracked = 6; + */ + numFilesTracked = protoInt64.zero; + /** + * Last modified and HashSum tracker footprints. + * + * @generated from field: int64 last_modified_bytes = 7; + */ + lastModifiedBytes = protoInt64.zero; + /** + * @generated from field: int64 hash_map_bytes = 8; + */ + hashMapBytes = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.CodeContextItemIndexStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'all_ccis_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 2, + name: 'num_ccis_tracked', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'term_frequency_map_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 4, + name: 'num_terms_tracked', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 5, + name: 'file_to_cci_map_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 6, + name: 'num_files_tracked', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 7, + name: 'last_modified_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 8, + name: 'hash_map_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodeContextItemIndexStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeContextItemIndexStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeContextItemIndexStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeContextItemIndexStats, a, b); + } +}; +var PersistentContextModuleState = class _PersistentContextModuleState extends Message { + /** + * @generated from field: exa.codeium_common_pb.Guideline pinned_guideline = 1; + */ + pinnedGuideline; + /** + * @generated from field: exa.codeium_common_pb.ContextScope pinned_context_scope = 2; + */ + pinnedContextScope; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.PersistentContextModuleState'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'pinned_guideline', kind: 'message', T: Guideline }, + { no: 2, name: 'pinned_context_scope', kind: 'message', T: ContextScope }, + ]); + static fromBinary(bytes, options) { + return new _PersistentContextModuleState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PersistentContextModuleState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PersistentContextModuleState().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_PersistentContextModuleState, a, b); + } +}; +var ContextModuleResult = class _ContextModuleResult extends Message { + /** + * @generated from field: repeated exa.context_module_pb.CciWithSubrangeWithRetrievalMetadata retrieved_cci_with_subranges = 1; + */ + retrievedCciWithSubranges = []; + /** + * @generated from field: exa.codeium_common_pb.Document active_document = 2; + */ + activeDocument; + /** + * @generated from field: exa.codeium_common_pb.DocumentOutline active_document_outline = 5; + */ + activeDocumentOutline; + /** + * @generated from field: exa.context_module_pb.LocalNodeState local_node_state = 3; + */ + localNodeState; + /** + * @generated from field: exa.codeium_common_pb.Guideline guideline = 4; + */ + guideline; + /** + * @generated from field: repeated exa.codeium_common_pb.Document open_documents = 6; + */ + openDocuments = []; + /** + * @generated from field: repeated exa.codeium_common_pb.TerminalShellCommand running_terminal_commands = 8; + */ + runningTerminalCommands = []; + /** + * @generated from field: exa.codeium_common_pb.BrowserStateSnapshot browser_state_snapshot = 9; + */ + browserStateSnapshot; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.ContextModuleResult'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'retrieved_cci_with_subranges', + kind: 'message', + T: CciWithSubrangeWithRetrievalMetadata, + repeated: true, + }, + { no: 2, name: 'active_document', kind: 'message', T: Document }, + { + no: 5, + name: 'active_document_outline', + kind: 'message', + T: DocumentOutline, + }, + { no: 3, name: 'local_node_state', kind: 'message', T: LocalNodeState }, + { no: 4, name: 'guideline', kind: 'message', T: Guideline }, + { + no: 6, + name: 'open_documents', + kind: 'message', + T: Document, + repeated: true, + }, + { + no: 8, + name: 'running_terminal_commands', + kind: 'message', + T: TerminalShellCommand, + repeated: true, + }, + { + no: 9, + name: 'browser_state_snapshot', + kind: 'message', + T: BrowserStateSnapshot, + }, + ]); + static fromBinary(bytes, options) { + return new _ContextModuleResult().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextModuleResult().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextModuleResult().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextModuleResult, a, b); + } +}; +var LocalNodeState = class _LocalNodeState extends Message { + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem current_node = 1; + */ + currentNode; + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem closest_above_node = 2; + */ + closestAboveNode; + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem closest_below_node = 3; + */ + closestBelowNode; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.context_module_pb.LocalNodeState'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'current_node', kind: 'message', T: CodeContextItem }, + { no: 2, name: 'closest_above_node', kind: 'message', T: CodeContextItem }, + { no: 3, name: 'closest_below_node', kind: 'message', T: CodeContextItem }, + ]); + static fromBinary(bytes, options) { + return new _LocalNodeState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LocalNodeState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LocalNodeState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LocalNodeState, a, b); + } +}; + +// exa/proto_ts/dist/exa/chat_client_server_pb/chat_client_server_pb.js +var ChatClientRequestStreamClientType; +(function (ChatClientRequestStreamClientType2) { + ChatClientRequestStreamClientType2[ + (ChatClientRequestStreamClientType2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + ChatClientRequestStreamClientType2[ + (ChatClientRequestStreamClientType2['IDE'] = 1) + ] = 'IDE'; + ChatClientRequestStreamClientType2[ + (ChatClientRequestStreamClientType2['BROWSER'] = 2) + ] = 'BROWSER'; +})( + ChatClientRequestStreamClientType || (ChatClientRequestStreamClientType = {}), +); +proto3.util.setEnumType( + ChatClientRequestStreamClientType, 'exa.chat_client_server_pb.ChatClientRequestStreamClientType', [ { no: 0, name: 'CHAT_CLIENT_REQUEST_STREAM_CLIENT_TYPE_UNSPECIFIED' }, @@ -16794,179 +32591,263 @@ a.util.setEnumType( { no: 2, name: 'CHAT_CLIENT_REQUEST_STREAM_CLIENT_TYPE_BROWSER' }, ], ); -var PN = class e extends r { - clientType = Sn.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.chat_client_server_pb.StartChatClientRequestStreamRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'client_type', kind: 'enum', T: a.getEnumType(Sn) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - DN = class e extends r { - request = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_client_server_pb.ChatClientRequest'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'add_cascade_input', - kind: 'message', - T: il, - oneof: 'request', - }, - { - no: 2, - name: 'send_action_to_chat_panel', - kind: 'message', - T: ol, - oneof: 'request', - }, - { no: 3, name: 'initial_ack', kind: 'message', T: ml, oneof: 'request' }, - { - no: 4, - name: 'refresh_customization', - kind: 'message', - T: cl, - oneof: 'request', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - il = class e extends r { - items = []; - images = []; - media = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_client_server_pb.AddCascadeInputRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'items', kind: 'message', T: Tn, repeated: !0 }, - { no: 2, name: 'images', kind: 'message', T: P, repeated: !0 }, - { no: 3, name: 'media', kind: 'message', T: C, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ol = class e extends r { - actionType = ''; - payload = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_client_server_pb.SendActionToChatPanelRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'action_type', kind: 'scalar', T: 9 }, - { no: 2, name: 'payload', kind: 'scalar', T: 12, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ml = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_client_server_pb.InitialAckRequest'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cl = class e extends r { - configType = jn.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.chat_client_server_pb.RefreshCustomizationRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'config_type', kind: 'enum', T: a.getEnumType(jn) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var $t; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.HALFVEC = 1)] = 'HALFVEC'), - (e[(e.BINARY = 2)] = 'BINARY'), - (e[(e.BINARY_WITH_RERANK = 3)] = 'BINARY_WITH_RERANK'), - (e[(e.BRUTE_FORCE = 4)] = 'BRUTE_FORCE'), - (e[(e.RANDOM_SEARCH = 5)] = 'RANDOM_SEARCH')); -})($t || ($t = {})); -a.util.setEnumType($t, 'exa.index_pb.IndexMode', [ +var StartChatClientRequestStreamRequest = class _StartChatClientRequestStreamRequest extends Message { + /** + * @generated from field: exa.chat_client_server_pb.ChatClientRequestStreamClientType client_type = 1; + */ + clientType = ChatClientRequestStreamClientType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.chat_client_server_pb.StartChatClientRequestStreamRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'client_type', + kind: 'enum', + T: proto3.getEnumType(ChatClientRequestStreamClientType), + }, + ]); + static fromBinary(bytes, options) { + return new _StartChatClientRequestStreamRequest().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _StartChatClientRequestStreamRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _StartChatClientRequestStreamRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_StartChatClientRequestStreamRequest, a, b); + } +}; +var ChatClientRequest = class _ChatClientRequest extends Message { + /** + * @generated from oneof exa.chat_client_server_pb.ChatClientRequest.request + */ + request = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_client_server_pb.ChatClientRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'add_cascade_input', + kind: 'message', + T: AddCascadeInputRequest, + oneof: 'request', + }, + { + no: 2, + name: 'send_action_to_chat_panel', + kind: 'message', + T: SendActionToChatPanelRequest, + oneof: 'request', + }, + { + no: 3, + name: 'initial_ack', + kind: 'message', + T: InitialAckRequest, + oneof: 'request', + }, + { + no: 4, + name: 'refresh_customization', + kind: 'message', + T: RefreshCustomizationRequest, + oneof: 'request', + }, + ]); + static fromBinary(bytes, options) { + return new _ChatClientRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatClientRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatClientRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatClientRequest, a, b); + } +}; +var AddCascadeInputRequest = class _AddCascadeInputRequest extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.TextOrScopeItem items = 1; + */ + items = []; + /** + * Deprecated: Use media instead + * + * @generated from field: repeated exa.codeium_common_pb.ImageData images = 2 [deprecated = true]; + * @deprecated + */ + images = []; + /** + * Optional media to include with the message + * + * @generated from field: repeated exa.codeium_common_pb.Media media = 3; + */ + media = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_client_server_pb.AddCascadeInputRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'items', + kind: 'message', + T: TextOrScopeItem, + repeated: true, + }, + { no: 2, name: 'images', kind: 'message', T: ImageData, repeated: true }, + { no: 3, name: 'media', kind: 'message', T: Media, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _AddCascadeInputRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddCascadeInputRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddCascadeInputRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddCascadeInputRequest, a, b); + } +}; +var SendActionToChatPanelRequest = class _SendActionToChatPanelRequest extends Message { + /** + * The action type (e.g. FileMention, CodeBlockMention, setCascadeId, etc.) + * + * @generated from field: string action_type = 1; + */ + actionType = ''; + /** + * The serialized payload for the action + * + * @generated from field: repeated bytes payload = 2; + */ + payload = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_client_server_pb.SendActionToChatPanelRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'action_type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'payload', kind: 'scalar', T: 12, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _SendActionToChatPanelRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SendActionToChatPanelRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SendActionToChatPanelRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_SendActionToChatPanelRequest, a, b); + } +}; +var InitialAckRequest = class _InitialAckRequest extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_client_server_pb.InitialAckRequest'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _InitialAckRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _InitialAckRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _InitialAckRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_InitialAckRequest, a, b); + } +}; +var RefreshCustomizationRequest = class _RefreshCustomizationRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.RefreshCustomizationType config_type = 1; + */ + configType = RefreshCustomizationType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.chat_client_server_pb.RefreshCustomizationRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'config_type', + kind: 'enum', + T: proto3.getEnumType(RefreshCustomizationType), + }, + ]); + static fromBinary(bytes, options) { + return new _RefreshCustomizationRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RefreshCustomizationRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RefreshCustomizationRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_RefreshCustomizationRequest, a, b); + } +}; + +// exa/proto_ts/dist/exa/index_pb/index_pb.js +var IndexMode; +(function (IndexMode2) { + IndexMode2[(IndexMode2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + IndexMode2[(IndexMode2['HALFVEC'] = 1)] = 'HALFVEC'; + IndexMode2[(IndexMode2['BINARY'] = 2)] = 'BINARY'; + IndexMode2[(IndexMode2['BINARY_WITH_RERANK'] = 3)] = 'BINARY_WITH_RERANK'; + IndexMode2[(IndexMode2['BRUTE_FORCE'] = 4)] = 'BRUTE_FORCE'; + IndexMode2[(IndexMode2['RANDOM_SEARCH'] = 5)] = 'RANDOM_SEARCH'; +})(IndexMode || (IndexMode = {})); +proto3.util.setEnumType(IndexMode, 'exa.index_pb.IndexMode', [ { no: 0, name: 'INDEX_MODE_UNSPECIFIED' }, { no: 1, name: 'INDEX_MODE_HALFVEC' }, { no: 2, name: 'INDEX_MODE_BINARY' }, @@ -16974,20 +32855,21 @@ a.util.setEnumType($t, 'exa.index_pb.IndexMode', [ { no: 4, name: 'INDEX_MODE_BRUTE_FORCE' }, { no: 5, name: 'INDEX_MODE_RANDOM_SEARCH' }, ]); -var In; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ERROR = 1)] = 'ERROR'), - (e[(e.QUEUED = 2)] = 'QUEUED'), - (e[(e.CLONING_REPO = 3)] = 'CLONING_REPO'), - (e[(e.SCANNING_REPO = 4)] = 'SCANNING_REPO'), - (e[(e.GENERATING_EMBEDDINGS = 5)] = 'GENERATING_EMBEDDINGS'), - (e[(e.VECTOR_INDEXING = 6)] = 'VECTOR_INDEXING'), - (e[(e.DONE = 7)] = 'DONE'), - (e[(e.CANCELING = 8)] = 'CANCELING'), - (e[(e.CANCELED = 9)] = 'CANCELED')); -})(In || (In = {})); -a.util.setEnumType(In, 'exa.index_pb.IndexingStatus', [ +var IndexingStatus; +(function (IndexingStatus2) { + IndexingStatus2[(IndexingStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + IndexingStatus2[(IndexingStatus2['ERROR'] = 1)] = 'ERROR'; + IndexingStatus2[(IndexingStatus2['QUEUED'] = 2)] = 'QUEUED'; + IndexingStatus2[(IndexingStatus2['CLONING_REPO'] = 3)] = 'CLONING_REPO'; + IndexingStatus2[(IndexingStatus2['SCANNING_REPO'] = 4)] = 'SCANNING_REPO'; + IndexingStatus2[(IndexingStatus2['GENERATING_EMBEDDINGS'] = 5)] = + 'GENERATING_EMBEDDINGS'; + IndexingStatus2[(IndexingStatus2['VECTOR_INDEXING'] = 6)] = 'VECTOR_INDEXING'; + IndexingStatus2[(IndexingStatus2['DONE'] = 7)] = 'DONE'; + IndexingStatus2[(IndexingStatus2['CANCELING'] = 8)] = 'CANCELING'; + IndexingStatus2[(IndexingStatus2['CANCELED'] = 9)] = 'CANCELED'; +})(IndexingStatus || (IndexingStatus = {})); +proto3.util.setEnumType(IndexingStatus, 'exa.index_pb.IndexingStatus', [ { no: 0, name: 'INDEXING_STATUS_UNSPECIFIED' }, { no: 1, name: 'INDEXING_STATUS_ERROR' }, { no: 2, name: 'INDEXING_STATUS_QUEUED' }, @@ -16999,1983 +32881,3355 @@ a.util.setEnumType(In, 'exa.index_pb.IndexingStatus', [ { no: 8, name: 'INDEXING_STATUS_CANCELING' }, { no: 9, name: 'INDEXING_STATUS_CANCELED' }, ]); -var ul = class e extends r { - version = 0; - enterpriseVersion = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexDbVersion'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'version', kind: 'scalar', T: 5 }, - { no: 2, name: 'enterprise_version', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ll = class e extends r { - dbVersion; - cciTimeoutSecs = 0; - indexMode = $t.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexBuildConfig'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'db_version', kind: 'message', T: ul }, - { no: 3, name: 'cci_timeout_secs', kind: 'scalar', T: 5 }, - { no: 4, name: 'index_mode', kind: 'enum', T: a.getEnumType($t) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mn = class e extends r { - gitUrl = ''; - scmProvider = mn.UNSPECIFIED; - autoIndexConfig; - storeSnippets = !1; - whitelistedGroups = []; - useGithubApp = !1; - authUid = ''; - email = ''; - serviceKeyId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.RepositoryConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'git_url', kind: 'scalar', T: 9 }, - { no: 2, name: 'scm_provider', kind: 'enum', T: a.getEnumType(mn) }, - { no: 3, name: 'auto_index_config', kind: 'message', T: El }, - { no: 4, name: 'store_snippets', kind: 'scalar', T: 8 }, - { no: 5, name: 'whitelisted_groups', kind: 'scalar', T: 9, repeated: !0 }, - { no: 6, name: 'use_github_app', kind: 'scalar', T: 8 }, - { no: 7, name: 'auth_uid', kind: 'scalar', T: 9 }, - { no: 9, name: 'email', kind: 'scalar', T: 9 }, - { no: 8, name: 'service_key_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - El = class e extends r { - branchName = ''; - interval; - maxNumAutoIndexes = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.RepositoryConfig.AutoIndexConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'branch_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'interval', kind: 'message', T: k }, - { no: 3, name: 'max_num_auto_indexes', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rs = class e extends r { - pruneTime; - pruneInterval; - enablePrune = !1; - enableSmallestRepoFirst = !1; - enableRoundRobin = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'prune_time', kind: 'message', T: _ }, - { no: 2, name: 'prune_interval', kind: 'message', T: k }, - { no: 3, name: 'enable_prune', kind: 'scalar', T: 8 }, - { no: 4, name: 'enable_smallest_repo_first', kind: 'scalar', T: 8 }, - { no: 5, name: 'enable_round_robin', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _l = class e extends r { - numEmbeddings = o.zero; - indexBytesCount = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.VectorIndexStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'num_embeddings', kind: 'scalar', T: 3 }, - { no: 2, name: 'index_bytes_count', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dl = class e extends r { - progress = 0; - text = ''; - remainingTime; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.ProgressBar'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'progress', kind: 'scalar', T: 2 }, - { no: 2, name: 'text', kind: 'scalar', T: 9 }, - { no: 3, name: 'remaining_time', kind: 'message', T: k }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - le = class e extends r { - id = ''; - repoName = ''; - workspace = ''; - repoInfo; - createdAt; - updatedAt; - scheduledAt; - status = In.UNSPECIFIED; - statusDetail = ''; - autoIndexed = !1; - hasSnippets = !1; - authUid = ''; - email = ''; - repoStats; - indexingProgress = {}; - indexStats; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.Index'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'workspace', kind: 'scalar', T: 9 }, - { no: 4, name: 'repo_info', kind: 'message', T: J }, - { no: 5, name: 'created_at', kind: 'message', T: _ }, - { no: 6, name: 'updated_at', kind: 'message', T: _ }, - { no: 13, name: 'scheduled_at', kind: 'message', T: _ }, - { no: 7, name: 'status', kind: 'enum', T: a.getEnumType(In) }, - { no: 8, name: 'status_detail', kind: 'scalar', T: 9 }, - { no: 9, name: 'auto_indexed', kind: 'scalar', T: 8 }, - { no: 12, name: 'has_snippets', kind: 'scalar', T: 8 }, - { no: 15, name: 'auth_uid', kind: 'scalar', T: 9 }, - { no: 16, name: 'email', kind: 'scalar', T: 9 }, - { no: 14, name: 'repo_stats', kind: 'message', T: Tl }, - { - no: 10, - name: 'indexing_progress', - kind: 'map', - K: 9, - V: { kind: 'message', T: dl }, - }, - { no: 11, name: 'index_stats', kind: 'message', T: _l }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Tl = class e extends r { - size = o.zero; - fileCount = o.zero; - sizeNoIgnore = o.zero; - fileCountNoIgnore = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.Index.RepoStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'size', kind: 'scalar', T: 3 }, - { no: 2, name: 'file_count', kind: 'scalar', T: 3 }, - { no: 3, name: 'size_no_ignore', kind: 'scalar', T: 3 }, - { no: 4, name: 'file_count_no_ignore', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ss = class e extends r { - repoName = ''; - config; - createdAt; - updatedAt; - lastUsedAt; - latestIndex; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.Repository'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'config', kind: 'message', T: Mn }, - { no: 4, name: 'created_at', kind: 'message', T: _ }, - { no: 5, name: 'updated_at', kind: 'message', T: _ }, - { no: 6, name: 'last_used_at', kind: 'message', T: _ }, - { no: 3, name: 'latest_index', kind: 'message', T: le }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ee = class e extends r { - version = { case: void 0 }; - versionAlias = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.RequestIndexVersion'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'commit', kind: 'scalar', T: 9, oneof: 'version' }, - { no: 2, name: 'branch', kind: 'scalar', T: 9, oneof: 'version' }, - { no: 3, name: 'version_alias', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - N = class e extends r { - authToken = ''; - authUid = ''; - serviceKey = ''; - forceTargetPublicIndex = !1; - forceTeamId = ''; - serviceKeyId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.ManagementMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'auth_token', kind: 'scalar', T: 9 }, - { no: 2, name: 'auth_uid', kind: 'scalar', T: 9 }, - { no: 3, name: 'service_key', kind: 'scalar', T: 9 }, - { no: 4, name: 'force_target_public_index', kind: 'scalar', T: 8 }, - { no: 5, name: 'force_team_id', kind: 'scalar', T: 9 }, - { no: 6, name: 'service_key_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - kN = class e extends r { - metadata; - config; - initialIndex; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.AddRepositoryRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'config', kind: 'message', T: Mn }, - { no: 3, name: 'initial_index', kind: 'message', T: Ee }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gN = class e extends r { - repoName = ''; - indexId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.AddRepositoryResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'index_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wN = class e extends r { - metadata; - config; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.EnableIndexingRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'config', kind: 'message', T: ll }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - JN = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.EnableIndexingResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xN = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.DisableIndexingRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - UN = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.DisableIndexingResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - BN = class e extends r { - metadata; - repoName = ''; - config; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.EditRepositoryRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'config', kind: 'message', T: Mn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - FN = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.EditRepositoryResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - MN = class e extends r { - metadata; - repoName = ''; - repoNames = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.DeleteRepositoryRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'repo_names', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yN = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.DeleteRepositoryResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fl = class e extends r { - repoName = ''; - groupId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetRepositoriesFilter'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'group_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hN = class e extends r { - metadata; - filter; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetRepositoriesRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'filter', kind: 'message', T: fl }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - GN = class e extends r { - repositories = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetRepositoriesResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repositories', kind: 'message', T: ss, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bN = class e extends r { - metadata; - repoName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetIndexesRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'repo_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qN = class e extends r { - indexes = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetIndexesResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'indexes', kind: 'message', T: le, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - HN = class e extends r { - metadata; - indexId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetIndexRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'index_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - YN = class e extends r { - index; - repository; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetIndexResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'index', kind: 'message', T: le }, - { no: 2, name: 'repository', kind: 'message', T: ss }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Nl = class e extends r { - indexId = ''; - cciCount = o.zero; - snippetCount = o.zero; - embeddingCount = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.RemoteIndexStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'index_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'cci_count', kind: 'scalar', T: 3 }, - { no: 3, name: 'snippet_count', kind: 'scalar', T: 3 }, - { no: 4, name: 'embedding_count', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - WN = class e extends r { - metadata; - indexIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetRemoteIndexStatsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'index_ids', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - VN = class e extends r { - indexStats = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetRemoteIndexStatsResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'index_stats', kind: 'message', T: Nl, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - XN = class e extends r { - metadata; - repoName = ''; - version; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.AddIndexRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'version', kind: 'message', T: Ee }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - KN = class e extends r { - indexId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.AddIndexResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'index_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vN = class e extends r { - metadata; - indexId = ''; - indexIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.CancelIndexingRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'index_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'index_ids', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zN = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.CancelIndexingResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jN = class e extends r { - metadata; - indexId = ''; - indexIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.RetryIndexingRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'index_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'index_ids', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - QN = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.RetryIndexingResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ZN = class e extends r { - metadata; - indexId = ''; - indexIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.DeleteIndexRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'index_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'index_ids', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $N = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.DeleteIndexResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nS = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.PruneDatabaseRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - eS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.PruneDatabaseResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tS = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetDatabaseStatsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - aS = class e extends r { - databaseTotalBytesCount = o.zero; - tableTotalBytesCount = o.zero; - indexTotalBytesCount = o.zero; - estimatePrunableBytes = o.zero; - isPruning = !1; - lastPruneError = ''; - allTablesBytesCount = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetDatabaseStatsResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'database_total_bytes_count', kind: 'scalar', T: 3 }, - { no: 2, name: 'table_total_bytes_count', kind: 'scalar', T: 3 }, - { no: 3, name: 'index_total_bytes_count', kind: 'scalar', T: 3 }, - { no: 4, name: 'estimate_prunable_bytes', kind: 'scalar', T: 3 }, - { no: 5, name: 'is_pruning', kind: 'scalar', T: 8 }, - { no: 6, name: 'last_prune_error', kind: 'scalar', T: 9 }, - { no: 7, name: 'all_tables_bytes_count', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rS = class e extends r { - metadata; - indexConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.SetIndexConfigRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'index_config', kind: 'message', T: rs }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.SetIndexConfigResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - iS = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetIndexConfigRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - oS = class e extends r { - indexConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetIndexConfigResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'index_config', kind: 'message', T: rs }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mS = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetNumberConnectionsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cS = class e extends r { - connectionsMap = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetNumberConnectionsResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'connections_map', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 13 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - uS = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetConnectionsDebugInfoRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - lS = class e extends r { - debugInfo = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetConnectionsDebugInfoResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'debug_info', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ES = class e extends r { - metadata; - includeIncomplete = !1; - groupIdsFilter = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetIndexedRepositoriesRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: w }, - { no: 2, name: 'include_incomplete', kind: 'scalar', T: 8 }, - { no: 3, name: 'group_ids_filter', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _S = class e extends r { - repositories = []; - indexes = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetIndexedRepositoriesResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repositories', kind: 'message', T: J, repeated: !0 }, - { no: 2, name: 'indexes', kind: 'message', T: le, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Sl = class e extends r { - repository; - excludedFiles = []; - filterPaths = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.RepositoryFilter'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repository', kind: 'message', T: J }, - { no: 2, name: 'excluded_files', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'filter_paths', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dS = class e extends r { - metadata; - repository; - query = ''; - maxItems = 0; - groupIdsFilter = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetMatchingFilePathsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: w }, - { no: 2, name: 'repository', kind: 'message', T: J }, - { no: 3, name: 'query', kind: 'scalar', T: 9 }, - { no: 4, name: 'max_items', kind: 'scalar', T: 13 }, - { no: 5, name: 'group_ids_filter', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - TS = class e extends r { - relativeFilePaths = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetMatchingFilePathsResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'relative_file_paths', +var IndexDbVersion = class _IndexDbVersion extends Message { + /** + * Overrides the default versions specified in constants/index.go. + * A change will cause all repositories to be reindexed on redeployment of the + * index service. Intended for cases where existing indexing data needs to be + * invalidated, ex. upon a change in the embedding model, db model, or cci + * parsing + * + * @generated from field: int32 version = 1; + */ + version = 0; + /** + * @generated from field: int32 enterprise_version = 2; + */ + enterpriseVersion = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexDbVersion'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'version', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'enterprise_version', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexDbVersion().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexDbVersion().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexDbVersion().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexDbVersion, a, b); + } +}; +var IndexBuildConfig = class _IndexBuildConfig extends Message { + /** + * @generated from field: exa.index_pb.IndexDbVersion db_version = 2; + */ + dbVersion; + /** + * @generated from field: int32 cci_timeout_secs = 3; + */ + cciTimeoutSecs = 0; + /** + * @generated from field: exa.index_pb.IndexMode index_mode = 4; + */ + indexMode = IndexMode.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexBuildConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 2, name: 'db_version', kind: 'message', T: IndexDbVersion }, + { + no: 3, + name: 'cci_timeout_secs', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'index_mode', + kind: 'enum', + T: proto3.getEnumType(IndexMode), + }, + ]); + static fromBinary(bytes, options) { + return new _IndexBuildConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexBuildConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexBuildConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexBuildConfig, a, b); + } +}; +var RepositoryConfig = class _RepositoryConfig extends Message { + /** + * @generated from field: string git_url = 1; + */ + gitUrl = ''; + /** + * @generated from field: exa.codeium_common_pb.ScmProvider scm_provider = 2; + */ + scmProvider = ScmProvider.UNSPECIFIED; + /** + * @generated from field: exa.index_pb.RepositoryConfig.AutoIndexConfig auto_index_config = 3; + */ + autoIndexConfig; + /** + * @generated from field: bool store_snippets = 4; + */ + storeSnippets = false; + /** + * @generated from field: repeated string whitelisted_groups = 5; + */ + whitelistedGroups = []; + /** + * @generated from field: bool use_github_app = 6; + */ + useGithubApp = false; + /** + * @generated from field: string auth_uid = 7; + */ + authUid = ''; + /** + * @generated from field: string email = 9; + */ + email = ''; + /** + * @generated from field: string service_key_id = 8; + */ + serviceKeyId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.RepositoryConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'git_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'scm_provider', + kind: 'enum', + T: proto3.getEnumType(ScmProvider), + }, + { + no: 3, + name: 'auto_index_config', + kind: 'message', + T: RepositoryConfig_AutoIndexConfig, + }, + { + no: 4, + name: 'store_snippets', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 5, name: 'whitelisted_groups', kind: 'scalar', T: 9, repeated: true }, + { + no: 6, + name: 'use_github_app', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'auth_uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'email', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'service_key_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _RepositoryConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RepositoryConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RepositoryConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RepositoryConfig, a, b); + } +}; +var RepositoryConfig_AutoIndexConfig = class _RepositoryConfig_AutoIndexConfig extends Message { + /** + * @generated from field: string branch_name = 1; + */ + branchName = ''; + /** + * Interval with which to automatically index the latest + * commit of the provided branch. + * + * @generated from field: google.protobuf.Duration interval = 2; + */ + interval; + /** + * Automatically prune oldest auto-indexes when number of + * them exceeds this amount. Only considers indexes that + * are in the DONE state. + * + * @generated from field: int32 max_num_auto_indexes = 3; + */ + maxNumAutoIndexes = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.RepositoryConfig.AutoIndexConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'branch_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'interval', kind: 'message', T: Duration }, + { + no: 3, + name: 'max_num_auto_indexes', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _RepositoryConfig_AutoIndexConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RepositoryConfig_AutoIndexConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RepositoryConfig_AutoIndexConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_RepositoryConfig_AutoIndexConfig, a, b); + } +}; +var IndexConfig = class _IndexConfig extends Message { + /** + * @generated from field: google.protobuf.Timestamp prune_time = 1; + */ + pruneTime; + /** + * @generated from field: google.protobuf.Duration prune_interval = 2; + */ + pruneInterval; + /** + * @generated from field: bool enable_prune = 3; + */ + enablePrune = false; + /** + * @generated from field: bool enable_smallest_repo_first = 4; + */ + enableSmallestRepoFirst = false; + /** + * @generated from field: bool enable_round_robin = 5; + */ + enableRoundRobin = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'prune_time', kind: 'message', T: Timestamp }, + { no: 2, name: 'prune_interval', kind: 'message', T: Duration }, + { + no: 3, + name: 'enable_prune', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'enable_smallest_repo_first', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'enable_round_robin', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexConfig, a, b); + } +}; +var VectorIndexStats = class _VectorIndexStats extends Message { + /** + * @generated from field: int64 num_embeddings = 1; + */ + numEmbeddings = protoInt64.zero; + /** + * @generated from field: int64 index_bytes_count = 2; + */ + indexBytesCount = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.VectorIndexStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'num_embeddings', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 2, + name: 'index_bytes_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _VectorIndexStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _VectorIndexStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _VectorIndexStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_VectorIndexStats, a, b); + } +}; +var ProgressBar = class _ProgressBar extends Message { + /** + * Negative progress is used to denote that the progress is not known. This is + * useful if we want to report some information through the text only. + * + * @generated from field: float progress = 1; + */ + progress = 0; + /** + * @generated from field: string text = 2; + */ + text = ''; + /** + * @generated from field: google.protobuf.Duration remaining_time = 3; + */ + remainingTime; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.ProgressBar'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'progress', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 2, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'remaining_time', kind: 'message', T: Duration }, + ]); + static fromBinary(bytes, options) { + return new _ProgressBar().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ProgressBar().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ProgressBar().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ProgressBar, a, b); + } +}; +var Index = class _Index extends Message { + /** + * @generated from field: string id = 1; + */ + id = ''; + /** + * @generated from field: string repo_name = 2; + */ + repoName = ''; + /** + * @generated from field: string workspace = 3; + */ + workspace = ''; + /** + * @generated from field: exa.codeium_common_pb.GitRepoInfo repo_info = 4; + */ + repoInfo; + /** + * @generated from field: google.protobuf.Timestamp created_at = 5; + */ + createdAt; + /** + * @generated from field: google.protobuf.Timestamp updated_at = 6; + */ + updatedAt; + /** + * @generated from field: google.protobuf.Timestamp scheduled_at = 13; + */ + scheduledAt; + /** + * @generated from field: exa.index_pb.IndexingStatus status = 7; + */ + status = IndexingStatus.UNSPECIFIED; + /** + * @generated from field: string status_detail = 8; + */ + statusDetail = ''; + /** + * Whether or not the index was auto-indexed. + * + * @generated from field: bool auto_indexed = 9; + */ + autoIndexed = false; + /** + * Whether the index has snippets stored in the database. + * + * @generated from field: bool has_snippets = 12; + */ + hasSnippets = false; + /** + * @generated from field: string auth_uid = 15; + */ + authUid = ''; + /** + * @generated from field: string email = 16; + */ + email = ''; + /** + * @generated from field: exa.index_pb.Index.RepoStats repo_stats = 14; + */ + repoStats; + /** + * The below fields are not directly stored in the indices postgres table. + * The DB client will not return these directly when "getting" index. + * + * @generated from field: map indexing_progress = 10; + */ + indexingProgress = {}; + /** + * Only valid to consume if index is DONE. + * + * @generated from field: exa.index_pb.VectorIndexStats index_stats = 11; + */ + indexStats; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.Index'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'workspace', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'repo_info', kind: 'message', T: GitRepoInfo }, + { no: 5, name: 'created_at', kind: 'message', T: Timestamp }, + { no: 6, name: 'updated_at', kind: 'message', T: Timestamp }, + { no: 13, name: 'scheduled_at', kind: 'message', T: Timestamp }, + { + no: 7, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(IndexingStatus), + }, + { + no: 8, + name: 'status_detail', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'auto_indexed', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 12, + name: 'has_snippets', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 15, + name: 'auth_uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 16, + name: 'email', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 14, name: 'repo_stats', kind: 'message', T: Index_RepoStats }, + { + no: 10, + name: 'indexing_progress', + kind: 'map', + K: 9, + V: { kind: 'message', T: ProgressBar }, + }, + { no: 11, name: 'index_stats', kind: 'message', T: VectorIndexStats }, + ]); + static fromBinary(bytes, options) { + return new _Index().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Index().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Index().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Index, a, b); + } +}; +var Index_RepoStats = class _Index_RepoStats extends Message { + /** + * @generated from field: int64 size = 1; + */ + size = protoInt64.zero; + /** + * @generated from field: int64 file_count = 2; + */ + fileCount = protoInt64.zero; + /** + * @generated from field: int64 size_no_ignore = 3; + */ + sizeNoIgnore = protoInt64.zero; + /** + * @generated from field: int64 file_count_no_ignore = 4; + */ + fileCountNoIgnore = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.Index.RepoStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'size', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 2, + name: 'file_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'size_no_ignore', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 4, + name: 'file_count_no_ignore', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _Index_RepoStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Index_RepoStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Index_RepoStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Index_RepoStats, a, b); + } +}; +var Repository2 = class _Repository extends Message { + /** + * Repositories are unique with respec to repo_name. + * + * @generated from field: string repo_name = 1; + */ + repoName = ''; + /** + * Git URL will be redacted if message is used for response. + * + * @generated from field: exa.index_pb.RepositoryConfig config = 2; + */ + config; + /** + * @generated from field: google.protobuf.Timestamp created_at = 4; + */ + createdAt; + /** + * @generated from field: google.protobuf.Timestamp updated_at = 5; + */ + updatedAt; + /** + * @generated from field: google.protobuf.Timestamp last_used_at = 6; + */ + lastUsedAt; + /** + * The below fields are not directly stored in the indices postgres table. + * The DB client will not return these directly when "getting" repository. + * + * @generated from field: exa.index_pb.Index latest_index = 3; + */ + latestIndex; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.Repository'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'config', kind: 'message', T: RepositoryConfig }, + { no: 4, name: 'created_at', kind: 'message', T: Timestamp }, + { no: 5, name: 'updated_at', kind: 'message', T: Timestamp }, + { no: 6, name: 'last_used_at', kind: 'message', T: Timestamp }, + { no: 3, name: 'latest_index', kind: 'message', T: Index }, + ]); + static fromBinary(bytes, options) { + return new _Repository().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Repository().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Repository().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Repository, a, b); + } +}; +var RequestIndexVersion = class _RequestIndexVersion extends Message { + /** + * @generated from oneof exa.index_pb.RequestIndexVersion.version + */ + version = { case: void 0 }; + /** + * Optional alias for the version of the repo to index. + * + * @generated from field: string version_alias = 3; + */ + versionAlias = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.RequestIndexVersion'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'commit', kind: 'scalar', T: 9, oneof: 'version' }, + { no: 2, name: 'branch', kind: 'scalar', T: 9, oneof: 'version' }, + { + no: 3, + name: 'version_alias', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _RequestIndexVersion().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RequestIndexVersion().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RequestIndexVersion().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RequestIndexVersion, a, b); + } +}; +var ManagementMetadata = class _ManagementMetadata extends Message { + /** + * This is temporary one time auth_token generated by user. + * + * @generated from field: string auth_token = 1; + */ + authToken = ''; + /** + * This is not set by clients but is rather used internally for tracking + * users' requests. + * + * @generated from field: string auth_uid = 2; + */ + authUid = ''; + /** + * This is long lasting service_key generated by user. + * + * @generated from field: string service_key = 3; + */ + serviceKey = ''; + /** + * Only used by Codeium internal team to forcefully target the public indexing + * service rather than the team-specific indexing service instance. + * + * @generated from field: bool force_target_public_index = 4; + */ + forceTargetPublicIndex = false; + /** + * Only used by Codeium internal team to forcefully target a specific indexing + * service rather than the team-specific indexing service instance, for use + * with eval pipelines. + * + * @generated from field: string force_team_id = 5; + */ + forceTeamId = ''; + /** + * @generated from field: string service_key_id = 6; + */ + serviceKeyId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.ManagementMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'auth_token', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'auth_uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'service_key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'force_target_public_index', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'force_team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'service_key_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ManagementMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ManagementMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ManagementMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ManagementMetadata, a, b); + } +}; +var AddRepositoryRequest = class _AddRepositoryRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: exa.index_pb.RepositoryConfig config = 2; + */ + config; + /** + * Request for the first index of this repository. + * + * Only used by Codeium internal team to forcefully target the public indexing + * service rather than the team-specific indexing service instance. + * + * @generated from field: exa.index_pb.RequestIndexVersion initial_index = 3; + */ + initialIndex; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.AddRepositoryRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 2, name: 'config', kind: 'message', T: RepositoryConfig }, + { no: 3, name: 'initial_index', kind: 'message', T: RequestIndexVersion }, + ]); + static fromBinary(bytes, options) { + return new _AddRepositoryRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddRepositoryRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddRepositoryRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddRepositoryRequest, a, b); + } +}; +var AddRepositoryResponse = class _AddRepositoryResponse extends Message { + /** + * @generated from field: string repo_name = 1; + */ + repoName = ''; + /** + * @generated from field: string index_id = 2; + */ + indexId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.AddRepositoryResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _AddRepositoryResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddRepositoryResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddRepositoryResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddRepositoryResponse, a, b); + } +}; +var EnableIndexingRequest = class _EnableIndexingRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: exa.index_pb.IndexBuildConfig config = 2; + */ + config; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.EnableIndexingRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 2, name: 'config', kind: 'message', T: IndexBuildConfig }, + ]); + static fromBinary(bytes, options) { + return new _EnableIndexingRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EnableIndexingRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EnableIndexingRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EnableIndexingRequest, a, b); + } +}; +var EnableIndexingResponse = class _EnableIndexingResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.EnableIndexingResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _EnableIndexingResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EnableIndexingResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EnableIndexingResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EnableIndexingResponse, a, b); + } +}; +var DisableIndexingRequest = class _DisableIndexingRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.DisableIndexingRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _DisableIndexingRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DisableIndexingRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DisableIndexingRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DisableIndexingRequest, a, b); + } +}; +var DisableIndexingResponse = class _DisableIndexingResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.DisableIndexingResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _DisableIndexingResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DisableIndexingResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DisableIndexingResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DisableIndexingResponse, a, b); + } +}; +var EditRepositoryRequest = class _EditRepositoryRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: string repo_name = 2; + */ + repoName = ''; + /** + * Git url from config must match the repo_name. + * + * @generated from field: exa.index_pb.RepositoryConfig config = 3; + */ + config; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.EditRepositoryRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'config', kind: 'message', T: RepositoryConfig }, + ]); + static fromBinary(bytes, options) { + return new _EditRepositoryRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EditRepositoryRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EditRepositoryRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EditRepositoryRequest, a, b); + } +}; +var EditRepositoryResponse = class _EditRepositoryResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.EditRepositoryResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _EditRepositoryResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EditRepositoryResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EditRepositoryResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EditRepositoryResponse, a, b); + } +}; +var DeleteRepositoryRequest = class _DeleteRepositoryRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: string repo_name = 2; + */ + repoName = ''; + /** + * @generated from field: repeated string repo_names = 3; + */ + repoNames = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.DeleteRepositoryRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'repo_names', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _DeleteRepositoryRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DeleteRepositoryRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DeleteRepositoryRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DeleteRepositoryRequest, a, b); + } +}; +var DeleteRepositoryResponse = class _DeleteRepositoryResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.DeleteRepositoryResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _DeleteRepositoryResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DeleteRepositoryResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DeleteRepositoryResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DeleteRepositoryResponse, a, b); + } +}; +var GetRepositoriesFilter = class _GetRepositoriesFilter extends Message { + /** + * @generated from field: string repo_name = 1; + */ + repoName = ''; + /** + * @generated from field: string group_id = 2; + */ + groupId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetRepositoriesFilter'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'group_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GetRepositoriesFilter().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetRepositoriesFilter().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetRepositoriesFilter().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetRepositoriesFilter, a, b); + } +}; +var GetRepositoriesRequest = class _GetRepositoriesRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * Filter for repos with the group_id whitelisted. + * + * @generated from field: exa.index_pb.GetRepositoriesFilter filter = 2; + */ + filter; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetRepositoriesRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 2, name: 'filter', kind: 'message', T: GetRepositoriesFilter }, + ]); + static fromBinary(bytes, options) { + return new _GetRepositoriesRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetRepositoriesRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetRepositoriesRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetRepositoriesRequest, a, b); + } +}; +var GetRepositoriesResponse = class _GetRepositoriesResponse extends Message { + /** + * @generated from field: repeated exa.index_pb.Repository repositories = 1; + */ + repositories = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetRepositoriesResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'repositories', + kind: 'message', + T: Repository2, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetRepositoriesResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetRepositoriesResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetRepositoriesResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetRepositoriesResponse, a, b); + } +}; +var GetIndexesRequest = class _GetIndexesRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: string repo_name = 2; + */ + repoName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetIndexesRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GetIndexesRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetIndexesRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetIndexesRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetIndexesRequest, a, b); + } +}; +var GetIndexesResponse = class _GetIndexesResponse extends Message { + /** + * @generated from field: repeated exa.index_pb.Index indexes = 1; + */ + indexes = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetIndexesResponse'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'indexes', kind: 'message', T: Index, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _GetIndexesResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetIndexesResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetIndexesResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetIndexesResponse, a, b); + } +}; +var GetIndexRequest = class _GetIndexRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: string index_id = 2; + */ + indexId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetIndexRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GetIndexRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetIndexRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetIndexRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetIndexRequest, a, b); + } +}; +var GetIndexResponse = class _GetIndexResponse extends Message { + /** + * @generated from field: exa.index_pb.Index index = 1; + */ + index; + /** + * @generated from field: exa.index_pb.Repository repository = 2; + */ + repository; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetIndexResponse'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'index', kind: 'message', T: Index }, + { no: 2, name: 'repository', kind: 'message', T: Repository2 }, + ]); + static fromBinary(bytes, options) { + return new _GetIndexResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetIndexResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetIndexResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetIndexResponse, a, b); + } +}; +var RemoteIndexStats = class _RemoteIndexStats extends Message { + /** + * @generated from field: string index_id = 1; + */ + indexId = ''; + /** + * @generated from field: int64 cci_count = 2; + */ + cciCount = protoInt64.zero; + /** + * @generated from field: int64 snippet_count = 3; + */ + snippetCount = protoInt64.zero; + /** + * @generated from field: int64 embedding_count = 4; + */ + embeddingCount = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.RemoteIndexStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'cci_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'snippet_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 4, + name: 'embedding_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _RemoteIndexStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RemoteIndexStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RemoteIndexStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RemoteIndexStats, a, b); + } +}; +var GetRemoteIndexStatsRequest = class _GetRemoteIndexStatsRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: repeated string index_ids = 2; + */ + indexIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetRemoteIndexStatsRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 2, name: 'index_ids', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _GetRemoteIndexStatsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetRemoteIndexStatsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetRemoteIndexStatsRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetRemoteIndexStatsRequest, a, b); + } +}; +var GetRemoteIndexStatsResponse = class _GetRemoteIndexStatsResponse extends Message { + /** + * @generated from field: repeated exa.index_pb.RemoteIndexStats index_stats = 1; + */ + indexStats = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetRemoteIndexStatsResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'index_stats', + kind: 'message', + T: RemoteIndexStats, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetRemoteIndexStatsResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetRemoteIndexStatsResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetRemoteIndexStatsResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetRemoteIndexStatsResponse, a, b); + } +}; +var AddIndexRequest = class _AddIndexRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: string repo_name = 2; + */ + repoName = ''; + /** + * @generated from field: exa.index_pb.RequestIndexVersion version = 3; + */ + version; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.AddIndexRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'version', kind: 'message', T: RequestIndexVersion }, + ]); + static fromBinary(bytes, options) { + return new _AddIndexRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddIndexRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddIndexRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddIndexRequest, a, b); + } +}; +var AddIndexResponse = class _AddIndexResponse extends Message { + /** + * @generated from field: string index_id = 1; + */ + indexId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.AddIndexResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _AddIndexResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddIndexResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddIndexResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddIndexResponse, a, b); + } +}; +var CancelIndexingRequest = class _CancelIndexingRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: string index_id = 2; + */ + indexId = ''; + /** + * @generated from field: repeated string index_ids = 3; + */ + indexIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.CancelIndexingRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'index_ids', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _CancelIndexingRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CancelIndexingRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CancelIndexingRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CancelIndexingRequest, a, b); + } +}; +var CancelIndexingResponse = class _CancelIndexingResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.CancelIndexingResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CancelIndexingResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CancelIndexingResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CancelIndexingResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CancelIndexingResponse, a, b); + } +}; +var RetryIndexingRequest = class _RetryIndexingRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: string index_id = 2; + */ + indexId = ''; + /** + * @generated from field: repeated string index_ids = 3; + */ + indexIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.RetryIndexingRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'index_ids', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _RetryIndexingRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RetryIndexingRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RetryIndexingRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RetryIndexingRequest, a, b); + } +}; +var RetryIndexingResponse = class _RetryIndexingResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.RetryIndexingResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _RetryIndexingResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RetryIndexingResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RetryIndexingResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RetryIndexingResponse, a, b); + } +}; +var DeleteIndexRequest = class _DeleteIndexRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: string index_id = 2; + */ + indexId = ''; + /** + * @generated from field: repeated string index_ids = 3; + */ + indexIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.DeleteIndexRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'index_ids', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _DeleteIndexRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DeleteIndexRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DeleteIndexRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DeleteIndexRequest, a, b); + } +}; +var DeleteIndexResponse = class _DeleteIndexResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.DeleteIndexResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _DeleteIndexResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DeleteIndexResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DeleteIndexResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DeleteIndexResponse, a, b); + } +}; +var PruneDatabaseRequest = class _PruneDatabaseRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.PruneDatabaseRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _PruneDatabaseRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PruneDatabaseRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PruneDatabaseRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PruneDatabaseRequest, a, b); + } +}; +var PruneDatabaseResponse = class _PruneDatabaseResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.PruneDatabaseResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _PruneDatabaseResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PruneDatabaseResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PruneDatabaseResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PruneDatabaseResponse, a, b); + } +}; +var GetDatabaseStatsRequest = class _GetDatabaseStatsRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetDatabaseStatsRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _GetDatabaseStatsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetDatabaseStatsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetDatabaseStatsRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetDatabaseStatsRequest, a, b); + } +}; +var GetDatabaseStatsResponse = class _GetDatabaseStatsResponse extends Message { + /** + * @generated from field: int64 database_total_bytes_count = 1; + */ + databaseTotalBytesCount = protoInt64.zero; + /** + * @generated from field: int64 table_total_bytes_count = 2; + */ + tableTotalBytesCount = protoInt64.zero; + /** + * @generated from field: int64 index_total_bytes_count = 3; + */ + indexTotalBytesCount = protoInt64.zero; + /** + * @generated from field: int64 estimate_prunable_bytes = 4; + */ + estimatePrunableBytes = protoInt64.zero; + /** + * Database is in the process of pruning. + * + * @generated from field: bool is_pruning = 5; + */ + isPruning = false; + /** + * @generated from field: string last_prune_error = 6; + */ + lastPruneError = ''; + /** + * Total bytes used by all tables in the database, not just the ones in + * GetTableNames + * + * @generated from field: int64 all_tables_bytes_count = 7; + */ + allTablesBytesCount = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetDatabaseStatsResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'database_total_bytes_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 2, + name: 'table_total_bytes_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'index_total_bytes_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 4, + name: 'estimate_prunable_bytes', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 5, + name: 'is_pruning', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'last_prune_error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'all_tables_bytes_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _GetDatabaseStatsResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetDatabaseStatsResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetDatabaseStatsResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetDatabaseStatsResponse, a, b); + } +}; +var SetIndexConfigRequest = class _SetIndexConfigRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: exa.index_pb.IndexConfig index_config = 2; + */ + indexConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.SetIndexConfigRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 2, name: 'index_config', kind: 'message', T: IndexConfig }, + ]); + static fromBinary(bytes, options) { + return new _SetIndexConfigRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SetIndexConfigRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SetIndexConfigRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SetIndexConfigRequest, a, b); + } +}; +var SetIndexConfigResponse = class _SetIndexConfigResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.SetIndexConfigResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _SetIndexConfigResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SetIndexConfigResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SetIndexConfigResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SetIndexConfigResponse, a, b); + } +}; +var GetIndexConfigRequest = class _GetIndexConfigRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetIndexConfigRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _GetIndexConfigRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetIndexConfigRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetIndexConfigRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetIndexConfigRequest, a, b); + } +}; +var GetIndexConfigResponse = class _GetIndexConfigResponse extends Message { + /** + * @generated from field: exa.index_pb.IndexConfig index_config = 1; + */ + indexConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetIndexConfigResponse'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'index_config', kind: 'message', T: IndexConfig }, + ]); + static fromBinary(bytes, options) { + return new _GetIndexConfigResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetIndexConfigResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetIndexConfigResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GetIndexConfigResponse, a, b); + } +}; +var GetNumberConnectionsRequest = class _GetNumberConnectionsRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetNumberConnectionsRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _GetNumberConnectionsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetNumberConnectionsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetNumberConnectionsRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetNumberConnectionsRequest, a, b); + } +}; +var GetNumberConnectionsResponse = class _GetNumberConnectionsResponse extends Message { + /** + * @generated from field: map connections_map = 1; + */ + connectionsMap = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetNumberConnectionsResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'connections_map', + kind: 'map', + K: 9, + V: { kind: 'scalar', - T: 9, - repeated: !0, + T: 13, + /* ScalarType.UINT32 */ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fS = class e extends r { - metadata; - embedding; - repositoryFilters = []; - maxResults = o.zero; - groupIdsFilter = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetNearestCCIsFromEmbeddingRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: w }, - { no: 2, name: 'embedding', kind: 'message', T: en }, - { - no: 3, - name: 'repository_filters', - kind: 'message', - T: Sl, - repeated: !0, - }, - { no: 4, name: 'max_results', kind: 'scalar', T: 3 }, - { no: 5, name: 'group_ids_filter', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Il = class e extends r { - codeContextItem; - score = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.ScoredContextItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'code_context_item', kind: 'message', T: I }, - { no: 2, name: 'score', kind: 'scalar', T: 2 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - NS = class e extends r { - scoredContextItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetNearestCCIsFromEmbeddingResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'scored_context_items', - kind: 'message', - T: Il, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - SS = class e extends r { - metadata; - codeContextItems = []; - snippetType = cn.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetEmbeddingsForCodeContextItemsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: w }, - { - no: 2, - name: 'code_context_items', - kind: 'message', - T: I, - repeated: !0, - }, - { no: 3, name: 'snippet_type', kind: 'enum', T: a.getEnumType(cn) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - IS = class e extends r { - embeddings = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.GetEmbeddingsForCodeContextItemsResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'embeddings', kind: 'message', T: en, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pS = class e extends r { - repositoryName = ''; - fileCount = o.zero; - codeContextItemCount = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexStats'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repository_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'file_count', kind: 'scalar', T: 3 }, - { no: 3, name: 'code_context_item_count', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - OS = class e extends r { - uid = o.zero; - eventOneof = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'uid', kind: 'scalar', T: 4 }, - { no: 2, name: 'deletion', kind: 'message', T: pl, oneof: 'event_oneof' }, - { no: 3, name: 'untrack', kind: 'message', T: Ol, oneof: 'event_oneof' }, - { no: 4, name: 'update', kind: 'message', T: Al, oneof: 'event_oneof' }, - { - no: 5, - name: 'add_workspace', - kind: 'message', - T: Rl, - oneof: 'event_oneof', - }, - { - no: 6, - name: 'remove_workspace', - kind: 'message', - T: Ll, - oneof: 'event_oneof', - }, - { - no: 7, - name: 'ignore_workspace', - kind: 'message', - T: Pl, - oneof: 'event_oneof', - }, - { - no: 8, - name: 'add_commit', - kind: 'message', - T: Dl, - oneof: 'event_oneof', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pl = class e extends r { - absoluteUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent.Deletion'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ol = class e extends r { - absoluteUri = ''; - paths = []; - workspaceUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent.Untrack'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'paths', kind: 'message', T: wn, repeated: !0 }, - { no: 3, name: 'workspace_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Al = class e extends r { - absoluteUri = ''; - paths = []; - modTime; - addWorkspaceInfo; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent.Update'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'paths', kind: 'message', T: wn, repeated: !0 }, - { no: 3, name: 'mod_time', kind: 'message', T: _ }, - { no: 4, name: 'add_workspace_info', kind: 'message', T: Cl }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Cl = class e extends r { - addWorkspaceUid = o.zero; - addWorkspaceQueueUid = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent.Update.AddWorkspaceInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'add_workspace_uid', kind: 'scalar', T: 4 }, - { no: 2, name: 'add_workspace_queue_uid', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Rl = class e extends r { - addWorkspaceUid = o.zero; - addWorkspaceQueueUid = o.zero; - workspaceUri = ''; - numFiles = o.zero; - size = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent.AddWorkspace'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'add_workspace_uid', kind: 'scalar', T: 4 }, - { no: 2, name: 'add_workspace_queue_uid', kind: 'scalar', T: 4 }, - { no: 3, name: 'workspace_uri', kind: 'scalar', T: 9 }, - { no: 4, name: 'num_files', kind: 'scalar', T: 3 }, - { no: 5, name: 'size', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ll = class e extends r { - workspaceUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent.RemoveWorkspace'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspace_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Pl = class e extends r { - workspaceUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent.IgnoreWorkspace'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspace_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Dl = class e extends r { - sha = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.index_pb.IndexerEvent.AddCommit'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'sha', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var na; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.HYBRID = 1)] = 'HYBRID'), - (e[(e.KEYWORD = 2)] = 'KEYWORD'), - (e[(e.APPROXIMATE_KNN = 3)] = 'APPROXIMATE_KNN'), - (e[(e.BRUTE_FORCE_KNN = 4)] = 'BRUTE_FORCE_KNN')); -})(na || (na = {})); -a.util.setEnumType(na, 'exa.opensearch_clients_pb.SearchMode', [ + }, + ]); + static fromBinary(bytes, options) { + return new _GetNumberConnectionsResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetNumberConnectionsResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetNumberConnectionsResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetNumberConnectionsResponse, a, b); + } +}; +var GetConnectionsDebugInfoRequest = class _GetConnectionsDebugInfoRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetConnectionsDebugInfoRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _GetConnectionsDebugInfoRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetConnectionsDebugInfoRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetConnectionsDebugInfoRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetConnectionsDebugInfoRequest, a, b); + } +}; +var GetConnectionsDebugInfoResponse = class _GetConnectionsDebugInfoResponse extends Message { + /** + * @generated from field: string debug_info = 1; + */ + debugInfo = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetConnectionsDebugInfoResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'debug_info', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GetConnectionsDebugInfoResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetConnectionsDebugInfoResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetConnectionsDebugInfoResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetConnectionsDebugInfoResponse, a, b); + } +}; +var GetIndexedRepositoriesRequest = class _GetIndexedRepositoriesRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; + */ + metadata; + /** + * @generated from field: bool include_incomplete = 2; + */ + includeIncomplete = false; + /** + * @generated from field: repeated string group_ids_filter = 3; + */ + groupIdsFilter = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetIndexedRepositoriesRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: Metadata }, + { + no: 2, + name: 'include_incomplete', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 3, name: 'group_ids_filter', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _GetIndexedRepositoriesRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetIndexedRepositoriesRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetIndexedRepositoriesRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetIndexedRepositoriesRequest, a, b); + } +}; +var GetIndexedRepositoriesResponse = class _GetIndexedRepositoriesResponse extends Message { + /** + * TODO(matt): This field is only kept for backward compatibility, remove in + * the future. + * + * @generated from field: repeated exa.codeium_common_pb.GitRepoInfo repositories = 1; + */ + repositories = []; + /** + * Will not contain progress or index stats. + * + * @generated from field: repeated exa.index_pb.Index indexes = 2; + */ + indexes = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetIndexedRepositoriesResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'repositories', + kind: 'message', + T: GitRepoInfo, + repeated: true, + }, + { no: 2, name: 'indexes', kind: 'message', T: Index, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _GetIndexedRepositoriesResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetIndexedRepositoriesResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetIndexedRepositoriesResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetIndexedRepositoriesResponse, a, b); + } +}; +var RepositoryFilter = class _RepositoryFilter extends Message { + /** + * Owner and name are required. If commit is ommitted, will pick any version. + * + * @generated from field: exa.codeium_common_pb.GitRepoInfo repository = 1; + */ + repository; + /** + * NOTE: This is unimplemented. + * + * @generated from field: repeated string excluded_files = 2; + */ + excludedFiles = []; + /** + * Relative paths to prioritize within the repository. If any filter paths are + * provided, the search limit will be 10x-ed and the results will be + * post-filtered. This is because we cannot filter at query time and use the + * vector index at the same time. Remaining space in the max results will be + * filled up with the rest of the results. A filter path is a match if the + * relative path of the actual file contains the filter path as a prefix. + * + * @generated from field: repeated string filter_paths = 3; + */ + filterPaths = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.RepositoryFilter'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'repository', kind: 'message', T: GitRepoInfo }, + { no: 2, name: 'excluded_files', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'filter_paths', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _RepositoryFilter().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RepositoryFilter().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RepositoryFilter().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RepositoryFilter, a, b); + } +}; +var GetMatchingFilePathsRequest = class _GetMatchingFilePathsRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; + */ + metadata; + /** + * @generated from field: exa.codeium_common_pb.GitRepoInfo repository = 2; + */ + repository; + /** + * @generated from field: string query = 3; + */ + query = ''; + /** + * @generated from field: uint32 max_items = 4; + */ + maxItems = 0; + /** + * @generated from field: repeated string group_ids_filter = 5; + */ + groupIdsFilter = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetMatchingFilePathsRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: Metadata }, + { no: 2, name: 'repository', kind: 'message', T: GitRepoInfo }, + { + no: 3, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'max_items', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 5, name: 'group_ids_filter', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _GetMatchingFilePathsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetMatchingFilePathsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetMatchingFilePathsRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetMatchingFilePathsRequest, a, b); + } +}; +var GetMatchingFilePathsResponse = class _GetMatchingFilePathsResponse extends Message { + /** + * @generated from field: repeated string relative_file_paths = 1; + */ + relativeFilePaths = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetMatchingFilePathsResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'relative_file_paths', + kind: 'scalar', + T: 9, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetMatchingFilePathsResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetMatchingFilePathsResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetMatchingFilePathsResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetMatchingFilePathsResponse, a, b); + } +}; +var GetNearestCCIsFromEmbeddingRequest = class _GetNearestCCIsFromEmbeddingRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; + */ + metadata; + /** + * @generated from field: exa.codeium_common_pb.Embedding embedding = 2; + */ + embedding; + /** + * @generated from field: repeated exa.index_pb.RepositoryFilter repository_filters = 3; + */ + repositoryFilters = []; + /** + * @generated from field: int64 max_results = 4; + */ + maxResults = protoInt64.zero; + /** + * list of group ids the user is in, populated by api server + * + * @generated from field: repeated string group_ids_filter = 5; + */ + groupIdsFilter = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetNearestCCIsFromEmbeddingRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: Metadata }, + { no: 2, name: 'embedding', kind: 'message', T: Embedding }, + { + no: 3, + name: 'repository_filters', + kind: 'message', + T: RepositoryFilter, + repeated: true, + }, + { + no: 4, + name: 'max_results', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { no: 5, name: 'group_ids_filter', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _GetNearestCCIsFromEmbeddingRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetNearestCCIsFromEmbeddingRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetNearestCCIsFromEmbeddingRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetNearestCCIsFromEmbeddingRequest, a, b); + } +}; +var ScoredContextItem = class _ScoredContextItem extends Message { + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem code_context_item = 1; + */ + codeContextItem; + /** + * @generated from field: float score = 2; + */ + score = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.ScoredContextItem'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'code_context_item', kind: 'message', T: CodeContextItem }, + { + no: 2, + name: 'score', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + ]); + static fromBinary(bytes, options) { + return new _ScoredContextItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ScoredContextItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ScoredContextItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ScoredContextItem, a, b); + } +}; +var GetNearestCCIsFromEmbeddingResponse = class _GetNearestCCIsFromEmbeddingResponse extends Message { + /** + * @generated from field: repeated exa.index_pb.ScoredContextItem scored_context_items = 1; + */ + scoredContextItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetNearestCCIsFromEmbeddingResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'scored_context_items', + kind: 'message', + T: ScoredContextItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetNearestCCIsFromEmbeddingResponse().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _GetNearestCCIsFromEmbeddingResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetNearestCCIsFromEmbeddingResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetNearestCCIsFromEmbeddingResponse, a, b); + } +}; +var GetEmbeddingsForCodeContextItemsRequest = class _GetEmbeddingsForCodeContextItemsRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; + */ + metadata; + /** + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem code_context_items = 2; + */ + codeContextItems = []; + /** + * @generated from field: exa.codeium_common_pb.ContextSnippetType snippet_type = 3; + */ + snippetType = ContextSnippetType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetEmbeddingsForCodeContextItemsRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: Metadata }, + { + no: 2, + name: 'code_context_items', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { + no: 3, + name: 'snippet_type', + kind: 'enum', + T: proto3.getEnumType(ContextSnippetType), + }, + ]); + static fromBinary(bytes, options) { + return new _GetEmbeddingsForCodeContextItemsRequest().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _GetEmbeddingsForCodeContextItemsRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetEmbeddingsForCodeContextItemsRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetEmbeddingsForCodeContextItemsRequest, a, b); + } +}; +var GetEmbeddingsForCodeContextItemsResponse = class _GetEmbeddingsForCodeContextItemsResponse extends Message { + /** + * Index corresponds to the request. + * + * @generated from field: repeated exa.codeium_common_pb.Embedding embeddings = 1; + */ + embeddings = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.GetEmbeddingsForCodeContextItemsResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'embeddings', + kind: 'message', + T: Embedding, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetEmbeddingsForCodeContextItemsResponse().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _GetEmbeddingsForCodeContextItemsResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetEmbeddingsForCodeContextItemsResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetEmbeddingsForCodeContextItemsResponse, a, b); + } +}; +var IndexStats = class _IndexStats extends Message { + /** + * @generated from field: string repository_name = 1; + */ + repositoryName = ''; + /** + * @generated from field: int64 file_count = 2; + */ + fileCount = protoInt64.zero; + /** + * @generated from field: int64 code_context_item_count = 3; + */ + codeContextItemCount = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexStats'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'repository_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'file_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 3, + name: 'code_context_item_count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexStats().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexStats().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexStats().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexStats, a, b); + } +}; +var IndexerEvent = class _IndexerEvent extends Message { + /** + * @generated from field: uint64 uid = 1; + */ + uid = protoInt64.zero; + /** + * @generated from oneof exa.index_pb.IndexerEvent.event_oneof + */ + eventOneof = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uid', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'deletion', + kind: 'message', + T: IndexerEvent_Deletion, + oneof: 'event_oneof', + }, + { + no: 3, + name: 'untrack', + kind: 'message', + T: IndexerEvent_Untrack, + oneof: 'event_oneof', + }, + { + no: 4, + name: 'update', + kind: 'message', + T: IndexerEvent_Update, + oneof: 'event_oneof', + }, + { + no: 5, + name: 'add_workspace', + kind: 'message', + T: IndexerEvent_AddWorkspace, + oneof: 'event_oneof', + }, + { + no: 6, + name: 'remove_workspace', + kind: 'message', + T: IndexerEvent_RemoveWorkspace, + oneof: 'event_oneof', + }, + { + no: 7, + name: 'ignore_workspace', + kind: 'message', + T: IndexerEvent_IgnoreWorkspace, + oneof: 'event_oneof', + }, + { + no: 8, + name: 'add_commit', + kind: 'message', + T: IndexerEvent_AddCommit, + oneof: 'event_oneof', + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent, a, b); + } +}; +var IndexerEvent_Deletion = class _IndexerEvent_Deletion extends Message { + /** + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent.Deletion'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent_Deletion().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent_Deletion().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent_Deletion().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent_Deletion, a, b); + } +}; +var IndexerEvent_Untrack = class _IndexerEvent_Untrack extends Message { + /** + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * This contains the remaining active workspaces referencing this file. + * + * @generated from field: repeated exa.codeium_common_pb.WorkspacePath paths = 2; + */ + paths = []; + /** + * This is the workspace that was removed triggering the Untrack event. + * + * @generated from field: string workspace_uri = 3; + */ + workspaceUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent.Untrack'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'paths', kind: 'message', T: WorkspacePath, repeated: true }, + { + no: 3, + name: 'workspace_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent_Untrack().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent_Untrack().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent_Untrack().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent_Untrack, a, b); + } +}; +var IndexerEvent_Update = class _IndexerEvent_Update extends Message { + /** + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * @generated from field: repeated exa.codeium_common_pb.WorkspacePath paths = 2; + */ + paths = []; + /** + * @generated from field: google.protobuf.Timestamp mod_time = 3; + */ + modTime; + /** + * This is populated when the update is triggered by AddWorkspace. + * + * @generated from field: exa.index_pb.IndexerEvent.Update.AddWorkspaceInfo add_workspace_info = 4; + */ + addWorkspaceInfo; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent.Update'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'paths', kind: 'message', T: WorkspacePath, repeated: true }, + { no: 3, name: 'mod_time', kind: 'message', T: Timestamp }, + { + no: 4, + name: 'add_workspace_info', + kind: 'message', + T: IndexerEvent_Update_AddWorkspaceInfo, + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent_Update().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent_Update().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent_Update().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent_Update, a, b); + } +}; +var IndexerEvent_Update_AddWorkspaceInfo = class _IndexerEvent_Update_AddWorkspaceInfo extends Message { + /** + * @generated from field: uint64 add_workspace_uid = 1; + */ + addWorkspaceUid = protoInt64.zero; + /** + * This is assigned when the workspace is about to be inserted into the + * queue. + * + * @generated from field: uint64 add_workspace_queue_uid = 2; + */ + addWorkspaceQueueUid = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent.Update.AddWorkspaceInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'add_workspace_uid', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'add_workspace_queue_uid', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent_Update_AddWorkspaceInfo().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent_Update_AddWorkspaceInfo().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent_Update_AddWorkspaceInfo().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent_Update_AddWorkspaceInfo, a, b); + } +}; +var IndexerEvent_AddWorkspace = class _IndexerEvent_AddWorkspace extends Message { + /** + * @generated from field: uint64 add_workspace_uid = 1; + */ + addWorkspaceUid = protoInt64.zero; + /** + * This is assigned when the workspace is about to be inserted into the + * queue. + * + * @generated from field: uint64 add_workspace_queue_uid = 2; + */ + addWorkspaceQueueUid = protoInt64.zero; + /** + * @generated from field: string workspace_uri = 3; + */ + workspaceUri = ''; + /** + * This is signed just for type convenience in Go code. + * + * @generated from field: int64 num_files = 4; + */ + numFiles = protoInt64.zero; + /** + * Used for smallest repo first scheduling. + * + * @generated from field: int64 size = 5; + */ + size = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent.AddWorkspace'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'add_workspace_uid', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 2, + name: 'add_workspace_queue_uid', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 3, + name: 'workspace_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'num_files', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 5, + name: 'size', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent_AddWorkspace().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent_AddWorkspace().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent_AddWorkspace().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent_AddWorkspace, a, b); + } +}; +var IndexerEvent_RemoveWorkspace = class _IndexerEvent_RemoveWorkspace extends Message { + /** + * @generated from field: string workspace_uri = 1; + */ + workspaceUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent.RemoveWorkspace'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspace_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent_RemoveWorkspace().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent_RemoveWorkspace().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent_RemoveWorkspace().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent_RemoveWorkspace, a, b); + } +}; +var IndexerEvent_IgnoreWorkspace = class _IndexerEvent_IgnoreWorkspace extends Message { + /** + * @generated from field: string workspace_uri = 1; + */ + workspaceUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent.IgnoreWorkspace'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspace_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent_IgnoreWorkspace().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent_IgnoreWorkspace().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent_IgnoreWorkspace().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent_IgnoreWorkspace, a, b); + } +}; +var IndexerEvent_AddCommit = class _IndexerEvent_AddCommit extends Message { + /** + * @generated from field: string sha = 1; + */ + sha = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.index_pb.IndexerEvent.AddCommit'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'sha', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IndexerEvent_AddCommit().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IndexerEvent_AddCommit().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IndexerEvent_AddCommit().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IndexerEvent_AddCommit, a, b); + } +}; + +// exa/proto_ts/dist/exa/opensearch_clients_pb/opensearch_clients_pb.js +var SearchMode; +(function (SearchMode2) { + SearchMode2[(SearchMode2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + SearchMode2[(SearchMode2['HYBRID'] = 1)] = 'HYBRID'; + SearchMode2[(SearchMode2['KEYWORD'] = 2)] = 'KEYWORD'; + SearchMode2[(SearchMode2['APPROXIMATE_KNN'] = 3)] = 'APPROXIMATE_KNN'; + SearchMode2[(SearchMode2['BRUTE_FORCE_KNN'] = 4)] = 'BRUTE_FORCE_KNN'; +})(SearchMode || (SearchMode = {})); +proto3.util.setEnumType(SearchMode, 'exa.opensearch_clients_pb.SearchMode', [ { no: 0, name: 'SEARCH_MODE_UNSPECIFIED' }, { no: 1, name: 'SEARCH_MODE_HYBRID' }, { no: 2, name: 'SEARCH_MODE_KEYWORD' }, { no: 3, name: 'SEARCH_MODE_APPROXIMATE_KNN' }, { no: 4, name: 'SEARCH_MODE_BRUTE_FORCE_KNN' }, ]); -var ea; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.FAILURE = 1)] = 'FAILURE'), - (e[(e.SAVED = 2)] = 'SAVED'), - (e[(e.SUCCESS = 3)] = 'SUCCESS')); -})(ea || (ea = {})); -a.util.setEnumType(ea, 'exa.opensearch_clients_pb.ForwardStatus', [ - { no: 0, name: 'FORWARD_STATUS_UNSPECIFIED' }, - { no: 1, name: 'FORWARD_STATUS_FAILURE' }, - { no: 2, name: 'FORWARD_STATUS_SAVED' }, - { no: 3, name: 'FORWARD_STATUS_SUCCESS' }, -]); -var D; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.GITHUB = 1)] = 'GITHUB'), - (e[(e.SLACK = 2)] = 'SLACK'), - (e[(e.GOOGLE_DRIVE = 3)] = 'GOOGLE_DRIVE'), - (e[(e.JIRA = 4)] = 'JIRA'), - (e[(e.CODEIUM = 5)] = 'CODEIUM'), - (e[(e.EMAIL = 6)] = 'EMAIL'), - (e[(e.GITHUB_OAUTH = 7)] = 'GITHUB_OAUTH')); -})(D || (D = {})); -a.util.setEnumType(D, 'exa.opensearch_clients_pb.ConnectorType', [ - { no: 0, name: 'CONNECTOR_TYPE_UNSPECIFIED' }, - { no: 1, name: 'CONNECTOR_TYPE_GITHUB' }, - { no: 2, name: 'CONNECTOR_TYPE_SLACK' }, - { no: 3, name: 'CONNECTOR_TYPE_GOOGLE_DRIVE' }, - { no: 4, name: 'CONNECTOR_TYPE_JIRA' }, - { no: 5, name: 'CONNECTOR_TYPE_CODEIUM' }, - { no: 6, name: 'CONNECTOR_TYPE_EMAIL' }, - { no: 7, name: 'CONNECTOR_TYPE_GITHUB_OAUTH' }, -]); -var ta; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.QUEUED = 1)] = 'QUEUED'), - (e[(e.RUNNING = 2)] = 'RUNNING'), - (e[(e.COMPLETED = 3)] = 'COMPLETED'), - (e[(e.CANCELLED = 4)] = 'CANCELLED'), - (e[(e.CANCELLING = 5)] = 'CANCELLING'), - (e[(e.ERRORED = 6)] = 'ERRORED'), - (e[(e.RETRYABLE = 7)] = 'RETRYABLE')); -})(ta || (ta = {})); -a.util.setEnumType(ta, 'exa.opensearch_clients_pb.JobStatus', [ +var ForwardStatus; +(function (ForwardStatus2) { + ForwardStatus2[(ForwardStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ForwardStatus2[(ForwardStatus2['FAILURE'] = 1)] = 'FAILURE'; + ForwardStatus2[(ForwardStatus2['SAVED'] = 2)] = 'SAVED'; + ForwardStatus2[(ForwardStatus2['SUCCESS'] = 3)] = 'SUCCESS'; +})(ForwardStatus || (ForwardStatus = {})); +proto3.util.setEnumType( + ForwardStatus, + 'exa.opensearch_clients_pb.ForwardStatus', + [ + { no: 0, name: 'FORWARD_STATUS_UNSPECIFIED' }, + { no: 1, name: 'FORWARD_STATUS_FAILURE' }, + { no: 2, name: 'FORWARD_STATUS_SAVED' }, + { no: 3, name: 'FORWARD_STATUS_SUCCESS' }, + ], +); +var ConnectorType; +(function (ConnectorType2) { + ConnectorType2[(ConnectorType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ConnectorType2[(ConnectorType2['GITHUB'] = 1)] = 'GITHUB'; + ConnectorType2[(ConnectorType2['SLACK'] = 2)] = 'SLACK'; + ConnectorType2[(ConnectorType2['GOOGLE_DRIVE'] = 3)] = 'GOOGLE_DRIVE'; + ConnectorType2[(ConnectorType2['JIRA'] = 4)] = 'JIRA'; + ConnectorType2[(ConnectorType2['CODEIUM'] = 5)] = 'CODEIUM'; + ConnectorType2[(ConnectorType2['EMAIL'] = 6)] = 'EMAIL'; + ConnectorType2[(ConnectorType2['GITHUB_OAUTH'] = 7)] = 'GITHUB_OAUTH'; +})(ConnectorType || (ConnectorType = {})); +proto3.util.setEnumType( + ConnectorType, + 'exa.opensearch_clients_pb.ConnectorType', + [ + { no: 0, name: 'CONNECTOR_TYPE_UNSPECIFIED' }, + { no: 1, name: 'CONNECTOR_TYPE_GITHUB' }, + { no: 2, name: 'CONNECTOR_TYPE_SLACK' }, + { no: 3, name: 'CONNECTOR_TYPE_GOOGLE_DRIVE' }, + { no: 4, name: 'CONNECTOR_TYPE_JIRA' }, + { no: 5, name: 'CONNECTOR_TYPE_CODEIUM' }, + { no: 6, name: 'CONNECTOR_TYPE_EMAIL' }, + { no: 7, name: 'CONNECTOR_TYPE_GITHUB_OAUTH' }, + ], +); +var JobStatus; +(function (JobStatus2) { + JobStatus2[(JobStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + JobStatus2[(JobStatus2['QUEUED'] = 1)] = 'QUEUED'; + JobStatus2[(JobStatus2['RUNNING'] = 2)] = 'RUNNING'; + JobStatus2[(JobStatus2['COMPLETED'] = 3)] = 'COMPLETED'; + JobStatus2[(JobStatus2['CANCELLED'] = 4)] = 'CANCELLED'; + JobStatus2[(JobStatus2['CANCELLING'] = 5)] = 'CANCELLING'; + JobStatus2[(JobStatus2['ERRORED'] = 6)] = 'ERRORED'; + JobStatus2[(JobStatus2['RETRYABLE'] = 7)] = 'RETRYABLE'; +})(JobStatus || (JobStatus = {})); +proto3.util.setEnumType(JobStatus, 'exa.opensearch_clients_pb.JobStatus', [ { no: 0, name: 'JOB_STATUS_UNSPECIFIED' }, { no: 1, name: 'JOB_STATUS_QUEUED' }, { no: 2, name: 'JOB_STATUS_RUNNING' }, @@ -18985,2126 +36239,3488 @@ a.util.setEnumType(ta, 'exa.opensearch_clients_pb.JobStatus', [ { no: 6, name: 'JOB_STATUS_ERRORED' }, { no: 7, name: 'JOB_STATUS_RETRYABLE' }, ]); -var aa = class e extends r { - start; - end; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.TimeRange'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'start', kind: 'message', T: _ }, - { no: 2, name: 'end', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - kl = class e extends r { - authUid = ''; - username = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.GithubUser'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'auth_uid', kind: 'scalar', T: 9 }, - { no: 2, name: 'username', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - AS = class e extends r { - users = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.AddGithubUsersRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'users', kind: 'message', T: kl, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - CS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.AddGithubUsersResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gl = class e extends r { - authUid = ''; - email = ''; - name = ''; - photoUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.UserInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'auth_uid', kind: 'scalar', T: 9 }, - { no: 2, name: 'email', kind: 'scalar', T: 9 }, - { no: 3, name: 'name', kind: 'scalar', T: 9 }, - { no: 4, name: 'photo_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - RS = class e extends r { - users = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.AddUsersRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'users', kind: 'message', T: gl, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - LS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.AddUsersResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - PS = class e extends r { - maxResults = o.zero; - queries = []; - metadata; - urls = []; - documentIds = []; - aggregateIds = []; - chatMessagePrompts = []; - timeRange; - documentTypes = []; - searchMode = na.UNSPECIFIED; - disableReranking = !1; - disableContextualLookup = !1; - indexChoices = []; - query = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.KnowledgeBaseSearchRequest'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'max_results', kind: 'scalar', T: 3 }, - { no: 3, name: 'queries', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'metadata', kind: 'message', T: w }, - { no: 12, name: 'urls', kind: 'scalar', T: 9, repeated: !0 }, - { no: 13, name: 'document_ids', kind: 'scalar', T: 9, repeated: !0 }, - { no: 5, name: 'aggregate_ids', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 6, - name: 'chat_message_prompts', - kind: 'message', - T: v, - repeated: !0, - }, - { no: 7, name: 'time_range', kind: 'message', T: aa }, - { - no: 14, - name: 'document_types', - kind: 'enum', - T: a.getEnumType(V), - repeated: !0, - }, - { no: 9, name: 'search_mode', kind: 'enum', T: a.getEnumType(na) }, - { no: 10, name: 'disable_reranking', kind: 'scalar', T: 8 }, - { no: 11, name: 'disable_contextual_lookup', kind: 'scalar', T: 8 }, - { - no: 8, - name: 'index_choices', - kind: 'enum', - T: a.getEnumType(_n), - repeated: !0, - }, - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - DS = class e extends r { - knowledgeBaseGroups = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.KnowledgeBaseSearchResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'knowledge_base_groups', - kind: 'message', - T: se, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - kS = class e extends r { - query = ''; - metadata; - documentTypes = []; - indexChoices = []; - indexNames = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseScopeItemsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 3, name: 'metadata', kind: 'message', T: w }, - { - no: 5, - name: 'document_types', - kind: 'enum', - T: a.getEnumType(V), - repeated: !0, - }, - { - no: 4, - name: 'index_choices', - kind: 'enum', - T: a.getEnumType(_n), - repeated: !0, - }, - { no: 2, name: 'index_names', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gS = class e extends r { - scopeItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseScopeItemsResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'scope_items', kind: 'message', T: H, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wS = class e extends r { - metadata; - scopeItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseItemsFromScopeItemsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'metadata', kind: 'message', T: w }, - { no: 3, name: 'scope_items', kind: 'message', T: H, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - JS = class e extends r { - knowledgeBaseItemsWithMetadata = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseItemsFromScopeItemsResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'knowledge_base_items_with_metadata', - kind: 'message', - T: K, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xS = class e extends r { - metadata; - channelIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestSlackDataRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'channel_ids', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - US = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestSlackDataResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - BS = class e extends r { - metadata; - organization = ''; - repository = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestGithubDataRequest'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'metadata', kind: 'message', T: N }, - { no: 1, name: 'organization', kind: 'scalar', T: 9 }, - { no: 2, name: 'repository', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - FS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestGithubDataResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - MS = class e extends r { - metadata; - folderIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestGoogleDriveDataRequest'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'metadata', kind: 'message', T: N }, - { no: 3, name: 'folder_ids', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestGoogleDriveDataResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hS = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestJiraDataRequest'; - static fields = a.util.newFieldList(() => [ - { no: 4, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - GS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestJiraDataResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bS = class e extends r { - body = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestJiraPayloadRequest'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'body', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestJiraPayloadResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wl = class e extends r { - status = ea.UNSPECIFIED; - error; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ForwardResult'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'status', kind: 'enum', T: a.getEnumType(ea) }, - { no: 2, name: 'error', kind: 'scalar', T: 9, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - HS = class e extends r { - bodies = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ForwardSlackPayloadRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'bodies', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - YS = class e extends r { - results = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ForwardSlackPayloadResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'results', kind: 'message', T: wl, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - WS = class e extends r { - payload = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestSlackPayloadRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'payload', kind: 'message', T: jl, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - VS = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.IngestSlackPayloadResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jl = class e extends r { - documentId = ''; - text = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.CommonDocument'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'document_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'text', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ra = class e extends r { - document; - score = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.CommonDocumentWithScore'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'document', kind: 'message', T: Jl }, - { no: 2, name: 'score', kind: 'scalar', T: 2 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - XS = class e extends r { - text = ''; - url = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.SearchResult'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9 }, - { no: 2, name: 'url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - KS = class e extends r { - documentWithScores = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.QuerySearchResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'document_with_scores', - kind: 'message', - T: ra, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vS = class e extends r { - metadata; - config; - initialIndex; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.OpenSearchAddRepositoryRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'config', kind: 'message', T: Mn }, - { no: 3, name: 'initial_index', kind: 'message', T: Ee }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zS = class e extends r { - repoName = ''; - indexId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.OpenSearchAddRepositoryResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'repo_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'index_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jS = class e extends r { - indexId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.OpenSearchGetIndexRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'index_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - QS = class e extends r { - status = In.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.OpenSearchGetIndexResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'status', kind: 'enum', T: a.getEnumType(In) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ZS = class e extends r { - query = ''; - embedding; - maxResults = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.HybridSearchRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 2, name: 'embedding', kind: 'message', T: en }, - { no: 3, name: 'max_results', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $S = class e extends r { - documentWithScores = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.HybridSearchResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'document_with_scores', - kind: 'message', - T: ra, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nI = class e extends r { - query = ''; - embedding; - maxResults = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.GraphSearchRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 2, name: 'embedding', kind: 'message', T: en }, - { no: 3, name: 'max_results', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - eI = class e extends r { - documentWithScores = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.GraphSearchResponse'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'document_with_scores', - kind: 'message', - T: ra, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - is = class e extends r { - config = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'slack', kind: 'message', T: xl, oneof: 'config' }, - { no: 2, name: 'github', kind: 'message', T: Ul, oneof: 'config' }, - { no: 3, name: 'google_drive', kind: 'message', T: Bl, oneof: 'config' }, - { no: 4, name: 'jira', kind: 'message', T: Fl, oneof: 'config' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xl = class e extends r { - includeChannelIds = []; - excludeChannelIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorConfigSlack'; - static fields = a.util.newFieldList(() => [ - { - no: 3, - name: 'include_channel_ids', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { - no: 4, - name: 'exclude_channel_ids', - kind: 'scalar', - T: 9, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ul = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorConfigGithub'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bl = class e extends r { - includeDriveIds = []; - excludeDriveIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorConfigGoogleDrive'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'include_drive_ids', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'exclude_drive_ids', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fl = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorConfigJira'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ml = class e extends r { - config = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorInternalConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'slack', kind: 'message', T: yl, oneof: 'config' }, - { no: 2, name: 'github', kind: 'message', T: Gl, oneof: 'config' }, - { no: 3, name: 'google_drive', kind: 'message', T: bl, oneof: 'config' }, - { no: 4, name: 'jira', kind: 'message', T: ql, oneof: 'config' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yl = class e extends r { - clientId = ''; - clientSecret = ''; - signingSecret = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorInternalConfigSlack'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'client_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'client_secret', kind: 'scalar', T: 9 }, - { no: 1, name: 'signing_secret', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hl = class e extends r { - organization = ''; - repository = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.GithubRepoConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'organization', kind: 'scalar', T: 9 }, - { no: 2, name: 'repository', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gl = class e extends r { - installationId = o.zero; - repoConfigs = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorInternalConfigGithub'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'installation_id', kind: 'scalar', T: 3 }, - { no: 2, name: 'repo_configs', kind: 'message', T: hl, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bl = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.ConnectorInternalConfigGoogleDrive'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ql = class e extends r { - webhookId = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorInternalConfigJira'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'webhook_id', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tI = class e extends r { - metadata; - connector = D.UNSPECIFIED; - accessToken = ''; - accessTokenExpiresAt; - refreshToken = ''; - refreshTokenExpiresAt; - additionalParams; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.ConnectKnowledgeBaseAccountRequest'; - static fields = a.util.newFieldList(() => [ - { no: 7, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'connector', kind: 'enum', T: a.getEnumType(D) }, - { no: 3, name: 'access_token', kind: 'scalar', T: 9 }, - { no: 4, name: 'access_token_expires_at', kind: 'message', T: _ }, - { no: 5, name: 'refresh_token', kind: 'scalar', T: 9 }, - { no: 6, name: 'refresh_token_expires_at', kind: 'message', T: _ }, - { no: 8, name: 'additional_params', kind: 'message', T: Hl }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - aI = class e extends r { - metadata; - connector = D.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.DeleteKnowledgeBaseConnectionRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'connector', kind: 'enum', T: a.getEnumType(D) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rI = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.DeleteKnowledgeBaseConnectionResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sI = class e extends r { - metadata; - connector = D.UNSPECIFIED; - config; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.UpdateConnectorConfigRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'connector', kind: 'enum', T: a.getEnumType(D) }, - { no: 3, name: 'config', kind: 'message', T: is }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - iI = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.UpdateConnectorConfigResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hl = class e extends r { - config = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorAdditionalParams'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'slack', kind: 'message', T: Yl, oneof: 'config' }, - { no: 1, name: 'github', kind: 'message', T: Wl, oneof: 'config' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yl = class e extends r { - clientId = ''; - clientSecret = ''; - signingSecret = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.ConnectorAdditionalParamsSlack'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'client_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'client_secret', kind: 'scalar', T: 9 }, - { no: 3, name: 'signing_secret', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wl = class e extends r { - installationId = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.ConnectorAdditionalParamsGithub'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'installation_id', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - oI = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.ConnectKnowledgeBaseAccountResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mI = class e extends r { - metadata; - jobIds = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.CancelKnowledgeBaseJobsRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { no: 2, name: 'job_ids', kind: 'scalar', T: 3, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cI = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.CancelKnowledgeBaseJobsResponse'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vl = class e extends r { - documentType = V.UNSPECIFIED; - count = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.DocumentTypeCount'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'document_type', kind: 'enum', T: a.getEnumType(V) }, - { no: 2, name: 'count', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xl = class e extends r { - connector = D.UNSPECIFIED; - initialized = !1; - config; - documentTypeCounts = []; - lastIndexedAt; - unhealthySince; - lastConfiguredAt; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.ConnectorState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'connector', kind: 'enum', T: a.getEnumType(D) }, - { no: 2, name: 'initialized', kind: 'scalar', T: 8 }, - { no: 3, name: 'config', kind: 'message', T: is }, - { - no: 4, - name: 'document_type_counts', - kind: 'message', - T: Vl, - repeated: !0, - }, - { no: 5, name: 'last_indexed_at', kind: 'message', T: _ }, - { no: 6, name: 'unhealthy_since', kind: 'message', T: _ }, - { no: 7, name: 'last_configured_at', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - uI = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseConnectorStateRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - lI = class e extends r { - connectorStates = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseConnectorStateResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'connector_states', kind: 'message', T: Xl, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Kl = class e extends r { - connector = D.UNSPECIFIED; - id = o.zero; - status = ta.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.JobState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'connector', kind: 'enum', T: a.getEnumType(D) }, - { no: 2, name: 'id', kind: 'scalar', T: 3 }, - { no: 3, name: 'status', kind: 'enum', T: a.getEnumType(ta) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - EI = class e extends r { - metadata; - connectorTypes = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseJobStatesRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - { - no: 2, - name: 'connector_types', - kind: 'enum', - T: a.getEnumType(D), - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _I = class e extends r { - jobStates = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseJobStatesResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'job_states', kind: 'message', T: Kl, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vl = class e extends r { - datasetId = ''; - previousMessageDatasetId = ''; - type = ''; - channelId = ''; - user = ''; - text = ''; - timestamp = ''; - threadTimestamp = ''; - channelName = ''; - teamName = ''; - teamId = ''; - isPrivateChannel = !1; - teamDomain = ''; - originalTimestamp = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.SlackMessagePayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'dataset_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'previous_message_dataset_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'type', kind: 'scalar', T: 9 }, - { no: 4, name: 'channel_id', kind: 'scalar', T: 9 }, - { no: 5, name: 'user', kind: 'scalar', T: 9 }, - { no: 6, name: 'text', kind: 'scalar', T: 9 }, - { no: 7, name: 'timestamp', kind: 'scalar', T: 9 }, - { no: 8, name: 'thread_timestamp', kind: 'scalar', T: 9 }, - { no: 9, name: 'channel_name', kind: 'scalar', T: 9 }, - { no: 10, name: 'team_name', kind: 'scalar', T: 9 }, - { no: 11, name: 'team_id', kind: 'scalar', T: 9 }, - { no: 12, name: 'is_private_channel', kind: 'scalar', T: 8 }, - { no: 13, name: 'team_domain', kind: 'scalar', T: 9 }, - { no: 14, name: 'original_timestamp', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zl = class e extends r { - type = ''; - channelId = ''; - channelName = ''; - description = ''; - teamId = ''; - isPrivateChannel = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.SlackChannelPayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'scalar', T: 9 }, - { no: 2, name: 'channel_id', kind: 'scalar', T: 9 }, - { no: 4, name: 'channel_name', kind: 'scalar', T: 9 }, - { no: 7, name: 'description', kind: 'scalar', T: 9 }, - { no: 8, name: 'team_id', kind: 'scalar', T: 9 }, - { no: 9, name: 'is_private_channel', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jl = class e extends r { - payload = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.opensearch_clients_pb.SlackPayload'; - static fields = a.util.newFieldList(() => [ - { no: 13, name: 'message', kind: 'message', T: vl, oneof: 'payload' }, - { no: 14, name: 'channel', kind: 'message', T: zl, oneof: 'payload' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dI = class e extends r { - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseWebhookUrlRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: N }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - TI = class e extends r { - webhookUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetKnowledgeBaseWebhookUrlResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'webhook_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fI = class e extends r { - connector = D.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetConnectorInternalConfigRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'connector', kind: 'enum', T: a.getEnumType(D) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - NI = class e extends r { - internalConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.opensearch_clients_pb.GetConnectorInternalConfigResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'internal_config', kind: 'message', T: Ml }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var pn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.LEFT = 1)] = 'LEFT'), - (e[(e.RIGHT = 2)] = 'RIGHT'), - (e[(e.DOUBLE = 3)] = 'DOUBLE'), - (e[(e.NONE = 4)] = 'NONE')); -})(pn || (pn = {})); -a.util.setEnumType(pn, 'exa.browser_pb.ClickType', [ +var TimeRange = class _TimeRange extends Message { + /** + * @generated from field: google.protobuf.Timestamp start = 1; + */ + start; + /** + * @generated from field: google.protobuf.Timestamp end = 2; + */ + end; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.TimeRange'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'start', kind: 'message', T: Timestamp }, + { no: 2, name: 'end', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _TimeRange().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TimeRange().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TimeRange().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TimeRange, a, b); + } +}; +var GithubUser = class _GithubUser extends Message { + /** + * @generated from field: string auth_uid = 1; + */ + authUid = ''; + /** + * @generated from field: string username = 2; + */ + username = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.GithubUser'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'auth_uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'username', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GithubUser().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GithubUser().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GithubUser().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GithubUser, a, b); + } +}; +var AddGithubUsersRequest = class _AddGithubUsersRequest extends Message { + /** + * This is not required, because the list can be empty + * + * @generated from field: repeated exa.opensearch_clients_pb.GithubUser users = 1; + */ + users = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.AddGithubUsersRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'users', kind: 'message', T: GithubUser, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _AddGithubUsersRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddGithubUsersRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddGithubUsersRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddGithubUsersRequest, a, b); + } +}; +var AddGithubUsersResponse = class _AddGithubUsersResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.AddGithubUsersResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _AddGithubUsersResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddGithubUsersResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddGithubUsersResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddGithubUsersResponse, a, b); + } +}; +var UserInfo = class _UserInfo extends Message { + /** + * @generated from field: string auth_uid = 1; + */ + authUid = ''; + /** + * @generated from field: string email = 2; + */ + email = ''; + /** + * @generated from field: string name = 3; + */ + name = ''; + /** + * @generated from field: string photo_url = 4; + */ + photoUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.UserInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'auth_uid', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'email', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'photo_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserInfo, a, b); + } +}; +var AddUsersRequest = class _AddUsersRequest extends Message { + /** + * @generated from field: repeated exa.opensearch_clients_pb.UserInfo users = 1; + */ + users = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.AddUsersRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'users', kind: 'message', T: UserInfo, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _AddUsersRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddUsersRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddUsersRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddUsersRequest, a, b); + } +}; +var AddUsersResponse = class _AddUsersResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.AddUsersResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _AddUsersResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AddUsersResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AddUsersResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AddUsersResponse, a, b); + } +}; +var KnowledgeBaseSearchRequest = class _KnowledgeBaseSearchRequest extends Message { + /** + * @generated from field: int64 max_results = 2; + */ + maxResults = protoInt64.zero; + /** + * @generated from field: repeated string queries = 3; + */ + queries = []; + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 4; + */ + metadata; + /** + * @generated from field: repeated string urls = 12; + */ + urls = []; + /** + * @generated from field: repeated string document_ids = 13; + */ + documentIds = []; + /** + * @generated from field: repeated string aggregate_ids = 5; + */ + aggregateIds = []; + /** + * @generated from field: repeated exa.chat_pb.ChatMessagePrompt chat_message_prompts = 6; + */ + chatMessagePrompts = []; + /** + * @generated from field: exa.opensearch_clients_pb.TimeRange time_range = 7; + */ + timeRange; + /** + * @generated from field: repeated exa.codeium_common_pb.DocumentType document_types = 14; + */ + documentTypes = []; + /** + * Optional. If not specified, will use hybrid search. + * + * @generated from field: exa.opensearch_clients_pb.SearchMode search_mode = 9; + */ + searchMode = SearchMode.UNSPECIFIED; + /** + * @generated from field: bool disable_reranking = 10; + */ + disableReranking = false; + /** + * @generated from field: bool disable_contextual_lookup = 11; + */ + disableContextualLookup = false; + /** + * Optional. If not specified, will search over all indexes. + * + * @generated from field: repeated exa.codeium_common_pb.IndexChoice index_choices = 8; + */ + indexChoices = []; + /** + * Deprecated + * + * @generated from field: string query = 1 [deprecated = true]; + * @deprecated + */ + query = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.KnowledgeBaseSearchRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'max_results', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { no: 3, name: 'queries', kind: 'scalar', T: 9, repeated: true }, + { no: 4, name: 'metadata', kind: 'message', T: Metadata }, + { no: 12, name: 'urls', kind: 'scalar', T: 9, repeated: true }, + { no: 13, name: 'document_ids', kind: 'scalar', T: 9, repeated: true }, + { no: 5, name: 'aggregate_ids', kind: 'scalar', T: 9, repeated: true }, + { + no: 6, + name: 'chat_message_prompts', + kind: 'message', + T: ChatMessagePrompt, + repeated: true, + }, + { no: 7, name: 'time_range', kind: 'message', T: TimeRange }, + { + no: 14, + name: 'document_types', + kind: 'enum', + T: proto3.getEnumType(DocumentType), + repeated: true, + }, + { + no: 9, + name: 'search_mode', + kind: 'enum', + T: proto3.getEnumType(SearchMode), + }, + { + no: 10, + name: 'disable_reranking', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'disable_contextual_lookup', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 8, + name: 'index_choices', + kind: 'enum', + T: proto3.getEnumType(IndexChoice), + repeated: true, + }, + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeBaseSearchRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeBaseSearchRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeBaseSearchRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeBaseSearchRequest, a, b); + } +}; +var KnowledgeBaseSearchResponse = class _KnowledgeBaseSearchResponse extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseGroup knowledge_base_groups = 1; + */ + knowledgeBaseGroups = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.KnowledgeBaseSearchResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'knowledge_base_groups', + kind: 'message', + T: KnowledgeBaseGroup, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeBaseSearchResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeBaseSearchResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeBaseSearchResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeBaseSearchResponse, a, b); + } +}; +var GetKnowledgeBaseScopeItemsRequest = class _GetKnowledgeBaseScopeItemsRequest extends Message { + /** + * @generated from field: string query = 1; + */ + query = ''; + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 3; + */ + metadata; + /** + * Optional. If not specified, will search over all types. + * + * @generated from field: repeated exa.codeium_common_pb.DocumentType document_types = 5; + */ + documentTypes = []; + /** + * Deprecated + * + * @generated from field: repeated exa.codeium_common_pb.IndexChoice index_choices = 4 [deprecated = true]; + * @deprecated + */ + indexChoices = []; + /** + * Deprecated + * + * @generated from field: repeated string index_names = 2 [deprecated = true]; + * @deprecated + */ + indexNames = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseScopeItemsRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'metadata', kind: 'message', T: Metadata }, + { + no: 5, + name: 'document_types', + kind: 'enum', + T: proto3.getEnumType(DocumentType), + repeated: true, + }, + { + no: 4, + name: 'index_choices', + kind: 'enum', + T: proto3.getEnumType(IndexChoice), + repeated: true, + }, + { no: 2, name: 'index_names', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseScopeItemsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseScopeItemsRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseScopeItemsRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetKnowledgeBaseScopeItemsRequest, a, b); + } +}; +var GetKnowledgeBaseScopeItemsResponse = class _GetKnowledgeBaseScopeItemsResponse extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseScopeItem scope_items = 1; + */ + scopeItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseScopeItemsResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'scope_items', + kind: 'message', + T: KnowledgeBaseScopeItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseScopeItemsResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseScopeItemsResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseScopeItemsResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetKnowledgeBaseScopeItemsResponse, a, b); + } +}; +var GetKnowledgeBaseItemsFromScopeItemsRequest = class _GetKnowledgeBaseItemsFromScopeItemsRequest extends Message { + /** + * @generated from field: exa.codeium_common_pb.Metadata metadata = 2; + */ + metadata; + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseScopeItem scope_items = 3; + */ + scopeItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseItemsFromScopeItemsRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 2, name: 'metadata', kind: 'message', T: Metadata }, + { + no: 3, + name: 'scope_items', + kind: 'message', + T: KnowledgeBaseScopeItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseItemsFromScopeItemsRequest().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseItemsFromScopeItemsRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseItemsFromScopeItemsRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _GetKnowledgeBaseItemsFromScopeItemsRequest, + a, + b, + ); + } +}; +var GetKnowledgeBaseItemsFromScopeItemsResponse = class _GetKnowledgeBaseItemsFromScopeItemsResponse extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseItemWithMetadata knowledge_base_items_with_metadata = 1; + */ + knowledgeBaseItemsWithMetadata = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseItemsFromScopeItemsResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'knowledge_base_items_with_metadata', + kind: 'message', + T: KnowledgeBaseItemWithMetadata, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseItemsFromScopeItemsResponse().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseItemsFromScopeItemsResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseItemsFromScopeItemsResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _GetKnowledgeBaseItemsFromScopeItemsResponse, + a, + b, + ); + } +}; +var IngestSlackDataRequest = class _IngestSlackDataRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: repeated string channel_ids = 2; + */ + channelIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestSlackDataRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 2, name: 'channel_ids', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _IngestSlackDataRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestSlackDataRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestSlackDataRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestSlackDataRequest, a, b); + } +}; +var IngestSlackDataResponse = class _IngestSlackDataResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestSlackDataResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _IngestSlackDataResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestSlackDataResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestSlackDataResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestSlackDataResponse, a, b); + } +}; +var IngestGithubDataRequest = class _IngestGithubDataRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 3; + */ + metadata; + /** + * @generated from field: string organization = 1; + */ + organization = ''; + /** + * @generated from field: string repository = 2; + */ + repository = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestGithubDataRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 3, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 1, + name: 'organization', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'repository', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IngestGithubDataRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestGithubDataRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestGithubDataRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestGithubDataRequest, a, b); + } +}; +var IngestGithubDataResponse = class _IngestGithubDataResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestGithubDataResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _IngestGithubDataResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestGithubDataResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestGithubDataResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestGithubDataResponse, a, b); + } +}; +var IngestGoogleDriveDataRequest = class _IngestGoogleDriveDataRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 2; + */ + metadata; + /** + * @generated from field: repeated string folder_ids = 3; + */ + folderIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestGoogleDriveDataRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 2, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 3, name: 'folder_ids', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _IngestGoogleDriveDataRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestGoogleDriveDataRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestGoogleDriveDataRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_IngestGoogleDriveDataRequest, a, b); + } +}; +var IngestGoogleDriveDataResponse = class _IngestGoogleDriveDataResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestGoogleDriveDataResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _IngestGoogleDriveDataResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestGoogleDriveDataResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestGoogleDriveDataResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_IngestGoogleDriveDataResponse, a, b); + } +}; +var IngestJiraDataRequest = class _IngestJiraDataRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 4; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestJiraDataRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 4, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _IngestJiraDataRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestJiraDataRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestJiraDataRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestJiraDataRequest, a, b); + } +}; +var IngestJiraDataResponse = class _IngestJiraDataResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestJiraDataResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _IngestJiraDataResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestJiraDataResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestJiraDataResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestJiraDataResponse, a, b); + } +}; +var IngestJiraPayloadRequest = class _IngestJiraPayloadRequest extends Message { + /** + * @generated from field: string body = 3; + */ + body = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestJiraPayloadRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'body', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _IngestJiraPayloadRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestJiraPayloadRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestJiraPayloadRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestJiraPayloadRequest, a, b); + } +}; +var IngestJiraPayloadResponse = class _IngestJiraPayloadResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestJiraPayloadResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _IngestJiraPayloadResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestJiraPayloadResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestJiraPayloadResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestJiraPayloadResponse, a, b); + } +}; +var ForwardResult = class _ForwardResult extends Message { + /** + * TODO(saujasn): Failure should correspond to the request body not being + * saved. + * We do not save the body currently; statuses are always + * 'saved' or 'success'. + * + * @generated from field: exa.opensearch_clients_pb.ForwardStatus status = 1; + */ + status = ForwardStatus.UNSPECIFIED; + /** + * @generated from field: optional string error = 2; + */ + error; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ForwardResult'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(ForwardStatus), + }, + { no: 2, name: 'error', kind: 'scalar', T: 9, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _ForwardResult().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ForwardResult().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ForwardResult().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ForwardResult, a, b); + } +}; +var ForwardSlackPayloadRequest = class _ForwardSlackPayloadRequest extends Message { + /** + * @generated from field: repeated string bodies = 1; + */ + bodies = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ForwardSlackPayloadRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'bodies', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _ForwardSlackPayloadRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ForwardSlackPayloadRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ForwardSlackPayloadRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ForwardSlackPayloadRequest, a, b); + } +}; +var ForwardSlackPayloadResponse = class _ForwardSlackPayloadResponse extends Message { + /** + * We return 1 result per request body. + * + * @generated from field: repeated exa.opensearch_clients_pb.ForwardResult results = 1; + */ + results = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ForwardSlackPayloadResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'results', + kind: 'message', + T: ForwardResult, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ForwardSlackPayloadResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ForwardSlackPayloadResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ForwardSlackPayloadResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ForwardSlackPayloadResponse, a, b); + } +}; +var IngestSlackPayloadRequest = class _IngestSlackPayloadRequest extends Message { + /** + * @generated from field: repeated exa.opensearch_clients_pb.SlackPayload payload = 1; + */ + payload = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestSlackPayloadRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'payload', + kind: 'message', + T: SlackPayload, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _IngestSlackPayloadRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestSlackPayloadRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestSlackPayloadRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IngestSlackPayloadRequest, a, b); + } +}; +var IngestSlackPayloadResponse = class _IngestSlackPayloadResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.IngestSlackPayloadResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _IngestSlackPayloadResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IngestSlackPayloadResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IngestSlackPayloadResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_IngestSlackPayloadResponse, a, b); + } +}; +var CommonDocument = class _CommonDocument extends Message { + /** + * @generated from field: string document_id = 1; + */ + documentId = ''; + /** + * @generated from field: string text = 2; + */ + text = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.CommonDocument'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'document_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CommonDocument().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CommonDocument().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CommonDocument().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CommonDocument, a, b); + } +}; +var CommonDocumentWithScore = class _CommonDocumentWithScore extends Message { + /** + * @generated from field: exa.opensearch_clients_pb.CommonDocument document = 1; + */ + document; + /** + * @generated from field: float score = 2; + */ + score = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.CommonDocumentWithScore'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'document', kind: 'message', T: CommonDocument }, + { + no: 2, + name: 'score', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + ]); + static fromBinary(bytes, options) { + return new _CommonDocumentWithScore().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CommonDocumentWithScore().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CommonDocumentWithScore().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CommonDocumentWithScore, a, b); + } +}; +var SearchResult = class _SearchResult extends Message { + /** + * @generated from field: string text = 1; + */ + text = ''; + /** + * @generated from field: string url = 2; + */ + url = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.SearchResult'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _SearchResult().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SearchResult().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SearchResult().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SearchResult, a, b); + } +}; +var QuerySearchResponse = class _QuerySearchResponse extends Message { + /** + * @generated from field: repeated exa.opensearch_clients_pb.CommonDocumentWithScore document_with_scores = 1; + */ + documentWithScores = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.QuerySearchResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'document_with_scores', + kind: 'message', + T: CommonDocumentWithScore, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _QuerySearchResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _QuerySearchResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _QuerySearchResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_QuerySearchResponse, a, b); + } +}; +var OpenSearchAddRepositoryRequest = class _OpenSearchAddRepositoryRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: exa.index_pb.RepositoryConfig config = 2; + */ + config; + /** + * @generated from field: exa.index_pb.RequestIndexVersion initial_index = 3; + */ + initialIndex; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.OpenSearchAddRepositoryRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 2, name: 'config', kind: 'message', T: RepositoryConfig }, + { no: 3, name: 'initial_index', kind: 'message', T: RequestIndexVersion }, + ]); + static fromBinary(bytes, options) { + return new _OpenSearchAddRepositoryRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _OpenSearchAddRepositoryRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _OpenSearchAddRepositoryRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_OpenSearchAddRepositoryRequest, a, b); + } +}; +var OpenSearchAddRepositoryResponse = class _OpenSearchAddRepositoryResponse extends Message { + /** + * @generated from field: string repo_name = 1; + */ + repoName = ''; + /** + * @generated from field: string index_id = 2; + */ + indexId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.OpenSearchAddRepositoryResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'repo_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _OpenSearchAddRepositoryResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _OpenSearchAddRepositoryResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _OpenSearchAddRepositoryResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_OpenSearchAddRepositoryResponse, a, b); + } +}; +var OpenSearchGetIndexRequest = class _OpenSearchGetIndexRequest extends Message { + /** + * @generated from field: string index_id = 1; + */ + indexId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.OpenSearchGetIndexRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'index_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _OpenSearchGetIndexRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _OpenSearchGetIndexRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _OpenSearchGetIndexRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_OpenSearchGetIndexRequest, a, b); + } +}; +var OpenSearchGetIndexResponse = class _OpenSearchGetIndexResponse extends Message { + /** + * @generated from field: exa.index_pb.IndexingStatus status = 1; + */ + status = IndexingStatus.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.OpenSearchGetIndexResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(IndexingStatus), + }, + ]); + static fromBinary(bytes, options) { + return new _OpenSearchGetIndexResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _OpenSearchGetIndexResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _OpenSearchGetIndexResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_OpenSearchGetIndexResponse, a, b); + } +}; +var HybridSearchRequest = class _HybridSearchRequest extends Message { + /** + * @generated from field: string query = 1; + */ + query = ''; + /** + * @generated from field: exa.codeium_common_pb.Embedding embedding = 2; + */ + embedding; + /** + * @generated from field: int64 max_results = 3; + */ + maxResults = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.HybridSearchRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'embedding', kind: 'message', T: Embedding }, + { + no: 3, + name: 'max_results', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _HybridSearchRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _HybridSearchRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _HybridSearchRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_HybridSearchRequest, a, b); + } +}; +var HybridSearchResponse = class _HybridSearchResponse extends Message { + /** + * @generated from field: repeated exa.opensearch_clients_pb.CommonDocumentWithScore document_with_scores = 1; + */ + documentWithScores = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.HybridSearchResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'document_with_scores', + kind: 'message', + T: CommonDocumentWithScore, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _HybridSearchResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _HybridSearchResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _HybridSearchResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_HybridSearchResponse, a, b); + } +}; +var GraphSearchRequest = class _GraphSearchRequest extends Message { + /** + * @generated from field: string query = 1; + */ + query = ''; + /** + * @generated from field: exa.codeium_common_pb.Embedding embedding = 2; + */ + embedding; + /** + * @generated from field: int64 max_results = 3; + */ + maxResults = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.GraphSearchRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'embedding', kind: 'message', T: Embedding }, + { + no: 3, + name: 'max_results', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _GraphSearchRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GraphSearchRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GraphSearchRequest().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GraphSearchRequest, a, b); + } +}; +var GraphSearchResponse = class _GraphSearchResponse extends Message { + /** + * @generated from field: repeated exa.opensearch_clients_pb.CommonDocumentWithScore document_with_scores = 1; + */ + documentWithScores = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.GraphSearchResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'document_with_scores', + kind: 'message', + T: CommonDocumentWithScore, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GraphSearchResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GraphSearchResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GraphSearchResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GraphSearchResponse, a, b); + } +}; +var ConnectorConfig = class _ConnectorConfig extends Message { + /** + * @generated from oneof exa.opensearch_clients_pb.ConnectorConfig.config + */ + config = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'slack', + kind: 'message', + T: ConnectorConfigSlack, + oneof: 'config', + }, + { + no: 2, + name: 'github', + kind: 'message', + T: ConnectorConfigGithub, + oneof: 'config', + }, + { + no: 3, + name: 'google_drive', + kind: 'message', + T: ConnectorConfigGoogleDrive, + oneof: 'config', + }, + { + no: 4, + name: 'jira', + kind: 'message', + T: ConnectorConfigJira, + oneof: 'config', + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorConfig, a, b); + } +}; +var ConnectorConfigSlack = class _ConnectorConfigSlack extends Message { + /** + * @generated from field: repeated string include_channel_ids = 3; + */ + includeChannelIds = []; + /** + * @generated from field: repeated string exclude_channel_ids = 4; + */ + excludeChannelIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorConfigSlack'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'include_channel_ids', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 4, + name: 'exclude_channel_ids', + kind: 'scalar', + T: 9, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorConfigSlack().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorConfigSlack().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorConfigSlack().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorConfigSlack, a, b); + } +}; +var ConnectorConfigGithub = class _ConnectorConfigGithub extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorConfigGithub'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _ConnectorConfigGithub().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorConfigGithub().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorConfigGithub().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorConfigGithub, a, b); + } +}; +var ConnectorConfigGoogleDrive = class _ConnectorConfigGoogleDrive extends Message { + /** + * @generated from field: repeated string include_drive_ids = 2; + */ + includeDriveIds = []; + /** + * @generated from field: repeated string exclude_drive_ids = 3; + */ + excludeDriveIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorConfigGoogleDrive'; + static fields = proto3.util.newFieldList(() => [ + { no: 2, name: 'include_drive_ids', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'exclude_drive_ids', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorConfigGoogleDrive().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorConfigGoogleDrive().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorConfigGoogleDrive().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorConfigGoogleDrive, a, b); + } +}; +var ConnectorConfigJira = class _ConnectorConfigJira extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorConfigJira'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _ConnectorConfigJira().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorConfigJira().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorConfigJira().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorConfigJira, a, b); + } +}; +var ConnectorInternalConfig = class _ConnectorInternalConfig extends Message { + /** + * @generated from oneof exa.opensearch_clients_pb.ConnectorInternalConfig.config + */ + config = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorInternalConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'slack', + kind: 'message', + T: ConnectorInternalConfigSlack, + oneof: 'config', + }, + { + no: 2, + name: 'github', + kind: 'message', + T: ConnectorInternalConfigGithub, + oneof: 'config', + }, + { + no: 3, + name: 'google_drive', + kind: 'message', + T: ConnectorInternalConfigGoogleDrive, + oneof: 'config', + }, + { + no: 4, + name: 'jira', + kind: 'message', + T: ConnectorInternalConfigJira, + oneof: 'config', + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorInternalConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorInternalConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorInternalConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorInternalConfig, a, b); + } +}; +var ConnectorInternalConfigSlack = class _ConnectorInternalConfigSlack extends Message { + /** + * @generated from field: string client_id = 2; + */ + clientId = ''; + /** + * @generated from field: string client_secret = 3; + */ + clientSecret = ''; + /** + * @generated from field: string signing_secret = 1; + */ + signingSecret = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorInternalConfigSlack'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'client_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'client_secret', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'signing_secret', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorInternalConfigSlack().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorInternalConfigSlack().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorInternalConfigSlack().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorInternalConfigSlack, a, b); + } +}; +var GithubRepoConfig = class _GithubRepoConfig extends Message { + /** + * @generated from field: string organization = 1; + */ + organization = ''; + /** + * @generated from field: string repository = 2; + */ + repository = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.GithubRepoConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'organization', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'repository', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GithubRepoConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GithubRepoConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GithubRepoConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GithubRepoConfig, a, b); + } +}; +var ConnectorInternalConfigGithub = class _ConnectorInternalConfigGithub extends Message { + /** + * @generated from field: int64 installation_id = 1; + */ + installationId = protoInt64.zero; + /** + * @generated from field: repeated exa.opensearch_clients_pb.GithubRepoConfig repo_configs = 2; + */ + repoConfigs = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorInternalConfigGithub'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'installation_id', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 2, + name: 'repo_configs', + kind: 'message', + T: GithubRepoConfig, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorInternalConfigGithub().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorInternalConfigGithub().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorInternalConfigGithub().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorInternalConfigGithub, a, b); + } +}; +var ConnectorInternalConfigGoogleDrive = class _ConnectorInternalConfigGoogleDrive extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.ConnectorInternalConfigGoogleDrive'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _ConnectorInternalConfigGoogleDrive().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorInternalConfigGoogleDrive().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _ConnectorInternalConfigGoogleDrive().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorInternalConfigGoogleDrive, a, b); + } +}; +var ConnectorInternalConfigJira = class _ConnectorInternalConfigJira extends Message { + /** + * @generated from field: int64 webhook_id = 1; + */ + webhookId = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorInternalConfigJira'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'webhook_id', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorInternalConfigJira().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorInternalConfigJira().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorInternalConfigJira().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorInternalConfigJira, a, b); + } +}; +var ConnectKnowledgeBaseAccountRequest = class _ConnectKnowledgeBaseAccountRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 7; + */ + metadata; + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorType connector = 2; + */ + connector = ConnectorType.UNSPECIFIED; + /** + * @generated from field: string access_token = 3; + */ + accessToken = ''; + /** + * @generated from field: google.protobuf.Timestamp access_token_expires_at = 4; + */ + accessTokenExpiresAt; + /** + * @generated from field: string refresh_token = 5; + */ + refreshToken = ''; + /** + * @generated from field: google.protobuf.Timestamp refresh_token_expires_at = 6; + */ + refreshTokenExpiresAt; + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorAdditionalParams additional_params = 8; + */ + additionalParams; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.ConnectKnowledgeBaseAccountRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 7, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'connector', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + }, + { + no: 3, + name: 'access_token', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'access_token_expires_at', kind: 'message', T: Timestamp }, + { + no: 5, + name: 'refresh_token', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 6, name: 'refresh_token_expires_at', kind: 'message', T: Timestamp }, + { + no: 8, + name: 'additional_params', + kind: 'message', + T: ConnectorAdditionalParams, + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectKnowledgeBaseAccountRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectKnowledgeBaseAccountRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _ConnectKnowledgeBaseAccountRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectKnowledgeBaseAccountRequest, a, b); + } +}; +var DeleteKnowledgeBaseConnectionRequest = class _DeleteKnowledgeBaseConnectionRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorType connector = 2; + */ + connector = ConnectorType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.DeleteKnowledgeBaseConnectionRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'connector', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + }, + ]); + static fromBinary(bytes, options) { + return new _DeleteKnowledgeBaseConnectionRequest().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _DeleteKnowledgeBaseConnectionRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _DeleteKnowledgeBaseConnectionRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_DeleteKnowledgeBaseConnectionRequest, a, b); + } +}; +var DeleteKnowledgeBaseConnectionResponse = class _DeleteKnowledgeBaseConnectionResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.DeleteKnowledgeBaseConnectionResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _DeleteKnowledgeBaseConnectionResponse().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _DeleteKnowledgeBaseConnectionResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _DeleteKnowledgeBaseConnectionResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_DeleteKnowledgeBaseConnectionResponse, a, b); + } +}; +var UpdateConnectorConfigRequest = class _UpdateConnectorConfigRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorType connector = 2; + */ + connector = ConnectorType.UNSPECIFIED; + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorConfig config = 3; + */ + config; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.UpdateConnectorConfigRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'connector', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + }, + { no: 3, name: 'config', kind: 'message', T: ConnectorConfig }, + ]); + static fromBinary(bytes, options) { + return new _UpdateConnectorConfigRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UpdateConnectorConfigRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UpdateConnectorConfigRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_UpdateConnectorConfigRequest, a, b); + } +}; +var UpdateConnectorConfigResponse = class _UpdateConnectorConfigResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.UpdateConnectorConfigResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _UpdateConnectorConfigResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UpdateConnectorConfigResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UpdateConnectorConfigResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_UpdateConnectorConfigResponse, a, b); + } +}; +var ConnectorAdditionalParams = class _ConnectorAdditionalParams extends Message { + /** + * @generated from oneof exa.opensearch_clients_pb.ConnectorAdditionalParams.config + */ + config = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorAdditionalParams'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'slack', + kind: 'message', + T: ConnectorAdditionalParamsSlack, + oneof: 'config', + }, + { + no: 1, + name: 'github', + kind: 'message', + T: ConnectorAdditionalParamsGithub, + oneof: 'config', + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorAdditionalParams().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorAdditionalParams().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorAdditionalParams().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorAdditionalParams, a, b); + } +}; +var ConnectorAdditionalParamsSlack = class _ConnectorAdditionalParamsSlack extends Message { + /** + * @generated from field: string client_id = 1; + */ + clientId = ''; + /** + * @generated from field: string client_secret = 2; + */ + clientSecret = ''; + /** + * @generated from field: string signing_secret = 3; + */ + signingSecret = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorAdditionalParamsSlack'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'client_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'client_secret', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'signing_secret', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorAdditionalParamsSlack().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorAdditionalParamsSlack().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorAdditionalParamsSlack().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorAdditionalParamsSlack, a, b); + } +}; +var ConnectorAdditionalParamsGithub = class _ConnectorAdditionalParamsGithub extends Message { + /** + * @generated from field: int64 installation_id = 1; + */ + installationId = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorAdditionalParamsGithub'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'installation_id', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorAdditionalParamsGithub().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorAdditionalParamsGithub().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorAdditionalParamsGithub().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorAdditionalParamsGithub, a, b); + } +}; +var ConnectKnowledgeBaseAccountResponse = class _ConnectKnowledgeBaseAccountResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.ConnectKnowledgeBaseAccountResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _ConnectKnowledgeBaseAccountResponse().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _ConnectKnowledgeBaseAccountResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _ConnectKnowledgeBaseAccountResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ConnectKnowledgeBaseAccountResponse, a, b); + } +}; +var CancelKnowledgeBaseJobsRequest = class _CancelKnowledgeBaseJobsRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: repeated int64 job_ids = 2; + */ + jobIds = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.CancelKnowledgeBaseJobsRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { no: 2, name: 'job_ids', kind: 'scalar', T: 3, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _CancelKnowledgeBaseJobsRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CancelKnowledgeBaseJobsRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CancelKnowledgeBaseJobsRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CancelKnowledgeBaseJobsRequest, a, b); + } +}; +var CancelKnowledgeBaseJobsResponse = class _CancelKnowledgeBaseJobsResponse extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.CancelKnowledgeBaseJobsResponse'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CancelKnowledgeBaseJobsResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CancelKnowledgeBaseJobsResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CancelKnowledgeBaseJobsResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CancelKnowledgeBaseJobsResponse, a, b); + } +}; +var DocumentTypeCount = class _DocumentTypeCount extends Message { + /** + * @generated from field: exa.codeium_common_pb.DocumentType document_type = 1; + */ + documentType = DocumentType.UNSPECIFIED; + /** + * @generated from field: int64 count = 2; + */ + count = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.DocumentTypeCount'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'document_type', + kind: 'enum', + T: proto3.getEnumType(DocumentType), + }, + { + no: 2, + name: 'count', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _DocumentTypeCount().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DocumentTypeCount().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DocumentTypeCount().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DocumentTypeCount, a, b); + } +}; +var ConnectorState = class _ConnectorState extends Message { + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorType connector = 1; + */ + connector = ConnectorType.UNSPECIFIED; + /** + * @generated from field: bool initialized = 2; + */ + initialized = false; + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorConfig config = 3; + */ + config; + /** + * @generated from field: repeated exa.opensearch_clients_pb.DocumentTypeCount document_type_counts = 4; + */ + documentTypeCounts = []; + /** + * @generated from field: google.protobuf.Timestamp last_indexed_at = 5; + */ + lastIndexedAt; + /** + * @generated from field: google.protobuf.Timestamp unhealthy_since = 6; + */ + unhealthySince; + /** + * @generated from field: google.protobuf.Timestamp last_configured_at = 7; + */ + lastConfiguredAt; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.ConnectorState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'connector', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + }, + { + no: 2, + name: 'initialized', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 3, name: 'config', kind: 'message', T: ConnectorConfig }, + { + no: 4, + name: 'document_type_counts', + kind: 'message', + T: DocumentTypeCount, + repeated: true, + }, + { no: 5, name: 'last_indexed_at', kind: 'message', T: Timestamp }, + { no: 6, name: 'unhealthy_since', kind: 'message', T: Timestamp }, + { no: 7, name: 'last_configured_at', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _ConnectorState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConnectorState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConnectorState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConnectorState, a, b); + } +}; +var GetKnowledgeBaseConnectorStateRequest = class _GetKnowledgeBaseConnectorStateRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseConnectorStateRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseConnectorStateRequest().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseConnectorStateRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseConnectorStateRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetKnowledgeBaseConnectorStateRequest, a, b); + } +}; +var GetKnowledgeBaseConnectorStateResponse = class _GetKnowledgeBaseConnectorStateResponse extends Message { + /** + * @generated from field: repeated exa.opensearch_clients_pb.ConnectorState connector_states = 1; + */ + connectorStates = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseConnectorStateResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'connector_states', + kind: 'message', + T: ConnectorState, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseConnectorStateResponse().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseConnectorStateResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseConnectorStateResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetKnowledgeBaseConnectorStateResponse, a, b); + } +}; +var JobState = class _JobState extends Message { + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorType connector = 1; + */ + connector = ConnectorType.UNSPECIFIED; + /** + * @generated from field: int64 id = 2; + */ + id = protoInt64.zero; + /** + * @generated from field: exa.opensearch_clients_pb.JobStatus status = 3; + */ + status = JobStatus.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.JobState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'connector', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + }, + { + no: 2, + name: 'id', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { no: 3, name: 'status', kind: 'enum', T: proto3.getEnumType(JobStatus) }, + ]); + static fromBinary(bytes, options) { + return new _JobState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _JobState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _JobState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_JobState, a, b); + } +}; +var GetKnowledgeBaseJobStatesRequest = class _GetKnowledgeBaseJobStatesRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + /** + * @generated from field: repeated exa.opensearch_clients_pb.ConnectorType connector_types = 2; + */ + connectorTypes = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseJobStatesRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + { + no: 2, + name: 'connector_types', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseJobStatesRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseJobStatesRequest().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseJobStatesRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetKnowledgeBaseJobStatesRequest, a, b); + } +}; +var GetKnowledgeBaseJobStatesResponse = class _GetKnowledgeBaseJobStatesResponse extends Message { + /** + * @generated from field: repeated exa.opensearch_clients_pb.JobState job_states = 1; + */ + jobStates = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseJobStatesResponse'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'job_states', kind: 'message', T: JobState, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseJobStatesResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseJobStatesResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseJobStatesResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetKnowledgeBaseJobStatesResponse, a, b); + } +}; +var SlackMessagePayload = class _SlackMessagePayload extends Message { + /** + * TODO(saujasn): Move this metadata into an eval specific proto (in + * exa/beacon_eval). Our metadata + * + * Format: + * + * @generated from field: string dataset_id = 1; + */ + datasetId = ''; + /** + * Slack:[VERSION]:[CONVERSATION_ID]:[POSITION_IN_CONVERSATION]:[POSITION_IN_THREAD] + * + * empty string if the previous message is not in the dataset + * + * @generated from field: string previous_message_dataset_id = 2; + */ + previousMessageDatasetId = ''; + /** + * Slack data + * We intentionally do not use strong types for these fields. + * One reason is that we need to ensure that we're accepting all data + * we receive, for our reindexing/backup systems to be lossless. + * Validation should instead be done after loading this data, and before + * insertion into OpenSearch. + * + * @generated from field: string type = 3; + */ + type = ''; + /** + * @generated from field: string channel_id = 4; + */ + channelId = ''; + /** + * @generated from field: string user = 5; + */ + user = ''; + /** + * @generated from field: string text = 6; + */ + text = ''; + /** + * @generated from field: string timestamp = 7; + */ + timestamp = ''; + /** + * @generated from field: string thread_timestamp = 8; + */ + threadTimestamp = ''; + /** + * @generated from field: string channel_name = 9; + */ + channelName = ''; + /** + * @generated from field: string team_name = 10; + */ + teamName = ''; + /** + * @generated from field: string team_id = 11; + */ + teamId = ''; + /** + * @generated from field: bool is_private_channel = 12; + */ + isPrivateChannel = false; + /** + * @generated from field: string team_domain = 13; + */ + teamDomain = ''; + /** + * @generated from field: string original_timestamp = 14; + */ + originalTimestamp = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.SlackMessagePayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'dataset_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'previous_message_dataset_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'channel_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'user', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'timestamp', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'thread_timestamp', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'channel_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'team_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 11, + name: 'team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'is_private_channel', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 13, + name: 'team_domain', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 14, + name: 'original_timestamp', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _SlackMessagePayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SlackMessagePayload().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SlackMessagePayload().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SlackMessagePayload, a, b); + } +}; +var SlackChannelPayload = class _SlackChannelPayload extends Message { + /** + * @generated from field: string type = 1; + */ + type = ''; + /** + * @generated from field: string channel_id = 2; + */ + channelId = ''; + /** + * @generated from field: string channel_name = 4; + */ + channelName = ''; + /** + * @generated from field: string description = 7; + */ + description = ''; + /** + * @generated from field: string team_id = 8; + */ + teamId = ''; + /** + * @generated from field: bool is_private_channel = 9; + */ + isPrivateChannel = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.SlackChannelPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'channel_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'channel_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'team_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'is_private_channel', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _SlackChannelPayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SlackChannelPayload().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SlackChannelPayload().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SlackChannelPayload, a, b); + } +}; +var SlackPayload = class _SlackPayload extends Message { + /** + * @generated from oneof exa.opensearch_clients_pb.SlackPayload.payload + */ + payload = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.opensearch_clients_pb.SlackPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 13, + name: 'message', + kind: 'message', + T: SlackMessagePayload, + oneof: 'payload', + }, + { + no: 14, + name: 'channel', + kind: 'message', + T: SlackChannelPayload, + oneof: 'payload', + }, + ]); + static fromBinary(bytes, options) { + return new _SlackPayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SlackPayload().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SlackPayload().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SlackPayload, a, b); + } +}; +var GetKnowledgeBaseWebhookUrlRequest = class _GetKnowledgeBaseWebhookUrlRequest extends Message { + /** + * @generated from field: exa.index_pb.ManagementMetadata metadata = 1; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseWebhookUrlRequest'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: ManagementMetadata }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseWebhookUrlRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseWebhookUrlRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseWebhookUrlRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetKnowledgeBaseWebhookUrlRequest, a, b); + } +}; +var GetKnowledgeBaseWebhookUrlResponse = class _GetKnowledgeBaseWebhookUrlResponse extends Message { + /** + * @generated from field: string webhook_url = 1; + */ + webhookUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetKnowledgeBaseWebhookUrlResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'webhook_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _GetKnowledgeBaseWebhookUrlResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetKnowledgeBaseWebhookUrlResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetKnowledgeBaseWebhookUrlResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetKnowledgeBaseWebhookUrlResponse, a, b); + } +}; +var GetConnectorInternalConfigRequest = class _GetConnectorInternalConfigRequest extends Message { + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorType connector = 1; + */ + connector = ConnectorType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetConnectorInternalConfigRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'connector', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + }, + ]); + static fromBinary(bytes, options) { + return new _GetConnectorInternalConfigRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetConnectorInternalConfigRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetConnectorInternalConfigRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetConnectorInternalConfigRequest, a, b); + } +}; +var GetConnectorInternalConfigResponse = class _GetConnectorInternalConfigResponse extends Message { + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorInternalConfig internal_config = 1; + */ + internalConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.opensearch_clients_pb.GetConnectorInternalConfigResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'internal_config', + kind: 'message', + T: ConnectorInternalConfig, + }, + ]); + static fromBinary(bytes, options) { + return new _GetConnectorInternalConfigResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GetConnectorInternalConfigResponse().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _GetConnectorInternalConfigResponse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_GetConnectorInternalConfigResponse, a, b); + } +}; + +// exa/proto_ts/dist/exa/browser_pb/browser_pb.js +var ClickType; +(function (ClickType2) { + ClickType2[(ClickType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ClickType2[(ClickType2['LEFT'] = 1)] = 'LEFT'; + ClickType2[(ClickType2['RIGHT'] = 2)] = 'RIGHT'; + ClickType2[(ClickType2['DOUBLE'] = 3)] = 'DOUBLE'; + ClickType2[(ClickType2['NONE'] = 4)] = 'NONE'; +})(ClickType || (ClickType = {})); +proto3.util.setEnumType(ClickType, 'exa.browser_pb.ClickType', [ { no: 0, name: 'CLICK_TYPE_UNSPECIFIED' }, { no: 1, name: 'CLICK_TYPE_LEFT' }, { no: 2, name: 'CLICK_TYPE_RIGHT' }, { no: 3, name: 'CLICK_TYPE_DOUBLE' }, { no: 4, name: 'CLICK_TYPE_NONE' }, ]); -var _e; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.UP = 1)] = 'UP'), - (e[(e.DOWN = 2)] = 'DOWN'), - (e[(e.LEFT = 3)] = 'LEFT'), - (e[(e.RIGHT = 4)] = 'RIGHT')); -})(_e || (_e = {})); -a.util.setEnumType(_e, 'exa.browser_pb.ScrollDirection', [ +var ScrollDirection; +(function (ScrollDirection2) { + ScrollDirection2[(ScrollDirection2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ScrollDirection2[(ScrollDirection2['UP'] = 1)] = 'UP'; + ScrollDirection2[(ScrollDirection2['DOWN'] = 2)] = 'DOWN'; + ScrollDirection2[(ScrollDirection2['LEFT'] = 3)] = 'LEFT'; + ScrollDirection2[(ScrollDirection2['RIGHT'] = 4)] = 'RIGHT'; +})(ScrollDirection || (ScrollDirection = {})); +proto3.util.setEnumType(ScrollDirection, 'exa.browser_pb.ScrollDirection', [ { no: 0, name: 'SCROLL_DIRECTION_UNSPECIFIED' }, { no: 1, name: 'SCROLL_DIRECTION_UP' }, { no: 2, name: 'SCROLL_DIRECTION_DOWN' }, { no: 3, name: 'SCROLL_DIRECTION_LEFT' }, { no: 4, name: 'SCROLL_DIRECTION_RIGHT' }, ]); -var de; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.NORMAL = 1)] = 'NORMAL'), - (e[(e.MINIMIZED = 2)] = 'MINIMIZED'), - (e[(e.MAXIMIZED = 3)] = 'MAXIMIZED'), - (e[(e.FULLSCREEN = 4)] = 'FULLSCREEN')); -})(de || (de = {})); -a.util.setEnumType(de, 'exa.browser_pb.WindowState', [ +var WindowState; +(function (WindowState2) { + WindowState2[(WindowState2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + WindowState2[(WindowState2['NORMAL'] = 1)] = 'NORMAL'; + WindowState2[(WindowState2['MINIMIZED'] = 2)] = 'MINIMIZED'; + WindowState2[(WindowState2['MAXIMIZED'] = 3)] = 'MAXIMIZED'; + WindowState2[(WindowState2['FULLSCREEN'] = 4)] = 'FULLSCREEN'; +})(WindowState || (WindowState = {})); +proto3.util.setEnumType(WindowState, 'exa.browser_pb.WindowState', [ { no: 0, name: 'WINDOW_STATE_UNSPECIFIED' }, { no: 1, name: 'WINDOW_STATE_NORMAL' }, { no: 2, name: 'WINDOW_STATE_MINIMIZED' }, { no: 3, name: 'WINDOW_STATE_MAXIMIZED' }, { no: 4, name: 'WINDOW_STATE_FULLSCREEN' }, ]); -var SI = class e extends r { - pageId = ''; - metadata; - domTree; - screenshot; - agentMousePosition; - consoleLogs; - addedTime; - serializedDomTree = ''; - mediaScreenshot; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.browser_pb.SerializablePageState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'metadata', kind: 'message', T: A }, - { no: 3, name: 'dom_tree', kind: 'message', T: xn }, - { no: 4, name: 'screenshot', kind: 'message', T: P }, - { no: 5, name: 'agent_mouse_position', kind: 'message', T: Ql }, - { no: 6, name: 'console_logs', kind: 'message', T: Jn }, - { no: 7, name: 'added_time', kind: 'message', T: _ }, - { no: 8, name: 'serialized_dom_tree', kind: 'scalar', T: 9 }, - { no: 9, name: 'media_screenshot', kind: 'message', T: C }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ql = class e extends r { - x = 0; - y = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.browser_pb.AgentMousePosition'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'x', kind: 'scalar', T: 5 }, - { no: 2, name: 'y', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var ia; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.LOW = 1)] = 'LOW'), - (e[(e.MEDIUM = 2)] = 'MEDIUM'), - (e[(e.HIGH = 3)] = 'HIGH')); -})(ia || (ia = {})); -a.util.setEnumType(ia, 'exa.cortex_pb.InteractiveCascadeEditImportance', [ - { no: 0, name: 'INTERACTIVE_CASCADE_EDIT_IMPORTANCE_UNSPECIFIED' }, - { no: 1, name: 'INTERACTIVE_CASCADE_EDIT_IMPORTANCE_LOW' }, - { no: 2, name: 'INTERACTIVE_CASCADE_EDIT_IMPORTANCE_MEDIUM' }, - { no: 3, name: 'INTERACTIVE_CASCADE_EDIT_IMPORTANCE_HIGH' }, -]); -var oa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ERROR = 1)] = 'ERROR'), - (e[(e.INITIALIZED = 2)] = 'INITIALIZED'), - (e[(e.PREPARING = 3)] = 'PREPARING'), - (e[(e.PREPARED = 4)] = 'PREPARED'), - (e[(e.APPLYING = 5)] = 'APPLYING'), - (e[(e.APPLIED = 6)] = 'APPLIED'), - (e[(e.REJECTED = 7)] = 'REJECTED')); -})(oa || (oa = {})); -a.util.setEnumType(oa, 'exa.cortex_pb.ActionStatus', [ +var SerializablePageState = class _SerializablePageState extends Message { + /** + * CDP page identifier. + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata metadata = 2; + */ + metadata; + /** + * @generated from field: exa.codeium_common_pb.DOMTree dom_tree = 3; + */ + domTree; + /** + * @generated from field: exa.codeium_common_pb.ImageData screenshot = 4 [deprecated = true]; + * @deprecated + */ + screenshot; + /** + * @generated from field: exa.browser_pb.AgentMousePosition agent_mouse_position = 5; + */ + agentMousePosition; + /** + * @generated from field: exa.codeium_common_pb.ConsoleLogScopeItem console_logs = 6; + */ + consoleLogs; + /** + * @generated from field: google.protobuf.Timestamp added_time = 7; + */ + addedTime; + /** + * @generated from field: string serialized_dom_tree = 8; + */ + serializedDomTree = ''; + /** + * @generated from field: exa.codeium_common_pb.Media media_screenshot = 9; + */ + mediaScreenshot; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.browser_pb.SerializablePageState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'metadata', kind: 'message', T: BrowserPageMetadata }, + { no: 3, name: 'dom_tree', kind: 'message', T: DOMTree }, + { no: 4, name: 'screenshot', kind: 'message', T: ImageData }, + { + no: 5, + name: 'agent_mouse_position', + kind: 'message', + T: AgentMousePosition, + }, + { no: 6, name: 'console_logs', kind: 'message', T: ConsoleLogScopeItem }, + { no: 7, name: 'added_time', kind: 'message', T: Timestamp }, + { + no: 8, + name: 'serialized_dom_tree', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 9, name: 'media_screenshot', kind: 'message', T: Media }, + ]); + static fromBinary(bytes, options) { + return new _SerializablePageState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SerializablePageState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SerializablePageState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SerializablePageState, a, b); + } +}; +var AgentMousePosition = class _AgentMousePosition extends Message { + /** + * @generated from field: int32 x = 1; + */ + x = 0; + /** + * @generated from field: int32 y = 2; + */ + y = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.browser_pb.AgentMousePosition'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'x', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'y', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _AgentMousePosition().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AgentMousePosition().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AgentMousePosition().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AgentMousePosition, a, b); + } +}; + +// exa/proto_ts/dist/exa/cortex_pb/cortex_pb.js +var InteractiveCascadeEditImportance; +(function (InteractiveCascadeEditImportance2) { + InteractiveCascadeEditImportance2[ + (InteractiveCascadeEditImportance2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + InteractiveCascadeEditImportance2[ + (InteractiveCascadeEditImportance2['LOW'] = 1) + ] = 'LOW'; + InteractiveCascadeEditImportance2[ + (InteractiveCascadeEditImportance2['MEDIUM'] = 2) + ] = 'MEDIUM'; + InteractiveCascadeEditImportance2[ + (InteractiveCascadeEditImportance2['HIGH'] = 3) + ] = 'HIGH'; +})(InteractiveCascadeEditImportance || (InteractiveCascadeEditImportance = {})); +proto3.util.setEnumType( + InteractiveCascadeEditImportance, + 'exa.cortex_pb.InteractiveCascadeEditImportance', + [ + { no: 0, name: 'INTERACTIVE_CASCADE_EDIT_IMPORTANCE_UNSPECIFIED' }, + { no: 1, name: 'INTERACTIVE_CASCADE_EDIT_IMPORTANCE_LOW' }, + { no: 2, name: 'INTERACTIVE_CASCADE_EDIT_IMPORTANCE_MEDIUM' }, + { no: 3, name: 'INTERACTIVE_CASCADE_EDIT_IMPORTANCE_HIGH' }, + ], +); +var ActionStatus; +(function (ActionStatus2) { + ActionStatus2[(ActionStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ActionStatus2[(ActionStatus2['ERROR'] = 1)] = 'ERROR'; + ActionStatus2[(ActionStatus2['INITIALIZED'] = 2)] = 'INITIALIZED'; + ActionStatus2[(ActionStatus2['PREPARING'] = 3)] = 'PREPARING'; + ActionStatus2[(ActionStatus2['PREPARED'] = 4)] = 'PREPARED'; + ActionStatus2[(ActionStatus2['APPLYING'] = 5)] = 'APPLYING'; + ActionStatus2[(ActionStatus2['APPLIED'] = 6)] = 'APPLIED'; + ActionStatus2[(ActionStatus2['REJECTED'] = 7)] = 'REJECTED'; +})(ActionStatus || (ActionStatus = {})); +proto3.util.setEnumType(ActionStatus, 'exa.cortex_pb.ActionStatus', [ { no: 0, name: 'ACTION_STATUS_UNSPECIFIED' }, { no: 1, name: 'ACTION_STATUS_ERROR' }, { no: 2, name: 'ACTION_STATUS_INITIALIZED' }, @@ -21114,42 +39730,48 @@ a.util.setEnumType(oa, 'exa.cortex_pb.ActionStatus', [ { no: 6, name: 'ACTION_STATUS_APPLIED' }, { no: 7, name: 'ACTION_STATUS_REJECTED' }, ]); -var ma; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.INITIALIZED = 1)] = 'INITIALIZED'), - (e[(e.PLANNING = 2)] = 'PLANNING'), - (e[(e.PLANNED = 3)] = 'PLANNED'), - (e[(e.ERROR = 4)] = 'ERROR')); -})(ma || (ma = {})); -a.util.setEnumType(ma, 'exa.cortex_pb.PlanStatus', [ +var PlanStatus2; +(function (PlanStatus3) { + PlanStatus3[(PlanStatus3['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + PlanStatus3[(PlanStatus3['INITIALIZED'] = 1)] = 'INITIALIZED'; + PlanStatus3[(PlanStatus3['PLANNING'] = 2)] = 'PLANNING'; + PlanStatus3[(PlanStatus3['PLANNED'] = 3)] = 'PLANNED'; + PlanStatus3[(PlanStatus3['ERROR'] = 4)] = 'ERROR'; +})(PlanStatus2 || (PlanStatus2 = {})); +proto3.util.setEnumType(PlanStatus2, 'exa.cortex_pb.PlanStatus', [ { no: 0, name: 'PLAN_STATUS_UNSPECIFIED' }, { no: 1, name: 'PLAN_STATUS_INITIALIZED' }, { no: 2, name: 'PLAN_STATUS_PLANNING' }, { no: 3, name: 'PLAN_STATUS_PLANNED' }, { no: 4, name: 'PLAN_STATUS_ERROR' }, ]); -var hn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CASCADE = 1)] = 'CASCADE'), - (e[(e.USER_IMPLICIT = 2)] = 'USER_IMPLICIT')); -})(hn || (hn = {})); -a.util.setEnumType(hn, 'exa.cortex_pb.CortexRequestSource', [ - { no: 0, name: 'CORTEX_REQUEST_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_REQUEST_SOURCE_CASCADE' }, - { no: 2, name: 'CORTEX_REQUEST_SOURCE_USER_IMPLICIT' }, -]); -var Gn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.GIT = 1)] = 'GIT'), - (e[(e.PIPER = 2)] = 'PIPER'), - (e[(e.FIG = 3)] = 'FIG'), - (e[(e.JJ_PIPER = 4)] = 'JJ_PIPER'), - (e[(e.JJ_GIT = 5)] = 'JJ_GIT')); -})(Gn || (Gn = {})); -a.util.setEnumType(Gn, 'exa.cortex_pb.WorkspaceType', [ +var CortexRequestSource; +(function (CortexRequestSource2) { + CortexRequestSource2[(CortexRequestSource2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CortexRequestSource2[(CortexRequestSource2['CASCADE'] = 1)] = 'CASCADE'; + CortexRequestSource2[(CortexRequestSource2['USER_IMPLICIT'] = 2)] = + 'USER_IMPLICIT'; +})(CortexRequestSource || (CortexRequestSource = {})); +proto3.util.setEnumType( + CortexRequestSource, + 'exa.cortex_pb.CortexRequestSource', + [ + { no: 0, name: 'CORTEX_REQUEST_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_REQUEST_SOURCE_CASCADE' }, + { no: 2, name: 'CORTEX_REQUEST_SOURCE_USER_IMPLICIT' }, + ], +); +var WorkspaceType; +(function (WorkspaceType2) { + WorkspaceType2[(WorkspaceType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + WorkspaceType2[(WorkspaceType2['GIT'] = 1)] = 'GIT'; + WorkspaceType2[(WorkspaceType2['PIPER'] = 2)] = 'PIPER'; + WorkspaceType2[(WorkspaceType2['FIG'] = 3)] = 'FIG'; + WorkspaceType2[(WorkspaceType2['JJ_PIPER'] = 4)] = 'JJ_PIPER'; + WorkspaceType2[(WorkspaceType2['JJ_GIT'] = 5)] = 'JJ_GIT'; +})(WorkspaceType || (WorkspaceType = {})); +proto3.util.setEnumType(WorkspaceType, 'exa.cortex_pb.WorkspaceType', [ { no: 0, name: 'WORKSPACE_TYPE_UNSPECIFIED' }, { no: 1, name: 'WORKSPACE_TYPE_GIT' }, { no: 2, name: 'WORKSPACE_TYPE_PIPER' }, @@ -21157,117 +39779,159 @@ a.util.setEnumType(Gn, 'exa.cortex_pb.WorkspaceType', [ { no: 4, name: 'WORKSPACE_TYPE_JJ_PIPER' }, { no: 5, name: 'WORKSPACE_TYPE_JJ_GIT' }, ]); -var Te; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CASCADE_CLIENT = 1)] = 'CASCADE_CLIENT'), - (e[(e.EXPLAIN_PROBLEM = 2)] = 'EXPLAIN_PROBLEM'), - (e[(e.REFACTOR_FUNCTION = 3)] = 'REFACTOR_FUNCTION'), - (e[(e.EVAL = 4)] = 'EVAL'), - (e[(e.EVAL_TASK = 5)] = 'EVAL_TASK'), - (e[(e.ASYNC_PRR = 6)] = 'ASYNC_PRR'), - (e[(e.ASYNC_CF = 7)] = 'ASYNC_CF'), - (e[(e.ASYNC_SL = 8)] = 'ASYNC_SL'), - (e[(e.ASYNC_PRD = 9)] = 'ASYNC_PRD'), - (e[(e.ASYNC_CM = 10)] = 'ASYNC_CM'), - (e[(e.INTERACTIVE_CASCADE = 12)] = 'INTERACTIVE_CASCADE'), - (e[(e.REPLAY = 13)] = 'REPLAY'), - (e[(e.SDK = 15)] = 'SDK')); -})(Te || (Te = {})); -a.util.setEnumType(Te, 'exa.cortex_pb.CortexTrajectorySource', [ - { no: 0, name: 'CORTEX_TRAJECTORY_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_TRAJECTORY_SOURCE_CASCADE_CLIENT' }, - { no: 2, name: 'CORTEX_TRAJECTORY_SOURCE_EXPLAIN_PROBLEM' }, - { no: 3, name: 'CORTEX_TRAJECTORY_SOURCE_REFACTOR_FUNCTION' }, - { no: 4, name: 'CORTEX_TRAJECTORY_SOURCE_EVAL' }, - { no: 5, name: 'CORTEX_TRAJECTORY_SOURCE_EVAL_TASK' }, - { no: 6, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_PRR' }, - { no: 7, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_CF' }, - { no: 8, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_SL' }, - { no: 9, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_PRD' }, - { no: 10, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_CM' }, - { no: 12, name: 'CORTEX_TRAJECTORY_SOURCE_INTERACTIVE_CASCADE' }, - { no: 13, name: 'CORTEX_TRAJECTORY_SOURCE_REPLAY' }, - { no: 15, name: 'CORTEX_TRAJECTORY_SOURCE_SDK' }, -]); -var On; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.USER_MAINLINE = 1)] = 'USER_MAINLINE'), - (e[(e.USER_GRANULAR = 2)] = 'USER_GRANULAR'), - (e[(e.SUPERCOMPLETE = 3)] = 'SUPERCOMPLETE'), - (e[(e.CASCADE = 4)] = 'CASCADE'), - (e[(e.CHECKPOINT = 6)] = 'CHECKPOINT'), - (e[(e.APPLIER = 11)] = 'APPLIER'), - (e[(e.TOOL_CALL_PROPOSAL = 12)] = 'TOOL_CALL_PROPOSAL'), - (e[(e.TRAJECTORY_CHOICE = 13)] = 'TRAJECTORY_CHOICE'), - (e[(e.LLM_JUDGE = 14)] = 'LLM_JUDGE'), - (e[(e.INTERACTIVE_CASCADE = 17)] = 'INTERACTIVE_CASCADE'), - (e[(e.BRAIN_UPDATE = 16)] = 'BRAIN_UPDATE'), - (e[(e.BROWSER = 20)] = 'BROWSER'), - (e[(e.KNOWLEDGE_GENERATION = 21)] = 'KNOWLEDGE_GENERATION')); -})(On || (On = {})); -a.util.setEnumType(On, 'exa.cortex_pb.CortexTrajectoryType', [ - { no: 0, name: 'CORTEX_TRAJECTORY_TYPE_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_TRAJECTORY_TYPE_USER_MAINLINE' }, - { no: 2, name: 'CORTEX_TRAJECTORY_TYPE_USER_GRANULAR' }, - { no: 3, name: 'CORTEX_TRAJECTORY_TYPE_SUPERCOMPLETE' }, - { no: 4, name: 'CORTEX_TRAJECTORY_TYPE_CASCADE' }, - { no: 6, name: 'CORTEX_TRAJECTORY_TYPE_CHECKPOINT' }, - { no: 11, name: 'CORTEX_TRAJECTORY_TYPE_APPLIER' }, - { no: 12, name: 'CORTEX_TRAJECTORY_TYPE_TOOL_CALL_PROPOSAL' }, - { no: 13, name: 'CORTEX_TRAJECTORY_TYPE_TRAJECTORY_CHOICE' }, - { no: 14, name: 'CORTEX_TRAJECTORY_TYPE_LLM_JUDGE' }, - { no: 17, name: 'CORTEX_TRAJECTORY_TYPE_INTERACTIVE_CASCADE' }, - { no: 16, name: 'CORTEX_TRAJECTORY_TYPE_BRAIN_UPDATE' }, - { no: 20, name: 'CORTEX_TRAJECTORY_TYPE_BROWSER' }, - { no: 21, name: 'CORTEX_TRAJECTORY_TYPE_KNOWLEDGE_GENERATION' }, -]); -var ca; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PRUNE = 1)] = 'PRUNE'), - (e[(e.FORK = 2)] = 'FORK')); -})(ca || (ca = {})); -a.util.setEnumType(ca, 'exa.cortex_pb.CortexTrajectoryReferenceType', [ - { no: 0, name: 'CORTEX_TRAJECTORY_REFERENCE_TYPE_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_TRAJECTORY_REFERENCE_TYPE_PRUNE' }, - { no: 2, name: 'CORTEX_TRAJECTORY_REFERENCE_TYPE_FORK' }, -]); -var ua; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.API_RETRYABLE = 1)] = 'API_RETRYABLE'), - (e[(e.MODEL_CORRECTABLE = 2)] = 'MODEL_CORRECTABLE'), - (e[(e.NON_RECOVERABLE = 3)] = 'NON_RECOVERABLE')); -})(ua || (ua = {})); -a.util.setEnumType(ua, 'exa.cortex_pb.RetryReason', [ +var CortexTrajectorySource; +(function (CortexTrajectorySource2) { + CortexTrajectorySource2[(CortexTrajectorySource2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CortexTrajectorySource2[(CortexTrajectorySource2['CASCADE_CLIENT'] = 1)] = + 'CASCADE_CLIENT'; + CortexTrajectorySource2[(CortexTrajectorySource2['EXPLAIN_PROBLEM'] = 2)] = + 'EXPLAIN_PROBLEM'; + CortexTrajectorySource2[(CortexTrajectorySource2['REFACTOR_FUNCTION'] = 3)] = + 'REFACTOR_FUNCTION'; + CortexTrajectorySource2[(CortexTrajectorySource2['EVAL'] = 4)] = 'EVAL'; + CortexTrajectorySource2[(CortexTrajectorySource2['EVAL_TASK'] = 5)] = + 'EVAL_TASK'; + CortexTrajectorySource2[(CortexTrajectorySource2['ASYNC_PRR'] = 6)] = + 'ASYNC_PRR'; + CortexTrajectorySource2[(CortexTrajectorySource2['ASYNC_CF'] = 7)] = + 'ASYNC_CF'; + CortexTrajectorySource2[(CortexTrajectorySource2['ASYNC_SL'] = 8)] = + 'ASYNC_SL'; + CortexTrajectorySource2[(CortexTrajectorySource2['ASYNC_PRD'] = 9)] = + 'ASYNC_PRD'; + CortexTrajectorySource2[(CortexTrajectorySource2['ASYNC_CM'] = 10)] = + 'ASYNC_CM'; + CortexTrajectorySource2[ + (CortexTrajectorySource2['INTERACTIVE_CASCADE'] = 12) + ] = 'INTERACTIVE_CASCADE'; + CortexTrajectorySource2[(CortexTrajectorySource2['REPLAY'] = 13)] = 'REPLAY'; + CortexTrajectorySource2[(CortexTrajectorySource2['SDK'] = 15)] = 'SDK'; +})(CortexTrajectorySource || (CortexTrajectorySource = {})); +proto3.util.setEnumType( + CortexTrajectorySource, + 'exa.cortex_pb.CortexTrajectorySource', + [ + { no: 0, name: 'CORTEX_TRAJECTORY_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_TRAJECTORY_SOURCE_CASCADE_CLIENT' }, + { no: 2, name: 'CORTEX_TRAJECTORY_SOURCE_EXPLAIN_PROBLEM' }, + { no: 3, name: 'CORTEX_TRAJECTORY_SOURCE_REFACTOR_FUNCTION' }, + { no: 4, name: 'CORTEX_TRAJECTORY_SOURCE_EVAL' }, + { no: 5, name: 'CORTEX_TRAJECTORY_SOURCE_EVAL_TASK' }, + { no: 6, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_PRR' }, + { no: 7, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_CF' }, + { no: 8, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_SL' }, + { no: 9, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_PRD' }, + { no: 10, name: 'CORTEX_TRAJECTORY_SOURCE_ASYNC_CM' }, + { no: 12, name: 'CORTEX_TRAJECTORY_SOURCE_INTERACTIVE_CASCADE' }, + { no: 13, name: 'CORTEX_TRAJECTORY_SOURCE_REPLAY' }, + { no: 15, name: 'CORTEX_TRAJECTORY_SOURCE_SDK' }, + ], +); +var CortexTrajectoryType; +(function (CortexTrajectoryType2) { + CortexTrajectoryType2[(CortexTrajectoryType2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CortexTrajectoryType2[(CortexTrajectoryType2['USER_MAINLINE'] = 1)] = + 'USER_MAINLINE'; + CortexTrajectoryType2[(CortexTrajectoryType2['USER_GRANULAR'] = 2)] = + 'USER_GRANULAR'; + CortexTrajectoryType2[(CortexTrajectoryType2['SUPERCOMPLETE'] = 3)] = + 'SUPERCOMPLETE'; + CortexTrajectoryType2[(CortexTrajectoryType2['CASCADE'] = 4)] = 'CASCADE'; + CortexTrajectoryType2[(CortexTrajectoryType2['CHECKPOINT'] = 6)] = + 'CHECKPOINT'; + CortexTrajectoryType2[(CortexTrajectoryType2['APPLIER'] = 11)] = 'APPLIER'; + CortexTrajectoryType2[(CortexTrajectoryType2['TOOL_CALL_PROPOSAL'] = 12)] = + 'TOOL_CALL_PROPOSAL'; + CortexTrajectoryType2[(CortexTrajectoryType2['TRAJECTORY_CHOICE'] = 13)] = + 'TRAJECTORY_CHOICE'; + CortexTrajectoryType2[(CortexTrajectoryType2['LLM_JUDGE'] = 14)] = + 'LLM_JUDGE'; + CortexTrajectoryType2[(CortexTrajectoryType2['INTERACTIVE_CASCADE'] = 17)] = + 'INTERACTIVE_CASCADE'; + CortexTrajectoryType2[(CortexTrajectoryType2['BRAIN_UPDATE'] = 16)] = + 'BRAIN_UPDATE'; + CortexTrajectoryType2[(CortexTrajectoryType2['BROWSER'] = 20)] = 'BROWSER'; + CortexTrajectoryType2[(CortexTrajectoryType2['KNOWLEDGE_GENERATION'] = 21)] = + 'KNOWLEDGE_GENERATION'; +})(CortexTrajectoryType || (CortexTrajectoryType = {})); +proto3.util.setEnumType( + CortexTrajectoryType, + 'exa.cortex_pb.CortexTrajectoryType', + [ + { no: 0, name: 'CORTEX_TRAJECTORY_TYPE_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_TRAJECTORY_TYPE_USER_MAINLINE' }, + { no: 2, name: 'CORTEX_TRAJECTORY_TYPE_USER_GRANULAR' }, + { no: 3, name: 'CORTEX_TRAJECTORY_TYPE_SUPERCOMPLETE' }, + { no: 4, name: 'CORTEX_TRAJECTORY_TYPE_CASCADE' }, + { no: 6, name: 'CORTEX_TRAJECTORY_TYPE_CHECKPOINT' }, + { no: 11, name: 'CORTEX_TRAJECTORY_TYPE_APPLIER' }, + { no: 12, name: 'CORTEX_TRAJECTORY_TYPE_TOOL_CALL_PROPOSAL' }, + { no: 13, name: 'CORTEX_TRAJECTORY_TYPE_TRAJECTORY_CHOICE' }, + { no: 14, name: 'CORTEX_TRAJECTORY_TYPE_LLM_JUDGE' }, + { no: 17, name: 'CORTEX_TRAJECTORY_TYPE_INTERACTIVE_CASCADE' }, + { no: 16, name: 'CORTEX_TRAJECTORY_TYPE_BRAIN_UPDATE' }, + { no: 20, name: 'CORTEX_TRAJECTORY_TYPE_BROWSER' }, + { no: 21, name: 'CORTEX_TRAJECTORY_TYPE_KNOWLEDGE_GENERATION' }, + ], +); +var CortexTrajectoryReferenceType; +(function (CortexTrajectoryReferenceType2) { + CortexTrajectoryReferenceType2[ + (CortexTrajectoryReferenceType2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + CortexTrajectoryReferenceType2[ + (CortexTrajectoryReferenceType2['PRUNE'] = 1) + ] = 'PRUNE'; + CortexTrajectoryReferenceType2[(CortexTrajectoryReferenceType2['FORK'] = 2)] = + 'FORK'; +})(CortexTrajectoryReferenceType || (CortexTrajectoryReferenceType = {})); +proto3.util.setEnumType( + CortexTrajectoryReferenceType, + 'exa.cortex_pb.CortexTrajectoryReferenceType', + [ + { no: 0, name: 'CORTEX_TRAJECTORY_REFERENCE_TYPE_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_TRAJECTORY_REFERENCE_TYPE_PRUNE' }, + { no: 2, name: 'CORTEX_TRAJECTORY_REFERENCE_TYPE_FORK' }, + ], +); +var RetryReason; +(function (RetryReason2) { + RetryReason2[(RetryReason2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + RetryReason2[(RetryReason2['API_RETRYABLE'] = 1)] = 'API_RETRYABLE'; + RetryReason2[(RetryReason2['MODEL_CORRECTABLE'] = 2)] = 'MODEL_CORRECTABLE'; + RetryReason2[(RetryReason2['NON_RECOVERABLE'] = 3)] = 'NON_RECOVERABLE'; +})(RetryReason || (RetryReason = {})); +proto3.util.setEnumType(RetryReason, 'exa.cortex_pb.RetryReason', [ { no: 0, name: 'RETRY_REASON_UNSPECIFIED' }, { no: 1, name: 'RETRY_REASON_API_RETRYABLE' }, { no: 2, name: 'RETRY_REASON_MODEL_CORRECTABLE' }, { no: 3, name: 'RETRY_REASON_NON_RECOVERABLE' }, ]); -var la; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PROMPT_CACHE_TTL_EXPIRED = 1)] = 'PROMPT_CACHE_TTL_EXPIRED'), - (e[(e.MAX_TOKEN_LIMIT = 2)] = 'MAX_TOKEN_LIMIT')); -})(la || (la = {})); -a.util.setEnumType(la, 'exa.cortex_pb.TruncationReason', [ +var TruncationReason; +(function (TruncationReason2) { + TruncationReason2[(TruncationReason2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TruncationReason2[(TruncationReason2['PROMPT_CACHE_TTL_EXPIRED'] = 1)] = + 'PROMPT_CACHE_TTL_EXPIRED'; + TruncationReason2[(TruncationReason2['MAX_TOKEN_LIMIT'] = 2)] = + 'MAX_TOKEN_LIMIT'; +})(TruncationReason || (TruncationReason = {})); +proto3.util.setEnumType(TruncationReason, 'exa.cortex_pb.TruncationReason', [ { no: 0, name: 'TRUNCATION_REASON_UNSPECIFIED' }, { no: 1, name: 'TRUNCATION_REASON_PROMPT_CACHE_TTL_EXPIRED' }, { no: 2, name: 'TRUNCATION_REASON_MAX_TOKEN_LIMIT' }, ]); -var Ea; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.MODEL = 2)] = 'MODEL'), - (e[(e.USER_IMPLICIT = 3)] = 'USER_IMPLICIT'), - (e[(e.USER_EXPLICIT = 4)] = 'USER_EXPLICIT'), - (e[(e.SYSTEM = 5)] = 'SYSTEM'), - (e[(e.SYSTEM_SDK = 6)] = 'SYSTEM_SDK')); -})(Ea || (Ea = {})); -a.util.setEnumType(Ea, 'exa.cortex_pb.CortexStepSource', [ +var CortexStepSource; +(function (CortexStepSource2) { + CortexStepSource2[(CortexStepSource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CortexStepSource2[(CortexStepSource2['MODEL'] = 2)] = 'MODEL'; + CortexStepSource2[(CortexStepSource2['USER_IMPLICIT'] = 3)] = 'USER_IMPLICIT'; + CortexStepSource2[(CortexStepSource2['USER_EXPLICIT'] = 4)] = 'USER_EXPLICIT'; + CortexStepSource2[(CortexStepSource2['SYSTEM'] = 5)] = 'SYSTEM'; + CortexStepSource2[(CortexStepSource2['SYSTEM_SDK'] = 6)] = 'SYSTEM_SDK'; +})(CortexStepSource || (CortexStepSource = {})); +proto3.util.setEnumType(CortexStepSource, 'exa.cortex_pb.CortexStepSource', [ { no: 0, name: 'CORTEX_STEP_SOURCE_UNSPECIFIED' }, { no: 2, name: 'CORTEX_STEP_SOURCE_MODEL' }, { no: 3, name: 'CORTEX_STEP_SOURCE_USER_IMPLICIT' }, @@ -21275,44 +39939,58 @@ a.util.setEnumType(Ea, 'exa.cortex_pb.CortexStepSource', [ { no: 5, name: 'CORTEX_STEP_SOURCE_SYSTEM' }, { no: 6, name: 'CORTEX_STEP_SOURCE_SYSTEM_SDK' }, ]); -var os; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.LINT_FIXING_DISCOUNT = 1)] = 'LINT_FIXING_DISCOUNT')); -})(os || (os = {})); -a.util.setEnumType(os, 'exa.cortex_pb.CortexStepCreditReason', [ - { no: 0, name: 'CORTEX_STEP_CREDIT_REASON_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_STEP_CREDIT_REASON_LINT_FIXING_DISCOUNT' }, -]); -var Zl; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.INVOCATION_BLOCKING = 1)] = 'INVOCATION_BLOCKING'), - (e[(e.EXECUTOR_BLOCKING = 2)] = 'EXECUTOR_BLOCKING'), - (e[(e.FULL_ASYNC = 3)] = 'FULL_ASYNC')); -})(Zl || (Zl = {})); -a.util.setEnumType(Zl, 'exa.cortex_pb.ExecutionAsyncLevel', [ - { no: 0, name: 'EXECUTION_ASYNC_LEVEL_UNSPECIFIED' }, - { no: 1, name: 'EXECUTION_ASYNC_LEVEL_INVOCATION_BLOCKING' }, - { no: 2, name: 'EXECUTION_ASYNC_LEVEL_EXECUTOR_BLOCKING' }, - { no: 3, name: 'EXECUTION_ASYNC_LEVEL_FULL_ASYNC' }, -]); -var z; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.GENERATING = 8)] = 'GENERATING'), - (e[(e.QUEUED = 11)] = 'QUEUED'), - (e[(e.PENDING = 1)] = 'PENDING'), - (e[(e.RUNNING = 2)] = 'RUNNING'), - (e[(e.WAITING = 9)] = 'WAITING'), - (e[(e.DONE = 3)] = 'DONE'), - (e[(e.INVALID = 4)] = 'INVALID'), - (e[(e.CLEARED = 5)] = 'CLEARED'), - (e[(e.CANCELED = 6)] = 'CANCELED'), - (e[(e.ERROR = 7)] = 'ERROR'), - (e[(e.INTERRUPTED = 12)] = 'INTERRUPTED')); -})(z || (z = {})); -a.util.setEnumType(z, 'exa.cortex_pb.CortexStepStatus', [ +var CortexStepCreditReason; +(function (CortexStepCreditReason2) { + CortexStepCreditReason2[(CortexStepCreditReason2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CortexStepCreditReason2[ + (CortexStepCreditReason2['LINT_FIXING_DISCOUNT'] = 1) + ] = 'LINT_FIXING_DISCOUNT'; +})(CortexStepCreditReason || (CortexStepCreditReason = {})); +proto3.util.setEnumType( + CortexStepCreditReason, + 'exa.cortex_pb.CortexStepCreditReason', + [ + { no: 0, name: 'CORTEX_STEP_CREDIT_REASON_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_STEP_CREDIT_REASON_LINT_FIXING_DISCOUNT' }, + ], +); +var ExecutionAsyncLevel; +(function (ExecutionAsyncLevel2) { + ExecutionAsyncLevel2[(ExecutionAsyncLevel2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + ExecutionAsyncLevel2[(ExecutionAsyncLevel2['INVOCATION_BLOCKING'] = 1)] = + 'INVOCATION_BLOCKING'; + ExecutionAsyncLevel2[(ExecutionAsyncLevel2['EXECUTOR_BLOCKING'] = 2)] = + 'EXECUTOR_BLOCKING'; + ExecutionAsyncLevel2[(ExecutionAsyncLevel2['FULL_ASYNC'] = 3)] = 'FULL_ASYNC'; +})(ExecutionAsyncLevel || (ExecutionAsyncLevel = {})); +proto3.util.setEnumType( + ExecutionAsyncLevel, + 'exa.cortex_pb.ExecutionAsyncLevel', + [ + { no: 0, name: 'EXECUTION_ASYNC_LEVEL_UNSPECIFIED' }, + { no: 1, name: 'EXECUTION_ASYNC_LEVEL_INVOCATION_BLOCKING' }, + { no: 2, name: 'EXECUTION_ASYNC_LEVEL_EXECUTOR_BLOCKING' }, + { no: 3, name: 'EXECUTION_ASYNC_LEVEL_FULL_ASYNC' }, + ], +); +var CortexStepStatus; +(function (CortexStepStatus2) { + CortexStepStatus2[(CortexStepStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CortexStepStatus2[(CortexStepStatus2['GENERATING'] = 8)] = 'GENERATING'; + CortexStepStatus2[(CortexStepStatus2['QUEUED'] = 11)] = 'QUEUED'; + CortexStepStatus2[(CortexStepStatus2['PENDING'] = 1)] = 'PENDING'; + CortexStepStatus2[(CortexStepStatus2['RUNNING'] = 2)] = 'RUNNING'; + CortexStepStatus2[(CortexStepStatus2['WAITING'] = 9)] = 'WAITING'; + CortexStepStatus2[(CortexStepStatus2['DONE'] = 3)] = 'DONE'; + CortexStepStatus2[(CortexStepStatus2['INVALID'] = 4)] = 'INVALID'; + CortexStepStatus2[(CortexStepStatus2['CLEARED'] = 5)] = 'CLEARED'; + CortexStepStatus2[(CortexStepStatus2['CANCELED'] = 6)] = 'CANCELED'; + CortexStepStatus2[(CortexStepStatus2['ERROR'] = 7)] = 'ERROR'; + CortexStepStatus2[(CortexStepStatus2['INTERRUPTED'] = 12)] = 'INTERRUPTED'; +})(CortexStepStatus || (CortexStepStatus = {})); +proto3.util.setEnumType(CortexStepStatus, 'exa.cortex_pb.CortexStepStatus', [ { no: 0, name: 'CORTEX_STEP_STATUS_UNSPECIFIED' }, { no: 8, name: 'CORTEX_STEP_STATUS_GENERATING' }, { no: 11, name: 'CORTEX_STEP_STATUS_QUEUED' }, @@ -21326,233 +40004,329 @@ a.util.setEnumType(z, 'exa.cortex_pb.CortexStepStatus', [ { no: 7, name: 'CORTEX_STEP_STATUS_ERROR' }, { no: 12, name: 'CORTEX_STEP_STATUS_INTERRUPTED' }, ]); -var $l; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.IDLE = 1)] = 'IDLE'), - (e[(e.RUNNING = 2)] = 'RUNNING'), - (e[(e.CANCELING = 3)] = 'CANCELING'), - (e[(e.BUSY = 4)] = 'BUSY')); -})($l || ($l = {})); -a.util.setEnumType($l, 'exa.cortex_pb.CascadeRunStatus', [ +var CascadeRunStatus; +(function (CascadeRunStatus2) { + CascadeRunStatus2[(CascadeRunStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CascadeRunStatus2[(CascadeRunStatus2['IDLE'] = 1)] = 'IDLE'; + CascadeRunStatus2[(CascadeRunStatus2['RUNNING'] = 2)] = 'RUNNING'; + CascadeRunStatus2[(CascadeRunStatus2['CANCELING'] = 3)] = 'CANCELING'; + CascadeRunStatus2[(CascadeRunStatus2['BUSY'] = 4)] = 'BUSY'; +})(CascadeRunStatus || (CascadeRunStatus = {})); +proto3.util.setEnumType(CascadeRunStatus, 'exa.cortex_pb.CascadeRunStatus', [ { no: 0, name: 'CASCADE_RUN_STATUS_UNSPECIFIED' }, { no: 1, name: 'CASCADE_RUN_STATUS_IDLE' }, { no: 2, name: 'CASCADE_RUN_STATUS_RUNNING' }, { no: 3, name: 'CASCADE_RUN_STATUS_CANCELING' }, { no: 4, name: 'CASCADE_RUN_STATUS_BUSY' }, ]); -var nE; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.NO_SYSTEM_INJECTED_STEPS = 1)] = 'NO_SYSTEM_INJECTED_STEPS'), - (e[(e.NO_MEMORIES = 2)] = 'NO_MEMORIES')); -})(nE || (nE = {})); -a.util.setEnumType(nE, 'exa.cortex_pb.BrainFilterStrategy', [ - { no: 0, name: 'BRAIN_FILTER_STRATEGY_UNSPECIFIED' }, - { no: 1, name: 'BRAIN_FILTER_STRATEGY_NO_SYSTEM_INJECTED_STEPS' }, - { no: 2, name: 'BRAIN_FILTER_STRATEGY_NO_MEMORIES' }, -]); -var ms; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.OVERRIDE = 1)] = 'OVERRIDE'), - (e[(e.APPEND = 2)] = 'APPEND'), - (e[(e.PREPEND = 3)] = 'PREPEND')); -})(ms || (ms = {})); -a.util.setEnumType(ms, 'exa.cortex_pb.SectionOverrideMode', [ - { no: 0, name: 'SECTION_OVERRIDE_MODE_UNSPECIFIED' }, - { no: 1, name: 'SECTION_OVERRIDE_MODE_OVERRIDE' }, - { no: 2, name: 'SECTION_OVERRIDE_MODE_APPEND' }, - { no: 3, name: 'SECTION_OVERRIDE_MODE_PREPEND' }, -]); -var _a; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PLANNING = 1)] = 'PLANNING'), - (e[(e.EXECUTION = 2)] = 'EXECUTION'), - (e[(e.VERIFICATION = 3)] = 'VERIFICATION')); -})(_a || (_a = {})); -a.util.setEnumType(_a, 'exa.cortex_pb.AgentMode', [ +var BrainFilterStrategy; +(function (BrainFilterStrategy2) { + BrainFilterStrategy2[(BrainFilterStrategy2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + BrainFilterStrategy2[(BrainFilterStrategy2['NO_SYSTEM_INJECTED_STEPS'] = 1)] = + 'NO_SYSTEM_INJECTED_STEPS'; + BrainFilterStrategy2[(BrainFilterStrategy2['NO_MEMORIES'] = 2)] = + 'NO_MEMORIES'; +})(BrainFilterStrategy || (BrainFilterStrategy = {})); +proto3.util.setEnumType( + BrainFilterStrategy, + 'exa.cortex_pb.BrainFilterStrategy', + [ + { no: 0, name: 'BRAIN_FILTER_STRATEGY_UNSPECIFIED' }, + { no: 1, name: 'BRAIN_FILTER_STRATEGY_NO_SYSTEM_INJECTED_STEPS' }, + { no: 2, name: 'BRAIN_FILTER_STRATEGY_NO_MEMORIES' }, + ], +); +var SectionOverrideMode; +(function (SectionOverrideMode2) { + SectionOverrideMode2[(SectionOverrideMode2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + SectionOverrideMode2[(SectionOverrideMode2['OVERRIDE'] = 1)] = 'OVERRIDE'; + SectionOverrideMode2[(SectionOverrideMode2['APPEND'] = 2)] = 'APPEND'; + SectionOverrideMode2[(SectionOverrideMode2['PREPEND'] = 3)] = 'PREPEND'; +})(SectionOverrideMode || (SectionOverrideMode = {})); +proto3.util.setEnumType( + SectionOverrideMode, + 'exa.cortex_pb.SectionOverrideMode', + [ + { no: 0, name: 'SECTION_OVERRIDE_MODE_UNSPECIFIED' }, + { no: 1, name: 'SECTION_OVERRIDE_MODE_OVERRIDE' }, + { no: 2, name: 'SECTION_OVERRIDE_MODE_APPEND' }, + { no: 3, name: 'SECTION_OVERRIDE_MODE_PREPEND' }, + ], +); +var AgentMode; +(function (AgentMode2) { + AgentMode2[(AgentMode2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + AgentMode2[(AgentMode2['PLANNING'] = 1)] = 'PLANNING'; + AgentMode2[(AgentMode2['EXECUTION'] = 2)] = 'EXECUTION'; + AgentMode2[(AgentMode2['VERIFICATION'] = 3)] = 'VERIFICATION'; +})(AgentMode || (AgentMode = {})); +proto3.util.setEnumType(AgentMode, 'exa.cortex_pb.AgentMode', [ { no: 0, name: 'AGENT_MODE_UNSPECIFIED' }, { no: 1, name: 'AGENT_MODE_PLANNING' }, { no: 2, name: 'AGENT_MODE_EXECUTION' }, { no: 3, name: 'AGENT_MODE_VERIFICATION' }, ]); -var da; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.REPLACEMENT_CHUNK = 1)] = 'REPLACEMENT_CHUNK'), - (e[(e.SEARCH_REPLACE = 2)] = 'SEARCH_REPLACE'), - (e[(e.APPLY_PATCH = 3)] = 'APPLY_PATCH'), - (e[(e.SINGLE_MULTI = 4)] = 'SINGLE_MULTI')); -})(da || (da = {})); -a.util.setEnumType(da, 'exa.cortex_pb.ReplaceToolVariant', [ - { no: 0, name: 'REPLACE_TOOL_VARIANT_UNSPECIFIED' }, - { no: 1, name: 'REPLACE_TOOL_VARIANT_REPLACEMENT_CHUNK' }, - { no: 2, name: 'REPLACE_TOOL_VARIANT_SEARCH_REPLACE' }, - { no: 3, name: 'REPLACE_TOOL_VARIANT_APPLY_PATCH' }, - { no: 4, name: 'REPLACE_TOOL_VARIANT_SINGLE_MULTI' }, -]); -var cs; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.MAIN_AGENT_ONLY = 1)] = 'MAIN_AGENT_ONLY'), - (e[(e.SUBAGENT_PRIMARILY = 2)] = 'SUBAGENT_PRIMARILY'), - (e[(e.BOTH_AGENTS = 3)] = 'BOTH_AGENTS'), - (e[(e.SUBAGENT_ONLY = 4)] = 'SUBAGENT_ONLY')); -})(cs || (cs = {})); -a.util.setEnumType(cs, 'exa.cortex_pb.BrowserSubagentMode', [ - { no: 0, name: 'BROWSER_SUBAGENT_MODE_UNSPECIFIED' }, - { no: 1, name: 'BROWSER_SUBAGENT_MODE_MAIN_AGENT_ONLY' }, - { no: 2, name: 'BROWSER_SUBAGENT_MODE_SUBAGENT_PRIMARILY' }, - { no: 3, name: 'BROWSER_SUBAGENT_MODE_BOTH_AGENTS' }, - { no: 4, name: 'BROWSER_SUBAGENT_MODE_SUBAGENT_ONLY' }, -]); -var us; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ALL_TOOLS = 1)] = 'ALL_TOOLS'), - (e[(e.PIXEL_ONLY = 2)] = 'PIXEL_ONLY'), - (e[(e.ALL_INPUT_PIXEL_OUTPUT = 3)] = 'ALL_INPUT_PIXEL_OUTPUT')); -})(us || (us = {})); -a.util.setEnumType(us, 'exa.cortex_pb.BrowserToolSetMode', [ - { no: 0, name: 'BROWSER_TOOL_SET_MODE_UNSPECIFIED' }, - { no: 1, name: 'BROWSER_TOOL_SET_MODE_ALL_TOOLS' }, - { no: 2, name: 'BROWSER_TOOL_SET_MODE_PIXEL_ONLY' }, - { no: 3, name: 'BROWSER_TOOL_SET_MODE_ALL_INPUT_PIXEL_OUTPUT' }, -]); -var Ta; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PAGE_ACCESS = 1)] = 'PAGE_ACCESS'), - (e[(e.ACTION_PERMISSION = 2)] = 'ACTION_PERMISSION'), - (e[(e.PAGE_ACCESS_AND_ACTION_PERMISSION = 3)] = - 'PAGE_ACCESS_AND_ACTION_PERMISSION')); -})(Ta || (Ta = {})); -a.util.setEnumType(Ta, 'exa.cortex_pb.BrowserActionWaitingReason', [ - { no: 0, name: 'BROWSER_ACTION_WAITING_REASON_UNSPECIFIED' }, - { no: 1, name: 'BROWSER_ACTION_WAITING_REASON_PAGE_ACCESS' }, - { no: 2, name: 'BROWSER_ACTION_WAITING_REASON_ACTION_PERMISSION' }, - { - no: 3, - name: 'BROWSER_ACTION_WAITING_REASON_PAGE_ACCESS_AND_ACTION_PERMISSION', - }, -]); -var bn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ONCE = 1)] = 'ONCE'), - (e[(e.CONVERSATION = 2)] = 'CONVERSATION')); -})(bn || (bn = {})); -a.util.setEnumType(bn, 'exa.cortex_pb.PermissionScope', [ +var ReplaceToolVariant; +(function (ReplaceToolVariant2) { + ReplaceToolVariant2[(ReplaceToolVariant2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ReplaceToolVariant2[(ReplaceToolVariant2['REPLACEMENT_CHUNK'] = 1)] = + 'REPLACEMENT_CHUNK'; + ReplaceToolVariant2[(ReplaceToolVariant2['SEARCH_REPLACE'] = 2)] = + 'SEARCH_REPLACE'; + ReplaceToolVariant2[(ReplaceToolVariant2['APPLY_PATCH'] = 3)] = 'APPLY_PATCH'; + ReplaceToolVariant2[(ReplaceToolVariant2['SINGLE_MULTI'] = 4)] = + 'SINGLE_MULTI'; +})(ReplaceToolVariant || (ReplaceToolVariant = {})); +proto3.util.setEnumType( + ReplaceToolVariant, + 'exa.cortex_pb.ReplaceToolVariant', + [ + { no: 0, name: 'REPLACE_TOOL_VARIANT_UNSPECIFIED' }, + { no: 1, name: 'REPLACE_TOOL_VARIANT_REPLACEMENT_CHUNK' }, + { no: 2, name: 'REPLACE_TOOL_VARIANT_SEARCH_REPLACE' }, + { no: 3, name: 'REPLACE_TOOL_VARIANT_APPLY_PATCH' }, + { no: 4, name: 'REPLACE_TOOL_VARIANT_SINGLE_MULTI' }, + ], +); +var BrowserSubagentMode; +(function (BrowserSubagentMode2) { + BrowserSubagentMode2[(BrowserSubagentMode2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + BrowserSubagentMode2[(BrowserSubagentMode2['MAIN_AGENT_ONLY'] = 1)] = + 'MAIN_AGENT_ONLY'; + BrowserSubagentMode2[(BrowserSubagentMode2['SUBAGENT_PRIMARILY'] = 2)] = + 'SUBAGENT_PRIMARILY'; + BrowserSubagentMode2[(BrowserSubagentMode2['BOTH_AGENTS'] = 3)] = + 'BOTH_AGENTS'; + BrowserSubagentMode2[(BrowserSubagentMode2['SUBAGENT_ONLY'] = 4)] = + 'SUBAGENT_ONLY'; +})(BrowserSubagentMode || (BrowserSubagentMode = {})); +proto3.util.setEnumType( + BrowserSubagentMode, + 'exa.cortex_pb.BrowserSubagentMode', + [ + { no: 0, name: 'BROWSER_SUBAGENT_MODE_UNSPECIFIED' }, + { no: 1, name: 'BROWSER_SUBAGENT_MODE_MAIN_AGENT_ONLY' }, + { no: 2, name: 'BROWSER_SUBAGENT_MODE_SUBAGENT_PRIMARILY' }, + { no: 3, name: 'BROWSER_SUBAGENT_MODE_BOTH_AGENTS' }, + { no: 4, name: 'BROWSER_SUBAGENT_MODE_SUBAGENT_ONLY' }, + ], +); +var BrowserToolSetMode; +(function (BrowserToolSetMode2) { + BrowserToolSetMode2[(BrowserToolSetMode2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + BrowserToolSetMode2[(BrowserToolSetMode2['ALL_TOOLS'] = 1)] = 'ALL_TOOLS'; + BrowserToolSetMode2[(BrowserToolSetMode2['PIXEL_ONLY'] = 2)] = 'PIXEL_ONLY'; + BrowserToolSetMode2[(BrowserToolSetMode2['ALL_INPUT_PIXEL_OUTPUT'] = 3)] = + 'ALL_INPUT_PIXEL_OUTPUT'; +})(BrowserToolSetMode || (BrowserToolSetMode = {})); +proto3.util.setEnumType( + BrowserToolSetMode, + 'exa.cortex_pb.BrowserToolSetMode', + [ + { no: 0, name: 'BROWSER_TOOL_SET_MODE_UNSPECIFIED' }, + { no: 1, name: 'BROWSER_TOOL_SET_MODE_ALL_TOOLS' }, + { no: 2, name: 'BROWSER_TOOL_SET_MODE_PIXEL_ONLY' }, + { no: 3, name: 'BROWSER_TOOL_SET_MODE_ALL_INPUT_PIXEL_OUTPUT' }, + ], +); +var BrowserActionWaitingReason; +(function (BrowserActionWaitingReason2) { + BrowserActionWaitingReason2[ + (BrowserActionWaitingReason2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + BrowserActionWaitingReason2[ + (BrowserActionWaitingReason2['PAGE_ACCESS'] = 1) + ] = 'PAGE_ACCESS'; + BrowserActionWaitingReason2[ + (BrowserActionWaitingReason2['ACTION_PERMISSION'] = 2) + ] = 'ACTION_PERMISSION'; + BrowserActionWaitingReason2[ + (BrowserActionWaitingReason2['PAGE_ACCESS_AND_ACTION_PERMISSION'] = 3) + ] = 'PAGE_ACCESS_AND_ACTION_PERMISSION'; +})(BrowserActionWaitingReason || (BrowserActionWaitingReason = {})); +proto3.util.setEnumType( + BrowserActionWaitingReason, + 'exa.cortex_pb.BrowserActionWaitingReason', + [ + { no: 0, name: 'BROWSER_ACTION_WAITING_REASON_UNSPECIFIED' }, + { no: 1, name: 'BROWSER_ACTION_WAITING_REASON_PAGE_ACCESS' }, + { no: 2, name: 'BROWSER_ACTION_WAITING_REASON_ACTION_PERMISSION' }, + { + no: 3, + name: 'BROWSER_ACTION_WAITING_REASON_PAGE_ACCESS_AND_ACTION_PERMISSION', + }, + ], +); +var PermissionScope; +(function (PermissionScope2) { + PermissionScope2[(PermissionScope2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + PermissionScope2[(PermissionScope2['ONCE'] = 1)] = 'ONCE'; + PermissionScope2[(PermissionScope2['CONVERSATION'] = 2)] = 'CONVERSATION'; +})(PermissionScope || (PermissionScope = {})); +proto3.util.setEnumType(PermissionScope, 'exa.cortex_pb.PermissionScope', [ { no: 0, name: 'PERMISSION_SCOPE_UNSPECIFIED' }, { no: 1, name: 'PERMISSION_SCOPE_ONCE' }, { no: 2, name: 'PERMISSION_SCOPE_CONVERSATION' }, ]); -var j; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.DUMMY = 1)] = 'DUMMY'), - (e[(e.FINISH = 2)] = 'FINISH'), - (e[(e.MQUERY = 4)] = 'MQUERY'), - (e[(e.CODE_ACTION = 5)] = 'CODE_ACTION'), - (e[(e.GIT_COMMIT = 6)] = 'GIT_COMMIT'), - (e[(e.GREP_SEARCH = 7)] = 'GREP_SEARCH'), - (e[(e.COMPILE = 10)] = 'COMPILE'), - (e[(e.VIEW_CODE_ITEM = 13)] = 'VIEW_CODE_ITEM'), - (e[(e.ERROR_MESSAGE = 17)] = 'ERROR_MESSAGE'), - (e[(e.RUN_COMMAND = 21)] = 'RUN_COMMAND'), - (e[(e.FIND = 25)] = 'FIND'), - (e[(e.SUGGESTED_RESPONSES = 27)] = 'SUGGESTED_RESPONSES'), - (e[(e.COMMAND_STATUS = 28)] = 'COMMAND_STATUS'), - (e[(e.READ_URL_CONTENT = 31)] = 'READ_URL_CONTENT'), - (e[(e.VIEW_CONTENT_CHUNK = 32)] = 'VIEW_CONTENT_CHUNK'), - (e[(e.SEARCH_WEB = 33)] = 'SEARCH_WEB'), - (e[(e.MCP_TOOL = 38)] = 'MCP_TOOL'), - (e[(e.CLIPBOARD = 45)] = 'CLIPBOARD'), - (e[(e.VIEW_FILE_OUTLINE = 47)] = 'VIEW_FILE_OUTLINE'), - (e[(e.LIST_RESOURCES = 51)] = 'LIST_RESOURCES'), - (e[(e.READ_RESOURCE = 52)] = 'READ_RESOURCE'), - (e[(e.LINT_DIFF = 53)] = 'LINT_DIFF'), - (e[(e.OPEN_BROWSER_URL = 56)] = 'OPEN_BROWSER_URL'), - (e[(e.RUN_EXTENSION_CODE = 57)] = 'RUN_EXTENSION_CODE'), - (e[(e.TRAJECTORY_SEARCH = 60)] = 'TRAJECTORY_SEARCH'), - (e[(e.EXECUTE_BROWSER_JAVASCRIPT = 61)] = 'EXECUTE_BROWSER_JAVASCRIPT'), - (e[(e.LIST_BROWSER_PAGES = 62)] = 'LIST_BROWSER_PAGES'), - (e[(e.CAPTURE_BROWSER_SCREENSHOT = 63)] = 'CAPTURE_BROWSER_SCREENSHOT'), - (e[(e.CLICK_BROWSER_PIXEL = 64)] = 'CLICK_BROWSER_PIXEL'), - (e[(e.READ_TERMINAL = 65)] = 'READ_TERMINAL'), - (e[(e.CAPTURE_BROWSER_CONSOLE_LOGS = 66)] = 'CAPTURE_BROWSER_CONSOLE_LOGS'), - (e[(e.READ_BROWSER_PAGE = 67)] = 'READ_BROWSER_PAGE'), - (e[(e.BROWSER_GET_DOM = 68)] = 'BROWSER_GET_DOM'), - (e[(e.CODE_SEARCH = 73)] = 'CODE_SEARCH'), - (e[(e.BROWSER_INPUT = 74)] = 'BROWSER_INPUT'), - (e[(e.BROWSER_MOVE_MOUSE = 75)] = 'BROWSER_MOVE_MOUSE'), - (e[(e.BROWSER_SELECT_OPTION = 76)] = 'BROWSER_SELECT_OPTION'), - (e[(e.BROWSER_SCROLL_UP = 77)] = 'BROWSER_SCROLL_UP'), - (e[(e.BROWSER_SCROLL_DOWN = 78)] = 'BROWSER_SCROLL_DOWN'), - (e[(e.BROWSER_CLICK_ELEMENT = 79)] = 'BROWSER_CLICK_ELEMENT'), - (e[(e.BROWSER_LIST_NETWORK_REQUESTS = 123)] = - 'BROWSER_LIST_NETWORK_REQUESTS'), - (e[(e.BROWSER_GET_NETWORK_REQUEST = 124)] = 'BROWSER_GET_NETWORK_REQUEST'), - (e[(e.BROWSER_PRESS_KEY = 80)] = 'BROWSER_PRESS_KEY'), - (e[(e.TASK_BOUNDARY = 81)] = 'TASK_BOUNDARY'), - (e[(e.NOTIFY_USER = 82)] = 'NOTIFY_USER'), - (e[(e.CODE_ACKNOWLEDGEMENT = 83)] = 'CODE_ACKNOWLEDGEMENT'), - (e[(e.INTERNAL_SEARCH = 84)] = 'INTERNAL_SEARCH'), - (e[(e.BROWSER_SUBAGENT = 85)] = 'BROWSER_SUBAGENT'), - (e[(e.BROWSER_SCROLL = 88)] = 'BROWSER_SCROLL'), - (e[(e.KNOWLEDGE_GENERATION = 89)] = 'KNOWLEDGE_GENERATION'), - (e[(e.GENERATE_IMAGE = 91)] = 'GENERATE_IMAGE'), - (e[(e.BROWSER_RESIZE_WINDOW = 96)] = 'BROWSER_RESIZE_WINDOW'), - (e[(e.BROWSER_DRAG_PIXEL_TO_PIXEL = 97)] = 'BROWSER_DRAG_PIXEL_TO_PIXEL'), - (e[(e.BROWSER_MOUSE_WHEEL = 113)] = 'BROWSER_MOUSE_WHEEL'), - (e[(e.BROWSER_MOUSE_UP = 120)] = 'BROWSER_MOUSE_UP'), - (e[(e.BROWSER_MOUSE_DOWN = 121)] = 'BROWSER_MOUSE_DOWN'), - (e[(e.BROWSER_REFRESH_PAGE = 125)] = 'BROWSER_REFRESH_PAGE'), - (e[(e.CONVERSATION_HISTORY = 98)] = 'CONVERSATION_HISTORY'), - (e[(e.KNOWLEDGE_ARTIFACTS = 99)] = 'KNOWLEDGE_ARTIFACTS'), - (e[(e.SEND_COMMAND_INPUT = 100)] = 'SEND_COMMAND_INPUT'), - (e[(e.SYSTEM_MESSAGE = 101)] = 'SYSTEM_MESSAGE'), - (e[(e.WAIT = 102)] = 'WAIT'), - (e[(e.KI_INSERTION = 116)] = 'KI_INSERTION'), - (e[(e.WORKSPACE_API = 122)] = 'WORKSPACE_API'), - (e[(e.INVOKE_SUBAGENT = 127)] = 'INVOKE_SUBAGENT'), - (e[(e.USER_INPUT = 14)] = 'USER_INPUT'), - (e[(e.PLANNER_RESPONSE = 15)] = 'PLANNER_RESPONSE'), - (e[(e.VIEW_FILE = 8)] = 'VIEW_FILE'), - (e[(e.LIST_DIRECTORY = 9)] = 'LIST_DIRECTORY'), - (e[(e.CHECKPOINT = 23)] = 'CHECKPOINT'), - (e[(e.FILE_CHANGE = 86)] = 'FILE_CHANGE'), - (e[(e.DELETE_DIRECTORY = 92)] = 'DELETE_DIRECTORY'), - (e[(e.MOVE = 87)] = 'MOVE'), - (e[(e.EPHEMERAL_MESSAGE = 90)] = 'EPHEMERAL_MESSAGE'), - (e[(e.COMPILE_APPLET = 93)] = 'COMPILE_APPLET'), - (e[(e.INSTALL_APPLET_DEPENDENCIES = 94)] = 'INSTALL_APPLET_DEPENDENCIES'), - (e[(e.INSTALL_APPLET_PACKAGE = 95)] = 'INSTALL_APPLET_PACKAGE'), - (e[(e.SET_UP_FIREBASE = 108)] = 'SET_UP_FIREBASE'), - (e[(e.RESTART_DEV_SERVER = 110)] = 'RESTART_DEV_SERVER'), - (e[(e.DEPLOY_FIREBASE = 111)] = 'DEPLOY_FIREBASE'), - (e[(e.SHELL_EXEC = 112)] = 'SHELL_EXEC'), - (e[(e.LINT_APPLET = 114)] = 'LINT_APPLET'), - (e[(e.DEFINE_NEW_ENV_VARIABLE = 115)] = 'DEFINE_NEW_ENV_VARIABLE'), - (e[(e.WRITE_BLOB = 128)] = 'WRITE_BLOB'), - (e[(e.AGENCY_TOOL_CALL = 103)] = 'AGENCY_TOOL_CALL'), - (e[(e.PLAN_INPUT = 3)] = 'PLAN_INPUT'), - (e[(e.PROPOSE_CODE = 24)] = 'PROPOSE_CODE'), - (e[(e.MANAGER_FEEDBACK = 39)] = 'MANAGER_FEEDBACK'), - (e[(e.TOOL_CALL_PROPOSAL = 40)] = 'TOOL_CALL_PROPOSAL'), - (e[(e.TOOL_CALL_CHOICE = 41)] = 'TOOL_CALL_CHOICE'), - (e[(e.TRAJECTORY_CHOICE = 42)] = 'TRAJECTORY_CHOICE'), - (e[(e.POST_PR_REVIEW = 49)] = 'POST_PR_REVIEW'), - (e[(e.FIND_ALL_REFERENCES = 54)] = 'FIND_ALL_REFERENCES'), - (e[(e.BRAIN_UPDATE = 55)] = 'BRAIN_UPDATE'), - (e[(e.ADD_ANNOTATION = 58)] = 'ADD_ANNOTATION'), - (e[(e.PROPOSAL_FEEDBACK = 59)] = 'PROPOSAL_FEEDBACK'), - (e[(e.RETRIEVE_MEMORY = 34)] = 'RETRIEVE_MEMORY'), - (e[(e.MEMORY = 29)] = 'MEMORY')); -})(j || (j = {})); -a.util.setEnumType(j, 'exa.cortex_pb.CortexStepType', [ +var CortexStepType; +(function (CortexStepType2) { + CortexStepType2[(CortexStepType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CortexStepType2[(CortexStepType2['DUMMY'] = 1)] = 'DUMMY'; + CortexStepType2[(CortexStepType2['FINISH'] = 2)] = 'FINISH'; + CortexStepType2[(CortexStepType2['MQUERY'] = 4)] = 'MQUERY'; + CortexStepType2[(CortexStepType2['CODE_ACTION'] = 5)] = 'CODE_ACTION'; + CortexStepType2[(CortexStepType2['GIT_COMMIT'] = 6)] = 'GIT_COMMIT'; + CortexStepType2[(CortexStepType2['GREP_SEARCH'] = 7)] = 'GREP_SEARCH'; + CortexStepType2[(CortexStepType2['COMPILE'] = 10)] = 'COMPILE'; + CortexStepType2[(CortexStepType2['VIEW_CODE_ITEM'] = 13)] = 'VIEW_CODE_ITEM'; + CortexStepType2[(CortexStepType2['ERROR_MESSAGE'] = 17)] = 'ERROR_MESSAGE'; + CortexStepType2[(CortexStepType2['RUN_COMMAND'] = 21)] = 'RUN_COMMAND'; + CortexStepType2[(CortexStepType2['FIND'] = 25)] = 'FIND'; + CortexStepType2[(CortexStepType2['SUGGESTED_RESPONSES'] = 27)] = + 'SUGGESTED_RESPONSES'; + CortexStepType2[(CortexStepType2['COMMAND_STATUS'] = 28)] = 'COMMAND_STATUS'; + CortexStepType2[(CortexStepType2['READ_URL_CONTENT'] = 31)] = + 'READ_URL_CONTENT'; + CortexStepType2[(CortexStepType2['VIEW_CONTENT_CHUNK'] = 32)] = + 'VIEW_CONTENT_CHUNK'; + CortexStepType2[(CortexStepType2['SEARCH_WEB'] = 33)] = 'SEARCH_WEB'; + CortexStepType2[(CortexStepType2['MCP_TOOL'] = 38)] = 'MCP_TOOL'; + CortexStepType2[(CortexStepType2['CLIPBOARD'] = 45)] = 'CLIPBOARD'; + CortexStepType2[(CortexStepType2['VIEW_FILE_OUTLINE'] = 47)] = + 'VIEW_FILE_OUTLINE'; + CortexStepType2[(CortexStepType2['LIST_RESOURCES'] = 51)] = 'LIST_RESOURCES'; + CortexStepType2[(CortexStepType2['READ_RESOURCE'] = 52)] = 'READ_RESOURCE'; + CortexStepType2[(CortexStepType2['LINT_DIFF'] = 53)] = 'LINT_DIFF'; + CortexStepType2[(CortexStepType2['OPEN_BROWSER_URL'] = 56)] = + 'OPEN_BROWSER_URL'; + CortexStepType2[(CortexStepType2['RUN_EXTENSION_CODE'] = 57)] = + 'RUN_EXTENSION_CODE'; + CortexStepType2[(CortexStepType2['TRAJECTORY_SEARCH'] = 60)] = + 'TRAJECTORY_SEARCH'; + CortexStepType2[(CortexStepType2['EXECUTE_BROWSER_JAVASCRIPT'] = 61)] = + 'EXECUTE_BROWSER_JAVASCRIPT'; + CortexStepType2[(CortexStepType2['LIST_BROWSER_PAGES'] = 62)] = + 'LIST_BROWSER_PAGES'; + CortexStepType2[(CortexStepType2['CAPTURE_BROWSER_SCREENSHOT'] = 63)] = + 'CAPTURE_BROWSER_SCREENSHOT'; + CortexStepType2[(CortexStepType2['CLICK_BROWSER_PIXEL'] = 64)] = + 'CLICK_BROWSER_PIXEL'; + CortexStepType2[(CortexStepType2['READ_TERMINAL'] = 65)] = 'READ_TERMINAL'; + CortexStepType2[(CortexStepType2['CAPTURE_BROWSER_CONSOLE_LOGS'] = 66)] = + 'CAPTURE_BROWSER_CONSOLE_LOGS'; + CortexStepType2[(CortexStepType2['READ_BROWSER_PAGE'] = 67)] = + 'READ_BROWSER_PAGE'; + CortexStepType2[(CortexStepType2['BROWSER_GET_DOM'] = 68)] = + 'BROWSER_GET_DOM'; + CortexStepType2[(CortexStepType2['CODE_SEARCH'] = 73)] = 'CODE_SEARCH'; + CortexStepType2[(CortexStepType2['BROWSER_INPUT'] = 74)] = 'BROWSER_INPUT'; + CortexStepType2[(CortexStepType2['BROWSER_MOVE_MOUSE'] = 75)] = + 'BROWSER_MOVE_MOUSE'; + CortexStepType2[(CortexStepType2['BROWSER_SELECT_OPTION'] = 76)] = + 'BROWSER_SELECT_OPTION'; + CortexStepType2[(CortexStepType2['BROWSER_SCROLL_UP'] = 77)] = + 'BROWSER_SCROLL_UP'; + CortexStepType2[(CortexStepType2['BROWSER_SCROLL_DOWN'] = 78)] = + 'BROWSER_SCROLL_DOWN'; + CortexStepType2[(CortexStepType2['BROWSER_CLICK_ELEMENT'] = 79)] = + 'BROWSER_CLICK_ELEMENT'; + CortexStepType2[(CortexStepType2['BROWSER_LIST_NETWORK_REQUESTS'] = 123)] = + 'BROWSER_LIST_NETWORK_REQUESTS'; + CortexStepType2[(CortexStepType2['BROWSER_GET_NETWORK_REQUEST'] = 124)] = + 'BROWSER_GET_NETWORK_REQUEST'; + CortexStepType2[(CortexStepType2['BROWSER_PRESS_KEY'] = 80)] = + 'BROWSER_PRESS_KEY'; + CortexStepType2[(CortexStepType2['TASK_BOUNDARY'] = 81)] = 'TASK_BOUNDARY'; + CortexStepType2[(CortexStepType2['NOTIFY_USER'] = 82)] = 'NOTIFY_USER'; + CortexStepType2[(CortexStepType2['CODE_ACKNOWLEDGEMENT'] = 83)] = + 'CODE_ACKNOWLEDGEMENT'; + CortexStepType2[(CortexStepType2['INTERNAL_SEARCH'] = 84)] = + 'INTERNAL_SEARCH'; + CortexStepType2[(CortexStepType2['BROWSER_SUBAGENT'] = 85)] = + 'BROWSER_SUBAGENT'; + CortexStepType2[(CortexStepType2['BROWSER_SCROLL'] = 88)] = 'BROWSER_SCROLL'; + CortexStepType2[(CortexStepType2['KNOWLEDGE_GENERATION'] = 89)] = + 'KNOWLEDGE_GENERATION'; + CortexStepType2[(CortexStepType2['GENERATE_IMAGE'] = 91)] = 'GENERATE_IMAGE'; + CortexStepType2[(CortexStepType2['BROWSER_RESIZE_WINDOW'] = 96)] = + 'BROWSER_RESIZE_WINDOW'; + CortexStepType2[(CortexStepType2['BROWSER_DRAG_PIXEL_TO_PIXEL'] = 97)] = + 'BROWSER_DRAG_PIXEL_TO_PIXEL'; + CortexStepType2[(CortexStepType2['BROWSER_MOUSE_WHEEL'] = 113)] = + 'BROWSER_MOUSE_WHEEL'; + CortexStepType2[(CortexStepType2['BROWSER_MOUSE_UP'] = 120)] = + 'BROWSER_MOUSE_UP'; + CortexStepType2[(CortexStepType2['BROWSER_MOUSE_DOWN'] = 121)] = + 'BROWSER_MOUSE_DOWN'; + CortexStepType2[(CortexStepType2['BROWSER_REFRESH_PAGE'] = 125)] = + 'BROWSER_REFRESH_PAGE'; + CortexStepType2[(CortexStepType2['CONVERSATION_HISTORY'] = 98)] = + 'CONVERSATION_HISTORY'; + CortexStepType2[(CortexStepType2['KNOWLEDGE_ARTIFACTS'] = 99)] = + 'KNOWLEDGE_ARTIFACTS'; + CortexStepType2[(CortexStepType2['SEND_COMMAND_INPUT'] = 100)] = + 'SEND_COMMAND_INPUT'; + CortexStepType2[(CortexStepType2['SYSTEM_MESSAGE'] = 101)] = 'SYSTEM_MESSAGE'; + CortexStepType2[(CortexStepType2['WAIT'] = 102)] = 'WAIT'; + CortexStepType2[(CortexStepType2['KI_INSERTION'] = 116)] = 'KI_INSERTION'; + CortexStepType2[(CortexStepType2['WORKSPACE_API'] = 122)] = 'WORKSPACE_API'; + CortexStepType2[(CortexStepType2['INVOKE_SUBAGENT'] = 127)] = + 'INVOKE_SUBAGENT'; + CortexStepType2[(CortexStepType2['USER_INPUT'] = 14)] = 'USER_INPUT'; + CortexStepType2[(CortexStepType2['PLANNER_RESPONSE'] = 15)] = + 'PLANNER_RESPONSE'; + CortexStepType2[(CortexStepType2['VIEW_FILE'] = 8)] = 'VIEW_FILE'; + CortexStepType2[(CortexStepType2['LIST_DIRECTORY'] = 9)] = 'LIST_DIRECTORY'; + CortexStepType2[(CortexStepType2['CHECKPOINT'] = 23)] = 'CHECKPOINT'; + CortexStepType2[(CortexStepType2['FILE_CHANGE'] = 86)] = 'FILE_CHANGE'; + CortexStepType2[(CortexStepType2['DELETE_DIRECTORY'] = 92)] = + 'DELETE_DIRECTORY'; + CortexStepType2[(CortexStepType2['MOVE'] = 87)] = 'MOVE'; + CortexStepType2[(CortexStepType2['EPHEMERAL_MESSAGE'] = 90)] = + 'EPHEMERAL_MESSAGE'; + CortexStepType2[(CortexStepType2['COMPILE_APPLET'] = 93)] = 'COMPILE_APPLET'; + CortexStepType2[(CortexStepType2['INSTALL_APPLET_DEPENDENCIES'] = 94)] = + 'INSTALL_APPLET_DEPENDENCIES'; + CortexStepType2[(CortexStepType2['INSTALL_APPLET_PACKAGE'] = 95)] = + 'INSTALL_APPLET_PACKAGE'; + CortexStepType2[(CortexStepType2['SET_UP_FIREBASE'] = 108)] = + 'SET_UP_FIREBASE'; + CortexStepType2[(CortexStepType2['RESTART_DEV_SERVER'] = 110)] = + 'RESTART_DEV_SERVER'; + CortexStepType2[(CortexStepType2['DEPLOY_FIREBASE'] = 111)] = + 'DEPLOY_FIREBASE'; + CortexStepType2[(CortexStepType2['SHELL_EXEC'] = 112)] = 'SHELL_EXEC'; + CortexStepType2[(CortexStepType2['LINT_APPLET'] = 114)] = 'LINT_APPLET'; + CortexStepType2[(CortexStepType2['DEFINE_NEW_ENV_VARIABLE'] = 115)] = + 'DEFINE_NEW_ENV_VARIABLE'; + CortexStepType2[(CortexStepType2['WRITE_BLOB'] = 128)] = 'WRITE_BLOB'; + CortexStepType2[(CortexStepType2['AGENCY_TOOL_CALL'] = 103)] = + 'AGENCY_TOOL_CALL'; + CortexStepType2[(CortexStepType2['PLAN_INPUT'] = 3)] = 'PLAN_INPUT'; + CortexStepType2[(CortexStepType2['PROPOSE_CODE'] = 24)] = 'PROPOSE_CODE'; + CortexStepType2[(CortexStepType2['MANAGER_FEEDBACK'] = 39)] = + 'MANAGER_FEEDBACK'; + CortexStepType2[(CortexStepType2['TOOL_CALL_PROPOSAL'] = 40)] = + 'TOOL_CALL_PROPOSAL'; + CortexStepType2[(CortexStepType2['TOOL_CALL_CHOICE'] = 41)] = + 'TOOL_CALL_CHOICE'; + CortexStepType2[(CortexStepType2['TRAJECTORY_CHOICE'] = 42)] = + 'TRAJECTORY_CHOICE'; + CortexStepType2[(CortexStepType2['POST_PR_REVIEW'] = 49)] = 'POST_PR_REVIEW'; + CortexStepType2[(CortexStepType2['FIND_ALL_REFERENCES'] = 54)] = + 'FIND_ALL_REFERENCES'; + CortexStepType2[(CortexStepType2['BRAIN_UPDATE'] = 55)] = 'BRAIN_UPDATE'; + CortexStepType2[(CortexStepType2['ADD_ANNOTATION'] = 58)] = 'ADD_ANNOTATION'; + CortexStepType2[(CortexStepType2['PROPOSAL_FEEDBACK'] = 59)] = + 'PROPOSAL_FEEDBACK'; + CortexStepType2[(CortexStepType2['RETRIEVE_MEMORY'] = 34)] = + 'RETRIEVE_MEMORY'; + CortexStepType2[(CortexStepType2['MEMORY'] = 29)] = 'MEMORY'; +})(CortexStepType || (CortexStepType = {})); +proto3.util.setEnumType(CortexStepType, 'exa.cortex_pb.CortexStepType', [ { no: 0, name: 'CORTEX_STEP_TYPE_UNSPECIFIED' }, { no: 1, name: 'CORTEX_STEP_TYPE_DUMMY' }, { no: 2, name: 'CORTEX_STEP_TYPE_FINISH' }, @@ -21653,164 +40427,239 @@ a.util.setEnumType(j, 'exa.cortex_pb.CortexStepType', [ { no: 34, name: 'CORTEX_STEP_TYPE_RETRIEVE_MEMORY' }, { no: 29, name: 'CORTEX_STEP_TYPE_MEMORY' }, ]); -var eE; -(function (e) { - e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'; -})(eE || (eE = {})); -a.util.setEnumType(eE, 'exa.cortex_pb.CheckpointType', [ +var CheckpointType; +(function (CheckpointType2) { + CheckpointType2[(CheckpointType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; +})(CheckpointType || (CheckpointType = {})); +proto3.util.setEnumType(CheckpointType, 'exa.cortex_pb.CheckpointType', [ { no: 0, name: 'CHECKPOINT_TYPE_UNSPECIFIED' }, ]); -var fa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.MQUERY = 1)] = 'MQUERY'), - (e[(e.VECTOR_INDEX = 2)] = 'VECTOR_INDEX')); -})(fa || (fa = {})); -a.util.setEnumType(fa, 'exa.cortex_pb.SemanticCodebaseSearchType', [ - { no: 0, name: 'SEMANTIC_CODEBASE_SEARCH_TYPE_UNSPECIFIED' }, - { no: 1, name: 'SEMANTIC_CODEBASE_SEARCH_TYPE_MQUERY' }, - { no: 2, name: 'SEMANTIC_CODEBASE_SEARCH_TYPE_VECTOR_INDEX' }, -]); -var b; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ACCEPT = 1)] = 'ACCEPT'), - (e[(e.REJECT = 2)] = 'REJECT'), - (e[(e.STALE = 3)] = 'STALE'), - (e[(e.CLEARED = 4)] = 'CLEARED')); -})(b || (b = {})); -a.util.setEnumType(b, 'exa.cortex_pb.AcknowledgementType', [ - { no: 0, name: 'ACKNOWLEDGEMENT_TYPE_UNSPECIFIED' }, - { no: 1, name: 'ACKNOWLEDGEMENT_TYPE_ACCEPT' }, - { no: 2, name: 'ACKNOWLEDGEMENT_TYPE_REJECT' }, - { no: 3, name: 'ACKNOWLEDGEMENT_TYPE_STALE' }, - { no: 4, name: 'ACKNOWLEDGEMENT_TYPE_CLEARED' }, -]); -var qn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.LAZY_COMMENT = 1)] = 'LAZY_COMMENT'), - (e[(e.DELETED_LINES = 2)] = 'DELETED_LINES')); -})(qn || (qn = {})); -a.util.setEnumType(qn, 'exa.cortex_pb.CodeHeuristicFailure', [ - { no: 0, name: 'CODE_HEURISTIC_FAILURE_UNSPECIFIED' }, - { no: 1, name: 'CODE_HEURISTIC_FAILURE_LAZY_COMMENT' }, - { no: 2, name: 'CODE_HEURISTIC_FAILURE_DELETED_LINES' }, -]); -var Na; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CREATE = 1)] = 'CREATE'), - (e[(e.EDIT = 2)] = 'EDIT'), - (e[(e.DELETE = 3)] = 'DELETE')); -})(Na || (Na = {})); -a.util.setEnumType(Na, 'exa.cortex_pb.FileChangeType', [ +var SemanticCodebaseSearchType; +(function (SemanticCodebaseSearchType2) { + SemanticCodebaseSearchType2[ + (SemanticCodebaseSearchType2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + SemanticCodebaseSearchType2[(SemanticCodebaseSearchType2['MQUERY'] = 1)] = + 'MQUERY'; + SemanticCodebaseSearchType2[ + (SemanticCodebaseSearchType2['VECTOR_INDEX'] = 2) + ] = 'VECTOR_INDEX'; +})(SemanticCodebaseSearchType || (SemanticCodebaseSearchType = {})); +proto3.util.setEnumType( + SemanticCodebaseSearchType, + 'exa.cortex_pb.SemanticCodebaseSearchType', + [ + { no: 0, name: 'SEMANTIC_CODEBASE_SEARCH_TYPE_UNSPECIFIED' }, + { no: 1, name: 'SEMANTIC_CODEBASE_SEARCH_TYPE_MQUERY' }, + { no: 2, name: 'SEMANTIC_CODEBASE_SEARCH_TYPE_VECTOR_INDEX' }, + ], +); +var AcknowledgementType; +(function (AcknowledgementType2) { + AcknowledgementType2[(AcknowledgementType2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + AcknowledgementType2[(AcknowledgementType2['ACCEPT'] = 1)] = 'ACCEPT'; + AcknowledgementType2[(AcknowledgementType2['REJECT'] = 2)] = 'REJECT'; + AcknowledgementType2[(AcknowledgementType2['STALE'] = 3)] = 'STALE'; + AcknowledgementType2[(AcknowledgementType2['CLEARED'] = 4)] = 'CLEARED'; +})(AcknowledgementType || (AcknowledgementType = {})); +proto3.util.setEnumType( + AcknowledgementType, + 'exa.cortex_pb.AcknowledgementType', + [ + { no: 0, name: 'ACKNOWLEDGEMENT_TYPE_UNSPECIFIED' }, + { no: 1, name: 'ACKNOWLEDGEMENT_TYPE_ACCEPT' }, + { no: 2, name: 'ACKNOWLEDGEMENT_TYPE_REJECT' }, + { no: 3, name: 'ACKNOWLEDGEMENT_TYPE_STALE' }, + { no: 4, name: 'ACKNOWLEDGEMENT_TYPE_CLEARED' }, + ], +); +var CodeHeuristicFailure; +(function (CodeHeuristicFailure2) { + CodeHeuristicFailure2[(CodeHeuristicFailure2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CodeHeuristicFailure2[(CodeHeuristicFailure2['LAZY_COMMENT'] = 1)] = + 'LAZY_COMMENT'; + CodeHeuristicFailure2[(CodeHeuristicFailure2['DELETED_LINES'] = 2)] = + 'DELETED_LINES'; +})(CodeHeuristicFailure || (CodeHeuristicFailure = {})); +proto3.util.setEnumType( + CodeHeuristicFailure, + 'exa.cortex_pb.CodeHeuristicFailure', + [ + { no: 0, name: 'CODE_HEURISTIC_FAILURE_UNSPECIFIED' }, + { no: 1, name: 'CODE_HEURISTIC_FAILURE_LAZY_COMMENT' }, + { no: 2, name: 'CODE_HEURISTIC_FAILURE_DELETED_LINES' }, + ], +); +var FileChangeType; +(function (FileChangeType2) { + FileChangeType2[(FileChangeType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + FileChangeType2[(FileChangeType2['CREATE'] = 1)] = 'CREATE'; + FileChangeType2[(FileChangeType2['EDIT'] = 2)] = 'EDIT'; + FileChangeType2[(FileChangeType2['DELETE'] = 3)] = 'DELETE'; +})(FileChangeType || (FileChangeType = {})); +proto3.util.setEnumType(FileChangeType, 'exa.cortex_pb.FileChangeType', [ { no: 0, name: 'FILE_CHANGE_TYPE_UNSPECIFIED' }, { no: 1, name: 'FILE_CHANGE_TYPE_CREATE' }, { no: 2, name: 'FILE_CHANGE_TYPE_EDIT' }, { no: 3, name: 'FILE_CHANGE_TYPE_DELETE' }, ]); -var Sa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.FILE = 1)] = 'FILE'), - (e[(e.DIRECTORY = 2)] = 'DIRECTORY'), - (e[(e.ANY = 3)] = 'ANY')); -})(Sa || (Sa = {})); -a.util.setEnumType(Sa, 'exa.cortex_pb.FindResultType', [ +var FindResultType; +(function (FindResultType2) { + FindResultType2[(FindResultType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + FindResultType2[(FindResultType2['FILE'] = 1)] = 'FILE'; + FindResultType2[(FindResultType2['DIRECTORY'] = 2)] = 'DIRECTORY'; + FindResultType2[(FindResultType2['ANY'] = 3)] = 'ANY'; +})(FindResultType || (FindResultType = {})); +proto3.util.setEnumType(FindResultType, 'exa.cortex_pb.FindResultType', [ { no: 0, name: 'FIND_RESULT_TYPE_UNSPECIFIED' }, { no: 1, name: 'FIND_RESULT_TYPE_FILE' }, { no: 2, name: 'FIND_RESULT_TYPE_DIRECTORY' }, { no: 3, name: 'FIND_RESULT_TYPE_ANY' }, ]); -var Ia; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), (e[(e.PYLINT = 1)] = 'PYLINT')); -})(Ia || (Ia = {})); -a.util.setEnumType(Ia, 'exa.cortex_pb.CortexStepCompileTool', [ - { no: 0, name: 'CORTEX_STEP_COMPILE_TOOL_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_STEP_COMPILE_TOOL_PYLINT' }, -]); -var pa; -(function (e) { - ((e[(e.ERROR_CODE_OK = 0)] = 'ERROR_CODE_OK'), - (e[(e.ERROR_CODE_CANCELLED = 1)] = 'ERROR_CODE_CANCELLED'), - (e[(e.ERROR_CODE_UNKNOWN = 2)] = 'ERROR_CODE_UNKNOWN'), - (e[(e.ERROR_CODE_INVALID_ARGUMENT = 3)] = 'ERROR_CODE_INVALID_ARGUMENT'), - (e[(e.ERROR_CODE_DEADLINE_EXCEEDED = 4)] = 'ERROR_CODE_DEADLINE_EXCEEDED'), - (e[(e.ERROR_CODE_NOT_FOUND = 5)] = 'ERROR_CODE_NOT_FOUND'), - (e[(e.ERROR_CODE_ALREADY_EXISTS = 6)] = 'ERROR_CODE_ALREADY_EXISTS'), - (e[(e.ERROR_CODE_PERMISSION_DENIED = 7)] = 'ERROR_CODE_PERMISSION_DENIED'), - (e[(e.ERROR_CODE_UNAUTHENTICATED = 16)] = 'ERROR_CODE_UNAUTHENTICATED'), - (e[(e.ERROR_CODE_RESOURCE_EXHAUSTED = 8)] = - 'ERROR_CODE_RESOURCE_EXHAUSTED'), - (e[(e.ERROR_CODE_FAILED_PRECONDITION = 9)] = - 'ERROR_CODE_FAILED_PRECONDITION'), - (e[(e.ERROR_CODE_ABORTED = 10)] = 'ERROR_CODE_ABORTED'), - (e[(e.ERROR_CODE_OUT_OF_RANGE = 11)] = 'ERROR_CODE_OUT_OF_RANGE'), - (e[(e.ERROR_CODE_UNIMPLEMENTED = 12)] = 'ERROR_CODE_UNIMPLEMENTED'), - (e[(e.ERROR_CODE_INTERNAL = 13)] = 'ERROR_CODE_INTERNAL'), - (e[(e.ERROR_CODE_UNAVAILABLE = 14)] = 'ERROR_CODE_UNAVAILABLE'), - (e[(e.ERROR_CODE_DATA_LOSS = 15)] = 'ERROR_CODE_DATA_LOSS')); -})(pa || (pa = {})); -a.util.setEnumType(pa, 'exa.cortex_pb.SetUpFirebaseErrorCode', [ - { no: 0, name: 'ERROR_CODE_OK' }, - { no: 1, name: 'ERROR_CODE_CANCELLED' }, - { no: 2, name: 'ERROR_CODE_UNKNOWN' }, - { no: 3, name: 'ERROR_CODE_INVALID_ARGUMENT' }, - { no: 4, name: 'ERROR_CODE_DEADLINE_EXCEEDED' }, - { no: 5, name: 'ERROR_CODE_NOT_FOUND' }, - { no: 6, name: 'ERROR_CODE_ALREADY_EXISTS' }, - { no: 7, name: 'ERROR_CODE_PERMISSION_DENIED' }, - { no: 16, name: 'ERROR_CODE_UNAUTHENTICATED' }, - { no: 8, name: 'ERROR_CODE_RESOURCE_EXHAUSTED' }, - { no: 9, name: 'ERROR_CODE_FAILED_PRECONDITION' }, - { no: 10, name: 'ERROR_CODE_ABORTED' }, - { no: 11, name: 'ERROR_CODE_OUT_OF_RANGE' }, - { no: 12, name: 'ERROR_CODE_UNIMPLEMENTED' }, - { no: 13, name: 'ERROR_CODE_INTERNAL' }, - { no: 14, name: 'ERROR_CODE_UNAVAILABLE' }, - { no: 15, name: 'ERROR_CODE_DATA_LOSS' }, -]); -var Oa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.FORCE_SHOW_SET_UP_UI = 1)] = 'FORCE_SHOW_SET_UP_UI'), - (e[(e.PROVISION = 2)] = 'PROVISION')); -})(Oa || (Oa = {})); -a.util.setEnumType(Oa, 'exa.cortex_pb.SetUpFirebaseRequest', [ - { no: 0, name: 'SET_UP_FIREBASE_REQUEST_UNSPECIFIED' }, - { no: 1, name: 'SET_UP_FIREBASE_REQUEST_FORCE_SHOW_SET_UP_UI' }, - { no: 2, name: 'SET_UP_FIREBASE_REQUEST_PROVISION' }, -]); -var Aa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.SHOW_SET_UP_UI = 1)] = 'SHOW_SET_UP_UI'), - (e[(e.IMPLEMENT_FIREBASE = 2)] = 'IMPLEMENT_FIREBASE'), - (e[(e.TOS_ERROR = 3)] = 'TOS_ERROR'), - (e[(e.PROVISIONING_ERROR = 4)] = 'PROVISIONING_ERROR')); -})(Aa || (Aa = {})); -a.util.setEnumType(Aa, 'exa.cortex_pb.SetUpFirebaseResult', [ - { no: 0, name: 'SET_UP_FIREBASE_RESULT_UNSPECIFIED' }, - { no: 1, name: 'SET_UP_FIREBASE_RESULT_SHOW_SET_UP_UI' }, - { no: 2, name: 'SET_UP_FIREBASE_RESULT_IMPLEMENT_FIREBASE' }, - { no: 3, name: 'SET_UP_FIREBASE_RESULT_TOS_ERROR' }, - { no: 4, name: 'SET_UP_FIREBASE_RESULT_PROVISIONING_ERROR' }, -]); -var U; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.USER_ALLOW = 1)] = 'USER_ALLOW'), - (e[(e.USER_DENY = 2)] = 'USER_DENY'), - (e[(e.SYSTEM_ALLOW = 3)] = 'SYSTEM_ALLOW'), - (e[(e.SYSTEM_DENY = 4)] = 'SYSTEM_DENY'), - (e[(e.MODEL_ALLOW = 5)] = 'MODEL_ALLOW'), - (e[(e.MODEL_DENY = 6)] = 'MODEL_DENY'), - (e[(e.DEFAULT_ALLOW = 7)] = 'DEFAULT_ALLOW'), - (e[(e.DEFAULT_DENY = 8)] = 'DEFAULT_DENY')); -})(U || (U = {})); -a.util.setEnumType(U, 'exa.cortex_pb.AutoRunDecision', [ +var CortexStepCompileTool; +(function (CortexStepCompileTool2) { + CortexStepCompileTool2[(CortexStepCompileTool2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CortexStepCompileTool2[(CortexStepCompileTool2['PYLINT'] = 1)] = 'PYLINT'; +})(CortexStepCompileTool || (CortexStepCompileTool = {})); +proto3.util.setEnumType( + CortexStepCompileTool, + 'exa.cortex_pb.CortexStepCompileTool', + [ + { no: 0, name: 'CORTEX_STEP_COMPILE_TOOL_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_STEP_COMPILE_TOOL_PYLINT' }, + ], +); +var SetUpFirebaseErrorCode; +(function (SetUpFirebaseErrorCode2) { + SetUpFirebaseErrorCode2[(SetUpFirebaseErrorCode2['ERROR_CODE_OK'] = 0)] = + 'ERROR_CODE_OK'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_CANCELLED'] = 1) + ] = 'ERROR_CODE_CANCELLED'; + SetUpFirebaseErrorCode2[(SetUpFirebaseErrorCode2['ERROR_CODE_UNKNOWN'] = 2)] = + 'ERROR_CODE_UNKNOWN'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_INVALID_ARGUMENT'] = 3) + ] = 'ERROR_CODE_INVALID_ARGUMENT'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_DEADLINE_EXCEEDED'] = 4) + ] = 'ERROR_CODE_DEADLINE_EXCEEDED'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_NOT_FOUND'] = 5) + ] = 'ERROR_CODE_NOT_FOUND'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_ALREADY_EXISTS'] = 6) + ] = 'ERROR_CODE_ALREADY_EXISTS'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_PERMISSION_DENIED'] = 7) + ] = 'ERROR_CODE_PERMISSION_DENIED'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_UNAUTHENTICATED'] = 16) + ] = 'ERROR_CODE_UNAUTHENTICATED'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_RESOURCE_EXHAUSTED'] = 8) + ] = 'ERROR_CODE_RESOURCE_EXHAUSTED'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_FAILED_PRECONDITION'] = 9) + ] = 'ERROR_CODE_FAILED_PRECONDITION'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_ABORTED'] = 10) + ] = 'ERROR_CODE_ABORTED'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_OUT_OF_RANGE'] = 11) + ] = 'ERROR_CODE_OUT_OF_RANGE'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_UNIMPLEMENTED'] = 12) + ] = 'ERROR_CODE_UNIMPLEMENTED'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_INTERNAL'] = 13) + ] = 'ERROR_CODE_INTERNAL'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_UNAVAILABLE'] = 14) + ] = 'ERROR_CODE_UNAVAILABLE'; + SetUpFirebaseErrorCode2[ + (SetUpFirebaseErrorCode2['ERROR_CODE_DATA_LOSS'] = 15) + ] = 'ERROR_CODE_DATA_LOSS'; +})(SetUpFirebaseErrorCode || (SetUpFirebaseErrorCode = {})); +proto3.util.setEnumType( + SetUpFirebaseErrorCode, + 'exa.cortex_pb.SetUpFirebaseErrorCode', + [ + { no: 0, name: 'ERROR_CODE_OK' }, + { no: 1, name: 'ERROR_CODE_CANCELLED' }, + { no: 2, name: 'ERROR_CODE_UNKNOWN' }, + { no: 3, name: 'ERROR_CODE_INVALID_ARGUMENT' }, + { no: 4, name: 'ERROR_CODE_DEADLINE_EXCEEDED' }, + { no: 5, name: 'ERROR_CODE_NOT_FOUND' }, + { no: 6, name: 'ERROR_CODE_ALREADY_EXISTS' }, + { no: 7, name: 'ERROR_CODE_PERMISSION_DENIED' }, + { no: 16, name: 'ERROR_CODE_UNAUTHENTICATED' }, + { no: 8, name: 'ERROR_CODE_RESOURCE_EXHAUSTED' }, + { no: 9, name: 'ERROR_CODE_FAILED_PRECONDITION' }, + { no: 10, name: 'ERROR_CODE_ABORTED' }, + { no: 11, name: 'ERROR_CODE_OUT_OF_RANGE' }, + { no: 12, name: 'ERROR_CODE_UNIMPLEMENTED' }, + { no: 13, name: 'ERROR_CODE_INTERNAL' }, + { no: 14, name: 'ERROR_CODE_UNAVAILABLE' }, + { no: 15, name: 'ERROR_CODE_DATA_LOSS' }, + ], +); +var SetUpFirebaseRequest; +(function (SetUpFirebaseRequest2) { + SetUpFirebaseRequest2[(SetUpFirebaseRequest2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + SetUpFirebaseRequest2[(SetUpFirebaseRequest2['FORCE_SHOW_SET_UP_UI'] = 1)] = + 'FORCE_SHOW_SET_UP_UI'; + SetUpFirebaseRequest2[(SetUpFirebaseRequest2['PROVISION'] = 2)] = 'PROVISION'; +})(SetUpFirebaseRequest || (SetUpFirebaseRequest = {})); +proto3.util.setEnumType( + SetUpFirebaseRequest, + 'exa.cortex_pb.SetUpFirebaseRequest', + [ + { no: 0, name: 'SET_UP_FIREBASE_REQUEST_UNSPECIFIED' }, + { no: 1, name: 'SET_UP_FIREBASE_REQUEST_FORCE_SHOW_SET_UP_UI' }, + { no: 2, name: 'SET_UP_FIREBASE_REQUEST_PROVISION' }, + ], +); +var SetUpFirebaseResult; +(function (SetUpFirebaseResult2) { + SetUpFirebaseResult2[(SetUpFirebaseResult2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + SetUpFirebaseResult2[(SetUpFirebaseResult2['SHOW_SET_UP_UI'] = 1)] = + 'SHOW_SET_UP_UI'; + SetUpFirebaseResult2[(SetUpFirebaseResult2['IMPLEMENT_FIREBASE'] = 2)] = + 'IMPLEMENT_FIREBASE'; + SetUpFirebaseResult2[(SetUpFirebaseResult2['TOS_ERROR'] = 3)] = 'TOS_ERROR'; + SetUpFirebaseResult2[(SetUpFirebaseResult2['PROVISIONING_ERROR'] = 4)] = + 'PROVISIONING_ERROR'; +})(SetUpFirebaseResult || (SetUpFirebaseResult = {})); +proto3.util.setEnumType( + SetUpFirebaseResult, + 'exa.cortex_pb.SetUpFirebaseResult', + [ + { no: 0, name: 'SET_UP_FIREBASE_RESULT_UNSPECIFIED' }, + { no: 1, name: 'SET_UP_FIREBASE_RESULT_SHOW_SET_UP_UI' }, + { no: 2, name: 'SET_UP_FIREBASE_RESULT_IMPLEMENT_FIREBASE' }, + { no: 3, name: 'SET_UP_FIREBASE_RESULT_TOS_ERROR' }, + { no: 4, name: 'SET_UP_FIREBASE_RESULT_PROVISIONING_ERROR' }, + ], +); +var AutoRunDecision; +(function (AutoRunDecision2) { + AutoRunDecision2[(AutoRunDecision2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + AutoRunDecision2[(AutoRunDecision2['USER_ALLOW'] = 1)] = 'USER_ALLOW'; + AutoRunDecision2[(AutoRunDecision2['USER_DENY'] = 2)] = 'USER_DENY'; + AutoRunDecision2[(AutoRunDecision2['SYSTEM_ALLOW'] = 3)] = 'SYSTEM_ALLOW'; + AutoRunDecision2[(AutoRunDecision2['SYSTEM_DENY'] = 4)] = 'SYSTEM_DENY'; + AutoRunDecision2[(AutoRunDecision2['MODEL_ALLOW'] = 5)] = 'MODEL_ALLOW'; + AutoRunDecision2[(AutoRunDecision2['MODEL_DENY'] = 6)] = 'MODEL_DENY'; + AutoRunDecision2[(AutoRunDecision2['DEFAULT_ALLOW'] = 7)] = 'DEFAULT_ALLOW'; + AutoRunDecision2[(AutoRunDecision2['DEFAULT_DENY'] = 8)] = 'DEFAULT_DENY'; +})(AutoRunDecision || (AutoRunDecision = {})); +proto3.util.setEnumType(AutoRunDecision, 'exa.cortex_pb.AutoRunDecision', [ { no: 0, name: 'AUTO_RUN_DECISION_UNSPECIFIED' }, { no: 1, name: 'AUTO_RUN_DECISION_USER_ALLOW' }, { no: 2, name: 'AUTO_RUN_DECISION_USER_DENY' }, @@ -21821,104 +40670,139 @@ a.util.setEnumType(U, 'exa.cortex_pb.AutoRunDecision', [ { no: 7, name: 'AUTO_RUN_DECISION_DEFAULT_ALLOW' }, { no: 8, name: 'AUTO_RUN_DECISION_DEFAULT_DENY' }, ]); -var Ca; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.WEB = 1)] = 'WEB'), - (e[(e.IMAGE = 2)] = 'IMAGE')); -})(Ca || (Ca = {})); -a.util.setEnumType(Ca, 'exa.cortex_pb.SearchWebType', [ +var SearchWebType; +(function (SearchWebType2) { + SearchWebType2[(SearchWebType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + SearchWebType2[(SearchWebType2['WEB'] = 1)] = 'WEB'; + SearchWebType2[(SearchWebType2['IMAGE'] = 2)] = 'IMAGE'; +})(SearchWebType || (SearchWebType = {})); +proto3.util.setEnumType(SearchWebType, 'exa.cortex_pb.SearchWebType', [ { no: 0, name: 'SEARCH_WEB_TYPE_UNSPECIFIED' }, { no: 1, name: 'SEARCH_WEB_TYPE_WEB' }, { no: 2, name: 'SEARCH_WEB_TYPE_IMAGE' }, ]); -var ls; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PENDING = 1)] = 'PENDING'), - (e[(e.IN_PROGRESS = 2)] = 'IN_PROGRESS'), - (e[(e.SUCCESS = 3)] = 'SUCCESS'), - (e[(e.FAILURE = 4)] = 'FAILURE')); -})(ls || (ls = {})); -a.util.setEnumType(ls, 'exa.cortex_pb.DeployWebAppFileUploadStatus', [ - { no: 0, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_UNSPECIFIED' }, - { no: 1, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_PENDING' }, - { no: 2, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_IN_PROGRESS' }, - { no: 3, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_SUCCESS' }, - { no: 4, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_FAILURE' }, -]); -var Ra; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ERROR = 1)] = 'ERROR'), - (e[(e.USER_CANCELED = 2)] = 'USER_CANCELED'), - (e[(e.MAX_INVOCATIONS = 3)] = 'MAX_INVOCATIONS'), - (e[(e.NO_TOOL_CALL = 4)] = 'NO_TOOL_CALL'), - (e[(e.MAX_FORCED_INVOCATIONS = 6)] = 'MAX_FORCED_INVOCATIONS'), - (e[(e.EARLY_CONTINUE = 7)] = 'EARLY_CONTINUE'), - (e[(e.TERMINAL_STEP_TYPE = 8)] = 'TERMINAL_STEP_TYPE'), - (e[(e.TERMINAL_CUSTOM_HOOK = 9)] = 'TERMINAL_CUSTOM_HOOK'), - (e[(e.INJECTED_RESPONSE = 10)] = 'INJECTED_RESPONSE')); -})(Ra || (Ra = {})); -a.util.setEnumType(Ra, 'exa.cortex_pb.ExecutorTerminationReason', [ - { no: 0, name: 'EXECUTOR_TERMINATION_REASON_UNSPECIFIED' }, - { no: 1, name: 'EXECUTOR_TERMINATION_REASON_ERROR' }, - { no: 2, name: 'EXECUTOR_TERMINATION_REASON_USER_CANCELED' }, - { no: 3, name: 'EXECUTOR_TERMINATION_REASON_MAX_INVOCATIONS' }, - { no: 4, name: 'EXECUTOR_TERMINATION_REASON_NO_TOOL_CALL' }, - { no: 6, name: 'EXECUTOR_TERMINATION_REASON_MAX_FORCED_INVOCATIONS' }, - { no: 7, name: 'EXECUTOR_TERMINATION_REASON_EARLY_CONTINUE' }, - { no: 8, name: 'EXECUTOR_TERMINATION_REASON_TERMINAL_STEP_TYPE' }, - { no: 9, name: 'EXECUTOR_TERMINATION_REASON_TERMINAL_CUSTOM_HOOK' }, - { no: 10, name: 'EXECUTOR_TERMINATION_REASON_INJECTED_RESPONSE' }, -]); -var La; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.DELETE = 1)] = 'DELETE'), - (e[(e.INSERT = 2)] = 'INSERT'), - (e[(e.UNCHANGED = 3)] = 'UNCHANGED')); -})(La || (La = {})); -a.util.setEnumType(La, 'exa.cortex_pb.LintDiffType', [ +var DeployWebAppFileUploadStatus; +(function (DeployWebAppFileUploadStatus2) { + DeployWebAppFileUploadStatus2[ + (DeployWebAppFileUploadStatus2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + DeployWebAppFileUploadStatus2[ + (DeployWebAppFileUploadStatus2['PENDING'] = 1) + ] = 'PENDING'; + DeployWebAppFileUploadStatus2[ + (DeployWebAppFileUploadStatus2['IN_PROGRESS'] = 2) + ] = 'IN_PROGRESS'; + DeployWebAppFileUploadStatus2[ + (DeployWebAppFileUploadStatus2['SUCCESS'] = 3) + ] = 'SUCCESS'; + DeployWebAppFileUploadStatus2[ + (DeployWebAppFileUploadStatus2['FAILURE'] = 4) + ] = 'FAILURE'; +})(DeployWebAppFileUploadStatus || (DeployWebAppFileUploadStatus = {})); +proto3.util.setEnumType( + DeployWebAppFileUploadStatus, + 'exa.cortex_pb.DeployWebAppFileUploadStatus', + [ + { no: 0, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_UNSPECIFIED' }, + { no: 1, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_PENDING' }, + { no: 2, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_IN_PROGRESS' }, + { no: 3, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_SUCCESS' }, + { no: 4, name: 'DEPLOY_WEB_APP_FILE_UPLOAD_STATUS_FAILURE' }, + ], +); +var ExecutorTerminationReason; +(function (ExecutorTerminationReason2) { + ExecutorTerminationReason2[(ExecutorTerminationReason2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + ExecutorTerminationReason2[(ExecutorTerminationReason2['ERROR'] = 1)] = + 'ERROR'; + ExecutorTerminationReason2[ + (ExecutorTerminationReason2['USER_CANCELED'] = 2) + ] = 'USER_CANCELED'; + ExecutorTerminationReason2[ + (ExecutorTerminationReason2['MAX_INVOCATIONS'] = 3) + ] = 'MAX_INVOCATIONS'; + ExecutorTerminationReason2[(ExecutorTerminationReason2['NO_TOOL_CALL'] = 4)] = + 'NO_TOOL_CALL'; + ExecutorTerminationReason2[ + (ExecutorTerminationReason2['MAX_FORCED_INVOCATIONS'] = 6) + ] = 'MAX_FORCED_INVOCATIONS'; + ExecutorTerminationReason2[ + (ExecutorTerminationReason2['EARLY_CONTINUE'] = 7) + ] = 'EARLY_CONTINUE'; + ExecutorTerminationReason2[ + (ExecutorTerminationReason2['TERMINAL_STEP_TYPE'] = 8) + ] = 'TERMINAL_STEP_TYPE'; + ExecutorTerminationReason2[ + (ExecutorTerminationReason2['TERMINAL_CUSTOM_HOOK'] = 9) + ] = 'TERMINAL_CUSTOM_HOOK'; + ExecutorTerminationReason2[ + (ExecutorTerminationReason2['INJECTED_RESPONSE'] = 10) + ] = 'INJECTED_RESPONSE'; +})(ExecutorTerminationReason || (ExecutorTerminationReason = {})); +proto3.util.setEnumType( + ExecutorTerminationReason, + 'exa.cortex_pb.ExecutorTerminationReason', + [ + { no: 0, name: 'EXECUTOR_TERMINATION_REASON_UNSPECIFIED' }, + { no: 1, name: 'EXECUTOR_TERMINATION_REASON_ERROR' }, + { no: 2, name: 'EXECUTOR_TERMINATION_REASON_USER_CANCELED' }, + { no: 3, name: 'EXECUTOR_TERMINATION_REASON_MAX_INVOCATIONS' }, + { no: 4, name: 'EXECUTOR_TERMINATION_REASON_NO_TOOL_CALL' }, + { no: 6, name: 'EXECUTOR_TERMINATION_REASON_MAX_FORCED_INVOCATIONS' }, + { no: 7, name: 'EXECUTOR_TERMINATION_REASON_EARLY_CONTINUE' }, + { no: 8, name: 'EXECUTOR_TERMINATION_REASON_TERMINAL_STEP_TYPE' }, + { no: 9, name: 'EXECUTOR_TERMINATION_REASON_TERMINAL_CUSTOM_HOOK' }, + { no: 10, name: 'EXECUTOR_TERMINATION_REASON_INJECTED_RESPONSE' }, + ], +); +var LintDiffType; +(function (LintDiffType2) { + LintDiffType2[(LintDiffType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + LintDiffType2[(LintDiffType2['DELETE'] = 1)] = 'DELETE'; + LintDiffType2[(LintDiffType2['INSERT'] = 2)] = 'INSERT'; + LintDiffType2[(LintDiffType2['UNCHANGED'] = 3)] = 'UNCHANGED'; +})(LintDiffType || (LintDiffType = {})); +proto3.util.setEnumType(LintDiffType, 'exa.cortex_pb.LintDiffType', [ { no: 0, name: 'LINT_DIFF_TYPE_UNSPECIFIED' }, { no: 1, name: 'LINT_DIFF_TYPE_DELETE' }, { no: 2, name: 'LINT_DIFF_TYPE_INSERT' }, { no: 3, name: 'LINT_DIFF_TYPE_UNCHANGED' }, ]); -var fe; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PLAN = 1)] = 'PLAN'), - (e[(e.TASK = 2)] = 'TASK')); -})(fe || (fe = {})); -a.util.setEnumType(fe, 'exa.cortex_pb.BrainEntryType', [ +var BrainEntryType; +(function (BrainEntryType2) { + BrainEntryType2[(BrainEntryType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + BrainEntryType2[(BrainEntryType2['PLAN'] = 1)] = 'PLAN'; + BrainEntryType2[(BrainEntryType2['TASK'] = 2)] = 'TASK'; +})(BrainEntryType || (BrainEntryType = {})); +proto3.util.setEnumType(BrainEntryType, 'exa.cortex_pb.BrainEntryType', [ { no: 0, name: 'BRAIN_ENTRY_TYPE_UNSPECIFIED' }, { no: 1, name: 'BRAIN_ENTRY_TYPE_PLAN' }, { no: 2, name: 'BRAIN_ENTRY_TYPE_TASK' }, ]); -var Hn; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.TODO = 1)] = 'TODO'), - (e[(e.IN_PROGRESS = 2)] = 'IN_PROGRESS'), - (e[(e.DONE = 3)] = 'DONE')); -})(Hn || (Hn = {})); -a.util.setEnumType(Hn, 'exa.cortex_pb.TaskStatus', [ +var TaskStatus; +(function (TaskStatus2) { + TaskStatus2[(TaskStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TaskStatus2[(TaskStatus2['TODO'] = 1)] = 'TODO'; + TaskStatus2[(TaskStatus2['IN_PROGRESS'] = 2)] = 'IN_PROGRESS'; + TaskStatus2[(TaskStatus2['DONE'] = 3)] = 'DONE'; +})(TaskStatus || (TaskStatus = {})); +proto3.util.setEnumType(TaskStatus, 'exa.cortex_pb.TaskStatus', [ { no: 0, name: 'TASK_STATUS_UNSPECIFIED' }, { no: 1, name: 'TASK_STATUS_TODO' }, { no: 2, name: 'TASK_STATUS_IN_PROGRESS' }, { no: 3, name: 'TASK_STATUS_DONE' }, ]); -var Pa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ADD = 1)] = 'ADD'), - (e[(e.PRUNE = 2)] = 'PRUNE'), - (e[(e.DELETE = 3)] = 'DELETE'), - (e[(e.UPDATE = 4)] = 'UPDATE'), - (e[(e.MOVE = 5)] = 'MOVE')); -})(Pa || (Pa = {})); -a.util.setEnumType(Pa, 'exa.cortex_pb.TaskDeltaType', [ +var TaskDeltaType; +(function (TaskDeltaType2) { + TaskDeltaType2[(TaskDeltaType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + TaskDeltaType2[(TaskDeltaType2['ADD'] = 1)] = 'ADD'; + TaskDeltaType2[(TaskDeltaType2['PRUNE'] = 2)] = 'PRUNE'; + TaskDeltaType2[(TaskDeltaType2['DELETE'] = 3)] = 'DELETE'; + TaskDeltaType2[(TaskDeltaType2['UPDATE'] = 4)] = 'UPDATE'; + TaskDeltaType2[(TaskDeltaType2['MOVE'] = 5)] = 'MOVE'; +})(TaskDeltaType || (TaskDeltaType = {})); +proto3.util.setEnumType(TaskDeltaType, 'exa.cortex_pb.TaskDeltaType', [ { no: 0, name: 'TASK_DELTA_TYPE_UNSPECIFIED' }, { no: 1, name: 'TASK_DELTA_TYPE_ADD' }, { no: 2, name: 'TASK_DELTA_TYPE_PRUNE' }, @@ -21926,1689 +40810,3501 @@ a.util.setEnumType(Pa, 'exa.cortex_pb.TaskDeltaType', [ { no: 4, name: 'TASK_DELTA_TYPE_UPDATE' }, { no: 5, name: 'TASK_DELTA_TYPE_MOVE' }, ]); -var Da; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.SYSTEM_FORCED = 1)] = 'SYSTEM_FORCED'), - (e[(e.USER_REQUESTED = 2)] = 'USER_REQUESTED'), - (e[(e.USER_NEW_INFO = 3)] = 'USER_NEW_INFO'), - (e[(e.RESEARCH_NEW_INFO = 4)] = 'RESEARCH_NEW_INFO')); -})(Da || (Da = {})); -a.util.setEnumType(Da, 'exa.cortex_pb.BrainUpdateTrigger', [ - { no: 0, name: 'BRAIN_UPDATE_TRIGGER_UNSPECIFIED' }, - { no: 1, name: 'BRAIN_UPDATE_TRIGGER_SYSTEM_FORCED' }, - { no: 2, name: 'BRAIN_UPDATE_TRIGGER_USER_REQUESTED' }, - { no: 3, name: 'BRAIN_UPDATE_TRIGGER_USER_NEW_INFO' }, - { no: 4, name: 'BRAIN_UPDATE_TRIGGER_RESEARCH_NEW_INFO' }, -]); -var ka; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.GENERATING = 1)] = 'GENERATING'), - (e[(e.ERROR = 2)] = 'ERROR'), - (e[(e.COMPLETED = 3)] = 'COMPLETED')); -})(ka || (ka = {})); -a.util.setEnumType(ka, 'exa.cortex_pb.RecordingGenerationStatus', [ - { no: 0, name: 'RECORDING_GENERATION_STATUS_UNSPECIFIED' }, - { no: 1, name: 'RECORDING_GENERATION_STATUS_GENERATING' }, - { no: 2, name: 'RECORDING_GENERATION_STATUS_ERROR' }, - { no: 3, name: 'RECORDING_GENERATION_STATUS_COMPLETED' }, -]); -var ga; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.TOP = 1)] = 'TOP'), - (e[(e.BOTTOM = 2)] = 'BOTTOM'), - (e[(e.SPLIT = 3)] = 'SPLIT')); -})(ga || (ga = {})); -a.util.setEnumType(ga, 'exa.cortex_pb.CommandOutputPriority', [ - { no: 0, name: 'COMMAND_OUTPUT_PRIORITY_UNSPECIFIED' }, - { no: 1, name: 'COMMAND_OUTPUT_PRIORITY_TOP' }, - { no: 2, name: 'COMMAND_OUTPUT_PRIORITY_BOTTOM' }, - { no: 3, name: 'COMMAND_OUTPUT_PRIORITY_SPLIT' }, -]); -var wa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.USER = 1)] = 'USER'), - (e[(e.CASCADE = 2)] = 'CASCADE')); -})(wa || (wa = {})); -a.util.setEnumType(wa, 'exa.cortex_pb.CortexMemorySource', [ - { no: 0, name: 'CORTEX_MEMORY_SOURCE_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_MEMORY_SOURCE_USER' }, - { no: 2, name: 'CORTEX_MEMORY_SOURCE_CASCADE' }, -]); -var Ja; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ALWAYS_ON = 1)] = 'ALWAYS_ON'), - (e[(e.MODEL_DECISION = 2)] = 'MODEL_DECISION'), - (e[(e.MANUAL = 3)] = 'MANUAL'), - (e[(e.GLOB = 4)] = 'GLOB')); -})(Ja || (Ja = {})); -a.util.setEnumType(Ja, 'exa.cortex_pb.CortexMemoryTrigger', [ - { no: 0, name: 'CORTEX_MEMORY_TRIGGER_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_MEMORY_TRIGGER_ALWAYS_ON' }, - { no: 2, name: 'CORTEX_MEMORY_TRIGGER_MODEL_DECISION' }, - { no: 3, name: 'CORTEX_MEMORY_TRIGGER_MANUAL' }, - { no: 4, name: 'CORTEX_MEMORY_TRIGGER_GLOB' }, -]); -var xa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CREATE = 1)] = 'CREATE'), - (e[(e.UPDATE = 2)] = 'UPDATE'), - (e[(e.DELETE = 3)] = 'DELETE')); -})(xa || (xa = {})); -a.util.setEnumType(xa, 'exa.cortex_pb.MemoryActionType', [ +var BrainUpdateTrigger; +(function (BrainUpdateTrigger2) { + BrainUpdateTrigger2[(BrainUpdateTrigger2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + BrainUpdateTrigger2[(BrainUpdateTrigger2['SYSTEM_FORCED'] = 1)] = + 'SYSTEM_FORCED'; + BrainUpdateTrigger2[(BrainUpdateTrigger2['USER_REQUESTED'] = 2)] = + 'USER_REQUESTED'; + BrainUpdateTrigger2[(BrainUpdateTrigger2['USER_NEW_INFO'] = 3)] = + 'USER_NEW_INFO'; + BrainUpdateTrigger2[(BrainUpdateTrigger2['RESEARCH_NEW_INFO'] = 4)] = + 'RESEARCH_NEW_INFO'; +})(BrainUpdateTrigger || (BrainUpdateTrigger = {})); +proto3.util.setEnumType( + BrainUpdateTrigger, + 'exa.cortex_pb.BrainUpdateTrigger', + [ + { no: 0, name: 'BRAIN_UPDATE_TRIGGER_UNSPECIFIED' }, + { no: 1, name: 'BRAIN_UPDATE_TRIGGER_SYSTEM_FORCED' }, + { no: 2, name: 'BRAIN_UPDATE_TRIGGER_USER_REQUESTED' }, + { no: 3, name: 'BRAIN_UPDATE_TRIGGER_USER_NEW_INFO' }, + { no: 4, name: 'BRAIN_UPDATE_TRIGGER_RESEARCH_NEW_INFO' }, + ], +); +var RecordingGenerationStatus; +(function (RecordingGenerationStatus2) { + RecordingGenerationStatus2[(RecordingGenerationStatus2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + RecordingGenerationStatus2[(RecordingGenerationStatus2['GENERATING'] = 1)] = + 'GENERATING'; + RecordingGenerationStatus2[(RecordingGenerationStatus2['ERROR'] = 2)] = + 'ERROR'; + RecordingGenerationStatus2[(RecordingGenerationStatus2['COMPLETED'] = 3)] = + 'COMPLETED'; +})(RecordingGenerationStatus || (RecordingGenerationStatus = {})); +proto3.util.setEnumType( + RecordingGenerationStatus, + 'exa.cortex_pb.RecordingGenerationStatus', + [ + { no: 0, name: 'RECORDING_GENERATION_STATUS_UNSPECIFIED' }, + { no: 1, name: 'RECORDING_GENERATION_STATUS_GENERATING' }, + { no: 2, name: 'RECORDING_GENERATION_STATUS_ERROR' }, + { no: 3, name: 'RECORDING_GENERATION_STATUS_COMPLETED' }, + ], +); +var CommandOutputPriority; +(function (CommandOutputPriority2) { + CommandOutputPriority2[(CommandOutputPriority2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CommandOutputPriority2[(CommandOutputPriority2['TOP'] = 1)] = 'TOP'; + CommandOutputPriority2[(CommandOutputPriority2['BOTTOM'] = 2)] = 'BOTTOM'; + CommandOutputPriority2[(CommandOutputPriority2['SPLIT'] = 3)] = 'SPLIT'; +})(CommandOutputPriority || (CommandOutputPriority = {})); +proto3.util.setEnumType( + CommandOutputPriority, + 'exa.cortex_pb.CommandOutputPriority', + [ + { no: 0, name: 'COMMAND_OUTPUT_PRIORITY_UNSPECIFIED' }, + { no: 1, name: 'COMMAND_OUTPUT_PRIORITY_TOP' }, + { no: 2, name: 'COMMAND_OUTPUT_PRIORITY_BOTTOM' }, + { no: 3, name: 'COMMAND_OUTPUT_PRIORITY_SPLIT' }, + ], +); +var CortexMemorySource; +(function (CortexMemorySource2) { + CortexMemorySource2[(CortexMemorySource2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + CortexMemorySource2[(CortexMemorySource2['USER'] = 1)] = 'USER'; + CortexMemorySource2[(CortexMemorySource2['CASCADE'] = 2)] = 'CASCADE'; +})(CortexMemorySource || (CortexMemorySource = {})); +proto3.util.setEnumType( + CortexMemorySource, + 'exa.cortex_pb.CortexMemorySource', + [ + { no: 0, name: 'CORTEX_MEMORY_SOURCE_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_MEMORY_SOURCE_USER' }, + { no: 2, name: 'CORTEX_MEMORY_SOURCE_CASCADE' }, + ], +); +var CortexMemoryTrigger; +(function (CortexMemoryTrigger2) { + CortexMemoryTrigger2[(CortexMemoryTrigger2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CortexMemoryTrigger2[(CortexMemoryTrigger2['ALWAYS_ON'] = 1)] = 'ALWAYS_ON'; + CortexMemoryTrigger2[(CortexMemoryTrigger2['MODEL_DECISION'] = 2)] = + 'MODEL_DECISION'; + CortexMemoryTrigger2[(CortexMemoryTrigger2['MANUAL'] = 3)] = 'MANUAL'; + CortexMemoryTrigger2[(CortexMemoryTrigger2['GLOB'] = 4)] = 'GLOB'; +})(CortexMemoryTrigger || (CortexMemoryTrigger = {})); +proto3.util.setEnumType( + CortexMemoryTrigger, + 'exa.cortex_pb.CortexMemoryTrigger', + [ + { no: 0, name: 'CORTEX_MEMORY_TRIGGER_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_MEMORY_TRIGGER_ALWAYS_ON' }, + { no: 2, name: 'CORTEX_MEMORY_TRIGGER_MODEL_DECISION' }, + { no: 3, name: 'CORTEX_MEMORY_TRIGGER_MANUAL' }, + { no: 4, name: 'CORTEX_MEMORY_TRIGGER_GLOB' }, + ], +); +var MemoryActionType; +(function (MemoryActionType2) { + MemoryActionType2[(MemoryActionType2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + MemoryActionType2[(MemoryActionType2['CREATE'] = 1)] = 'CREATE'; + MemoryActionType2[(MemoryActionType2['UPDATE'] = 2)] = 'UPDATE'; + MemoryActionType2[(MemoryActionType2['DELETE'] = 3)] = 'DELETE'; +})(MemoryActionType || (MemoryActionType = {})); +proto3.util.setEnumType(MemoryActionType, 'exa.cortex_pb.MemoryActionType', [ { no: 0, name: 'MEMORY_ACTION_TYPE_UNSPECIFIED' }, { no: 1, name: 'MEMORY_ACTION_TYPE_CREATE' }, { no: 2, name: 'MEMORY_ACTION_TYPE_UPDATE' }, { no: 3, name: 'MEMORY_ACTION_TYPE_DELETE' }, ]); -var Ua; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.APPROVED = 1)] = 'APPROVED'), - (e[(e.DENIED = 2)] = 'DENIED'), - (e[(e.ERROR = 3)] = 'ERROR')); -})(Ua || (Ua = {})); -a.util.setEnumType(Ua, 'exa.cortex_pb.CortexStepManagerFeedbackStatus', [ - { no: 0, name: 'CORTEX_STEP_MANAGER_FEEDBACK_STATUS_UNSPECIFIED' }, - { no: 1, name: 'CORTEX_STEP_MANAGER_FEEDBACK_STATUS_APPROVED' }, - { no: 2, name: 'CORTEX_STEP_MANAGER_FEEDBACK_STATUS_DENIED' }, - { no: 3, name: 'CORTEX_STEP_MANAGER_FEEDBACK_STATUS_ERROR' }, -]); -var Ba; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PENDING = 1)] = 'PENDING'), - (e[(e.READY = 2)] = 'READY'), - (e[(e.ERROR = 3)] = 'ERROR')); -})(Ba || (Ba = {})); -a.util.setEnumType(Ba, 'exa.cortex_pb.McpServerStatus', [ +var CortexStepManagerFeedbackStatus; +(function (CortexStepManagerFeedbackStatus2) { + CortexStepManagerFeedbackStatus2[ + (CortexStepManagerFeedbackStatus2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + CortexStepManagerFeedbackStatus2[ + (CortexStepManagerFeedbackStatus2['APPROVED'] = 1) + ] = 'APPROVED'; + CortexStepManagerFeedbackStatus2[ + (CortexStepManagerFeedbackStatus2['DENIED'] = 2) + ] = 'DENIED'; + CortexStepManagerFeedbackStatus2[ + (CortexStepManagerFeedbackStatus2['ERROR'] = 3) + ] = 'ERROR'; +})(CortexStepManagerFeedbackStatus || (CortexStepManagerFeedbackStatus = {})); +proto3.util.setEnumType( + CortexStepManagerFeedbackStatus, + 'exa.cortex_pb.CortexStepManagerFeedbackStatus', + [ + { no: 0, name: 'CORTEX_STEP_MANAGER_FEEDBACK_STATUS_UNSPECIFIED' }, + { no: 1, name: 'CORTEX_STEP_MANAGER_FEEDBACK_STATUS_APPROVED' }, + { no: 2, name: 'CORTEX_STEP_MANAGER_FEEDBACK_STATUS_DENIED' }, + { no: 3, name: 'CORTEX_STEP_MANAGER_FEEDBACK_STATUS_ERROR' }, + ], +); +var McpServerStatus; +(function (McpServerStatus2) { + McpServerStatus2[(McpServerStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + McpServerStatus2[(McpServerStatus2['PENDING'] = 1)] = 'PENDING'; + McpServerStatus2[(McpServerStatus2['READY'] = 2)] = 'READY'; + McpServerStatus2[(McpServerStatus2['ERROR'] = 3)] = 'ERROR'; +})(McpServerStatus || (McpServerStatus = {})); +proto3.util.setEnumType(McpServerStatus, 'exa.cortex_pb.McpServerStatus', [ { no: 0, name: 'MCP_SERVER_STATUS_UNSPECIFIED' }, { no: 1, name: 'MCP_SERVER_STATUS_PENDING' }, { no: 2, name: 'MCP_SERVER_STATUS_READY' }, { no: 3, name: 'MCP_SERVER_STATUS_ERROR' }, ]); -var Fa; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ALL = 1)] = 'ALL'), - (e[(e.LATEST_ONLY = 2)] = 'LATEST_ONLY')); -})(Fa || (Fa = {})); -a.util.setEnumType(Fa, 'exa.cortex_pb.EphemeralMessagePersistenceLevel', [ - { no: 0, name: 'EPHEMERAL_MESSAGE_PERSISTENCE_LEVEL_UNSPECIFIED' }, - { no: 1, name: 'EPHEMERAL_MESSAGE_PERSISTENCE_LEVEL_ALL' }, - { no: 2, name: 'EPHEMERAL_MESSAGE_PERSISTENCE_LEVEL_LATEST_ONLY' }, -]); -var Es; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.SCREENSHOT = 1)] = 'SCREENSHOT'), - (e[(e.DOM = 2)] = 'DOM')); -})(Es || (Es = {})); -a.util.setEnumType(Es, 'exa.cortex_pb.BrowserEphemeralOption', [ - { no: 0, name: 'BROWSER_EPHEMERAL_OPTION_UNSPECIFIED' }, - { no: 1, name: 'BROWSER_EPHEMERAL_OPTION_SCREENSHOT' }, - { no: 2, name: 'BROWSER_EPHEMERAL_OPTION_DOM' }, -]); -var tE; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), (e[(e.TEAM = 1)] = 'TEAM')); -})(tE || (tE = {})); -a.util.setEnumType(tE, 'exa.cortex_pb.TrajectoryShareStatus', [ - { no: 0, name: 'TRAJECTORY_SHARE_STATUS_UNSPECIFIED' }, - { no: 1, name: 'TRAJECTORY_SHARE_STATUS_TEAM' }, -]); -var Ma; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.ALLOWED = 1)] = 'ALLOWED'), - (e[(e.DENIED = 2)] = 'DENIED'), - (e[(e.MODEL_ALLOWED = 3)] = 'MODEL_ALLOWED'), - (e[(e.MODEL_DENIED = 4)] = 'MODEL_DENIED')); -})(Ma || (Ma = {})); -a.util.setEnumType(Ma, 'exa.cortex_pb.RunExtensionCodeAutoRunDecision', [ - { no: 0, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_UNSPECIFIED' }, - { no: 1, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_ALLOWED' }, - { no: 2, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_DENIED' }, - { no: 3, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_MODEL_ALLOWED' }, - { no: 4, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_MODEL_DENIED' }, -]); -var ya; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.CASCADE_ID = 1)] = 'CASCADE_ID'), - (e[(e.MAINLINE = 2)] = 'MAINLINE')); -})(ya || (ya = {})); -a.util.setEnumType(ya, 'exa.cortex_pb.TrajectorySearchIdType', [ - { no: 0, name: 'TRAJECTORY_SEARCH_ID_TYPE_UNSPECIFIED' }, - { no: 1, name: 'TRAJECTORY_SEARCH_ID_TYPE_CASCADE_ID' }, - { no: 2, name: 'TRAJECTORY_SEARCH_ID_TYPE_MAINLINE' }, -]); -var ha; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.FILE = 1)] = 'FILE'), - (e[(e.ALL = 2)] = 'ALL'), - (e[(e.HUNK = 3)] = 'HUNK')); -})(ha || (ha = {})); -a.util.setEnumType(ha, 'exa.cortex_pb.CodeAcknowledgementScope', [ - { no: 0, name: 'CODE_ACKNOWLEDGEMENT_SCOPE_UNSPECIFIED' }, - { no: 1, name: 'CODE_ACKNOWLEDGEMENT_SCOPE_FILE' }, - { no: 2, name: 'CODE_ACKNOWLEDGEMENT_SCOPE_ALL' }, - { no: 3, name: 'CODE_ACKNOWLEDGEMENT_SCOPE_HUNK' }, -]); -var Ga; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.PENDING_REVIEW = 1)] = 'PENDING_REVIEW'), - (e[(e.REVIEWED = 2)] = 'REVIEWED'), - (e[(e.MODIFIED = 3)] = 'MODIFIED')); -})(Ga || (Ga = {})); -a.util.setEnumType(Ga, 'exa.cortex_pb.ArtifactReviewStatus', [ - { no: 0, name: 'ARTIFACT_REVIEW_STATUS_UNSPECIFIED' }, - { no: 1, name: 'ARTIFACT_REVIEW_STATUS_PENDING_REVIEW' }, - { no: 2, name: 'ARTIFACT_REVIEW_STATUS_REVIEWED' }, - { no: 3, name: 'ARTIFACT_REVIEW_STATUS_MODIFIED' }, -]); -var II = class e extends r { - path = ''; - name = ''; - description = ''; - content = ''; - turbo = !1; - isBuiltin = !1; - scope; - baseDir = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.WorkflowSpec'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'path', kind: 'scalar', T: 9 }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - { no: 4, name: 'content', kind: 'scalar', T: 9 }, - { no: 5, name: 'turbo', kind: 'scalar', T: 8 }, - { no: 6, name: 'is_builtin', kind: 'scalar', T: 8 }, - { no: 7, name: 'scope', kind: 'message', T: vi }, - { no: 8, name: 'base_dir', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - aE = class e extends r { - component = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexPlanSummaryComponent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9, oneof: 'component' }, - { no: 2, name: 'citation', kind: 'message', T: Un, oneof: 'component' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rE = class e extends r { - planId = ''; - goal = ''; - actionStates = []; - outlines = []; - summaryComponents = []; - postSummaryText = ''; - planFullyGenerated = !1; - planFinished = !1; - debugInfo; - planSummaryConfirmed = !1; - planSummaryFullyGenerated = !1; - cciList = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodingStepState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'plan_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'goal', kind: 'scalar', T: 9 }, - { no: 3, name: 'action_states', kind: 'message', T: ds, repeated: !0 }, - { no: 7, name: 'outlines', kind: 'message', T: _s, repeated: !0 }, - { - no: 8, - name: 'summary_components', - kind: 'message', - T: aE, - repeated: !0, - }, - { no: 9, name: 'post_summary_text', kind: 'scalar', T: 9 }, - { no: 4, name: 'plan_fully_generated', kind: 'scalar', T: 8 }, - { no: 5, name: 'plan_finished', kind: 'scalar', T: 8 }, - { no: 6, name: 'debug_info', kind: 'message', T: qa }, - { no: 10, name: 'plan_summary_confirmed', kind: 'scalar', T: 8 }, - { no: 11, name: 'plan_summary_fully_generated', kind: 'scalar', T: 8 }, - { no: 12, name: 'cci_list', kind: 'message', T: Fn, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sE = class e extends r { - steps = []; - outlines = []; - currentStepIndex = 0; - debugInfo; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexPlanState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'steps', kind: 'message', T: iE, repeated: !0 }, - { no: 2, name: 'outlines', kind: 'message', T: _s, repeated: !0 }, - { no: 3, name: 'current_step_index', kind: 'scalar', T: 13 }, - { no: 4, name: 'debug_info', kind: 'message', T: qa }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _s = class e extends r { - stepNumber = 0; - actionName = ''; - jsonArgs = ''; - parentStepNumbers = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepOutline'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'step_number', kind: 'scalar', T: 13 }, - { no: 2, name: 'action_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'json_args', kind: 'scalar', T: 9 }, - { - no: 4, - name: 'parent_step_numbers', +var EphemeralMessagePersistenceLevel; +(function (EphemeralMessagePersistenceLevel2) { + EphemeralMessagePersistenceLevel2[ + (EphemeralMessagePersistenceLevel2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + EphemeralMessagePersistenceLevel2[ + (EphemeralMessagePersistenceLevel2['ALL'] = 1) + ] = 'ALL'; + EphemeralMessagePersistenceLevel2[ + (EphemeralMessagePersistenceLevel2['LATEST_ONLY'] = 2) + ] = 'LATEST_ONLY'; +})(EphemeralMessagePersistenceLevel || (EphemeralMessagePersistenceLevel = {})); +proto3.util.setEnumType( + EphemeralMessagePersistenceLevel, + 'exa.cortex_pb.EphemeralMessagePersistenceLevel', + [ + { no: 0, name: 'EPHEMERAL_MESSAGE_PERSISTENCE_LEVEL_UNSPECIFIED' }, + { no: 1, name: 'EPHEMERAL_MESSAGE_PERSISTENCE_LEVEL_ALL' }, + { no: 2, name: 'EPHEMERAL_MESSAGE_PERSISTENCE_LEVEL_LATEST_ONLY' }, + ], +); +var BrowserEphemeralOption; +(function (BrowserEphemeralOption2) { + BrowserEphemeralOption2[(BrowserEphemeralOption2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + BrowserEphemeralOption2[(BrowserEphemeralOption2['SCREENSHOT'] = 1)] = + 'SCREENSHOT'; + BrowserEphemeralOption2[(BrowserEphemeralOption2['DOM'] = 2)] = 'DOM'; +})(BrowserEphemeralOption || (BrowserEphemeralOption = {})); +proto3.util.setEnumType( + BrowserEphemeralOption, + 'exa.cortex_pb.BrowserEphemeralOption', + [ + { no: 0, name: 'BROWSER_EPHEMERAL_OPTION_UNSPECIFIED' }, + { no: 1, name: 'BROWSER_EPHEMERAL_OPTION_SCREENSHOT' }, + { no: 2, name: 'BROWSER_EPHEMERAL_OPTION_DOM' }, + ], +); +var TrajectoryShareStatus; +(function (TrajectoryShareStatus2) { + TrajectoryShareStatus2[(TrajectoryShareStatus2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + TrajectoryShareStatus2[(TrajectoryShareStatus2['TEAM'] = 1)] = 'TEAM'; +})(TrajectoryShareStatus || (TrajectoryShareStatus = {})); +proto3.util.setEnumType( + TrajectoryShareStatus, + 'exa.cortex_pb.TrajectoryShareStatus', + [ + { no: 0, name: 'TRAJECTORY_SHARE_STATUS_UNSPECIFIED' }, + { no: 1, name: 'TRAJECTORY_SHARE_STATUS_TEAM' }, + ], +); +var RunExtensionCodeAutoRunDecision; +(function (RunExtensionCodeAutoRunDecision2) { + RunExtensionCodeAutoRunDecision2[ + (RunExtensionCodeAutoRunDecision2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + RunExtensionCodeAutoRunDecision2[ + (RunExtensionCodeAutoRunDecision2['ALLOWED'] = 1) + ] = 'ALLOWED'; + RunExtensionCodeAutoRunDecision2[ + (RunExtensionCodeAutoRunDecision2['DENIED'] = 2) + ] = 'DENIED'; + RunExtensionCodeAutoRunDecision2[ + (RunExtensionCodeAutoRunDecision2['MODEL_ALLOWED'] = 3) + ] = 'MODEL_ALLOWED'; + RunExtensionCodeAutoRunDecision2[ + (RunExtensionCodeAutoRunDecision2['MODEL_DENIED'] = 4) + ] = 'MODEL_DENIED'; +})(RunExtensionCodeAutoRunDecision || (RunExtensionCodeAutoRunDecision = {})); +proto3.util.setEnumType( + RunExtensionCodeAutoRunDecision, + 'exa.cortex_pb.RunExtensionCodeAutoRunDecision', + [ + { no: 0, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_UNSPECIFIED' }, + { no: 1, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_ALLOWED' }, + { no: 2, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_DENIED' }, + { no: 3, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_MODEL_ALLOWED' }, + { no: 4, name: 'RUN_EXTENSION_CODE_AUTO_RUN_DECISION_MODEL_DENIED' }, + ], +); +var TrajectorySearchIdType; +(function (TrajectorySearchIdType2) { + TrajectorySearchIdType2[(TrajectorySearchIdType2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + TrajectorySearchIdType2[(TrajectorySearchIdType2['CASCADE_ID'] = 1)] = + 'CASCADE_ID'; + TrajectorySearchIdType2[(TrajectorySearchIdType2['MAINLINE'] = 2)] = + 'MAINLINE'; +})(TrajectorySearchIdType || (TrajectorySearchIdType = {})); +proto3.util.setEnumType( + TrajectorySearchIdType, + 'exa.cortex_pb.TrajectorySearchIdType', + [ + { no: 0, name: 'TRAJECTORY_SEARCH_ID_TYPE_UNSPECIFIED' }, + { no: 1, name: 'TRAJECTORY_SEARCH_ID_TYPE_CASCADE_ID' }, + { no: 2, name: 'TRAJECTORY_SEARCH_ID_TYPE_MAINLINE' }, + ], +); +var CodeAcknowledgementScope; +(function (CodeAcknowledgementScope2) { + CodeAcknowledgementScope2[(CodeAcknowledgementScope2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + CodeAcknowledgementScope2[(CodeAcknowledgementScope2['FILE'] = 1)] = 'FILE'; + CodeAcknowledgementScope2[(CodeAcknowledgementScope2['ALL'] = 2)] = 'ALL'; + CodeAcknowledgementScope2[(CodeAcknowledgementScope2['HUNK'] = 3)] = 'HUNK'; +})(CodeAcknowledgementScope || (CodeAcknowledgementScope = {})); +proto3.util.setEnumType( + CodeAcknowledgementScope, + 'exa.cortex_pb.CodeAcknowledgementScope', + [ + { no: 0, name: 'CODE_ACKNOWLEDGEMENT_SCOPE_UNSPECIFIED' }, + { no: 1, name: 'CODE_ACKNOWLEDGEMENT_SCOPE_FILE' }, + { no: 2, name: 'CODE_ACKNOWLEDGEMENT_SCOPE_ALL' }, + { no: 3, name: 'CODE_ACKNOWLEDGEMENT_SCOPE_HUNK' }, + ], +); +var ArtifactReviewStatus; +(function (ArtifactReviewStatus2) { + ArtifactReviewStatus2[(ArtifactReviewStatus2['UNSPECIFIED'] = 0)] = + 'UNSPECIFIED'; + ArtifactReviewStatus2[(ArtifactReviewStatus2['PENDING_REVIEW'] = 1)] = + 'PENDING_REVIEW'; + ArtifactReviewStatus2[(ArtifactReviewStatus2['REVIEWED'] = 2)] = 'REVIEWED'; + ArtifactReviewStatus2[(ArtifactReviewStatus2['MODIFIED'] = 3)] = 'MODIFIED'; +})(ArtifactReviewStatus || (ArtifactReviewStatus = {})); +proto3.util.setEnumType( + ArtifactReviewStatus, + 'exa.cortex_pb.ArtifactReviewStatus', + [ + { no: 0, name: 'ARTIFACT_REVIEW_STATUS_UNSPECIFIED' }, + { no: 1, name: 'ARTIFACT_REVIEW_STATUS_PENDING_REVIEW' }, + { no: 2, name: 'ARTIFACT_REVIEW_STATUS_REVIEWED' }, + { no: 3, name: 'ARTIFACT_REVIEW_STATUS_MODIFIED' }, + ], +); +var WorkflowSpec = class _WorkflowSpec extends Message { + /** + * Path to the workflow file. + * + * @generated from field: string path = 1; + */ + path = ''; + /** + * Name of the workflow. + * + * @generated from field: string name = 2; + */ + name = ''; + /** + * Human-readable description (also used by model) + * + * @generated from field: string description = 3; + */ + description = ''; + /** + * Full content of the workflow. + * + * @generated from field: string content = 4; + */ + content = ''; + /** + * Whether to auto-run commands in this workflow. + * + * @generated from field: bool turbo = 5; + */ + turbo = false; + /** + * Whether this workflow is a built-in. + * + * @generated from field: bool is_builtin = 6; + */ + isBuiltin = false; + /** + * Scope of this workflow + * + * @generated from field: exa.cortex_pb.CortexMemoryScope scope = 7; + */ + scope; + /** + * Base directory of this workflow + * + * @generated from field: string base_dir = 8; + */ + baseDir = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.WorkflowSpec'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'turbo', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'is_builtin', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 7, name: 'scope', kind: 'message', T: CortexMemoryScope }, + { + no: 8, + name: 'base_dir', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _WorkflowSpec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkflowSpec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkflowSpec().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WorkflowSpec, a, b); + } +}; +var CortexPlanSummaryComponent = class _CortexPlanSummaryComponent extends Message { + /** + * @generated from oneof exa.cortex_pb.CortexPlanSummaryComponent.component + */ + component = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexPlanSummaryComponent'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'text', kind: 'scalar', T: 9, oneof: 'component' }, + { + no: 2, + name: 'citation', + kind: 'message', + T: ContextScopeItem, + oneof: 'component', + }, + ]); + static fromBinary(bytes, options) { + return new _CortexPlanSummaryComponent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexPlanSummaryComponent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexPlanSummaryComponent().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexPlanSummaryComponent, a, b); + } +}; +var CodingStepState = class _CodingStepState extends Message { + /** + * @generated from field: string plan_id = 1; + */ + planId = ''; + /** + * @generated from field: string goal = 2; + */ + goal = ''; + /** + * @generated from field: repeated exa.cortex_pb.ActionState action_states = 3; + */ + actionStates = []; + /** + * @generated from field: repeated exa.cortex_pb.CortexStepOutline outlines = 7; + */ + outlines = []; + /** + * @generated from field: repeated exa.cortex_pb.CortexPlanSummaryComponent summary_components = 8; + */ + summaryComponents = []; + /** + * @generated from field: string post_summary_text = 9; + */ + postSummaryText = ''; + /** + * Whether all steps of the coding plan are generated. + * + * @generated from field: bool plan_fully_generated = 4; + */ + planFullyGenerated = false; + /** + * Whether user has marked the plan as complete. + * + * @generated from field: bool plan_finished = 5; + */ + planFinished = false; + /** + * @generated from field: exa.cortex_pb.PlanDebugInfo debug_info = 6; + */ + debugInfo; + /** + * @generated from field: bool plan_summary_confirmed = 10; + */ + planSummaryConfirmed = false; + /** + * @generated from field: bool plan_summary_fully_generated = 11; + */ + planSummaryFullyGenerated = false; + /** + * @generated from field: repeated exa.context_module_pb.CciWithSubrangeWithRetrievalMetadata cci_list = 12; + */ + cciList = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodingStepState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'plan_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'goal', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'action_states', + kind: 'message', + T: ActionState, + repeated: true, + }, + { + no: 7, + name: 'outlines', + kind: 'message', + T: CortexStepOutline, + repeated: true, + }, + { + no: 8, + name: 'summary_components', + kind: 'message', + T: CortexPlanSummaryComponent, + repeated: true, + }, + { + no: 9, + name: 'post_summary_text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'plan_fully_generated', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'plan_finished', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 6, name: 'debug_info', kind: 'message', T: PlanDebugInfo }, + { + no: 10, + name: 'plan_summary_confirmed', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'plan_summary_fully_generated', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 12, + name: 'cci_list', + kind: 'message', + T: CciWithSubrangeWithRetrievalMetadata, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CodingStepState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodingStepState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodingStepState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodingStepState, a, b); + } +}; +var CortexPlanState = class _CortexPlanState extends Message { + /** + * @generated from field: repeated exa.cortex_pb.CortexStepState steps = 1; + */ + steps = []; + /** + * Outline will be populated while the plan is generated. + * + * @generated from field: repeated exa.cortex_pb.CortexStepOutline outlines = 2; + */ + outlines = []; + /** + * @generated from field: uint32 current_step_index = 3; + */ + currentStepIndex = 0; + /** + * @generated from field: exa.cortex_pb.PlanDebugInfo debug_info = 4; + */ + debugInfo; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexPlanState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'steps', + kind: 'message', + T: CortexStepState, + repeated: true, + }, + { + no: 2, + name: 'outlines', + kind: 'message', + T: CortexStepOutline, + repeated: true, + }, + { + no: 3, + name: 'current_step_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 4, name: 'debug_info', kind: 'message', T: PlanDebugInfo }, + ]); + static fromBinary(bytes, options) { + return new _CortexPlanState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexPlanState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexPlanState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexPlanState, a, b); + } +}; +var CortexStepOutline = class _CortexStepOutline extends Message { + /** + * Step numbers are 1-indexed. + * + * @generated from field: uint32 step_number = 1; + */ + stepNumber = 0; + /** + * @generated from field: string action_name = 2; + */ + actionName = ''; + /** + * @generated from field: string json_args = 3; + */ + jsonArgs = ''; + /** + * @generated from field: repeated uint32 parent_step_numbers = 4; + */ + parentStepNumbers = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepOutline'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'step_number', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'action_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'json_args', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'parent_step_numbers', + kind: 'scalar', + T: 13, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepOutline().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepOutline().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepOutline().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepOutline, a, b); + } +}; +var CortexStepState = class _CortexStepState extends Message { + /** + * @generated from oneof exa.cortex_pb.CortexStepState.step + */ + step = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'coding', + kind: 'message', + T: CodingStepState, + oneof: 'step', + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepState, a, b); + } +}; +var CortexResearchState = class _CortexResearchState extends Message { + /** + * @generated from field: uint32 total_retrieved_count = 1; + */ + totalRetrievedCount = 0; + /** + * TODO(matt): Eventually, this will be a map from query to research result. + * TODO(matt): Once we have research steps, decide what goes into the research + * state vs a research step state. + * + * @generated from field: repeated exa.codeium_common_pb.CciWithSubrange top_retrieved_items = 2; + */ + topRetrievedItems = []; + /** + * Only populated in offline usages. + * + * @generated from field: exa.cortex_pb.ResearchDebugInfo debug_info = 3; + */ + debugInfo; + /** + * @generated from field: repeated exa.codeium_common_pb.CciWithSubrange full_cci_list = 4; + */ + fullCciList = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexResearchState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'total_retrieved_count', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'top_retrieved_items', + kind: 'message', + T: CciWithSubrange, + repeated: true, + }, + { no: 3, name: 'debug_info', kind: 'message', T: ResearchDebugInfo }, + { + no: 4, + name: 'full_cci_list', + kind: 'message', + T: CciWithSubrange, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexResearchState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexResearchState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexResearchState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexResearchState, a, b); + } +}; +var ResearchDebugInfo = class _ResearchDebugInfo extends Message { + /** + * @generated from field: string query = 1; + */ + query = ''; + /** + * List of relative paths of files considered by the query. + * + * @generated from field: repeated string files_scanned = 2; + */ + filesScanned = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ResearchDebugInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'files_scanned', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _ResearchDebugInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ResearchDebugInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ResearchDebugInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ResearchDebugInfo, a, b); + } +}; +var CortexWorkflowState = class _CortexWorkflowState extends Message { + /** + * Where the cortex request came from. + * + * @generated from field: exa.cortex_pb.CortexRequestSource request_source = 6; + */ + requestSource = CortexRequestSource.UNSPECIFIED; + /** + * Input state. + * + * @generated from field: string goal = 1; + */ + goal = ''; + /** + * @generated from field: exa.cortex_pb.PlanInput plan_input = 2; + */ + planInput; + /** + * Research state. + * + * @generated from field: exa.cortex_pb.CortexResearchState research_state = 3; + */ + researchState; + /** + * Macro-plan state. + * + * @generated from field: exa.cortex_pb.CortexPlanState plan_state = 4; + */ + planState; + /** + * Error state. + * TODO(matt): Consider moving this up a level. + * + * @generated from field: string error = 5; + */ + error = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexWorkflowState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 6, + name: 'request_source', + kind: 'enum', + T: proto3.getEnumType(CortexRequestSource), + }, + { + no: 1, + name: 'goal', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'plan_input', kind: 'message', T: PlanInput }, + { no: 3, name: 'research_state', kind: 'message', T: CortexResearchState }, + { no: 4, name: 'plan_state', kind: 'message', T: CortexPlanState }, + { + no: 5, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexWorkflowState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexWorkflowState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexWorkflowState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexWorkflowState, a, b); + } +}; +var CortexRunState = class _CortexRunState extends Message { + /** + * Workflow state contains all of the cortex-specific information + * and context accumulated throughout the execution. + * + * @generated from field: exa.cortex_pb.CortexWorkflowState workflow_state = 1; + */ + workflowState; + /** + * Execution state contains generic information about the graph execution. + * + * @generated from field: exa.codeium_common_pb.GraphExecutionState execution_state = 2; + */ + executionState; + /** + * Cortex graph is done executing. + * + * @generated from field: bool done = 3; + */ + done = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexRunState'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'workflow_state', kind: 'message', T: CortexWorkflowState }, + { no: 2, name: 'execution_state', kind: 'message', T: GraphExecutionState }, + { + no: 3, + name: 'done', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexRunState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexRunState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexRunState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexRunState, a, b); + } +}; +var PlanInput = class _PlanInput extends Message { + /** + * @generated from field: string goal = 1; + */ + goal = ''; + /** + * @generated from field: repeated string next_steps = 5; + */ + nextSteps = []; + /** + * Absolute path of target directories to retrieve context over for planning. + * + * @generated from field: repeated string target_directories = 2; + */ + targetDirectories = []; + /** + * @generated from field: repeated string target_files = 3; + */ + targetFiles = []; + /** + * Optionally provided. + * + * @generated from field: repeated exa.codeium_common_pb.ContextScopeItem scope_items = 4; + */ + scopeItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PlanInput'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'goal', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'next_steps', kind: 'scalar', T: 9, repeated: true }, + { no: 2, name: 'target_directories', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'target_files', kind: 'scalar', T: 9, repeated: true }, + { + no: 4, + name: 'scope_items', + kind: 'message', + T: ContextScopeItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _PlanInput().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlanInput().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlanInput().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlanInput, a, b); + } +}; +var ActionSpec = class _ActionSpec extends Message { + /** + * @generated from oneof exa.cortex_pb.ActionSpec.spec + */ + spec = { case: void 0 }; + /** + * @generated from field: repeated uint32 parent_step_indices = 3; + */ + parentStepIndices = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionSpec'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'command', + kind: 'message', + T: ActionSpecCommand, + oneof: 'spec', + }, + { + no: 2, + name: 'create_file', + kind: 'message', + T: ActionSpecCreateFile, + oneof: 'spec', + }, + { + no: 4, + name: 'delete_file', + kind: 'message', + T: ActionSpecDeleteFile, + oneof: 'spec', + }, + { + no: 3, + name: 'parent_step_indices', + kind: 'scalar', + T: 13, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ActionSpec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionSpec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionSpec().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionSpec, a, b); + } +}; +var ActionSpecCreateFile = class _ActionSpecCreateFile extends Message { + /** + * @generated from field: string instruction = 1; + */ + instruction = ''; + /** + * @generated from field: exa.codeium_common_pb.PathScopeItem path = 2; + */ + path; + /** + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem reference_ccis = 3; + */ + referenceCcis = []; + /** + * @generated from field: bool overwrite = 4; + */ + overwrite = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionSpecCreateFile'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'instruction', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'path', kind: 'message', T: PathScopeItem }, + { + no: 3, + name: 'reference_ccis', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { + no: 4, + name: 'overwrite', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ActionSpecCreateFile().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionSpecCreateFile().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionSpecCreateFile().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionSpecCreateFile, a, b); + } +}; +var ActionSpecDeleteFile = class _ActionSpecDeleteFile extends Message { + /** + * @generated from field: exa.codeium_common_pb.PathScopeItem path = 1; + */ + path; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionSpecDeleteFile'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'path', kind: 'message', T: PathScopeItem }, + ]); + static fromBinary(bytes, options) { + return new _ActionSpecDeleteFile().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionSpecDeleteFile().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionSpecDeleteFile().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionSpecDeleteFile, a, b); + } +}; +var LineRangeTarget = class _LineRangeTarget extends Message { + /** + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * @generated from field: uint32 start_line = 2; + */ + startLine = 0; + /** + * Exclusive + * + * @generated from field: uint32 end_line = 3; + */ + endLine = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.LineRangeTarget'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'start_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'end_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _LineRangeTarget().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LineRangeTarget().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LineRangeTarget().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LineRangeTarget, a, b); + } +}; +var CommandContentTarget = class _CommandContentTarget extends Message { + /** + * @generated from field: string content = 1; + */ + content = ''; + /** + * @generated from field: string absolute_uri = 2; + */ + absoluteUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CommandContentTarget'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CommandContentTarget().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CommandContentTarget().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CommandContentTarget().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CommandContentTarget, a, b); + } +}; +var ReplacementChunk = class _ReplacementChunk extends Message { + /** + * @generated from field: string target_content = 1; + */ + targetContent = ''; + /** + * @generated from field: string replacement_content = 2; + */ + replacementContent = ''; + /** + * @generated from field: bool allow_multiple = 3; + */ + allowMultiple = false; + /** + * @generated from field: bool target_has_carriage_return = 4; + */ + targetHasCarriageReturn = false; + /** + * Only used by the apply_patch variant. The model can specify context lines + * with the "@@" prefix to specify the target's scope. The handler will search + * for the target content after these lines. + * + * @generated from field: repeated string context_lines = 5; + */ + contextLines = []; + /** + * 1-indexed, inclusive. 0 is treated as 1. + * + * @generated from field: int32 start_line = 6; + */ + startLine = 0; + /** + * 1-indexed, inclusive. 0 is treated as n, where n is + * + * @generated from field: int32 end_line = 7; + */ + endLine = 0; + /** + * the number of lines in the file. + * + * @generated from field: exa.cortex_pb.AcknowledgementType acknowledgement_type = 11; + */ + acknowledgementType = AcknowledgementType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ReplacementChunk'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'target_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'replacement_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'allow_multiple', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'target_has_carriage_return', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 5, name: 'context_lines', kind: 'scalar', T: 9, repeated: true }, + { + no: 6, + name: 'start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 7, + name: 'end_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 11, + name: 'acknowledgement_type', + kind: 'enum', + T: proto3.getEnumType(AcknowledgementType), + }, + ]); + static fromBinary(bytes, options) { + return new _ReplacementChunk().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ReplacementChunk().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ReplacementChunk().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ReplacementChunk, a, b); + } +}; +var ActionSpecCommand = class _ActionSpecCommand extends Message { + /** + * @generated from field: string instruction = 1; + */ + instruction = ''; + /** + * @generated from field: repeated exa.cortex_pb.ReplacementChunk replacement_chunks = 9; + */ + replacementChunks = []; + /** + * @generated from field: bool is_edit = 2; + */ + isEdit = false; + /** + * @generated from field: bool use_fast_apply = 8; + */ + useFastApply = false; + /** + * @generated from oneof exa.cortex_pb.ActionSpecCommand.target + */ + target = { case: void 0 }; + /** + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem reference_ccis = 5; + */ + referenceCcis = []; + /** + * Classification of the edit for interactive cascade (e.g. continuing user's + * work, bug fix) + * + * @generated from field: string classification = 11; + */ + classification = ''; + /** + * Importance of the edit proposed by interactive cascade (e.g. high, medium, + * low) + * + * @generated from field: exa.cortex_pb.InteractiveCascadeEditImportance importance = 12; + */ + importance = InteractiveCascadeEditImportance.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionSpecCommand'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'instruction', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'replacement_chunks', + kind: 'message', + T: ReplacementChunk, + repeated: true, + }, + { + no: 2, + name: 'is_edit', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 8, + name: 'use_fast_apply', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'code_context', + kind: 'message', + T: CodeContextItem, + oneof: 'target', + }, + { no: 4, name: 'file', kind: 'message', T: PathScopeItem, oneof: 'target' }, + { + no: 6, + name: 'cci_with_subrange', + kind: 'message', + T: CciWithSubrange, + oneof: 'target', + }, + { + no: 7, + name: 'line_range', + kind: 'message', + T: LineRangeTarget, + oneof: 'target', + }, + { + no: 10, + name: 'content_target', + kind: 'message', + T: CommandContentTarget, + oneof: 'target', + }, + { + no: 5, + name: 'reference_ccis', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { + no: 11, + name: 'classification', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'importance', + kind: 'enum', + T: proto3.getEnumType(InteractiveCascadeEditImportance), + }, + ]); + static fromBinary(bytes, options) { + return new _ActionSpecCommand().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionSpecCommand().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionSpecCommand().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionSpecCommand, a, b); + } +}; +var ActionState = class _ActionState extends Message { + /** + * @generated from field: string step_id = 5; + */ + stepId = ''; + /** + * @generated from field: exa.cortex_pb.ActionStatus status = 1; + */ + status = ActionStatus.UNSPECIFIED; + /** + * @generated from field: exa.cortex_pb.ActionSpec spec = 2; + */ + spec; + /** + * Optional information about the side-effects produced by this action. + * + * @generated from field: exa.cortex_pb.ActionResult result = 3; + */ + result; + /** + * @generated from field: string error = 4; + */ + error = ''; + /** + * Incremented when action is edited by the user in any way. + * + * @generated from field: uint32 step_version = 6; + */ + stepVersion = 0; + /** + * Incremented when the coding plan is re-planned. + * + * @generated from field: uint32 plan_version = 7; + */ + planVersion = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 5, + name: 'step_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(ActionStatus), + }, + { no: 2, name: 'spec', kind: 'message', T: ActionSpec }, + { no: 3, name: 'result', kind: 'message', T: ActionResult }, + { + no: 4, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'step_version', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'plan_version', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ActionState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionState, a, b); + } +}; +var ActionResult = class _ActionResult extends Message { + /** + * @generated from oneof exa.cortex_pb.ActionResult.result + */ + result = { case: void 0 }; + /** + * If true and action_result is not empty, will not overwrite the result but + * rather just apply it directly + * + * @generated from field: bool apply_existing_result = 2; + */ + applyExistingResult = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionResult'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'edit', + kind: 'message', + T: ActionResultEdit, + oneof: 'result', + }, + { + no: 2, + name: 'apply_existing_result', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ActionResult().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionResult().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionResult().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionResult, a, b); + } +}; +var ActionDebugInfo = class _ActionDebugInfo extends Message { + /** + * @generated from field: repeated exa.cortex_pb.ActionDebugInfo.DebugInfoEntry entries = 1; + */ + entries = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionDebugInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'entries', + kind: 'message', + T: ActionDebugInfo_DebugInfoEntry, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ActionDebugInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionDebugInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionDebugInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionDebugInfo, a, b); + } +}; +var ActionDebugInfo_DebugInfoEntry = class _ActionDebugInfo_DebugInfoEntry extends Message { + /** + * @generated from field: string key = 1; + */ + key = ''; + /** + * @generated from field: string value = 2; + */ + value = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionDebugInfo.DebugInfoEntry'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'value', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ActionDebugInfo_DebugInfoEntry().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionDebugInfo_DebugInfoEntry().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionDebugInfo_DebugInfoEntry().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ActionDebugInfo_DebugInfoEntry, a, b); + } +}; +var ActionResultEdit = class _ActionResultEdit extends Message { + /** + * @generated from field: string absolute_path_migrate_me_to_uri = 1 [deprecated = true]; + * @deprecated + */ + absolutePathMigrateMeToUri = ''; + /** + * @generated from field: exa.diff_action_pb.DiffBlock diff = 2; + */ + diff; + /** + * @generated from field: string context_prefix = 3; + */ + contextPrefix = ''; + /** + * @generated from field: string context_suffix = 4; + */ + contextSuffix = ''; + /** + * @generated from field: exa.cortex_pb.ActionDebugInfo debug_info = 5; + */ + debugInfo; + /** + * this is the id of the prompt that was input into the model + * + * @generated from field: string prompt_id = 12; + */ + promptId = ''; + /** + * this is the id of the completion generated from the model + * + * @generated from field: string completion_id = 6; + */ + completionId = ''; + /** + * This is the sha256 hash of the file contents at the time the diff was + * generated. This is used to check for staleness of the diff to see if it can + * still be applied properly. + * + * @generated from field: string file_content_hash = 7; + */ + fileContentHash = ''; + /** + * @generated from field: string absolute_uri = 8; + */ + absoluteUri = ''; + /** + * Result CCIs are currently not populated. + * + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem result_ccis = 9; + */ + resultCcis = []; + /** + * Full content of the file prior to applying the diff. + * + * @generated from field: string original_content = 10; + */ + originalContent = ''; + /** + * @generated from field: bool create_file = 11; + */ + createFile = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActionResultEdit'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path_migrate_me_to_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'diff', kind: 'message', T: DiffBlock }, + { + no: 3, + name: 'context_prefix', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'context_suffix', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'debug_info', kind: 'message', T: ActionDebugInfo }, + { + no: 12, + name: 'prompt_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'completion_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'file_content_hash', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'result_ccis', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { + no: 10, + name: 'original_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 11, + name: 'create_file', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ActionResultEdit().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActionResultEdit().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActionResultEdit().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActionResultEdit, a, b); + } +}; +var RetrievalStatus = class _RetrievalStatus extends Message { + /** + * @generated from field: uint32 total_retrieved_count = 1; + */ + totalRetrievedCount = 0; + /** + * @generated from field: repeated exa.codeium_common_pb.CciWithSubrange top_retrieved_items = 2; + */ + topRetrievedItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.RetrievalStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'total_retrieved_count', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'top_retrieved_items', + kind: 'message', + T: CciWithSubrange, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _RetrievalStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RetrievalStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RetrievalStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RetrievalStatus, a, b); + } +}; +var PlanState = class _PlanState extends Message { + /** + * @generated from field: exa.cortex_pb.PlanStatus status = 4; + */ + status = PlanStatus2.UNSPECIFIED; + /** + * @generated from field: string plan_id = 1; + */ + planId = ''; + /** + * @generated from field: exa.cortex_pb.PlanInput plan_input = 2; + */ + planInput; + /** + * @generated from field: repeated exa.cortex_pb.ActionState actions = 3; + */ + actions = []; + /** + * @generated from field: exa.cortex_pb.RetrievalStatus retrieval_status = 6; + */ + retrievalStatus; + /** + * @generated from field: string error = 5; + */ + error = ''; + /** + * @generated from field: exa.cortex_pb.PlanDebugInfo debug_info = 7; + */ + debugInfo; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PlanState'; + static fields = proto3.util.newFieldList(() => [ + { no: 4, name: 'status', kind: 'enum', T: proto3.getEnumType(PlanStatus2) }, + { + no: 1, + name: 'plan_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'plan_input', kind: 'message', T: PlanInput }, + { no: 3, name: 'actions', kind: 'message', T: ActionState, repeated: true }, + { no: 6, name: 'retrieval_status', kind: 'message', T: RetrievalStatus }, + { + no: 5, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 7, name: 'debug_info', kind: 'message', T: PlanDebugInfo }, + ]); + static fromBinary(bytes, options) { + return new _PlanState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlanState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlanState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlanState, a, b); + } +}; +var PlanDebugInfo = class _PlanDebugInfo extends Message { + /** + * @generated from field: string raw_response = 1; + */ + rawResponse = ''; + /** + * @generated from field: uint32 plan_tokens = 2; + */ + planTokens = 0; + /** + * @generated from field: float plan_cost = 3; + */ + planCost = 0; + /** + * @generated from field: string system_prompt = 4; + */ + systemPrompt = ''; + /** + * @generated from field: repeated exa.chat_pb.ChatMessagePrompt message_prompts = 5; + */ + messagePrompts = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PlanDebugInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'raw_response', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'plan_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'plan_cost', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 4, + name: 'system_prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'message_prompts', + kind: 'message', + T: ChatMessagePrompt, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _PlanDebugInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlanDebugInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlanDebugInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlanDebugInfo, a, b); + } +}; +var CortexPlanConfig = class _CortexPlanConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.ChatNodeConfig model_config = 1; + */ + modelConfig; + /** + * Nominal continuations unconditionally requests the planner to add more + * steps. + * + * @generated from field: uint32 max_nominal_continuations = 2; + */ + maxNominalContinuations = 0; + /** + * Error continuation is triggered when a step is failed to be parsed. + * + * @generated from field: uint32 max_error_continuations = 3; + */ + maxErrorContinuations = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexPlanConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model_config', kind: 'message', T: ChatNodeConfig }, + { + no: 2, + name: 'max_nominal_continuations', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'max_error_continuations', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexPlanConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexPlanConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexPlanConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexPlanConfig, a, b); + } +}; +var CortexConfig = class _CortexConfig extends Message { + /** + * Overall configurations. + * + * @generated from field: bool record_telemetry = 11; + */ + recordTelemetry = false; + /** + * [Node: distill] + * + * @generated from field: bool add_distill_node = 6; + */ + addDistillNode = false; + /** + * @generated from field: exa.codeium_common_pb.ChatNodeConfig distill_config = 10; + */ + distillConfig; + /** + * [Node: research] + * + * @generated from field: exa.codeium_common_pb.MQueryConfig m_query_config = 8; + */ + mQueryConfig; + /** + * @generated from field: string m_query_model_name = 12; + */ + mQueryModelName = ''; + /** + * [Node: macro_planner] + * + * @generated from field: bool use_macro_planner = 1; + */ + useMacroPlanner = false; + /** + * @generated from field: exa.cortex_pb.CortexPlanConfig macro_plan_config = 4; + */ + macroPlanConfig; + /** + * [Node: coder] + * This is only ingested by the individual CodePlan actions. + * + * @generated from field: exa.cortex_pb.PlanConfig plan_config = 9; + */ + planConfig; + /** + * [Node: coder.code_planner] + * + * @generated from field: exa.cortex_pb.CortexPlanConfig code_plan_config = 5; + */ + codePlanConfig; + /** + * [Node: coder.prepare_apply_all]. + * + * Replaces [Node: coder.wait_finish] with + * + * @generated from field: bool auto_prepare_apply = 2; + */ + autoPrepareApply = false; + /** + * [Node: coder.prepare_apply_all] + * + * Number of times to automatically retry preparing actions. Only + * + * @generated from field: uint32 num_prepare_retries = 3; + */ + numPrepareRetries = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 11, + name: 'record_telemetry', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'add_distill_node', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 10, name: 'distill_config', kind: 'message', T: ChatNodeConfig }, + { no: 8, name: 'm_query_config', kind: 'message', T: MQueryConfig }, + { + no: 12, + name: 'm_query_model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'use_macro_planner', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 4, name: 'macro_plan_config', kind: 'message', T: CortexPlanConfig }, + { no: 9, name: 'plan_config', kind: 'message', T: PlanConfig }, + { no: 5, name: 'code_plan_config', kind: 'message', T: CortexPlanConfig }, + { + no: 2, + name: 'auto_prepare_apply', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'num_prepare_retries', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexConfig, a, b); + } +}; +var PlanConfig = class _PlanConfig extends Message { + /** + * @generated from field: string plan_model_name = 1; + */ + planModelName = ''; + /** + * @generated from field: uint32 max_tokens_per_plan = 2; + */ + maxTokensPerPlan = 0; + /** + * @generated from field: float max_token_fraction = 3; + */ + maxTokenFraction = 0; + /** + * @generated from field: float chat_temperature = 4; + */ + chatTemperature = 0; + /** + * @generated from field: uint64 chat_completion_max_tokens = 5; + */ + chatCompletionMaxTokens = protoInt64.zero; + /** + * @generated from field: bool augment_command = 9; + */ + augmentCommand = false; + /** + * @generated from field: exa.codeium_common_pb.ExperimentConfig experiment_config = 7; + */ + experimentConfig; + /** + * @generated from field: exa.codeium_common_pb.MQueryConfig m_query_config = 8; + */ + mQueryConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PlanConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'plan_model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'max_tokens_per_plan', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'max_token_fraction', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 4, + name: 'chat_temperature', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 5, + name: 'chat_completion_max_tokens', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 9, + name: 'augment_command', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 7, name: 'experiment_config', kind: 'message', T: ExperimentConfig }, + { no: 8, name: 'm_query_config', kind: 'message', T: MQueryConfig }, + ]); + static fromBinary(bytes, options) { + return new _PlanConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlanConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlanConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlanConfig, a, b); + } +}; +var CortexPlanSummary = class _CortexPlanSummary extends Message { + /** + * @generated from field: string cortex_id = 1; + */ + cortexId = ''; + /** + * @generated from field: exa.cortex_pb.PlanInput plan_input = 2; + */ + planInput; + /** + * @generated from field: google.protobuf.Timestamp created_at = 3; + */ + createdAt; + /** + * @generated from field: bool done = 4; + */ + done = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexPlanSummary'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cortex_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'plan_input', kind: 'message', T: PlanInput }, + { no: 3, name: 'created_at', kind: 'message', T: Timestamp }, + { + no: 4, + name: 'done', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexPlanSummary().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexPlanSummary().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexPlanSummary().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexPlanSummary, a, b); + } +}; +var WorkspaceInitializationData = class _WorkspaceInitializationData extends Message { + /** + * @generated from field: exa.cortex_pb.WorkspaceType workspace_type = 1; + */ + workspaceType = WorkspaceType.UNSPECIFIED; + /** + * @generated from oneof exa.cortex_pb.WorkspaceInitializationData.data + */ + data = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.WorkspaceInitializationData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspace_type', + kind: 'enum', + T: proto3.getEnumType(WorkspaceType), + }, + { + no: 2, + name: 'git', + kind: 'message', + T: WorkspaceInitializationDataGit, + oneof: 'data', + }, + { + no: 3, + name: 'piper', + kind: 'message', + T: WorkspaceInitializationDataPiper, + oneof: 'data', + }, + ]); + static fromBinary(bytes, options) { + return new _WorkspaceInitializationData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkspaceInitializationData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkspaceInitializationData().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_WorkspaceInitializationData, a, b); + } +}; +var WorkspaceInitializationDataGit = class _WorkspaceInitializationDataGit extends Message { + /** + * @generated from field: exa.cortex_pb.CortexWorkspaceMetadata metadata = 1; + */ + metadata; + /** + * Commit hash between workspace and the default branch of the repository. + * + * @generated from field: string merge_base_commit_hash = 2; + */ + mergeBaseCommitHash = ''; + /** + * Patch between merge base and head commit. Will be nil if cleared or + * errored. Will be empty string if the diff is zero. + * + * @generated from field: optional string merge_base_head_patch_string = 3; + */ + mergeBaseHeadPatchString; + /** + * Patch between head commit and current working directory. + * + * @generated from field: optional string head_working_patch_string = 4; + */ + headWorkingPatchString; + /** + * Statistics about the workspace. May not be fully complete. + * + * @generated from field: exa.codeium_common_pb.WorkspaceStats workspace_stats = 5; + */ + workspaceStats; + /** + * Whether the repository is publicly accessible. + * + * @generated from field: bool repo_is_public = 6; + */ + repoIsPublic = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.WorkspaceInitializationDataGit'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'metadata', kind: 'message', T: CortexWorkspaceMetadata }, + { + no: 2, + name: 'merge_base_commit_hash', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'merge_base_head_patch_string', + kind: 'scalar', + T: 9, + opt: true, + }, + { + no: 4, + name: 'head_working_patch_string', + kind: 'scalar', + T: 9, + opt: true, + }, + { no: 5, name: 'workspace_stats', kind: 'message', T: WorkspaceStats }, + { + no: 6, + name: 'repo_is_public', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _WorkspaceInitializationDataGit().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkspaceInitializationDataGit().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkspaceInitializationDataGit().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_WorkspaceInitializationDataGit, a, b); + } +}; +var WorkspaceInitializationDataPiper = class _WorkspaceInitializationDataPiper extends Message { + /** + * @generated from field: string workspace_folder_absolute_uri = 1; + */ + workspaceFolderAbsoluteUri = ''; + /** + * @generated from field: int64 base_cl = 2 [deprecated = true]; + * @deprecated + */ + baseCl = protoInt64.zero; + /** + * @generated from oneof exa.cortex_pb.WorkspaceInitializationDataPiper.base_state + */ + baseState = { case: void 0 }; + /** + * @generated from field: repeated exa.cortex_pb.FileDiff file_diffs = 3; + */ + fileDiffs = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.WorkspaceInitializationDataPiper'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspace_folder_absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'base_cl', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 5, + name: 'base_changelist', + kind: 'scalar', + T: 3, + oneof: 'base_state', + }, + { + no: 4, + name: 'citc_snapshot_id', + kind: 'scalar', + T: 3, + oneof: 'base_state', + }, + { no: 3, name: 'file_diffs', kind: 'message', T: FileDiff, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _WorkspaceInitializationDataPiper().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkspaceInitializationDataPiper().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkspaceInitializationDataPiper().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_WorkspaceInitializationDataPiper, a, b); + } +}; +var FileDiff = class _FileDiff extends Message { + /** + * like //depot/google3/third_party/jetski/cortex_pb/cortex.proto + * see go/piper-api#depot_file_path + * + * @generated from field: string depot_path = 1; + */ + depotPath = ''; + /** + * @generated from oneof exa.cortex_pb.FileDiff.file_op + */ + fileOp = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FileDiff'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'depot_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'add', kind: 'message', T: FileDiffAdd, oneof: 'file_op' }, + { + no: 3, + name: 'remove', + kind: 'message', + T: FileDiffRemove, + oneof: 'file_op', + }, + { + no: 4, + name: 'modify', + kind: 'message', + T: FileDiffModify, + oneof: 'file_op', + }, + ]); + static fromBinary(bytes, options) { + return new _FileDiff().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileDiff().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileDiff().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileDiff, a, b); + } +}; +var FileDiffAdd = class _FileDiffAdd extends Message { + /** + * @generated from field: string content = 1; + */ + content = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FileDiffAdd'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _FileDiffAdd().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileDiffAdd().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileDiffAdd().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileDiffAdd, a, b); + } +}; +var FileDiffRemove = class _FileDiffRemove extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FileDiffRemove'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _FileDiffRemove().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileDiffRemove().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileDiffRemove().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileDiffRemove, a, b); + } +}; +var FileDiffModify = class _FileDiffModify extends Message { + /** + * unified diff without header + * + * @generated from field: string diff = 1; + */ + diff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FileDiffModify'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _FileDiffModify().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileDiffModify().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileDiffModify().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileDiffModify, a, b); + } +}; +var StateInitializationData = class _StateInitializationData extends Message { + /** + * Timestamp that the state initialization data corresponds to. + * + * @generated from field: google.protobuf.Timestamp timestamp = 1; + */ + timestamp; + /** + * A unique id that represents this instance of state initialization data. + * Trajectories will be associated with this id. + * + * @generated from field: string state_id = 2; + */ + stateId = ''; + /** + * @generated from field: repeated exa.cortex_pb.WorkspaceInitializationData workspaces = 3; + */ + workspaces = []; + /** + * @generated from field: exa.cortex_pb.AritfactInitializationData artifacts = 4; + */ + artifacts; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.StateInitializationData'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'timestamp', kind: 'message', T: Timestamp }, + { + no: 2, + name: 'state_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'workspaces', + kind: 'message', + T: WorkspaceInitializationData, + repeated: true, + }, + { + no: 4, + name: 'artifacts', + kind: 'message', + T: AritfactInitializationData, + }, + ]); + static fromBinary(bytes, options) { + return new _StateInitializationData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StateInitializationData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StateInitializationData().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StateInitializationData, a, b); + } +}; +var AritfactInitializationData = class _AritfactInitializationData extends Message { + /** + * Absolute URI to the artifact directory corresponding to this trajectory. + * + * @generated from field: string artifact_dir_uri = 1; + */ + artifactDirUri = ''; + /** + * Absolute URI to the base artifact directory for all trajectories. + * + * @generated from field: string artifact_base_dir_uri = 2; + */ + artifactBaseDirUri = ''; + /** + * Map from relative file path to LZ4 compressed file content. + * + * @generated from field: map compressed_artifact_files = 3; + */ + compressedArtifactFiles = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.AritfactInitializationData'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'artifact_dir_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'artifact_base_dir_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'compressed_artifact_files', + kind: 'map', + K: 9, + V: { kind: 'scalar', - T: 13, - repeated: !0, + T: 12, + /* ScalarType.BYTES */ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - iE = class e extends r { - step = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'coding', kind: 'message', T: rE, oneof: 'step' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - oE = class e extends r { - totalRetrievedCount = 0; - topRetrievedItems = []; - debugInfo; - fullCciList = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexResearchState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'total_retrieved_count', kind: 'scalar', T: 13 }, - { - no: 2, - name: 'top_retrieved_items', - kind: 'message', - T: X, - repeated: !0, - }, - { no: 3, name: 'debug_info', kind: 'message', T: mE }, - { no: 4, name: 'full_cci_list', kind: 'message', T: X, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mE = class e extends r { - query = ''; - filesScanned = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ResearchDebugInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 2, name: 'files_scanned', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cE = class e extends r { - requestSource = hn.UNSPECIFIED; - goal = ''; - planInput; - researchState; - planState; - error = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexWorkflowState'; - static fields = a.util.newFieldList(() => [ - { no: 6, name: 'request_source', kind: 'enum', T: a.getEnumType(hn) }, - { no: 1, name: 'goal', kind: 'scalar', T: 9 }, - { no: 2, name: 'plan_input', kind: 'message', T: An }, - { no: 3, name: 'research_state', kind: 'message', T: oE }, - { no: 4, name: 'plan_state', kind: 'message', T: sE }, - { no: 5, name: 'error', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pI = class e extends r { - workflowState; - executionState; - done = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexRunState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workflow_state', kind: 'message', T: cE }, - { no: 2, name: 'execution_state', kind: 'message', T: Mt }, - { no: 3, name: 'done', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - An = class e extends r { - goal = ''; - nextSteps = []; - targetDirectories = []; - targetFiles = []; - scopeItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PlanInput'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'goal', kind: 'scalar', T: 9 }, - { no: 5, name: 'next_steps', kind: 'scalar', T: 9, repeated: !0 }, - { no: 2, name: 'target_directories', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'target_files', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'scope_items', kind: 'message', T: Un, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ba = class e extends r { - spec = { case: void 0 }; - parentStepIndices = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionSpec'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'command', kind: 'message', T: dE, oneof: 'spec' }, - { no: 2, name: 'create_file', kind: 'message', T: uE, oneof: 'spec' }, - { no: 4, name: 'delete_file', kind: 'message', T: lE, oneof: 'spec' }, - { - no: 3, - name: 'parent_step_indices', - kind: 'scalar', - T: 13, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - uE = class e extends r { - instruction = ''; - path; - referenceCcis = []; - overwrite = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionSpecCreateFile'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'instruction', kind: 'scalar', T: 9 }, - { no: 2, name: 'path', kind: 'message', T: dn }, - { no: 3, name: 'reference_ccis', kind: 'message', T: I, repeated: !0 }, - { no: 4, name: 'overwrite', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - lE = class e extends r { - path; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionSpecDeleteFile'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'path', kind: 'message', T: dn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - EE = class e extends r { - absoluteUri = ''; - startLine = 0; - endLine = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.LineRangeTarget'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'start_line', kind: 'scalar', T: 13 }, - { no: 3, name: 'end_line', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _E = class e extends r { - content = ''; - absoluteUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CommandContentTarget'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - { no: 2, name: 'absolute_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ne = class e extends r { - targetContent = ''; - replacementContent = ''; - allowMultiple = !1; - targetHasCarriageReturn = !1; - contextLines = []; - startLine = 0; - endLine = 0; - acknowledgementType = b.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ReplacementChunk'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'target_content', kind: 'scalar', T: 9 }, - { no: 2, name: 'replacement_content', kind: 'scalar', T: 9 }, - { no: 3, name: 'allow_multiple', kind: 'scalar', T: 8 }, - { no: 4, name: 'target_has_carriage_return', kind: 'scalar', T: 8 }, - { no: 5, name: 'context_lines', kind: 'scalar', T: 9, repeated: !0 }, - { no: 6, name: 'start_line', kind: 'scalar', T: 5 }, - { no: 7, name: 'end_line', kind: 'scalar', T: 5 }, - { - no: 11, - name: 'acknowledgement_type', - kind: 'enum', - T: a.getEnumType(b), - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dE = class e extends r { - instruction = ''; - replacementChunks = []; - isEdit = !1; - useFastApply = !1; - target = { case: void 0 }; - referenceCcis = []; - classification = ''; - importance = ia.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionSpecCommand'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'instruction', kind: 'scalar', T: 9 }, - { - no: 9, - name: 'replacement_chunks', - kind: 'message', - T: Ne, - repeated: !0, - }, - { no: 2, name: 'is_edit', kind: 'scalar', T: 8 }, - { no: 8, name: 'use_fast_apply', kind: 'scalar', T: 8 }, - { no: 3, name: 'code_context', kind: 'message', T: I, oneof: 'target' }, - { no: 4, name: 'file', kind: 'message', T: dn, oneof: 'target' }, - { - no: 6, - name: 'cci_with_subrange', - kind: 'message', - T: X, - oneof: 'target', - }, - { no: 7, name: 'line_range', kind: 'message', T: EE, oneof: 'target' }, - { - no: 10, - name: 'content_target', - kind: 'message', - T: _E, - oneof: 'target', - }, - { no: 5, name: 'reference_ccis', kind: 'message', T: I, repeated: !0 }, - { no: 11, name: 'classification', kind: 'scalar', T: 9 }, - { no: 12, name: 'importance', kind: 'enum', T: a.getEnumType(ia) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ds = class e extends r { - stepId = ''; - status = oa.UNSPECIFIED; - spec; - result; - error = ''; - stepVersion = 0; - planVersion = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionState'; - static fields = a.util.newFieldList(() => [ - { no: 5, name: 'step_id', kind: 'scalar', T: 9 }, - { no: 1, name: 'status', kind: 'enum', T: a.getEnumType(oa) }, - { no: 2, name: 'spec', kind: 'message', T: ba }, - { no: 3, name: 'result', kind: 'message', T: Se }, - { no: 4, name: 'error', kind: 'scalar', T: 9 }, - { no: 6, name: 'step_version', kind: 'scalar', T: 13 }, - { no: 7, name: 'plan_version', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Se = class e extends r { - result = { case: void 0 }; - applyExistingResult = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionResult'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'edit', kind: 'message', T: NE, oneof: 'result' }, - { no: 2, name: 'apply_existing_result', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - TE = class e extends r { - entries = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionDebugInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'entries', kind: 'message', T: fE, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fE = class e extends r { - key = ''; - value = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionDebugInfo.DebugInfoEntry'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'key', kind: 'scalar', T: 9 }, - { no: 2, name: 'value', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - NE = class e extends r { - absolutePathMigrateMeToUri = ''; - diff; - contextPrefix = ''; - contextSuffix = ''; - debugInfo; - promptId = ''; - completionId = ''; - fileContentHash = ''; - absoluteUri = ''; - resultCcis = []; - originalContent = ''; - createFile = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActionResultEdit'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path_migrate_me_to_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'diff', kind: 'message', T: an }, - { no: 3, name: 'context_prefix', kind: 'scalar', T: 9 }, - { no: 4, name: 'context_suffix', kind: 'scalar', T: 9 }, - { no: 5, name: 'debug_info', kind: 'message', T: TE }, - { no: 12, name: 'prompt_id', kind: 'scalar', T: 9 }, - { no: 6, name: 'completion_id', kind: 'scalar', T: 9 }, - { no: 7, name: 'file_content_hash', kind: 'scalar', T: 9 }, - { no: 8, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 9, name: 'result_ccis', kind: 'message', T: I, repeated: !0 }, - { no: 10, name: 'original_content', kind: 'scalar', T: 9 }, - { no: 11, name: 'create_file', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - SE = class e extends r { - totalRetrievedCount = 0; - topRetrievedItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.RetrievalStatus'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'total_retrieved_count', kind: 'scalar', T: 13 }, - { - no: 2, - name: 'top_retrieved_items', - kind: 'message', - T: X, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - OI = class e extends r { - status = ma.UNSPECIFIED; - planId = ''; - planInput; - actions = []; - retrievalStatus; - error = ''; - debugInfo; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PlanState'; - static fields = a.util.newFieldList(() => [ - { no: 4, name: 'status', kind: 'enum', T: a.getEnumType(ma) }, - { no: 1, name: 'plan_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'plan_input', kind: 'message', T: An }, - { no: 3, name: 'actions', kind: 'message', T: ds, repeated: !0 }, - { no: 6, name: 'retrieval_status', kind: 'message', T: SE }, - { no: 5, name: 'error', kind: 'scalar', T: 9 }, - { no: 7, name: 'debug_info', kind: 'message', T: qa }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qa = class e extends r { - rawResponse = ''; - planTokens = 0; - planCost = 0; - systemPrompt = ''; - messagePrompts = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PlanDebugInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'raw_response', kind: 'scalar', T: 9 }, - { no: 2, name: 'plan_tokens', kind: 'scalar', T: 13 }, - { no: 3, name: 'plan_cost', kind: 'scalar', T: 2 }, - { no: 4, name: 'system_prompt', kind: 'scalar', T: 9 }, - { no: 5, name: 'message_prompts', kind: 'message', T: v, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ts = class e extends r { - modelConfig; - maxNominalContinuations = 0; - maxErrorContinuations = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexPlanConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model_config', kind: 'message', T: yt }, - { no: 2, name: 'max_nominal_continuations', kind: 'scalar', T: 13 }, - { no: 3, name: 'max_error_continuations', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - AI = class e extends r { - recordTelemetry = !1; - addDistillNode = !1; - distillConfig; - mQueryConfig; - mQueryModelName = ''; - useMacroPlanner = !1; - macroPlanConfig; - planConfig; - codePlanConfig; - autoPrepareApply = !1; - numPrepareRetries = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexConfig'; - static fields = a.util.newFieldList(() => [ - { no: 11, name: 'record_telemetry', kind: 'scalar', T: 8 }, - { no: 6, name: 'add_distill_node', kind: 'scalar', T: 8 }, - { no: 10, name: 'distill_config', kind: 'message', T: yt }, - { no: 8, name: 'm_query_config', kind: 'message', T: ee }, - { no: 12, name: 'm_query_model_name', kind: 'scalar', T: 9 }, - { no: 1, name: 'use_macro_planner', kind: 'scalar', T: 8 }, - { no: 4, name: 'macro_plan_config', kind: 'message', T: Ts }, - { no: 9, name: 'plan_config', kind: 'message', T: IE }, - { no: 5, name: 'code_plan_config', kind: 'message', T: Ts }, - { no: 2, name: 'auto_prepare_apply', kind: 'scalar', T: 8 }, - { no: 3, name: 'num_prepare_retries', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - IE = class e extends r { - planModelName = ''; - maxTokensPerPlan = 0; - maxTokenFraction = 0; - chatTemperature = 0; - chatCompletionMaxTokens = o.zero; - augmentCommand = !1; - experimentConfig; - mQueryConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PlanConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'plan_model_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'max_tokens_per_plan', kind: 'scalar', T: 13 }, - { no: 3, name: 'max_token_fraction', kind: 'scalar', T: 2 }, - { no: 4, name: 'chat_temperature', kind: 'scalar', T: 2 }, - { no: 5, name: 'chat_completion_max_tokens', kind: 'scalar', T: 4 }, - { no: 9, name: 'augment_command', kind: 'scalar', T: 8 }, - { no: 7, name: 'experiment_config', kind: 'message', T: Zn }, - { no: 8, name: 'm_query_config', kind: 'message', T: ee }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - CI = class e extends r { - cortexId = ''; - planInput; - createdAt; - done = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexPlanSummary'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cortex_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'plan_input', kind: 'message', T: An }, - { no: 3, name: 'created_at', kind: 'message', T: _ }, - { no: 4, name: 'done', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pE = class e extends r { - workspaceType = Gn.UNSPECIFIED; - data = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.WorkspaceInitializationData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspace_type', kind: 'enum', T: a.getEnumType(Gn) }, - { no: 2, name: 'git', kind: 'message', T: OE, oneof: 'data' }, - { no: 3, name: 'piper', kind: 'message', T: AE, oneof: 'data' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - OE = class e extends r { - metadata; - mergeBaseCommitHash = ''; - mergeBaseHeadPatchString; - headWorkingPatchString; - workspaceStats; - repoIsPublic = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.WorkspaceInitializationDataGit'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'metadata', kind: 'message', T: fs }, - { no: 2, name: 'merge_base_commit_hash', kind: 'scalar', T: 9 }, - { - no: 3, - name: 'merge_base_head_patch_string', - kind: 'scalar', - T: 9, - opt: !0, - }, - { - no: 4, - name: 'head_working_patch_string', - kind: 'scalar', - T: 9, - opt: !0, - }, - { no: 5, name: 'workspace_stats', kind: 'message', T: Fr }, - { no: 6, name: 'repo_is_public', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - AE = class e extends r { - workspaceFolderAbsoluteUri = ''; - baseCl = o.zero; - baseState = { case: void 0 }; - fileDiffs = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.WorkspaceInitializationDataPiper'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspace_folder_absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'base_cl', kind: 'scalar', T: 3 }, - { - no: 5, - name: 'base_changelist', - kind: 'scalar', - T: 3, - oneof: 'base_state', - }, - { - no: 4, - name: 'citc_snapshot_id', - kind: 'scalar', - T: 3, - oneof: 'base_state', - }, - { no: 3, name: 'file_diffs', kind: 'message', T: CE, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - CE = class e extends r { - depotPath = ''; - fileOp = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FileDiff'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'depot_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'add', kind: 'message', T: RE, oneof: 'file_op' }, - { no: 3, name: 'remove', kind: 'message', T: LE, oneof: 'file_op' }, - { no: 4, name: 'modify', kind: 'message', T: PE, oneof: 'file_op' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - RE = class e extends r { - content = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FileDiffAdd'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - LE = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FileDiffRemove'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - PE = class e extends r { - diff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FileDiffModify'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - RI = class e extends r { - timestamp; - stateId = ''; - workspaces = []; - artifacts; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.StateInitializationData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'timestamp', kind: 'message', T: _ }, - { no: 2, name: 'state_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'workspaces', kind: 'message', T: pE, repeated: !0 }, - { no: 4, name: 'artifacts', kind: 'message', T: DE }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - DE = class e extends r { - artifactDirUri = ''; - artifactBaseDirUri = ''; - compressedArtifactFiles = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.AritfactInitializationData'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'artifact_dir_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'artifact_base_dir_uri', kind: 'scalar', T: 9 }, - { - no: 3, - name: 'compressed_artifact_files', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 12 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fs = class e extends r { - workspaceFolderAbsoluteUri = ''; - gitRootAbsoluteUri = ''; - repository; - branchName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexWorkspaceMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspace_folder_absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'git_root_absolute_uri', kind: 'scalar', T: 9 }, - { no: 3, name: 'repository', kind: 'message', T: Bt }, - { no: 4, name: 'branch_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ns = class e extends r { - workspaces = []; - createdAt; - initializationStateId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexTrajectoryMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspaces', kind: 'message', T: fs, repeated: !0 }, - { no: 2, name: 'created_at', kind: 'message', T: _ }, - { no: 3, name: 'initialization_state_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ss = class e extends r { - trajectoryId = ''; - trajectoryType = On.UNSPECIFIED; - stepIndex = 0; - stepType = j.UNSPECIFIED; - referenceType = ca.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexTrajectoryReference'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'trajectory_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'trajectory_type', kind: 'enum', T: a.getEnumType(On) }, - { no: 2, name: 'step_index', kind: 'scalar', T: 5 }, - { no: 4, name: 'step_type', kind: 'enum', T: a.getEnumType(j) }, - { no: 5, name: 'reference_type', kind: 'enum', T: a.getEnumType(ca) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - LI = class e extends r { - trajectoryId = ''; - trajectoryScope; - current = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ImplicitTrajectoryDescription'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'trajectory_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'trajectory_scope', kind: 'message', T: YE }, - { no: 3, name: 'current', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - kE = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.InjectedResponseMetadata'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Is = class e extends r { - stepIndices = []; - metadata = { case: void 0 }; - plannerConfig; - executionId = ''; - error = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepGeneratorMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'step_indices', kind: 'scalar', T: 13, repeated: !0 }, - { no: 1, name: 'chat_model', kind: 'message', T: xE, oneof: 'metadata' }, - { no: 7, name: 'injected', kind: 'message', T: kE, oneof: 'metadata' }, - { no: 3, name: 'planner_config', kind: 'message', T: Us }, - { no: 4, name: 'execution_id', kind: 'scalar', T: 9 }, - { no: 5, name: 'error', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gE = class e extends r { - messageIndex = 0; - segmentIndex = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.MessagePromptMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'message_index', kind: 'scalar', T: 13 }, - { no: 2, name: 'segment_index', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wE = class e extends r { - name = ''; - description = ''; - weight; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SectionJudgeCriteria'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'description', kind: 'scalar', T: 9 }, - { no: 3, name: 'weight', kind: 'scalar', T: 13, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - JE = class e extends r { - sourceType = Ha.UNSPECIFIED; - templateKey = ''; - isInternal = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PromptSectionMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'source_type', kind: 'enum', T: a.getEnumType(Ha) }, - { no: 2, name: 'template_key', kind: 'scalar', T: 9 }, - { no: 3, name: 'is_internal', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ha; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.RAW = 1)] = 'RAW'), - (e[(e.TEMPLATE = 2)] = 'TEMPLATE')); -})(Ha || (Ha = {})); -a.util.setEnumType( - Ha, + }, + ]); + static fromBinary(bytes, options) { + return new _AritfactInitializationData().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AritfactInitializationData().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AritfactInitializationData().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_AritfactInitializationData, a, b); + } +}; +var CortexWorkspaceMetadata = class _CortexWorkspaceMetadata extends Message { + /** + * @generated from field: string workspace_folder_absolute_uri = 1; + */ + workspaceFolderAbsoluteUri = ''; + /** + * @generated from field: string git_root_absolute_uri = 2; + */ + gitRootAbsoluteUri = ''; + /** + * @generated from field: exa.codeium_common_pb.Repository repository = 3; + */ + repository; + /** + * @generated from field: string branch_name = 4; + */ + branchName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexWorkspaceMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspace_folder_absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'git_root_absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'repository', kind: 'message', T: Repository }, + { + no: 4, + name: 'branch_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexWorkspaceMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexWorkspaceMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexWorkspaceMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexWorkspaceMetadata, a, b); + } +}; +var CortexTrajectoryMetadata = class _CortexTrajectoryMetadata extends Message { + /** + * @generated from field: repeated exa.cortex_pb.CortexWorkspaceMetadata workspaces = 1; + */ + workspaces = []; + /** + * @generated from field: google.protobuf.Timestamp created_at = 2; + */ + createdAt; + /** + * Corresponds to id of StateInitializationData + * + * @generated from field: string initialization_state_id = 3; + */ + initializationStateId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexTrajectoryMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspaces', + kind: 'message', + T: CortexWorkspaceMetadata, + repeated: true, + }, + { no: 2, name: 'created_at', kind: 'message', T: Timestamp }, + { + no: 3, + name: 'initialization_state_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexTrajectoryMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexTrajectoryMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexTrajectoryMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexTrajectoryMetadata, a, b); + } +}; +var CortexTrajectoryReference = class _CortexTrajectoryReference extends Message { + /** + * Id of the trajectory. + * + * @generated from field: string trajectory_id = 1; + */ + trajectoryId = ''; + /** + * Type of the referenced trajectory. + * + * @generated from field: exa.cortex_pb.CortexTrajectoryType trajectory_type = 3; + */ + trajectoryType = CortexTrajectoryType.UNSPECIFIED; + /** + * Index of a specific step in the trajectory (inclusive). + * For a pruning reference_type this means the FIRST step which is included in + * both parent and child + * + * 1 ----- 2 ----- 3 ----- 4 ----- 5 step_index = 3 + * 3 ----- 4 ----- 5 ----- 6' + * + * For a forking reference_type this means the LAST step which is included in + * both parent and child + * + * 1 ----- 2 ----- 3 ----- 4 ----- 5 step_index = 2 + * \ + * ----- 3`----- 4`----- 5`----- 6` + * + * + * @generated from field: int32 step_index = 2; + */ + stepIndex = 0; + /** + * Type of the step. + * + * @generated from field: exa.cortex_pb.CortexStepType step_type = 4; + */ + stepType = CortexStepType.UNSPECIFIED; + /** + * Reference type. + * + * @generated from field: exa.cortex_pb.CortexTrajectoryReferenceType reference_type = 5; + */ + referenceType = CortexTrajectoryReferenceType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexTrajectoryReference'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'trajectory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'trajectory_type', + kind: 'enum', + T: proto3.getEnumType(CortexTrajectoryType), + }, + { + no: 2, + name: 'step_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'step_type', + kind: 'enum', + T: proto3.getEnumType(CortexStepType), + }, + { + no: 5, + name: 'reference_type', + kind: 'enum', + T: proto3.getEnumType(CortexTrajectoryReferenceType), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexTrajectoryReference().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexTrajectoryReference().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexTrajectoryReference().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexTrajectoryReference, a, b); + } +}; +var ImplicitTrajectoryDescription = class _ImplicitTrajectoryDescription extends Message { + /** + * @generated from field: string trajectory_id = 1; + */ + trajectoryId = ''; + /** + * @generated from field: exa.cortex_pb.TrajectoryScope trajectory_scope = 2; + */ + trajectoryScope; + /** + * @generated from field: bool current = 3; + */ + current = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ImplicitTrajectoryDescription'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'trajectory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'trajectory_scope', kind: 'message', T: TrajectoryScope }, + { + no: 3, + name: 'current', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ImplicitTrajectoryDescription().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ImplicitTrajectoryDescription().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ImplicitTrajectoryDescription().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ImplicitTrajectoryDescription, a, b); + } +}; +var InjectedResponseMetadata = class _InjectedResponseMetadata extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.InjectedResponseMetadata'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _InjectedResponseMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _InjectedResponseMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _InjectedResponseMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_InjectedResponseMetadata, a, b); + } +}; +var CortexStepGeneratorMetadata = class _CortexStepGeneratorMetadata extends Message { + /** + * @generated from field: repeated uint32 step_indices = 2; + */ + stepIndices = []; + /** + * @generated from oneof exa.cortex_pb.CortexStepGeneratorMetadata.metadata + */ + metadata = { case: void 0 }; + /** + * @generated from field: exa.cortex_pb.CascadePlannerConfig planner_config = 3; + */ + plannerConfig; + /** + * Id of the execution that this generator was run in. + * + * @generated from field: string execution_id = 4; + */ + executionId = ''; + /** + * If an error interrupted the generation, this is the error message. + * + * @generated from field: string error = 5; + */ + error = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepGeneratorMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 2, name: 'step_indices', kind: 'scalar', T: 13, repeated: true }, + { + no: 1, + name: 'chat_model', + kind: 'message', + T: ChatModelMetadata, + oneof: 'metadata', + }, + { + no: 7, + name: 'injected', + kind: 'message', + T: InjectedResponseMetadata, + oneof: 'metadata', + }, + { no: 3, name: 'planner_config', kind: 'message', T: CascadePlannerConfig }, + { + no: 4, + name: 'execution_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepGeneratorMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepGeneratorMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepGeneratorMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepGeneratorMetadata, a, b); + } +}; +var MessagePromptMetadata = class _MessagePromptMetadata extends Message { + /** + * Index in the conversation. + * + * @generated from field: uint32 message_index = 1; + */ + messageIndex = 0; + /** + * In the nominal case, we make a request to the model with some messages: + * [Input1, Input2] And we receive some responses: [Output1, Output2]. The + * inputs will all have segment index 0, and responses will have segment + * index 1. In some cases, we may make repeated requests to the model in the + * same generator call, e.g in cases such as tool parse errors. For these, we + * will add additional inputs and outputs while incrementing the index in the + * same fashion. + * + * @generated from field: uint32 segment_index = 2; + */ + segmentIndex = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.MessagePromptMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'message_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'segment_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _MessagePromptMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MessagePromptMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MessagePromptMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MessagePromptMetadata, a, b); + } +}; +var SectionJudgeCriteria = class _SectionJudgeCriteria extends Message { + /** + * Name of the section, will be ingested by a criteria judge as a metric name. + * + * @generated from field: string name = 1; + */ + name = ''; + /** + * Description of the criteria that the section should be evaluated against. + * + * @generated from field: string description = 2; + */ + description = ''; + /** + * An optional weighting for the weighted average calculation. If not provided + * then will use a simple average. + * + * @generated from field: optional uint32 weight = 3; + */ + weight; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SectionJudgeCriteria'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'weight', kind: 'scalar', T: 13, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _SectionJudgeCriteria().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SectionJudgeCriteria().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SectionJudgeCriteria().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SectionJudgeCriteria, a, b); + } +}; +var PromptSectionMetadata = class _PromptSectionMetadata extends Message { + /** + * Source of the prompt content. + * + * @generated from field: exa.cortex_pb.PromptSectionMetadata.PromptSectionSourceType source_type = 1; + */ + sourceType = PromptSectionMetadata_PromptSectionSourceType.UNSPECIFIED; + /** + * Template key used to load the content. + * Only set when source_type = TEMPLATE. + * + * @generated from field: string template_key = 2; + */ + templateKey = ''; + /** + * Whether the template came from an internal source. + * Only set when source_type = TEMPLATE. + * + * @generated from field: bool is_internal = 3; + */ + isInternal = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PromptSectionMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'source_type', + kind: 'enum', + T: proto3.getEnumType(PromptSectionMetadata_PromptSectionSourceType), + }, + { + no: 2, + name: 'template_key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'is_internal', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _PromptSectionMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptSectionMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptSectionMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptSectionMetadata, a, b); + } +}; +var PromptSectionMetadata_PromptSectionSourceType; +(function (PromptSectionMetadata_PromptSectionSourceType2) { + PromptSectionMetadata_PromptSectionSourceType2[ + (PromptSectionMetadata_PromptSectionSourceType2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + PromptSectionMetadata_PromptSectionSourceType2[ + (PromptSectionMetadata_PromptSectionSourceType2['RAW'] = 1) + ] = 'RAW'; + PromptSectionMetadata_PromptSectionSourceType2[ + (PromptSectionMetadata_PromptSectionSourceType2['TEMPLATE'] = 2) + ] = 'TEMPLATE'; +})( + PromptSectionMetadata_PromptSectionSourceType || + (PromptSectionMetadata_PromptSectionSourceType = {}), +); +proto3.util.setEnumType( + PromptSectionMetadata_PromptSectionSourceType, 'exa.cortex_pb.PromptSectionMetadata.PromptSectionSourceType', [ { no: 0, name: 'PROMPT_SECTION_SOURCE_TYPE_UNSPECIFIED' }, @@ -23616,1910 +44312,3943 @@ a.util.setEnumType( { no: 2, name: 'PROMPT_SECTION_SOURCE_TYPE_TEMPLATE' }, ], ); -var Yn = class e extends r { - title = ''; - content = ''; - criteria = []; - metadata; - dynamicContent = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PromptSection'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'title', kind: 'scalar', T: 9 }, - { no: 2, name: 'content', kind: 'scalar', T: 9 }, - { no: 3, name: 'criteria', kind: 'message', T: wE, repeated: !0 }, - { no: 4, name: 'metadata', kind: 'message', T: JE }, - { no: 5, name: 'dynamic_content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ps = class e extends r { - sherlogLink = ''; - usage; - error = ''; - traceId = ''; - retryReason = ua.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.RetryInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'sherlog_link', kind: 'scalar', T: 9 }, - { no: 2, name: 'usage', kind: 'message', T: fn }, - { no: 3, name: 'error', kind: 'scalar', T: 9 }, - { no: 4, name: 'trace_id', kind: 'scalar', T: 9 }, - { no: 5, name: 'retry_reason', kind: 'enum', T: a.getEnumType(ua) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xE = class e extends r { - systemPrompt = ''; - messagePrompts = []; - messageMetadata = []; - model = f.UNSPECIFIED; - usage; - modelCost = 0; - lastCacheIndex = 0; - toolChoice; - tools = []; - chatStartMetadata; - timeToFirstToken; - streamingDuration; - creditCost = 0; - retries = 0; - completionConfig; - promptSections = []; - retryInfos = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ChatModelMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'system_prompt', kind: 'scalar', T: 9 }, - { no: 2, name: 'message_prompts', kind: 'message', T: v, repeated: !0 }, - { - no: 10, - name: 'message_metadata', - kind: 'message', - T: gE, - repeated: !0, - }, - { no: 3, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - { no: 4, name: 'usage', kind: 'message', T: fn }, - { no: 5, name: 'model_cost', kind: 'scalar', T: 2 }, - { no: 6, name: 'last_cache_index', kind: 'scalar', T: 13 }, - { no: 7, name: 'tool_choice', kind: 'message', T: zt }, - { no: 8, name: 'tools', kind: 'message', T: ue, repeated: !0 }, - { no: 9, name: 'chat_start_metadata', kind: 'message', T: BE }, - { no: 11, name: 'time_to_first_token', kind: 'message', T: k }, - { no: 12, name: 'streaming_duration', kind: 'message', T: k }, - { no: 13, name: 'credit_cost', kind: 'scalar', T: 5 }, - { no: 14, name: 'retries', kind: 'scalar', T: 13 }, - { no: 15, name: 'completion_config', kind: 'message', T: gt }, - { no: 16, name: 'prompt_sections', kind: 'message', T: Yn, repeated: !0 }, - { no: 17, name: 'retry_infos', kind: 'message', T: ps, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - UE = class e extends r { - estimatedTokensUsed = 0; - truncationReason = la.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ContextWindowMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'estimated_tokens_used', kind: 'scalar', T: 5 }, - { no: 2, name: 'truncation_reason', kind: 'enum', T: a.getEnumType(la) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Os = class e extends r { - index = 0; - options; - contentChecksum = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CacheBreakpointMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'index', kind: 'scalar', T: 13 }, - { no: 2, name: 'options', kind: 'message', T: vt }, - { no: 3, name: 'content_checksum', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - BE = class e extends r { - createdAt; - startStepIndex = 0; - checkpointIndex = 0; - stepsCoveredByCheckpoint = []; - latestStableMessageIndex = 0; - cacheBreakpoints = []; - systemPromptCache; - timeSinceLastInvocation; - cacheRequest; - contextWindowMetadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ChatStartMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 4, name: 'created_at', kind: 'message', T: _ }, - { no: 1, name: 'start_step_index', kind: 'scalar', T: 13 }, - { no: 2, name: 'checkpoint_index', kind: 'scalar', T: 5 }, - { - no: 3, - name: 'steps_covered_by_checkpoint', - kind: 'scalar', - T: 13, - repeated: !0, - }, - { no: 5, name: 'latest_stable_message_index', kind: 'scalar', T: 5 }, - { - no: 6, - name: 'cache_breakpoints', - kind: 'message', - T: Os, - repeated: !0, - }, - { no: 7, name: 'system_prompt_cache', kind: 'message', T: Os }, - { no: 8, name: 'time_since_last_invocation', kind: 'message', T: k }, - { no: 9, name: 'cache_request', kind: 'message', T: FE }, - { no: 10, name: 'context_window_metadata', kind: 'message', T: UE }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - FE = class e extends r { - enabled = !1; - cacheBreakpointIndices = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CacheRequestOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8 }, - { - no: 2, - name: 'cache_breakpoint_indices', - kind: 'scalar', - T: 13, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ME = class e extends r { - user = ''; - workspaceId = ''; - snapshotVersion = 0; - workspaceType = Gn.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SnapshotMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'user', kind: 'scalar', T: 9 }, - { no: 2, name: 'workspace_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'snapshot_version', kind: 'scalar', T: 13 }, - { no: 4, name: 'workspace_type', kind: 'enum', T: a.getEnumType(Gn) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yE = class e extends r { - updatedStatus = z.UNSPECIFIED; - timestamp; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.StatusTransition'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'updated_status', kind: 'enum', T: a.getEnumType(z) }, - { no: 2, name: 'timestamp', kind: 'message', T: _ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hE = class e extends r { - statusTransitions = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepInternalMetadata'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'status_transitions', - kind: 'message', - T: yE, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - As = class e extends r { - stepGenerationVersion = 0; - createdAt; - viewableAt; - finishedGeneratingAt; - lastCompletedChunkAt; - completedAt; - source = Ea.UNSPECIFIED; - toolCall; - argumentsOrder = []; - modelUsage; - retryInfos = []; - modelCost = 0; - generatorModel = f.UNSPECIFIED; - requestedModel; - modelInfo; - executionId = ''; - flowCreditsUsed = 0; - promptCreditsUsed = 0; - nonStandardCreditReasons = []; - toolCallChoices = []; - toolCallChoiceReason = ''; - cortexRequestSource = hn.UNSPECIFIED; - toolCallOutputTokens = 0; - sourceTrajectoryStepInfo; - snapshotMetadata; - internalMetadata; - waitForPreviousTools = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 21, name: 'step_generation_version', kind: 'scalar', T: 13 }, - { no: 1, name: 'created_at', kind: 'message', T: _ }, - { no: 6, name: 'viewable_at', kind: 'message', T: _ }, - { no: 7, name: 'finished_generating_at', kind: 'message', T: _ }, - { no: 22, name: 'last_completed_chunk_at', kind: 'message', T: _ }, - { no: 8, name: 'completed_at', kind: 'message', T: _ }, - { no: 3, name: 'source', kind: 'enum', T: a.getEnumType(Ea) }, - { no: 4, name: 'tool_call', kind: 'message', T: x }, - { no: 5, name: 'arguments_order', kind: 'scalar', T: 9, repeated: !0 }, - { no: 9, name: 'model_usage', kind: 'message', T: fn }, - { no: 28, name: 'retry_infos', kind: 'message', T: ps, repeated: !0 }, - { no: 10, name: 'model_cost', kind: 'scalar', T: 2 }, - { no: 11, name: 'generator_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 13, name: 'requested_model', kind: 'message', T: nn }, - { no: 24, name: 'model_info', kind: 'message', T: tn }, - { no: 12, name: 'execution_id', kind: 'scalar', T: 9 }, - { no: 14, name: 'flow_credits_used', kind: 'scalar', T: 5 }, - { no: 15, name: 'prompt_credits_used', kind: 'scalar', T: 5 }, - { - no: 18, - name: 'non_standard_credit_reasons', - kind: 'enum', - T: a.getEnumType(os), - repeated: !0, - }, - { - no: 16, - name: 'tool_call_choices', - kind: 'message', - T: x, - repeated: !0, - }, - { no: 17, name: 'tool_call_choice_reason', kind: 'scalar', T: 9 }, - { - no: 19, - name: 'cortex_request_source', - kind: 'enum', - T: a.getEnumType(hn), - }, - { no: 23, name: 'tool_call_output_tokens', kind: 'scalar', T: 5 }, - { no: 20, name: 'source_trajectory_step_info', kind: 'message', T: bE }, - { no: 25, name: 'snapshot_metadata', kind: 'message', T: ME }, - { no: 26, name: 'internal_metadata', kind: 'message', T: hE }, - { no: 27, name: 'wait_for_previous_tools', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - GE = class e extends r { - path = ''; - isDirectory = !1; - allow = !1; - scope = bn.UNSPECIFIED; - fromCurrentStep = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FileAccessPermission'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'path', kind: 'scalar', T: 9 }, - { no: 2, name: 'is_directory', kind: 'scalar', T: 8 }, - { no: 3, name: 'allow', kind: 'scalar', T: 8 }, - { no: 4, name: 'scope', kind: 'enum', T: a.getEnumType(bn) }, - { no: 5, name: 'from_current_step', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Cs = class e extends r { - fileAccessPermissions = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TrajectoryPermissions'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'file_access_permissions', - kind: 'message', - T: GE, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bE = class e extends r { - trajectoryId = ''; - stepIndex = 0; - metadataIndex = 0; - cascadeId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SourceTrajectoryStepInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'trajectory_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'step_index', kind: 'scalar', T: 13 }, - { no: 3, name: 'metadata_index', kind: 'scalar', T: 13 }, - { no: 4, name: 'cascade_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qE = class e extends r { - part = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.StructuredErrorPart'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'text', kind: 'scalar', T: 9, oneof: 'part' }, - { no: 2, name: 'file_uri', kind: 'scalar', T: 9, oneof: 'part' }, - { no: 3, name: 'directory_uri', kind: 'scalar', T: 9, oneof: 'part' }, - { no: 4, name: 'url', kind: 'scalar', T: 9, oneof: 'part' }, - { no: 5, name: 'code_text', kind: 'scalar', T: 9, oneof: 'part' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ie = class e extends r { - userErrorMessage = ''; - modelErrorMessage = ''; - structuredErrorParts = []; - shortError = ''; - fullError = ''; - isBenign = !1; - errorCode = 0; - details = ''; - errorId = ''; - rpcErrorDetails = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexErrorDetails'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'user_error_message', kind: 'scalar', T: 9 }, - { no: 9, name: 'model_error_message', kind: 'scalar', T: 9 }, - { - no: 8, - name: 'structured_error_parts', - kind: 'message', - T: qE, - repeated: !0, - }, - { no: 2, name: 'short_error', kind: 'scalar', T: 9 }, - { no: 3, name: 'full_error', kind: 'scalar', T: 9 }, - { no: 4, name: 'is_benign', kind: 'scalar', T: 8 }, - { no: 7, name: 'error_code', kind: 'scalar', T: 13 }, - { no: 5, name: 'details', kind: 'scalar', T: 9 }, - { no: 6, name: 'error_id', kind: 'scalar', T: 9 }, - { no: 10, name: 'rpc_error_details', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - HE = class e extends r { - name = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.UserStepSnapshot'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Rs = class e extends r { - snapshot; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.UserStepAnnotations'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'snapshot', kind: 'message', T: HE }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - YE = class e extends r { - workspaceUri = ''; - gitRootUri = ''; - branchName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TrajectoryScope'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'workspace_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'git_root_uri', kind: 'scalar', T: 9 }, - { no: 3, name: 'branch_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - WE = class e extends r { - disableAsync; - maxGeneratorInvocations = 0; - terminalStepTypes = []; - holdForValidCheckpoint; - holdForValidCheckpointTimeout = 0; - researchOnly = !1; - useAggressiveSnapshotting; - requireFinishTool; - maxForcedInvocations; - queueAllSteps; - storeGenSvcRequest; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeExecutorConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'disable_async', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'max_generator_invocations', kind: 'scalar', T: 5 }, - { - no: 3, - name: 'terminal_step_types', - kind: 'enum', - T: a.getEnumType(j), - repeated: !0, - }, - { - no: 5, - name: 'hold_for_valid_checkpoint', - kind: 'scalar', - T: 8, - opt: !0, - }, - { - no: 6, - name: 'hold_for_valid_checkpoint_timeout', - kind: 'scalar', - T: 5, - }, - { no: 7, name: 'research_only', kind: 'scalar', T: 8 }, - { - no: 8, - name: 'use_aggressive_snapshotting', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 9, name: 'require_finish_tool', kind: 'scalar', T: 8, opt: !0 }, - { no: 10, name: 'max_forced_invocations', kind: 'scalar', T: 5, opt: !0 }, - { no: 11, name: 'queue_all_steps', kind: 'scalar', T: 8, opt: !0 }, - { no: 12, name: 'store_gen_svc_request', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - VE = class e extends r { - updateSampleRate; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ForcedBrainUpdateConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'update_sample_rate', kind: 'scalar', T: 2, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - XE = class e extends r { - useAggressivePrompt = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.DynamicBrainUpdateConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'use_aggressive_prompt', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - PI = class e extends r { - strategy = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrainUpdateStrategy'; - static fields = a.util.newFieldList(() => [ - { - no: 2, - name: 'executor_forced', - kind: 'message', - T: on, - oneof: 'strategy', - }, - { - no: 3, - name: 'invocation_forced', - kind: 'message', - T: VE, - oneof: 'strategy', - }, - { - no: 6, - name: 'dynamic_update', - kind: 'message', - T: XE, - oneof: 'strategy', - }, - { - no: 5, - name: 'executor_forced_and_with_discretion', - kind: 'message', - T: on, - oneof: 'strategy', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - KE = class e extends r { - enabled; - hideNominalToolSteps; - hidePlannerResponseText; - maxBytesPerStep = 0; - maxBytesPerToolArg = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.LogArtifactsConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'hide_nominal_tool_steps', kind: 'scalar', T: 8, opt: !0 }, - { - no: 3, - name: 'hide_planner_response_text', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 4, name: 'max_bytes_per_step', kind: 'scalar', T: 5 }, - { no: 5, name: 'max_bytes_per_tool_arg', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pe = class e extends r { - plannerConfig; - checkpointConfig; - executorConfig; - trajectoryConversionConfig; - applyModelDefaultOverride; - conversationHistoryConfig; - splitDynamicPromptSections; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'planner_config', kind: 'message', T: Us }, - { no: 2, name: 'checkpoint_config', kind: 'message', T: Od }, - { no: 3, name: 'executor_config', kind: 'message', T: WE }, - { no: 4, name: 'trajectory_conversion_config', kind: 'message', T: vE }, - { - no: 6, - name: 'apply_model_default_override', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 7, name: 'conversation_history_config', kind: 'message', T: yo }, - { - no: 8, - name: 'split_dynamic_prompt_sections', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vE = class e extends r { - groupToolsWithPlannerResponse; - wrapToolResponses; - logArtifactsConfig; - appendEphemeralToPreviousToolResult; - disableStepId; - useRawUserMessage; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TrajectoryConversionConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 3, - name: 'group_tools_with_planner_response', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 5, name: 'wrap_tool_responses', kind: 'scalar', T: 8, opt: !0 }, - { no: 6, name: 'log_artifacts_config', kind: 'message', T: KE }, - { - no: 7, - name: 'append_ephemeral_to_previous_tool_result', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 8, name: 'disable_step_id', kind: 'scalar', T: 8, opt: !0 }, - { no: 9, name: 'use_raw_user_message', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sa = class e extends r { - plannerMode = Pn.UNSPECIFIED; - evalMode; - agenticMode; - promptCombinationName; - conversationHistoryConfig; - overrideWorkspaceDirExperimentalUseOnly; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeConversationalPlannerConfig'; - static fields = a.util.newFieldList(() => [ - { no: 4, name: 'planner_mode', kind: 'enum', T: a.getEnumType(Pn) }, - { no: 5, name: 'eval_mode', kind: 'scalar', T: 8, opt: !0 }, - { no: 14, name: 'agentic_mode', kind: 'scalar', T: 8, opt: !0 }, - { - no: 15, - name: 'prompt_combination_name', - kind: 'scalar', - T: 9, - opt: !0, - }, - { no: 16, name: 'conversation_history_config', kind: 'message', T: yo }, - { - no: 17, - name: 'override_workspace_dir_experimental_use_only', - kind: 'scalar', - T: 9, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ls = class e extends r { - mode; - content; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SectionOverrideConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'mode', kind: 'enum', T: a.getEnumType(ms), opt: !0 }, - { no: 2, name: 'content', kind: 'scalar', T: 9, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zE = class e extends r { - mQueryConfig; - mQueryModel = f.UNSPECIFIED; - maxTokensPerMQuery = 0; - numItemsFullSource; - maxLinesPerSnippet = 0; - enableSearchInFileTool; - allowAccessGitignore; - disableSemanticCodebaseSearch; - forceDisable; - enterpriseConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.MqueryToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'm_query_config', kind: 'message', T: ee }, - { no: 2, name: 'm_query_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 3, name: 'max_tokens_per_m_query', kind: 'scalar', T: 13 }, - { no: 4, name: 'num_items_full_source', kind: 'scalar', T: 5, opt: !0 }, - { no: 5, name: 'max_lines_per_snippet', kind: 'scalar', T: 5 }, - { - no: 6, - name: 'enable_search_in_file_tool', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 7, name: 'allow_access_gitignore', kind: 'scalar', T: 8, opt: !0 }, - { - no: 8, - name: 'disable_semantic_codebase_search', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 9, name: 'force_disable', kind: 'scalar', T: 8, opt: !0 }, - { no: 10, name: 'enterprise_config', kind: 'message', T: rn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jE = class e extends r { - artifactReviewMode = ln.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.NotifyUserConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'artifact_review_mode', - kind: 'enum', - T: a.getEnumType(ln), - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - QE = class e extends r { - maxGrepResults = 0; - includeCciInResult; - numFullSourceCcis = 0; - maxBytesPerCci = 0; - enterpriseConfig; - allowAccessGitignore; - useCodeSearch; - disableFallbackToLocalExecution; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.GrepToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_grep_results', kind: 'scalar', T: 13 }, - { no: 2, name: 'include_cci_in_result', kind: 'scalar', T: 8, opt: !0 }, - { no: 3, name: 'num_full_source_ccis', kind: 'scalar', T: 13 }, - { no: 4, name: 'max_bytes_per_cci', kind: 'scalar', T: 13 }, - { no: 5, name: 'enterprise_config', kind: 'message', T: rn }, - { no: 6, name: 'allow_access_gitignore', kind: 'scalar', T: 8, opt: !0 }, - { no: 7, name: 'use_code_search', kind: 'scalar', T: 8, opt: !0 }, - { - no: 8, - name: 'disable_fallback_to_local_execution', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ZE = class e extends r { - maxFindResults = 0; - fdPath = ''; - useCodeSearch; - disableFallbackToLocalExecution; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FindToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_find_results', kind: 'scalar', T: 13 }, - { no: 2, name: 'fd_path', kind: 'scalar', T: 9 }, - { no: 3, name: 'use_code_search', kind: 'scalar', T: 8, opt: !0 }, - { - no: 4, - name: 'disable_fallback_to_local_execution', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $E = class e extends r { - csPath = ''; - useEvalTag; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodeSearchToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cs_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'use_eval_tag', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - n_ = class e extends r { - maxResults = 0; - maxContentLength = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.InternalSearchToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_results', kind: 'scalar', T: 5 }, - { no: 2, name: 'max_content_length', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - DI = class e extends r { - maxClusterQueryResults = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ClusterQueryToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_cluster_query_results', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - kI = class e extends r { - maxTokensPerInspectCluster = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.InspectClusterToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_tokens_per_inspect_cluster', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - e_ = class e extends r { - enableModelAutoRun; - userAllowlist = []; - userDenylist = []; - systemAllowlist = []; - systemDenylist = []; - systemNooplist = []; - autoExecutionPolicy = un.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.AutoCommandConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enable_model_auto_run', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'user_allowlist', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'user_denylist', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'system_allowlist', kind: 'scalar', T: 9, repeated: !0 }, - { no: 5, name: 'system_denylist', kind: 'scalar', T: 9, repeated: !0 }, - { no: 7, name: 'system_nooplist', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 6, - name: 'auto_execution_policy', - kind: 'enum', - T: a.getEnumType(un), - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - t_ = class e extends r { - enterpriseConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ListDirToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enterprise_config', kind: 'message', T: rn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - a_ = class e extends r { - maxCharsCommandStdout = 0; - forceDisable; - autoCommandConfig; - enableIdeTerminalExecution; - shellName = ''; - shellPath = ''; - maxTimeoutMs = 0; - enterpriseConfig; - shellSetupScript = ''; - forbidSearchCommands; - enableMidtermOutputProcessor; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.RunCommandToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_chars_command_stdout', kind: 'scalar', T: 13 }, - { no: 2, name: 'force_disable', kind: 'scalar', T: 8, opt: !0 }, - { no: 3, name: 'auto_command_config', kind: 'message', T: e_ }, - { - no: 4, - name: 'enable_ide_terminal_execution', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 5, name: 'shell_name', kind: 'scalar', T: 9 }, - { no: 6, name: 'shell_path', kind: 'scalar', T: 9 }, - { no: 7, name: 'max_timeout_ms', kind: 'scalar', T: 13 }, - { no: 9, name: 'enterprise_config', kind: 'message', T: rn }, - { no: 10, name: 'shell_setup_script', kind: 'scalar', T: 9 }, - { no: 11, name: 'forbid_search_commands', kind: 'scalar', T: 8, opt: !0 }, - { - no: 8, - name: 'enable_midterm_output_processor', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - r_ = class e extends r { - maxTokensPerKnowledgeBaseSearch = 0; - promptFraction; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.KnowledgeBaseSearchToolConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'max_tokens_per_knowledge_base_search', - kind: 'scalar', - T: 13, - }, - { no: 2, name: 'prompt_fraction', kind: 'scalar', T: 1, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - s_ = class e extends r { - enabled; - promptUnchangedThreshold = 0; - contentViewRadiusLines = 0; - contentEditRadiusLines = 0; - fastApplyModel = f.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FastApplyFallbackConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'prompt_unchanged_threshold', kind: 'scalar', T: 13 }, - { no: 3, name: 'content_view_radius_lines', kind: 'scalar', T: 13 }, - { no: 4, name: 'content_edit_radius_lines', kind: 'scalar', T: 13 }, - { no: 5, name: 'fast_apply_model', kind: 'enum', T: a.getEnumType(f) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - i_ = class e extends r { - maxFuzzyEditDistanceFraction = 0; - allowPartialReplacementSuccess = !1; - viewFileRecencyMaxDistance = 0; - enableFuzzySandwichMatch = !1; - fastApplyFallbackConfig; - toolVariant = da.UNSPECIFIED; - showTriggeredMemories; - disableAllowMultiple; - useLineRange; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ReplaceContentToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_fuzzy_edit_distance_fraction', kind: 'scalar', T: 2 }, - { - no: 2, - name: 'allow_partial_replacement_success', - kind: 'scalar', - T: 8, - }, - { no: 3, name: 'view_file_recency_max_distance', kind: 'scalar', T: 13 }, - { no: 4, name: 'enable_fuzzy_sandwich_match', kind: 'scalar', T: 8 }, - { no: 5, name: 'fast_apply_fallback_config', kind: 'message', T: s_ }, - { no: 6, name: 'tool_variant', kind: 'enum', T: a.getEnumType(da) }, - { no: 8, name: 'show_triggered_memories', kind: 'scalar', T: 8, opt: !0 }, - { no: 9, name: 'disable_allow_multiple', kind: 'scalar', T: 8, opt: !0 }, - { no: 10, name: 'use_line_range', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - o_ = class e extends r { - disableExtensions = []; - applyEdits; - useReplaceContentEditTool; - replaceContentToolConfig; - autoFixLintsConfig; - allowEditGitignore; - enterpriseConfig; - overrideAllowActionOnUnsavedFile; - skipReplaceContentValidation; - useReplaceContentProposeCode; - onlyShowIncrementalDiffZone; - fileAllowlist = []; - dirAllowlist = []; - classifyEdit; - runProposalExtensionVerifier; - skipAwaitLintErrors; - provideImportance; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodeToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'disable_extensions', kind: 'scalar', T: 9, repeated: !0 }, - { no: 2, name: 'apply_edits', kind: 'scalar', T: 8, opt: !0 }, - { - no: 3, - name: 'use_replace_content_edit_tool', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 4, name: 'replace_content_tool_config', kind: 'message', T: i_ }, - { no: 5, name: 'auto_fix_lints_config', kind: 'message', T: T_ }, - { no: 6, name: 'allow_edit_gitignore', kind: 'scalar', T: 8, opt: !0 }, - { no: 7, name: 'enterprise_config', kind: 'message', T: rn }, - { - no: 8, - name: 'override_allow_action_on_unsaved_file', - kind: 'scalar', - T: 8, - opt: !0, - }, - { - no: 9, - name: 'skip_replace_content_validation', - kind: 'scalar', - T: 8, - opt: !0, - }, - { - no: 10, - name: 'use_replace_content_propose_code', - kind: 'scalar', - T: 8, - opt: !0, - }, - { - no: 11, - name: 'only_show_incremental_diff_zone', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 12, name: 'file_allowlist', kind: 'scalar', T: 9, repeated: !0 }, - { no: 17, name: 'dir_allowlist', kind: 'scalar', T: 9, repeated: !0 }, - { no: 13, name: 'classify_edit', kind: 'scalar', T: 8, opt: !0 }, - { - no: 14, - name: 'run_proposal_extension_verifier', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 15, name: 'skip_await_lint_errors', kind: 'scalar', T: 8, opt: !0 }, - { no: 16, name: 'provide_importance', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - m_ = class e extends r { - intentModel = f.UNSPECIFIED; - maxContextTokens = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.IntentToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'intent_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 2, name: 'max_context_tokens', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - c_ = class e extends r { - allowViewGitignore; - splitOutlineTool; - showTriggeredMemories; - enterpriseConfig; - maxLinesPerView; - includeLineNumbers; - dirAllowlist = []; - maxTotalOutlineBytes = 0; - maxBytesPerOutlineItem = 0; - showFullFileBytes; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ViewFileToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 7, name: 'allow_view_gitignore', kind: 'scalar', T: 8, opt: !0 }, - { no: 8, name: 'split_outline_tool', kind: 'scalar', T: 8, opt: !0 }, - { - no: 13, - name: 'show_triggered_memories', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 12, name: 'enterprise_config', kind: 'message', T: rn }, - { no: 14, name: 'max_lines_per_view', kind: 'scalar', T: 13, opt: !0 }, - { no: 15, name: 'include_line_numbers', kind: 'scalar', T: 8, opt: !0 }, - { no: 16, name: 'dir_allowlist', kind: 'scalar', T: 9, repeated: !0 }, - { no: 9, name: 'max_total_outline_bytes', kind: 'scalar', T: 13 }, - { no: 11, name: 'max_bytes_per_outline_item', kind: 'scalar', T: 13 }, - { no: 10, name: 'show_full_file_bytes', kind: 'scalar', T: 13, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - u_ = class e extends r { - forceDisable; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SuggestedResponseConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - l_ = class e extends r { - forceDisable; - thirdPartyConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SearchWebToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'third_party_config', kind: 'message', T: Ht, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - E_ = class e extends r { - forceDisable; - disableAutoGenerateMemories; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.MemoryToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: !0 }, - { - no: 2, - name: 'disable_auto_generate_memories', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - __ = class e extends r { - forceDisable; - maxOutputBytes = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.McpToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'max_output_bytes', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - d_ = class e extends r { - enabled; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.InvokeSubagentToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - T_ = class e extends r { - enabled; - notifyingPrompt; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.AutoFixLintsConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'notifying_prompt', kind: 'scalar', T: 9, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - f_ = class e extends r { - enableSaving; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CaptureBrowserScreenshotToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enable_saving', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ps = class e extends r { - includeCoordinates; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.DOMExtractionConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'include_coordinates', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - N_ = class e extends r { - type; - maxChars; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserSubagentContextConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'enum', T: a.getEnumType(Ds), opt: !0 }, - { no: 2, name: 'max_chars', kind: 'scalar', T: 5, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ds; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.WITH_MARKDOWN_TRAJECTORY_SUMMARY = 1)] = - 'WITH_MARKDOWN_TRAJECTORY_SUMMARY'), - (e[(e.TASK_ONLY = 2)] = 'TASK_ONLY')); -})(Ds || (Ds = {})); -a.util.setEnumType( - Ds, +var PromptSection = class _PromptSection extends Message { + /** + * @generated from field: string title = 1; + */ + title = ''; + /** + * @generated from field: string content = 2; + */ + content = ''; + /** + * @generated from field: repeated exa.cortex_pb.SectionJudgeCriteria criteria = 3; + */ + criteria = []; + /** + * Metadata about where the content came from. + * + * @generated from field: exa.cortex_pb.PromptSectionMetadata metadata = 4; + */ + metadata; + /** + * Dynamic content that varies per user/session, inserted as chat messages. + * This is kept separate from 'content' to maximize prefix caching. + * + * @generated from field: string dynamic_content = 5; + */ + dynamicContent = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PromptSection'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'criteria', + kind: 'message', + T: SectionJudgeCriteria, + repeated: true, + }, + { no: 4, name: 'metadata', kind: 'message', T: PromptSectionMetadata }, + { + no: 5, + name: 'dynamic_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _PromptSection().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptSection().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptSection().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PromptSection, a, b); + } +}; +var RetryInfo = class _RetryInfo extends Message { + /** + * Sherlog link for this retry attempt + * + * @generated from field: string sherlog_link = 1; + */ + sherlogLink = ''; + /** + * Model usage stats for this retry attempt. + * + * @generated from field: exa.codeium_common_pb.ModelUsageStats usage = 2; + */ + usage; + /** + * Error message (empty if no error) for this retry attempt. + * + * @generated from field: string error = 3; + */ + error = ''; + /** + * Trace ID for this retry attempt. + * + * @generated from field: string trace_id = 4; + */ + traceId = ''; + /** + * Categorizes the reason for this retry. + * + * @generated from field: exa.cortex_pb.RetryReason retry_reason = 5; + */ + retryReason = RetryReason.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.RetryInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'sherlog_link', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'usage', kind: 'message', T: ModelUsageStats }, + { + no: 3, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'trace_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'retry_reason', + kind: 'enum', + T: proto3.getEnumType(RetryReason), + }, + ]); + static fromBinary(bytes, options) { + return new _RetryInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RetryInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RetryInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RetryInfo, a, b); + } +}; +var ChatModelMetadata = class _ChatModelMetadata extends Message { + /** + * @generated from field: string system_prompt = 1; + */ + systemPrompt = ''; + /** + * @generated from field: repeated exa.chat_pb.ChatMessagePrompt message_prompts = 2; + */ + messagePrompts = []; + /** + * Corresponds index-wise to message prompts. + * + * @generated from field: repeated exa.cortex_pb.MessagePromptMetadata message_metadata = 10; + */ + messageMetadata = []; + /** + * @generated from field: exa.codeium_common_pb.Model model = 3; + */ + model = Model.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.ModelUsageStats usage = 4; + */ + usage; + /** + * @generated from field: float model_cost = 5; + */ + modelCost = 0; + /** + * The latest message index in this conversation that wrote to cache. + * + * @generated from field: uint32 last_cache_index = 6; + */ + lastCacheIndex = 0; + /** + * @generated from field: exa.chat_pb.ChatToolChoice tool_choice = 7; + */ + toolChoice; + /** + * @generated from field: repeated exa.chat_pb.ChatToolDefinition tools = 8; + */ + tools = []; + /** + * @generated from field: exa.cortex_pb.ChatStartMetadata chat_start_metadata = 9; + */ + chatStartMetadata; + /** + * @generated from field: google.protobuf.Duration time_to_first_token = 11; + */ + timeToFirstToken; + /** + * @generated from field: google.protobuf.Duration streaming_duration = 12; + */ + streamingDuration; + /** + * Some models use API pricing instead of fixed usage pricing. If that is the + * case, then this field will be populated with the converted API pricing cost + * that is based on the exact usage in the request. + * + * @generated from field: int32 credit_cost = 13; + */ + creditCost = 0; + /** + * Number of retries in this generator loop + * + * @generated from field: uint32 retries = 14; + */ + retries = 0; + /** + * Completion configuration used to generate the model request + * + * @generated from field: exa.codeium_common_pb.CompletionConfiguration completion_config = 15; + */ + completionConfig; + /** + * Structured prompt sections that make up the system prompt + * + * @generated from field: repeated exa.cortex_pb.PromptSection prompt_sections = 16; + */ + promptSections = []; + /** + * Per-retry information, one entry for each retry attempt. + * + * @generated from field: repeated exa.cortex_pb.RetryInfo retry_infos = 17; + */ + retryInfos = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ChatModelMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'system_prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'message_prompts', + kind: 'message', + T: ChatMessagePrompt, + repeated: true, + }, + { + no: 10, + name: 'message_metadata', + kind: 'message', + T: MessagePromptMetadata, + repeated: true, + }, + { no: 3, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + { no: 4, name: 'usage', kind: 'message', T: ModelUsageStats }, + { + no: 5, + name: 'model_cost', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 6, + name: 'last_cache_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 7, name: 'tool_choice', kind: 'message', T: ChatToolChoice }, + { + no: 8, + name: 'tools', + kind: 'message', + T: ChatToolDefinition, + repeated: true, + }, + { + no: 9, + name: 'chat_start_metadata', + kind: 'message', + T: ChatStartMetadata, + }, + { no: 11, name: 'time_to_first_token', kind: 'message', T: Duration }, + { no: 12, name: 'streaming_duration', kind: 'message', T: Duration }, + { + no: 13, + name: 'credit_cost', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 14, + name: 'retries', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 15, + name: 'completion_config', + kind: 'message', + T: CompletionConfiguration, + }, + { + no: 16, + name: 'prompt_sections', + kind: 'message', + T: PromptSection, + repeated: true, + }, + { + no: 17, + name: 'retry_infos', + kind: 'message', + T: RetryInfo, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ChatModelMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatModelMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatModelMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatModelMetadata, a, b); + } +}; +var ContextWindowMetadata = class _ContextWindowMetadata extends Message { + /** + * Estimated number of tokens consumed in the current generator request + * This count is used to make context window truncation decisions and + * will differ from the actual model usage stats due to imprecise tokenizers + * and decisions of what to count in the context window. + * + * @generated from field: int32 estimated_tokens_used = 1; + */ + estimatedTokensUsed = 0; + /** + * The reason why a truncation event occurred during this invocation, if any + * + * @generated from field: exa.cortex_pb.TruncationReason truncation_reason = 2; + */ + truncationReason = TruncationReason.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ContextWindowMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'estimated_tokens_used', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'truncation_reason', + kind: 'enum', + T: proto3.getEnumType(TruncationReason), + }, + ]); + static fromBinary(bytes, options) { + return new _ContextWindowMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ContextWindowMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ContextWindowMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ContextWindowMetadata, a, b); + } +}; +var CacheBreakpointMetadata = class _CacheBreakpointMetadata extends Message { + /** + * @generated from field: uint32 index = 1; + */ + index = 0; + /** + * @generated from field: exa.chat_pb.PromptCacheOptions options = 2; + */ + options; + /** + * Checksum of the chat prompts from the beginning of conversation until this + * breakpoint. + * + * @generated from field: string content_checksum = 3; + */ + contentChecksum = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CacheBreakpointMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 2, name: 'options', kind: 'message', T: PromptCacheOptions }, + { + no: 3, + name: 'content_checksum', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CacheBreakpointMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CacheBreakpointMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CacheBreakpointMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CacheBreakpointMetadata, a, b); + } +}; +var ChatStartMetadata = class _ChatStartMetadata extends Message { + /** + * Timestamp representing when the conversation started. This is before stream + * creation. + * + * @generated from field: google.protobuf.Timestamp created_at = 4; + */ + createdAt; + /** + * The trajectory step index where the conversation begins. + * + * @generated from field: uint32 start_step_index = 1; + */ + startStepIndex = 0; + /** + * The checkpoint index used to start the conversation. If -1, then no + * checkpoint was used. + * + * @generated from field: int32 checkpoint_index = 2; + */ + checkpointIndex = 0; + /** + * The trajectory step indices that were covered by the checkpoint. + * + * @generated from field: repeated uint32 steps_covered_by_checkpoint = 3; + */ + stepsCoveredByCheckpoint = []; + /** + * The index of the latest stable message in the generated chat prompts. A + * message is considered stable if the string-conversion of the step it was + * converted from is guaranteed to not change in the future. -1 denotes that + * there is no stable message. + * + * @generated from field: int32 latest_stable_message_index = 5; + */ + latestStableMessageIndex = 0; + /** + * Metadata regarding where cache breakpoints are set in the chat request. + * + * @generated from field: repeated exa.cortex_pb.CacheBreakpointMetadata cache_breakpoints = 6; + */ + cacheBreakpoints = []; + /** + * Metadata regarding the system prompt cache breakpoint. + * + * @generated from field: exa.cortex_pb.CacheBreakpointMetadata system_prompt_cache = 7; + */ + systemPromptCache; + /** + * Time since the last chat request. + * + * @generated from field: google.protobuf.Duration time_since_last_invocation = 8; + */ + timeSinceLastInvocation; + /** + * Request for how caching should be handled for this chat request. Ignored if + * nil. + * TODO(matt): Switch consumers to populate this instead. + * + * @generated from field: exa.cortex_pb.CacheRequestOptions cache_request = 9; + */ + cacheRequest; + /** + * Metadata about the context window used in the current generator request + * + * @generated from field: exa.cortex_pb.ContextWindowMetadata context_window_metadata = 10; + */ + contextWindowMetadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ChatStartMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 4, name: 'created_at', kind: 'message', T: Timestamp }, + { + no: 1, + name: 'start_step_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'checkpoint_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'steps_covered_by_checkpoint', + kind: 'scalar', + T: 13, + repeated: true, + }, + { + no: 5, + name: 'latest_stable_message_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'cache_breakpoints', + kind: 'message', + T: CacheBreakpointMetadata, + repeated: true, + }, + { + no: 7, + name: 'system_prompt_cache', + kind: 'message', + T: CacheBreakpointMetadata, + }, + { no: 8, name: 'time_since_last_invocation', kind: 'message', T: Duration }, + { no: 9, name: 'cache_request', kind: 'message', T: CacheRequestOptions }, + { + no: 10, + name: 'context_window_metadata', + kind: 'message', + T: ContextWindowMetadata, + }, + ]); + static fromBinary(bytes, options) { + return new _ChatStartMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ChatStartMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ChatStartMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ChatStartMetadata, a, b); + } +}; +var CacheRequestOptions = class _CacheRequestOptions extends Message { + /** + * Whether to enable caching. All other fields are ignored if this is false. + * + * @generated from field: bool enabled = 1; + */ + enabled = false; + /** + * Indices of breakpoints to set in the request. Corresponds to indices in the + * request chat messages. + * + * TODO(matt): Add more options here, e.g toggling if system prompt is cached, + * and also if we set cache breakpoints relative to the previous message. + * + * @generated from field: repeated uint32 cache_breakpoint_indices = 2; + */ + cacheBreakpointIndices = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CacheRequestOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'enabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'cache_breakpoint_indices', + kind: 'scalar', + T: 13, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CacheRequestOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CacheRequestOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CacheRequestOptions().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CacheRequestOptions, a, b); + } +}; +var SnapshotMetadata = class _SnapshotMetadata extends Message { + /** + * TODO(saujas): Make this a oneof with CitC metadata just being one variant. + * + * @generated from field: string user = 1; + */ + user = ''; + /** + * @generated from field: string workspace_id = 2; + */ + workspaceId = ''; + /** + * @generated from field: uint32 snapshot_version = 3; + */ + snapshotVersion = 0; + /** + * @generated from field: exa.cortex_pb.WorkspaceType workspace_type = 4; + */ + workspaceType = WorkspaceType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SnapshotMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'user', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'workspace_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'snapshot_version', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'workspace_type', + kind: 'enum', + T: proto3.getEnumType(WorkspaceType), + }, + ]); + static fromBinary(bytes, options) { + return new _SnapshotMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SnapshotMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SnapshotMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SnapshotMetadata, a, b); + } +}; +var StatusTransition = class _StatusTransition extends Message { + /** + * @generated from field: exa.cortex_pb.CortexStepStatus updated_status = 1; + */ + updatedStatus = CortexStepStatus.UNSPECIFIED; + /** + * @generated from field: google.protobuf.Timestamp timestamp = 2; + */ + timestamp; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.StatusTransition'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'updated_status', + kind: 'enum', + T: proto3.getEnumType(CortexStepStatus), + }, + { no: 2, name: 'timestamp', kind: 'message', T: Timestamp }, + ]); + static fromBinary(bytes, options) { + return new _StatusTransition().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StatusTransition().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StatusTransition().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StatusTransition, a, b); + } +}; +var CortexStepInternalMetadata = class _CortexStepInternalMetadata extends Message { + /** + * @generated from field: repeated exa.cortex_pb.StatusTransition status_transitions = 1; + */ + statusTransitions = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepInternalMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'status_transitions', + kind: 'message', + T: StatusTransition, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepInternalMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepInternalMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepInternalMetadata().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepInternalMetadata, a, b); + } +}; +var CortexStepMetadata = class _CortexStepMetadata extends Message { + /** + * Version of the step generation logic that was used to generate this step. + * This can be used to make compatibility checks between different versions of + * the step generation logic in case there are breaking changes. + * + * @generated from field: uint32 step_generation_version = 21; + */ + stepGenerationVersion = 0; + /** + * Timestamp when the step was created. + * - Planner response: post stream creation, pre first response. + * - Tool call: first tool call chunk from stream. + * - User input: when the user sends (even if queued). + * + * @generated from field: google.protobuf.Timestamp created_at = 1; + */ + createdAt; + /** + * Timestamp when the step was first viewable by the user. + * - Planner response: first text chunk from stream. + * - Tool call: all prioritized arguments received. + * + * @generated from field: google.protobuf.Timestamp viewable_at = 6; + */ + viewableAt; + /** + * Timestamp when the step was finished generating. + * - Planner response: end of planner text chunks. + * - Tool call: end of tool call chunks. + * + * @generated from field: google.protobuf.Timestamp finished_generating_at = 7; + */ + finishedGeneratingAt; + /** + * Timestamp when the last chunk was completed. + * - Planner response: N/A + * - Tool call: end of each tool call chunk (code edits). + * + * @generated from field: google.protobuf.Timestamp last_completed_chunk_at = 22; + */ + lastCompletedChunkAt; + /** + * Timestamp when the step was completed (including tool execution for tool + * calls). + * - Planner response: same as finished_generating_at. + * - Tool call: end of tool execution. + * + * @generated from field: google.protobuf.Timestamp completed_at = 8; + */ + completedAt; + /** + * Step was added because of something done by this source. + * + * @generated from field: exa.cortex_pb.CortexStepSource source = 3; + */ + source = CortexStepSource.UNSPECIFIED; + /** + * Only populated if step is created by a model with tool-calling capability. + * + * @generated from field: exa.codeium_common_pb.ChatToolCall tool_call = 4; + */ + toolCall; + /** + * Order in which arguments were generated by the model. + * + * @generated from field: repeated string arguments_order = 5; + */ + argumentsOrder = []; + /** + * Only populated if step handling itself makes use of a model, eg. checkpoint + * generation. + * + * @generated from field: exa.codeium_common_pb.ModelUsageStats model_usage = 9; + */ + modelUsage; + /** + * @generated from field: repeated exa.cortex_pb.RetryInfo retry_infos = 28; + */ + retryInfos = []; + /** + * @generated from field: float model_cost = 10; + */ + modelCost = 0; + /** + * Info about the model that created this step, if any. + * + * @generated from field: exa.codeium_common_pb.Model generator_model = 11; + */ + generatorModel = Model.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.ModelOrAlias requested_model = 13; + */ + requestedModel; + /** + * Model info of the custom model used. Only populated if the step was created + * by a custom model, aka the generator_model is + * MODEL_GOOGLE_GEMINI_INTERNAL_BYOM. + * + * @generated from field: exa.codeium_common_pb.ModelInfo model_info = 24; + */ + modelInfo; + /** + * Id of the execution invocation that created this step. + * + * @generated from field: string execution_id = 12; + */ + executionId = ''; + /** + * The realized flow credit cost of the step, factoring step type and status + * and more. The value is 100x of a user-interpreted credit, i.e a standard + * single credit is 100. DEPRECATED: Flow credits aren't used anymore. + * + * @generated from field: int32 flow_credits_used = 14 [deprecated = true]; + * @deprecated + */ + flowCreditsUsed = 0; + /** + * The realized prompt credit cost of the step, only applicable to user input + * steps. This value is also 100x. + * + * @generated from field: int32 prompt_credits_used = 15; + */ + promptCreditsUsed = 0; + /** + * Reasons why the step used a non-standard amount of credits. Generically, + * this should be empty to indicate no reason beyond standard pricing + * considerations. DEPRECATED: Non-standard credit reasons aren't used + * anymore. + * + * @generated from field: repeated exa.cortex_pb.CortexStepCreditReason non_standard_credit_reasons = 18 [deprecated = true]; + * @deprecated + */ + nonStandardCreditReasons = []; + /** + * These are for the subagent that chooses between multiple tool-call options + * + * @generated from field: repeated exa.codeium_common_pb.ChatToolCall tool_call_choices = 16; + */ + toolCallChoices = []; + /** + * @generated from field: string tool_call_choice_reason = 17; + */ + toolCallChoiceReason = ''; + /** + * Request source that led to this step + * + * @generated from field: exa.cortex_pb.CortexRequestSource cortex_request_source = 19; + */ + cortexRequestSource = CortexRequestSource.UNSPECIFIED; + /** + * Number of output tokens generated so far in streaming responses. + * Only populated for tool calls. + * + * @generated from field: int32 tool_call_output_tokens = 23; + */ + toolCallOutputTokens = 0; + /** + * Info about the source trajectory this step is from. + * We expect this to be populated for all steps. This info should uniquely + * identify a step, and should be used as the source of truth for + * trajectory ID and step index where such specifiers are required. + * + * @generated from field: exa.cortex_pb.SourceTrajectoryStepInfo source_trajectory_step_info = 20; + */ + sourceTrajectoryStepInfo; + /** + * Metadata about the snapshot at the start of this step. + * A snapshot is some unique identifier of the filesystem and/or process + * state, which can be used to recover the state when this trajectory step was + * generated. + * + * @generated from field: exa.cortex_pb.SnapshotMetadata snapshot_metadata = 25; + */ + snapshotMetadata; + /** + * Internal metadata managed exclusively by TrajectoryWrapper. + * TrajectoryWrapper users cannot modify this field when updating steps. + * This avoids stale data issues that can arise when calling + * TrajectoryWrapper.UpdateStep since the passed in step object is not + * updated in the function. + * + * @generated from field: exa.cortex_pb.CortexStepInternalMetadata internal_metadata = 26; + */ + internalMetadata; + /** + * If true, this step should wait for previous tool call steps from the same + * model invocation to complete before executing. If false or unset, this step + * should execute immediately without waiting for previous steps. + * + * @generated from field: bool wait_for_previous_tools = 27; + */ + waitForPreviousTools = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 21, + name: 'step_generation_version', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 1, name: 'created_at', kind: 'message', T: Timestamp }, + { no: 6, name: 'viewable_at', kind: 'message', T: Timestamp }, + { no: 7, name: 'finished_generating_at', kind: 'message', T: Timestamp }, + { no: 22, name: 'last_completed_chunk_at', kind: 'message', T: Timestamp }, + { no: 8, name: 'completed_at', kind: 'message', T: Timestamp }, + { + no: 3, + name: 'source', + kind: 'enum', + T: proto3.getEnumType(CortexStepSource), + }, + { no: 4, name: 'tool_call', kind: 'message', T: ChatToolCall }, + { no: 5, name: 'arguments_order', kind: 'scalar', T: 9, repeated: true }, + { no: 9, name: 'model_usage', kind: 'message', T: ModelUsageStats }, + { + no: 28, + name: 'retry_infos', + kind: 'message', + T: RetryInfo, + repeated: true, + }, + { + no: 10, + name: 'model_cost', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 11, + name: 'generator_model', + kind: 'enum', + T: proto3.getEnumType(Model), + }, + { no: 13, name: 'requested_model', kind: 'message', T: ModelOrAlias }, + { no: 24, name: 'model_info', kind: 'message', T: ModelInfo }, + { + no: 12, + name: 'execution_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 14, + name: 'flow_credits_used', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 15, + name: 'prompt_credits_used', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 18, + name: 'non_standard_credit_reasons', + kind: 'enum', + T: proto3.getEnumType(CortexStepCreditReason), + repeated: true, + }, + { + no: 16, + name: 'tool_call_choices', + kind: 'message', + T: ChatToolCall, + repeated: true, + }, + { + no: 17, + name: 'tool_call_choice_reason', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 19, + name: 'cortex_request_source', + kind: 'enum', + T: proto3.getEnumType(CortexRequestSource), + }, + { + no: 23, + name: 'tool_call_output_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 20, + name: 'source_trajectory_step_info', + kind: 'message', + T: SourceTrajectoryStepInfo, + }, + { no: 25, name: 'snapshot_metadata', kind: 'message', T: SnapshotMetadata }, + { + no: 26, + name: 'internal_metadata', + kind: 'message', + T: CortexStepInternalMetadata, + }, + { + no: 27, + name: 'wait_for_previous_tools', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepMetadata, a, b); + } +}; +var FileAccessPermission = class _FileAccessPermission extends Message { + /** + * @generated from field: string path = 1; + */ + path = ''; + /** + * @generated from field: bool is_directory = 2; + */ + isDirectory = false; + /** + * @generated from field: bool allow = 3; + */ + allow = false; + /** + * @generated from field: exa.cortex_pb.PermissionScope scope = 4; + */ + scope = PermissionScope.UNSPECIFIED; + /** + * Permission was explicitly set by the user this step. + * + * @generated from field: bool from_current_step = 5; + */ + fromCurrentStep = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FileAccessPermission'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'is_directory', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'allow', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'scope', + kind: 'enum', + T: proto3.getEnumType(PermissionScope), + }, + { + no: 5, + name: 'from_current_step', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _FileAccessPermission().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FileAccessPermission().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FileAccessPermission().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FileAccessPermission, a, b); + } +}; +var TrajectoryPermissions = class _TrajectoryPermissions extends Message { + /** + * All file access permissions (both granted and denied). + * Filter by the 'allow' field to distinguish grants from denials. + * Filter by 'scope' field to distinguish persistent vs temporary. + * + * @generated from field: repeated exa.cortex_pb.FileAccessPermission file_access_permissions = 1; + */ + fileAccessPermissions = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TrajectoryPermissions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'file_access_permissions', + kind: 'message', + T: FileAccessPermission, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _TrajectoryPermissions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TrajectoryPermissions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TrajectoryPermissions().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TrajectoryPermissions, a, b); + } +}; +var SourceTrajectoryStepInfo = class _SourceTrajectoryStepInfo extends Message { + /** + * ID of source trajectory + * + * @generated from field: string trajectory_id = 1; + */ + trajectoryId = ''; + /** + * Step index in source trajectory + * + * @generated from field: uint32 step_index = 2; + */ + stepIndex = 0; + /** + * Generator metadata index in source trajectory (if applicable) + * + * @generated from field: uint32 metadata_index = 3; + */ + metadataIndex = 0; + /** + * Cascade ID of source trajectory (if applicable) + * + * @generated from field: string cascade_id = 4; + */ + cascadeId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SourceTrajectoryStepInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'trajectory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'step_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'metadata_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'cascade_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _SourceTrajectoryStepInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SourceTrajectoryStepInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SourceTrajectoryStepInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SourceTrajectoryStepInfo, a, b); + } +}; +var StructuredErrorPart = class _StructuredErrorPart extends Message { + /** + * @generated from oneof exa.cortex_pb.StructuredErrorPart.part + */ + part = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.StructuredErrorPart'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'text', kind: 'scalar', T: 9, oneof: 'part' }, + { no: 2, name: 'file_uri', kind: 'scalar', T: 9, oneof: 'part' }, + { no: 3, name: 'directory_uri', kind: 'scalar', T: 9, oneof: 'part' }, + { no: 4, name: 'url', kind: 'scalar', T: 9, oneof: 'part' }, + { no: 5, name: 'code_text', kind: 'scalar', T: 9, oneof: 'part' }, + ]); + static fromBinary(bytes, options) { + return new _StructuredErrorPart().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StructuredErrorPart().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StructuredErrorPart().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StructuredErrorPart, a, b); + } +}; +var CortexErrorDetails = class _CortexErrorDetails extends Message { + /** + * Error message which may be read by an end user. Leave blank if this error + * should not be viewed by the user at all. + * + * @generated from field: string user_error_message = 1; + */ + userErrorMessage = ''; + /** + * Error message which will be shown to the model. If this is empty, then + * the short_error will be shown to the model. + * + * @generated from field: string model_error_message = 9; + */ + modelErrorMessage = ''; + /** + * Structured error parts for user rendering. + * + * @generated from field: repeated exa.cortex_pb.StructuredErrorPart structured_error_parts = 8; + */ + structuredErrorParts = []; + /** + * Corresponds to err.Error(). + * + * @generated from field: string short_error = 2; + */ + shortError = ''; + /** + * Corresponds to the "%+v" format specifier on an error. + * + * @generated from field: string full_error = 3; + */ + fullError = ''; + /** + * True if the error is benign and should not be presented as an "error" to + * the user. + * + * @generated from field: bool is_benign = 4; + */ + isBenign = false; + /** + * Only populated for a subset of errors. + * + * @generated from field: uint32 error_code = 7; + */ + errorCode = 0; + /** + * Additional details about the error. + * + * @generated from field: string details = 5; + */ + details = ''; + /** + * Stores the Sentry event ID. + * + * @generated from field: string error_id = 6; + */ + errorId = ''; + /** + * Structured error details from the API response (e.g., DebugInfo, + * RetryInfo). Each string is the JSON-serialized form of a detail from + * `google.rpc.Status.details`. + * + * @generated from field: repeated string rpc_error_details = 10; + */ + rpcErrorDetails = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexErrorDetails'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'user_error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'model_error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'structured_error_parts', + kind: 'message', + T: StructuredErrorPart, + repeated: true, + }, + { + no: 2, + name: 'short_error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'full_error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'is_benign', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'error_code', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'details', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'error_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 10, name: 'rpc_error_details', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _CortexErrorDetails().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexErrorDetails().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexErrorDetails().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexErrorDetails, a, b); + } +}; +var UserStepSnapshot = class _UserStepSnapshot extends Message { + /** + * @generated from field: string name = 1; + */ + name = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.UserStepSnapshot'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserStepSnapshot().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserStepSnapshot().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserStepSnapshot().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserStepSnapshot, a, b); + } +}; +var UserStepAnnotations = class _UserStepAnnotations extends Message { + /** + * @generated from field: exa.cortex_pb.UserStepSnapshot snapshot = 1; + */ + snapshot; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.UserStepAnnotations'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'snapshot', kind: 'message', T: UserStepSnapshot }, + ]); + static fromBinary(bytes, options) { + return new _UserStepAnnotations().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserStepAnnotations().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserStepAnnotations().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_UserStepAnnotations, a, b); + } +}; +var TrajectoryScope = class _TrajectoryScope extends Message { + /** + * @generated from field: string workspace_uri = 1; + */ + workspaceUri = ''; + /** + * @generated from field: string git_root_uri = 2; + */ + gitRootUri = ''; + /** + * @generated from field: string branch_name = 3; + */ + branchName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TrajectoryScope'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'workspace_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'git_root_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'branch_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _TrajectoryScope().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TrajectoryScope().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TrajectoryScope().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TrajectoryScope, a, b); + } +}; +var CascadeExecutorConfig = class _CascadeExecutorConfig extends Message { + /** + * @generated from field: optional bool disable_async = 1; + */ + disableAsync; + /** + * @generated from field: int32 max_generator_invocations = 2; + */ + maxGeneratorInvocations = 0; + /** + * @generated from field: repeated exa.cortex_pb.CortexStepType terminal_step_types = 3; + */ + terminalStepTypes = []; + /** + * If true, the executor will block until either a valid checkpoint is + * available or all checkpoints are ERRORed out + * + * @generated from field: optional bool hold_for_valid_checkpoint = 5; + */ + holdForValidCheckpoint; + /** + * How long to wait for a valid checkpoint state before continuing without a + * checkpoint + * + * @generated from field: int32 hold_for_valid_checkpoint_timeout = 6; + */ + holdForValidCheckpointTimeout = 0; + /** + * If true, the executor will not execute any non-research steps + * + * @generated from field: bool research_only = 7; + */ + researchOnly = false; + /** + * If true, the executor will use aggressive snapshotting (snapshot before + * cascade execution) If this is on, any edits that are made by cascade will + * also be reported as edits made by the user (which is fine in read-only mode + * when cascade is not making edits). + * + * @generated from field: optional bool use_aggressive_snapshotting = 8; + */ + useAggressiveSnapshotting; + /** + * If true, the executor will only terminate when the finish tool has been + * called. If the model responds with no tool call, then the executor will + * force another invocation with a user message to continue, up to + * max_forced_invocations times. + * + * @generated from field: optional bool require_finish_tool = 9; + */ + requireFinishTool; + /** + * Maximum number of times the executor will force an invocation, if the + * model has not called a tool. This is only used if require_finish_tool is + * true. + * + * @generated from field: optional int32 max_forced_invocations = 10; + */ + maxForcedInvocations; + /** + * If true, the executor will queue all steps (no concurrency) + * + * @generated from field: optional bool queue_all_steps = 11; + */ + queueAllSteps; + /** + * If true, the executor will store the GenerateContentRequest proto in the + * ExecutorMetadata. This is used by training/evaluation pipelines to + * reconstruct the model request. + * + * @generated from field: optional bool store_gen_svc_request = 12; + */ + storeGenSvcRequest; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeExecutorConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'disable_async', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'max_generator_invocations', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'terminal_step_types', + kind: 'enum', + T: proto3.getEnumType(CortexStepType), + repeated: true, + }, + { + no: 5, + name: 'hold_for_valid_checkpoint', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 6, + name: 'hold_for_valid_checkpoint_timeout', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 7, + name: 'research_only', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 8, + name: 'use_aggressive_snapshotting', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 9, name: 'require_finish_tool', kind: 'scalar', T: 8, opt: true }, + { no: 10, name: 'max_forced_invocations', kind: 'scalar', T: 5, opt: true }, + { no: 11, name: 'queue_all_steps', kind: 'scalar', T: 8, opt: true }, + { no: 12, name: 'store_gen_svc_request', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _CascadeExecutorConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeExecutorConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeExecutorConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeExecutorConfig, a, b); + } +}; +var ForcedBrainUpdateConfig = class _ForcedBrainUpdateConfig extends Message { + /** + * Controls how often the update strategy is applied. For example, if set to + * 0.25, the update strategy will be applied about a quarter of the time. + * + * @generated from field: optional float update_sample_rate = 1; + */ + updateSampleRate; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ForcedBrainUpdateConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'update_sample_rate', kind: 'scalar', T: 2, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _ForcedBrainUpdateConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ForcedBrainUpdateConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ForcedBrainUpdateConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ForcedBrainUpdateConfig, a, b); + } +}; +var DynamicBrainUpdateConfig = class _DynamicBrainUpdateConfig extends Message { + /** + * If true, uses a more aggressive ephemeral prompt (for internal models that + * otherwise will not call the plan tool) + * + * @generated from field: bool use_aggressive_prompt = 1; + */ + useAggressivePrompt = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.DynamicBrainUpdateConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'use_aggressive_prompt', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _DynamicBrainUpdateConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DynamicBrainUpdateConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DynamicBrainUpdateConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DynamicBrainUpdateConfig, a, b); + } +}; +var BrainUpdateStrategy = class _BrainUpdateStrategy extends Message { + /** + * @generated from oneof exa.cortex_pb.BrainUpdateStrategy.strategy + */ + strategy = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrainUpdateStrategy'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'executor_forced', + kind: 'message', + T: Empty, + oneof: 'strategy', + }, + { + no: 3, + name: 'invocation_forced', + kind: 'message', + T: ForcedBrainUpdateConfig, + oneof: 'strategy', + }, + { + no: 6, + name: 'dynamic_update', + kind: 'message', + T: DynamicBrainUpdateConfig, + oneof: 'strategy', + }, + { + no: 5, + name: 'executor_forced_and_with_discretion', + kind: 'message', + T: Empty, + oneof: 'strategy', + }, + ]); + static fromBinary(bytes, options) { + return new _BrainUpdateStrategy().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrainUpdateStrategy().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrainUpdateStrategy().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrainUpdateStrategy, a, b); + } +}; +var LogArtifactsConfig = class _LogArtifactsConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * If true, only model steps and user input steps are included in the + * conversation logs + * + * @generated from field: optional bool hide_nominal_tool_steps = 2; + */ + hideNominalToolSteps; + /** + * If true, planner response text is hidden in the conversation logs + * Tool calls will continue to be rendered + * + * @generated from field: optional bool hide_planner_response_text = 3; + */ + hidePlannerResponseText; + /** + * Step outputs beyond max_bytes_per_step will be truncated + * + * @generated from field: int32 max_bytes_per_step = 4; + */ + maxBytesPerStep = 0; + /** + * Tool arguments beyond max_bytes_per_tool_arg will be truncated + * + * @generated from field: int32 max_bytes_per_tool_arg = 5; + */ + maxBytesPerToolArg = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.LogArtifactsConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { no: 2, name: 'hide_nominal_tool_steps', kind: 'scalar', T: 8, opt: true }, + { + no: 3, + name: 'hide_planner_response_text', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 4, + name: 'max_bytes_per_step', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'max_bytes_per_tool_arg', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _LogArtifactsConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LogArtifactsConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LogArtifactsConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LogArtifactsConfig, a, b); + } +}; +var CascadeConfig = class _CascadeConfig extends Message { + /** + * @generated from field: exa.cortex_pb.CascadePlannerConfig planner_config = 1; + */ + plannerConfig; + /** + * TODO(nmoy): remove checkpoint config and make it a field of + * TrajectoryConversionConfig. + * + * @generated from field: exa.cortex_pb.CheckpointConfig checkpoint_config = 2; + */ + checkpointConfig; + /** + * @generated from field: exa.cortex_pb.CascadeExecutorConfig executor_config = 3; + */ + executorConfig; + /** + * @generated from field: exa.cortex_pb.TrajectoryConversionConfig trajectory_conversion_config = 4; + */ + trajectoryConversionConfig; + /** + * If true, applies model-specific configs when building the default config + * + * @generated from field: optional bool apply_model_default_override = 6; + */ + applyModelDefaultOverride; + /** + * @generated from field: exa.cortex_pb.ConversationHistoryConfig conversation_history_config = 7; + */ + conversationHistoryConfig; + /** + * @generated from field: optional bool split_dynamic_prompt_sections = 8; + */ + splitDynamicPromptSections; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'planner_config', kind: 'message', T: CascadePlannerConfig }, + { no: 2, name: 'checkpoint_config', kind: 'message', T: CheckpointConfig }, + { + no: 3, + name: 'executor_config', + kind: 'message', + T: CascadeExecutorConfig, + }, + { + no: 4, + name: 'trajectory_conversion_config', + kind: 'message', + T: TrajectoryConversionConfig, + }, + { + no: 6, + name: 'apply_model_default_override', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 7, + name: 'conversation_history_config', + kind: 'message', + T: ConversationHistoryConfig, + }, + { + no: 8, + name: 'split_dynamic_prompt_sections', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeConfig, a, b); + } +}; +var TrajectoryConversionConfig = class _TrajectoryConversionConfig extends Message { + /** + * @generated from field: optional bool group_tools_with_planner_response = 3; + */ + groupToolsWithPlannerResponse; + /** + * If true, wraps the tool responses with xml tags and markdown code block, + * e.g. + * ``` + * ... + * ``` + * + * + * @generated from field: optional bool wrap_tool_responses = 5; + */ + wrapToolResponses; + /** + * Configures how trajectories are converted into overview and individual task + * artifacts + * + * @generated from field: exa.cortex_pb.LogArtifactsConfig log_artifacts_config = 6; + */ + logArtifactsConfig; + /** + * If true, ephemeral messages are appended to the previous tool result + * instead of being added as a separate message. + * + * @generated from field: optional bool append_ephemeral_to_previous_tool_result = 7; + */ + appendEphemeralToPreviousToolResult; + /** + * If true, disables "Step Id: " in the prompt for each message. + * + * @generated from field: optional bool disable_step_id = 8; + */ + disableStepId; + /** + * If true, disables all XML wrapping of user messages (i.e + * ... ) and just passes the raw text. NOTE: This will also + * prevent the presence of additional metadata in the user message. + * + * @generated from field: optional bool use_raw_user_message = 9; + */ + useRawUserMessage; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TrajectoryConversionConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'group_tools_with_planner_response', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 5, name: 'wrap_tool_responses', kind: 'scalar', T: 8, opt: true }, + { + no: 6, + name: 'log_artifacts_config', + kind: 'message', + T: LogArtifactsConfig, + }, + { + no: 7, + name: 'append_ephemeral_to_previous_tool_result', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 8, name: 'disable_step_id', kind: 'scalar', T: 8, opt: true }, + { no: 9, name: 'use_raw_user_message', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _TrajectoryConversionConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TrajectoryConversionConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TrajectoryConversionConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_TrajectoryConversionConfig, a, b); + } +}; +var CascadeConversationalPlannerConfig = class _CascadeConversationalPlannerConfig extends Message { + /** + * Whether to give planner access to tools that can edit the filesystem. + * TODO(nicholasjiang): clean up usage, deprecated since read only mode is + * unsupported. + * + * @generated from field: exa.codeium_common_pb.ConversationalPlannerMode planner_mode = 4 [deprecated = true]; + * @deprecated + */ + plannerMode = ConversationalPlannerMode.UNSPECIFIED; + /** + * @generated from field: optional bool eval_mode = 5; + */ + evalMode; + /** + * @generated from field: optional bool agentic_mode = 14; + */ + agenticMode; + /** + * If this is set, it will override the system prompt with + * a named prompt combination defined in named_prompt_combination_registry. + * + * @generated from field: optional string prompt_combination_name = 15; + */ + promptCombinationName; + /** + * @generated from field: exa.cortex_pb.ConversationHistoryConfig conversation_history_config = 16; + */ + conversationHistoryConfig; + /** + * This overrides the workspace used in the system prompt. + * This is an experimental feature and *will* be removed in the future. + * + * @generated from field: optional string override_workspace_dir_experimental_use_only = 17; + */ + overrideWorkspaceDirExperimentalUseOnly; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeConversationalPlannerConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 4, + name: 'planner_mode', + kind: 'enum', + T: proto3.getEnumType(ConversationalPlannerMode), + }, + { no: 5, name: 'eval_mode', kind: 'scalar', T: 8, opt: true }, + { no: 14, name: 'agentic_mode', kind: 'scalar', T: 8, opt: true }, + { + no: 15, + name: 'prompt_combination_name', + kind: 'scalar', + T: 9, + opt: true, + }, + { + no: 16, + name: 'conversation_history_config', + kind: 'message', + T: ConversationHistoryConfig, + }, + { + no: 17, + name: 'override_workspace_dir_experimental_use_only', + kind: 'scalar', + T: 9, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeConversationalPlannerConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeConversationalPlannerConfig().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeConversationalPlannerConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeConversationalPlannerConfig, a, b); + } +}; +var SectionOverrideConfig = class _SectionOverrideConfig extends Message { + /** + * @generated from field: optional exa.cortex_pb.SectionOverrideMode mode = 1; + */ + mode; + /** + * @generated from field: optional string content = 2; + */ + content; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SectionOverrideConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'mode', + kind: 'enum', + T: proto3.getEnumType(SectionOverrideMode), + opt: true, + }, + { no: 2, name: 'content', kind: 'scalar', T: 9, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _SectionOverrideConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SectionOverrideConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SectionOverrideConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SectionOverrideConfig, a, b); + } +}; +var MqueryToolConfig = class _MqueryToolConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.MQueryConfig m_query_config = 1; + */ + mQueryConfig; + /** + * @generated from field: exa.codeium_common_pb.Model m_query_model = 2; + */ + mQueryModel = Model.UNSPECIFIED; + /** + * @generated from field: uint32 max_tokens_per_m_query = 3; + */ + maxTokensPerMQuery = 0; + /** + * Number of items to show the full source for. + * + * @generated from field: optional int32 num_items_full_source = 4; + */ + numItemsFullSource; + /** + * @generated from field: int32 max_lines_per_snippet = 5; + */ + maxLinesPerSnippet = 0; + /** + * @generated from field: optional bool enable_search_in_file_tool = 6; + */ + enableSearchInFileTool; + /** + * If false, prevent access to these files if they are in .gitignore + * + * @generated from field: optional bool allow_access_gitignore = 7; + */ + allowAccessGitignore; + /** + * @generated from field: optional bool disable_semantic_codebase_search = 8 [deprecated = true]; + * @deprecated + */ + disableSemanticCodebaseSearch; + /** + * @generated from field: optional bool force_disable = 9; + */ + forceDisable; + /** + * Configuration that limits file access. TODO(matthewli): Rename this config + * + * @generated from field: exa.cortex_pb.EnterpriseToolConfig enterprise_config = 10; + */ + enterpriseConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.MqueryToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'm_query_config', kind: 'message', T: MQueryConfig }, + { + no: 2, + name: 'm_query_model', + kind: 'enum', + T: proto3.getEnumType(Model), + }, + { + no: 3, + name: 'max_tokens_per_m_query', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 4, name: 'num_items_full_source', kind: 'scalar', T: 5, opt: true }, + { + no: 5, + name: 'max_lines_per_snippet', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'enable_search_in_file_tool', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 7, name: 'allow_access_gitignore', kind: 'scalar', T: 8, opt: true }, + { + no: 8, + name: 'disable_semantic_codebase_search', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 9, name: 'force_disable', kind: 'scalar', T: 8, opt: true }, + { + no: 10, + name: 'enterprise_config', + kind: 'message', + T: EnterpriseToolConfig, + }, + ]); + static fromBinary(bytes, options) { + return new _MqueryToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MqueryToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MqueryToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MqueryToolConfig, a, b); + } +}; +var NotifyUserConfig = class _NotifyUserConfig extends Message { + /** + * Controls when notify_user blocks based on confidence levels and document + * presence + * + * @generated from field: exa.codeium_common_pb.ArtifactReviewMode artifact_review_mode = 1; + */ + artifactReviewMode = ArtifactReviewMode.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.NotifyUserConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'artifact_review_mode', + kind: 'enum', + T: proto3.getEnumType(ArtifactReviewMode), + }, + ]); + static fromBinary(bytes, options) { + return new _NotifyUserConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _NotifyUserConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _NotifyUserConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_NotifyUserConfig, a, b); + } +}; +var GrepToolConfig = class _GrepToolConfig extends Message { + /** + * Max number of grep results returned to the model + * + * @generated from field: uint32 max_grep_results = 1; + */ + maxGrepResults = 0; + /** + * If true, then we'll retrieve the deepest child CCI that encapsulates the + * matching line The CCI's nodepath and potentially the CCI snippet will be + * included in the tool response + * + * @generated from field: optional bool include_cci_in_result = 2; + */ + includeCciInResult; + /** + * If there are fewer than num_full_source_ccis in the grep result + * then we'll include the CCI snippet in the tool response + * + * @generated from field: uint32 num_full_source_ccis = 3; + */ + numFullSourceCcis = 0; + /** + * If we include the CCI snippet, then we'll truncate it at max_bytes_per_cci + * using split truncation priority + * + * @generated from field: uint32 max_bytes_per_cci = 4; + */ + maxBytesPerCci = 0; + /** + * Configuration that limits file access. TODO(matthewli): Rename this config + * + * @generated from field: exa.cortex_pb.EnterpriseToolConfig enterprise_config = 5; + */ + enterpriseConfig; + /** + * If true, allows Cascade to search within .gitignored files + * Also inserts the --no-ignore-vcs flag in the ripgrep command + * + * @generated from field: optional bool allow_access_gitignore = 6; + */ + allowAccessGitignore; + /** + * whether to use the code_search tool + * + * @generated from field: optional bool use_code_search = 7; + */ + useCodeSearch; + /** + * Only relevant if use_code_search is true. + * Disables falling back to local grep execution if code search call fails for + * any reason. + * + * @generated from field: optional bool disable_fallback_to_local_execution = 8; + */ + disableFallbackToLocalExecution; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.GrepToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_grep_results', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 2, name: 'include_cci_in_result', kind: 'scalar', T: 8, opt: true }, + { + no: 3, + name: 'num_full_source_ccis', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'max_bytes_per_cci', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'enterprise_config', + kind: 'message', + T: EnterpriseToolConfig, + }, + { no: 6, name: 'allow_access_gitignore', kind: 'scalar', T: 8, opt: true }, + { no: 7, name: 'use_code_search', kind: 'scalar', T: 8, opt: true }, + { + no: 8, + name: 'disable_fallback_to_local_execution', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _GrepToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GrepToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GrepToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GrepToolConfig, a, b); + } +}; +var FindToolConfig = class _FindToolConfig extends Message { + /** + * @generated from field: uint32 max_find_results = 1; + */ + maxFindResults = 0; + /** + * @generated from field: string fd_path = 2; + */ + fdPath = ''; + /** + * whether to use the code_search tool + * + * @generated from field: optional bool use_code_search = 3; + */ + useCodeSearch; + /** + * Only relevant if use_code_search is true. + * Disables falling back to local find execution if code search call fails for + * any reason. + * + * @generated from field: optional bool disable_fallback_to_local_execution = 4; + */ + disableFallbackToLocalExecution; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FindToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_find_results', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'fd_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'use_code_search', kind: 'scalar', T: 8, opt: true }, + { + no: 4, + name: 'disable_fallback_to_local_execution', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _FindToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FindToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FindToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FindToolConfig, a, b); + } +}; +var CodeSearchToolConfig = class _CodeSearchToolConfig extends Message { + /** + * @generated from field: string cs_path = 1; + */ + csPath = ''; + /** + * @generated from field: optional bool use_eval_tag = 2; + */ + useEvalTag; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodeSearchToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cs_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'use_eval_tag', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _CodeSearchToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeSearchToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeSearchToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeSearchToolConfig, a, b); + } +}; +var InternalSearchToolConfig = class _InternalSearchToolConfig extends Message { + /** + * @generated from field: int32 max_results = 1; + */ + maxResults = 0; + /** + * @generated from field: int32 max_content_length = 2; + */ + maxContentLength = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.InternalSearchToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_results', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'max_content_length', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _InternalSearchToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _InternalSearchToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _InternalSearchToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_InternalSearchToolConfig, a, b); + } +}; +var ClusterQueryToolConfig = class _ClusterQueryToolConfig extends Message { + /** + * @generated from field: uint32 max_cluster_query_results = 1; + */ + maxClusterQueryResults = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ClusterQueryToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_cluster_query_results', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ClusterQueryToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClusterQueryToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClusterQueryToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ClusterQueryToolConfig, a, b); + } +}; +var InspectClusterToolConfig = class _InspectClusterToolConfig extends Message { + /** + * @generated from field: uint32 max_tokens_per_inspect_cluster = 1; + */ + maxTokensPerInspectCluster = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.InspectClusterToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_tokens_per_inspect_cluster', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _InspectClusterToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _InspectClusterToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _InspectClusterToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_InspectClusterToolConfig, a, b); + } +}; +var AutoCommandConfig = class _AutoCommandConfig extends Message { + /** + * If true, allows the model to decide if a command should be run without + * approval. This has lower precedence than the allow and denylists. + * + * @generated from field: optional bool enable_model_auto_run = 1 [deprecated = true]; + * @deprecated + */ + enableModelAutoRun; + /** + * Command prefixes that should always be auto-run, even if disagreeing with + * the model. A command prefix will match on a cmd + argument basis, as + * opposed to a string prefix. That is to say, each token of the prefix must + * exactly match and in the correct order. + * + * For example, the prefix `kubectl get` will match to `kubectl get pod` but + * not `kubectl delete`. The prefix `g` will not match to `git. + * + * @generated from field: repeated string user_allowlist = 2; + */ + userAllowlist = []; + /** + * Command prefixes that should never be auto-run, even if disagreeing with + * the model. + * + * @generated from field: repeated string user_denylist = 3; + */ + userDenylist = []; + /** + * Same as above, but for codeium-set defaults. If there is a conflict, the + * user settings will have higher precedence. + * + * @generated from field: repeated string system_allowlist = 4; + */ + systemAllowlist = []; + /** + * @generated from field: repeated string system_denylist = 5; + */ + systemDenylist = []; + /** + * Command prefixes that should always no-op, even if disagreeing with the + * model. Overrides user and system allow/denylists and is only used in eval + * mode. For example, we might want the model to make gh calls as part of eval + * but not want gh to actually do anything. We also don't want the gh to fail + * and then the model starts going off trying to get gh to work. + * + * @generated from field: repeated string system_nooplist = 7; + */ + systemNooplist = []; + /** + * Sets the auto command execution mode (deprecates enable_model_auto_run): + * - CASCADE_COMMANDS_AUTO_EXECUTION_OFF: Never auto-run commands. + * - CASCADE_COMMANDS_AUTO_EXECUTION_AUTO: Auto-run commands that the model + * approves. + * - CASCADE_COMMANDS_AUTO_EXECUTION_ON: Always auto-run commands. + * + * Note: this setting still respects the user and system allow/denylists. + * + * @generated from field: exa.codeium_common_pb.CascadeCommandsAutoExecution auto_execution_policy = 6; + */ + autoExecutionPolicy = CascadeCommandsAutoExecution.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.AutoCommandConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enable_model_auto_run', kind: 'scalar', T: 8, opt: true }, + { no: 2, name: 'user_allowlist', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'user_denylist', kind: 'scalar', T: 9, repeated: true }, + { no: 4, name: 'system_allowlist', kind: 'scalar', T: 9, repeated: true }, + { no: 5, name: 'system_denylist', kind: 'scalar', T: 9, repeated: true }, + { no: 7, name: 'system_nooplist', kind: 'scalar', T: 9, repeated: true }, + { + no: 6, + name: 'auto_execution_policy', + kind: 'enum', + T: proto3.getEnumType(CascadeCommandsAutoExecution), + }, + ]); + static fromBinary(bytes, options) { + return new _AutoCommandConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AutoCommandConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AutoCommandConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AutoCommandConfig, a, b); + } +}; +var ListDirToolConfig = class _ListDirToolConfig extends Message { + /** + * Configuration that limits file access. TODO(matthewli): Rename this config + * + * @generated from field: exa.cortex_pb.EnterpriseToolConfig enterprise_config = 1; + */ + enterpriseConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ListDirToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'enterprise_config', + kind: 'message', + T: EnterpriseToolConfig, + }, + ]); + static fromBinary(bytes, options) { + return new _ListDirToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ListDirToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ListDirToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ListDirToolConfig, a, b); + } +}; +var RunCommandToolConfig = class _RunCommandToolConfig extends Message { + /** + * @generated from field: uint32 max_chars_command_stdout = 1; + */ + maxCharsCommandStdout = 0; + /** + * @generated from field: optional bool force_disable = 2; + */ + forceDisable; + /** + * @generated from field: exa.cortex_pb.AutoCommandConfig auto_command_config = 3; + */ + autoCommandConfig; + /** + * If true, allows the model to execute commands in the IDE's terminal. + * + * @generated from field: optional bool enable_ide_terminal_execution = 4; + */ + enableIdeTerminalExecution; + /** + * Name of the shell (e.g. bash, zsh, fish, powershell, etc.) to use for + * terminal execution. Only relevant if enable_ide_terminal_execution is true. + * + * @generated from field: string shell_name = 5; + */ + shellName = ''; + /** + * Path to the shell (e.g. /bin/bash, /usr/bin/env bash, /usr/bin/zsh, + * /bin/fish, etc.). Only relevant if enable_ide_terminal_execution is true. + * + * @generated from field: string shell_path = 6; + */ + shellPath = ''; + /** + * Maximum time in milliseconds to wait for a command to complete. + * No timeout enforced if set to 0. + * + * @generated from field: uint32 max_timeout_ms = 7; + */ + maxTimeoutMs = 0; + /** + * Configuration that limits file access. TODO(matthewli): Rename this config + * + * @generated from field: exa.cortex_pb.EnterpriseToolConfig enterprise_config = 9; + */ + enterpriseConfig; + /** + * Script to run before every command. It will be concatenated along with a + * trailing space with the command, e.g. shell_setup_script + " " + command so + * it must have appropriate control operators. This is to work + * around the non-persistent shell. + * + * @generated from field: string shell_setup_script = 10; + */ + shellSetupScript = ''; + /** + * If true, forbids usage of grep and find (in favor of search tools). + * + * @generated from field: optional bool forbid_search_commands = 11; + */ + forbidSearchCommands; + /** + * If true, enables the midterm output processor. Only relevant if + * enable_ide_terminal_execution is true. + * + * @generated from field: optional bool enable_midterm_output_processor = 8 [deprecated = true]; + * @deprecated + */ + enableMidtermOutputProcessor; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.RunCommandToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_chars_command_stdout', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 2, name: 'force_disable', kind: 'scalar', T: 8, opt: true }, + { + no: 3, + name: 'auto_command_config', + kind: 'message', + T: AutoCommandConfig, + }, + { + no: 4, + name: 'enable_ide_terminal_execution', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 5, + name: 'shell_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'shell_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'max_timeout_ms', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 9, + name: 'enterprise_config', + kind: 'message', + T: EnterpriseToolConfig, + }, + { + no: 10, + name: 'shell_setup_script', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 11, name: 'forbid_search_commands', kind: 'scalar', T: 8, opt: true }, + { + no: 8, + name: 'enable_midterm_output_processor', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _RunCommandToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RunCommandToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RunCommandToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RunCommandToolConfig, a, b); + } +}; +var KnowledgeBaseSearchToolConfig = class _KnowledgeBaseSearchToolConfig extends Message { + /** + * @generated from field: uint32 max_tokens_per_knowledge_base_search = 1; + */ + maxTokensPerKnowledgeBaseSearch = 0; + /** + * @generated from field: optional double prompt_fraction = 2; + */ + promptFraction; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.KnowledgeBaseSearchToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_tokens_per_knowledge_base_search', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 2, name: 'prompt_fraction', kind: 'scalar', T: 1, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeBaseSearchToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeBaseSearchToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeBaseSearchToolConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeBaseSearchToolConfig, a, b); + } +}; +var FastApplyFallbackConfig = class _FastApplyFallbackConfig extends Message { + /** + * If true, then falls back to fast apply if the replacement fails. + * + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * This controls how many unchanged lines to show around each diff block when + * constructing the fast apply prompt. + * + * @generated from field: uint32 prompt_unchanged_threshold = 2; + */ + promptUnchangedThreshold = 0; + /** + * The content sent to the fast apply model is the minimal contiguous range + * spanning all diff blocks, with a radius of unchanged lines on top. This + * parameter controls the radius. The larger this is, the longer the fast + * apply fallback will take, but the more context the model will have. + * + * @generated from field: uint32 content_view_radius_lines = 3; + */ + contentViewRadiusLines = 0; + /** + * Fast apply will make changes potentially to any area of the content sent + * over. Diffs outside of the minimal contiguous range will be ignored, with + * an optional radius of unchanged lines as buffer. + * + * @generated from field: uint32 content_edit_radius_lines = 4; + */ + contentEditRadiusLines = 0; + /** + * Model to use for fast apply. + * + * @generated from field: exa.codeium_common_pb.Model fast_apply_model = 5; + */ + fastApplyModel = Model.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FastApplyFallbackConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'prompt_unchanged_threshold', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'content_view_radius_lines', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'content_edit_radius_lines', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'fast_apply_model', + kind: 'enum', + T: proto3.getEnumType(Model), + }, + ]); + static fromBinary(bytes, options) { + return new _FastApplyFallbackConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FastApplyFallbackConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FastApplyFallbackConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FastApplyFallbackConfig, a, b); + } +}; +var ReplaceContentToolConfig = class _ReplaceContentToolConfig extends Message { + /** + * @generated from field: float max_fuzzy_edit_distance_fraction = 1; + */ + maxFuzzyEditDistanceFraction = 0; + /** + * If true, will try to apply any chunks that match, even if some have + * + * @generated from field: bool allow_partial_replacement_success = 2; + */ + allowPartialReplacementSuccess = false; + /** + * matching errors. + * If non-zero, ephemeral message will encourage model to view file before + * editing. The value of the field determines the maximum step index distance + * to be considered recent. + * + * @generated from field: uint32 view_file_recency_max_distance = 3; + */ + viewFileRecencyMaxDistance = 0; + /** + * If the target and the fuzzy match are multi-line, and the first and last + * lines exactly match, then use the fuzzy replacement regardless of how much + * edit distance there is. + * + * @generated from field: bool enable_fuzzy_sandwich_match = 4; + */ + enableFuzzySandwichMatch = false; + /** + * Whether to fall back to fast apply in case of replacement failure. + * + * @generated from field: exa.cortex_pb.FastApplyFallbackConfig fast_apply_fallback_config = 5; + */ + fastApplyFallbackConfig; + /** + * Variant of the tool definition. + * + * @generated from field: exa.cortex_pb.ReplaceToolVariant tool_variant = 6 [deprecated = true]; + * @deprecated + */ + toolVariant = ReplaceToolVariant.UNSPECIFIED; + /** + * Whether to show triggered memories in the output + * + * @generated from field: optional bool show_triggered_memories = 8; + */ + showTriggeredMemories; + /** + * If true, then the model is not provided the option to set allowMultiple + * Default false (model can set allowMultiple) + * + * @generated from field: optional bool disable_allow_multiple = 9; + */ + disableAllowMultiple; + /** + * If true, then the tool will require the specification of line ranges for + * the replacement chunks + * + * @generated from field: optional bool use_line_range = 10; + */ + useLineRange; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ReplaceContentToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_fuzzy_edit_distance_fraction', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 2, + name: 'allow_partial_replacement_success', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'view_file_recency_max_distance', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'enable_fuzzy_sandwich_match', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'fast_apply_fallback_config', + kind: 'message', + T: FastApplyFallbackConfig, + }, + { + no: 6, + name: 'tool_variant', + kind: 'enum', + T: proto3.getEnumType(ReplaceToolVariant), + }, + { no: 8, name: 'show_triggered_memories', kind: 'scalar', T: 8, opt: true }, + { no: 9, name: 'disable_allow_multiple', kind: 'scalar', T: 8, opt: true }, + { no: 10, name: 'use_line_range', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _ReplaceContentToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ReplaceContentToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ReplaceContentToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ReplaceContentToolConfig, a, b); + } +}; +var CodeToolConfig = class _CodeToolConfig extends Message { + /** + * List of file extensions that should not be edited or created. + * + * @generated from field: repeated string disable_extensions = 1; + */ + disableExtensions = []; + /** + * @generated from field: optional bool apply_edits = 2; + */ + applyEdits; + /** + * @generated from field: optional bool use_replace_content_edit_tool = 3 [deprecated = true]; + * @deprecated + */ + useReplaceContentEditTool; + /** + * @generated from field: exa.cortex_pb.ReplaceContentToolConfig replace_content_tool_config = 4; + */ + replaceContentToolConfig; + /** + * @generated from field: exa.cortex_pb.AutoFixLintsConfig auto_fix_lints_config = 5; + */ + autoFixLintsConfig; + /** + * If true, then allow cascade to edit/create files in .gitignore + * + * @generated from field: optional bool allow_edit_gitignore = 6; + */ + allowEditGitignore; + /** + * Configuration that limits file access. TODO(matthewli): Rename this config + * + * @generated from field: exa.cortex_pb.EnterpriseToolConfig enterprise_config = 7; + */ + enterpriseConfig; + /** + * Additional params used by Tab models + * + * @generated from field: optional bool override_allow_action_on_unsaved_file = 8; + */ + overrideAllowActionOnUnsavedFile; + /** + * @generated from field: optional bool skip_replace_content_validation = 9; + */ + skipReplaceContentValidation; + /** + * If true, then use replace content style tool calls to propose code edits + * + * @generated from field: optional bool use_replace_content_propose_code = 10; + */ + useReplaceContentProposeCode; + /** + * If true, does not stack multiple diffs, only shows the latest diff. + * + * @generated from field: optional bool only_show_incremental_diff_zone = 11; + */ + onlyShowIncrementalDiffZone; + /** + * Optional file allowlist to limit the files that can be edited. Ignored if + * empty. + * + * @generated from field: repeated string file_allowlist = 12; + */ + fileAllowlist = []; + /** + * Optional directory allowlist to limit the directories that can be edited. + * Ignored if empty. + * + * @generated from field: repeated string dir_allowlist = 17; + */ + dirAllowlist = []; + /** + * If true, classify the edit for interactive cascade + * + * @generated from field: optional bool classify_edit = 13; + */ + classifyEdit; + /** + * @generated from field: optional bool run_proposal_extension_verifier = 14; + */ + runProposalExtensionVerifier; + /** + * If true, then we will not await lint errors before finishing in the + * handler. + * + * @generated from field: optional bool skip_await_lint_errors = 15; + */ + skipAwaitLintErrors; + /** + * If true, give the importance of the edit (for interactive cascade) + * + * @generated from field: optional bool provide_importance = 16; + */ + provideImportance; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodeToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'disable_extensions', kind: 'scalar', T: 9, repeated: true }, + { no: 2, name: 'apply_edits', kind: 'scalar', T: 8, opt: true }, + { + no: 3, + name: 'use_replace_content_edit_tool', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 4, + name: 'replace_content_tool_config', + kind: 'message', + T: ReplaceContentToolConfig, + }, + { + no: 5, + name: 'auto_fix_lints_config', + kind: 'message', + T: AutoFixLintsConfig, + }, + { no: 6, name: 'allow_edit_gitignore', kind: 'scalar', T: 8, opt: true }, + { + no: 7, + name: 'enterprise_config', + kind: 'message', + T: EnterpriseToolConfig, + }, + { + no: 8, + name: 'override_allow_action_on_unsaved_file', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 9, + name: 'skip_replace_content_validation', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 10, + name: 'use_replace_content_propose_code', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 11, + name: 'only_show_incremental_diff_zone', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 12, name: 'file_allowlist', kind: 'scalar', T: 9, repeated: true }, + { no: 17, name: 'dir_allowlist', kind: 'scalar', T: 9, repeated: true }, + { no: 13, name: 'classify_edit', kind: 'scalar', T: 8, opt: true }, + { + no: 14, + name: 'run_proposal_extension_verifier', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 15, name: 'skip_await_lint_errors', kind: 'scalar', T: 8, opt: true }, + { no: 16, name: 'provide_importance', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _CodeToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeToolConfig, a, b); + } +}; +var IntentToolConfig = class _IntentToolConfig extends Message { + /** + * @generated from field: exa.codeium_common_pb.Model intent_model = 1; + */ + intentModel = Model.UNSPECIFIED; + /** + * @generated from field: uint32 max_context_tokens = 2; + */ + maxContextTokens = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.IntentToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'intent_model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 2, + name: 'max_context_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _IntentToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _IntentToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _IntentToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_IntentToolConfig, a, b); + } +}; +var ViewFileToolConfig = class _ViewFileToolConfig extends Message { + /** + * If true, then Cascade can view files in .gitignore + * + * @generated from field: optional bool allow_view_gitignore = 7; + */ + allowViewGitignore; + /** + * If true, then enables a separate view file outline tool. + * + * @generated from field: optional bool split_outline_tool = 8; + */ + splitOutlineTool; + /** + * Whether or not to check which glob rules are triggered and return them in + * the triggeredMemories field + * + * @generated from field: optional bool show_triggered_memories = 13; + */ + showTriggeredMemories; + /** + * Configuration that limits file access. TODO(matthewli): Rename this config + * + * @generated from field: exa.cortex_pb.EnterpriseToolConfig enterprise_config = 12; + */ + enterpriseConfig; + /** + * The maximum number of lines that the model can view per tool call + * + * @generated from field: optional uint32 max_lines_per_view = 14; + */ + maxLinesPerView; + /** + * Whether to prepend each line of raw content with its line number + * + * @generated from field: optional bool include_line_numbers = 15; + */ + includeLineNumbers; + /** + * Optional directory allowlist to limit the directories that can be viewed. + * Ignored if empty. + * + * @generated from field: repeated string dir_allowlist = 16; + */ + dirAllowlist = []; + /** + * START - File outline specific configuration + * + * @generated from field: uint32 max_total_outline_bytes = 9; + */ + maxTotalOutlineBytes = 0; + /** + * @generated from field: uint32 max_bytes_per_outline_item = 11; + */ + maxBytesPerOutlineItem = 0; + /** + * When viewing an outline with offset 0, we will attempt to show the full + * file as long as it is less than this many bytes. + * + * END - File outline specific configuration + * + * @generated from field: optional uint32 show_full_file_bytes = 10; + */ + showFullFileBytes; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ViewFileToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 7, name: 'allow_view_gitignore', kind: 'scalar', T: 8, opt: true }, + { no: 8, name: 'split_outline_tool', kind: 'scalar', T: 8, opt: true }, + { + no: 13, + name: 'show_triggered_memories', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 12, + name: 'enterprise_config', + kind: 'message', + T: EnterpriseToolConfig, + }, + { no: 14, name: 'max_lines_per_view', kind: 'scalar', T: 13, opt: true }, + { no: 15, name: 'include_line_numbers', kind: 'scalar', T: 8, opt: true }, + { no: 16, name: 'dir_allowlist', kind: 'scalar', T: 9, repeated: true }, + { + no: 9, + name: 'max_total_outline_bytes', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 11, + name: 'max_bytes_per_outline_item', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 10, name: 'show_full_file_bytes', kind: 'scalar', T: 13, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _ViewFileToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ViewFileToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ViewFileToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ViewFileToolConfig, a, b); + } +}; +var SuggestedResponseConfig = class _SuggestedResponseConfig extends Message { + /** + * @generated from field: optional bool force_disable = 1; + */ + forceDisable; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SuggestedResponseConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _SuggestedResponseConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SuggestedResponseConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SuggestedResponseConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SuggestedResponseConfig, a, b); + } +}; +var SearchWebToolConfig = class _SearchWebToolConfig extends Message { + /** + * @generated from field: optional bool force_disable = 1; + */ + forceDisable; + /** + * @generated from field: optional exa.codeium_common_pb.ThirdPartyWebSearchConfig third_party_config = 2; + */ + thirdPartyConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SearchWebToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'third_party_config', + kind: 'message', + T: ThirdPartyWebSearchConfig, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _SearchWebToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SearchWebToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SearchWebToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SearchWebToolConfig, a, b); + } +}; +var MemoryToolConfig = class _MemoryToolConfig extends Message { + /** + * Toggles both the memory tool and the memory retrieval system + * + * @generated from field: optional bool force_disable = 1; + */ + forceDisable; + /** + * If true, cascade will not create memories unless explicitly requested by + * the user + * + * @generated from field: optional bool disable_auto_generate_memories = 2; + */ + disableAutoGenerateMemories; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.MemoryToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'disable_auto_generate_memories', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _MemoryToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MemoryToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MemoryToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MemoryToolConfig, a, b); + } +}; +var McpToolConfig = class _McpToolConfig extends Message { + /** + * @generated from field: optional bool force_disable = 1; + */ + forceDisable; + /** + * @generated from field: uint32 max_output_bytes = 2; + */ + maxOutputBytes = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.McpToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'max_output_bytes', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _McpToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpToolConfig, a, b); + } +}; +var InvokeSubagentToolConfig = class _InvokeSubagentToolConfig extends Message { + /** + * If true, enables the invoke_subagent tool. Defaults to false (disabled). + * + * @generated from field: optional bool enabled = 1; + */ + enabled; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.InvokeSubagentToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _InvokeSubagentToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _InvokeSubagentToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _InvokeSubagentToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_InvokeSubagentToolConfig, a, b); + } +}; +var AutoFixLintsConfig = class _AutoFixLintsConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * Specifies the opening section of the prompt string attached to a code + * action step, which tells the model that it's receiving IDE feedback about + * lint errors that the step created, as well as general guidelines on how to + * respond. + * + * @generated from field: optional string notifying_prompt = 2; + */ + notifyingPrompt; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.AutoFixLintsConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { no: 2, name: 'notifying_prompt', kind: 'scalar', T: 9, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _AutoFixLintsConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AutoFixLintsConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AutoFixLintsConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AutoFixLintsConfig, a, b); + } +}; +var CaptureBrowserScreenshotToolConfig = class _CaptureBrowserScreenshotToolConfig extends Message { + /** + * whether to allow the option to save the screenshot as an artifact + * + * @generated from field: optional bool enable_saving = 1; + */ + enableSaving; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CaptureBrowserScreenshotToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enable_saving', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _CaptureBrowserScreenshotToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CaptureBrowserScreenshotToolConfig().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CaptureBrowserScreenshotToolConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CaptureBrowserScreenshotToolConfig, a, b); + } +}; +var DOMExtractionConfig = class _DOMExtractionConfig extends Message { + /** + * If true, the extracted DOM will include scaled coordinates for interactive + * elements. + * + * @generated from field: optional bool include_coordinates = 1; + */ + includeCoordinates; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.DOMExtractionConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'include_coordinates', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _DOMExtractionConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DOMExtractionConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DOMExtractionConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_DOMExtractionConfig, a, b); + } +}; +var BrowserSubagentContextConfig = class _BrowserSubagentContextConfig extends Message { + /** + * Type of context to provide to the browser subagent. Defaults to + * WITH_MARKDOWN_TRAJECTORY_SUMMARY if not specified. + * + * @generated from field: optional exa.cortex_pb.BrowserSubagentContextConfig.ContextType type = 1; + */ + type; + /** + * Maximum characters for subagent context. Defaults to 10000 if not + * specified. + * + * @generated from field: optional int32 max_chars = 2; + */ + maxChars; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserSubagentContextConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(BrowserSubagentContextConfig_ContextType), + opt: true, + }, + { no: 2, name: 'max_chars', kind: 'scalar', T: 5, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _BrowserSubagentContextConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserSubagentContextConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserSubagentContextConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_BrowserSubagentContextConfig, a, b); + } +}; +var BrowserSubagentContextConfig_ContextType; +(function (BrowserSubagentContextConfig_ContextType2) { + BrowserSubagentContextConfig_ContextType2[ + (BrowserSubagentContextConfig_ContextType2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + BrowserSubagentContextConfig_ContextType2[ + (BrowserSubagentContextConfig_ContextType2[ + 'WITH_MARKDOWN_TRAJECTORY_SUMMARY' + ] = 1) + ] = 'WITH_MARKDOWN_TRAJECTORY_SUMMARY'; + BrowserSubagentContextConfig_ContextType2[ + (BrowserSubagentContextConfig_ContextType2['TASK_ONLY'] = 2) + ] = 'TASK_ONLY'; +})( + BrowserSubagentContextConfig_ContextType || + (BrowserSubagentContextConfig_ContextType = {}), +); +proto3.util.setEnumType( + BrowserSubagentContextConfig_ContextType, 'exa.cortex_pb.BrowserSubagentContextConfig.ContextType', [ { no: 0, name: 'CONTEXT_TYPE_UNSPECIFIED' }, @@ -25527,2204 +48256,3940 @@ a.util.setEnumType( { no: 2, name: 'CONTEXT_TYPE_TASK_ONLY' }, ], ); -var ks = class e extends r { - mode; - browserSubagentModel = f.UNSPECIFIED; - useDetailedConverter; - suggestedMaxToolCalls = 0; - disableOnboarding; - subagentReminderMode; - maxContextTokens; - contextConfig; - domExtractionConfig; - disableScreenshot; - lowLevelToolsConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserSubagentToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'mode', kind: 'enum', T: a.getEnumType(cs), opt: !0 }, - { - no: 2, - name: 'browser_subagent_model', - kind: 'enum', - T: a.getEnumType(f), - }, - { no: 3, name: 'use_detailed_converter', kind: 'scalar', T: 8, opt: !0 }, - { no: 4, name: 'suggested_max_tool_calls', kind: 'scalar', T: 5 }, - { no: 5, name: 'disable_onboarding', kind: 'scalar', T: 8, opt: !0 }, - { no: 6, name: 'subagent_reminder_mode', kind: 'message', T: S_ }, - { no: 7, name: 'max_context_tokens', kind: 'scalar', T: 5, opt: !0 }, - { no: 8, name: 'context_config', kind: 'message', T: N_, opt: !0 }, - { no: 9, name: 'dom_extraction_config', kind: 'message', T: Ps, opt: !0 }, - { no: 10, name: 'disable_screenshot', kind: 'scalar', T: 8, opt: !0 }, - { - no: 11, - name: 'low_level_tools_config', - kind: 'message', - T: P_, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - S_ = class e extends r { - mode = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SubagentReminderMode'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'verify_screenshots', - kind: 'message', - T: I_, - oneof: 'mode', - }, - { - no: 2, - name: 'verify_completeness', - kind: 'message', - T: p_, - oneof: 'mode', - }, - { no: 3, name: 'custom', kind: 'message', T: O_, oneof: 'mode' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - I_ = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserVerifyScreenshotsMode'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - p_ = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserVerifyCompletenessMode'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - O_ = class e extends r { - reminder = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserCustomReminderMode'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'reminder', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - A_ = class e extends r { - enabled; - red; - green; - blue; - alpha; - displayColor = ''; - radius; - feedbackType; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ClickFeedbackConfig'; - static fields = a.util.newFieldList(() => [ - { no: 12, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 7, name: 'red', kind: 'scalar', T: 5, opt: !0 }, - { no: 8, name: 'green', kind: 'scalar', T: 5, opt: !0 }, - { no: 9, name: 'blue', kind: 'scalar', T: 5, opt: !0 }, - { no: 10, name: 'alpha', kind: 'scalar', T: 5, opt: !0 }, - { no: 5, name: 'display_color', kind: 'scalar', T: 9 }, - { no: 11, name: 'radius', kind: 'scalar', T: 5, opt: !0 }, - { - no: 13, - name: 'feedback_type', - kind: 'enum', - T: a.getEnumType(gs), - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gs; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.DOT = 1)] = 'DOT'), - (e[(e.MOUSE_POINTER = 2)] = 'MOUSE_POINTER')); -})(gs || (gs = {})); -a.util.setEnumType(gs, 'exa.cortex_pb.ClickFeedbackConfig.FeedbackType', [ - { no: 0, name: 'FEEDBACK_TYPE_UNSPECIFIED' }, - { no: 1, name: 'FEEDBACK_TYPE_DOT' }, - { no: 2, name: 'FEEDBACK_TYPE_MOUSE_POINTER' }, -]); -var C_ = class e extends r { - clickFeedback; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ClickBrowserPixelToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'click_feedback', kind: 'message', T: A_ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - R_ = class e extends r { - captureAgentActionDiffs; - includeDomTreeInDiffs; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserStateDiffingConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'capture_agent_action_diffs', +var BrowserSubagentToolConfig = class _BrowserSubagentToolConfig extends Message { + /** + * Mode for browser tool distribution between main agent and subagent. + * Defaults to subagent-primarily if not specified. + * + * @generated from field: optional exa.cortex_pb.BrowserSubagentMode mode = 1; + */ + mode; + /** + * Model to use for the browser subagent + * + * @generated from field: exa.codeium_common_pb.Model browser_subagent_model = 2; + */ + browserSubagentModel = Model.UNSPECIFIED; + /** + * When true, includes subagent's tool calls and explanations in step output + * Defaults to false if not specified. + * + * @generated from field: optional bool use_detailed_converter = 3; + */ + useDetailedConverter; + /** + * The subagent is prompted to stop working after this many tool calls, + * though we do not enforce this in code. + * + * @generated from field: int32 suggested_max_tool_calls = 4; + */ + suggestedMaxToolCalls = 0; + /** + * When true, the agent will not try to onboard the user. + * + * @generated from field: optional bool disable_onboarding = 5; + */ + disableOnboarding; + /** + * Reminder mode for the planner after browser subagent steps. If nil, the + * planner will not be reminded to do anything based on the subagent output. + * + * @generated from field: exa.cortex_pb.SubagentReminderMode subagent_reminder_mode = 6; + */ + subagentReminderMode; + /** + * The maximum number of tokens that will be given to the subagent. If + * unspecified, only the usual model-specific token limits will be imposed. + * + * @generated from field: optional int32 max_context_tokens = 7; + */ + maxContextTokens; + /** + * Controls what context is provided to the browser subagent. Only applicable + * when mode is not MAIN_AGENT_ONLY (since there's no browser subagent in that + * mode). + * + * @generated from field: optional exa.cortex_pb.BrowserSubagentContextConfig context_config = 8; + */ + contextConfig; + /** + * Configuration for DOM extraction. + * + * @generated from field: optional exa.cortex_pb.DOMExtractionConfig dom_extraction_config = 9; + */ + domExtractionConfig; + /** + * If true, disables all browser screenshots for the browser subagent by + * removing tools that capture or return screenshots: + * - capture_browser_screenshot: explicit screenshot tool + * - click_browser_pixel: returns screenshot with click feedback + * - browser_drag_pixel_to_pixel: returns screenshot with drag feedback + * This setting is useful for training or evaluation scenarios where you want + * to remove all images from the model's input. + * + * @generated from field: optional bool disable_screenshot = 10; + */ + disableScreenshot; + /** + * Configuration for low-level browser tools like mouse_up/mouse_down. + * + * @generated from field: optional exa.cortex_pb.LowLevelToolsConfig low_level_tools_config = 11; + */ + lowLevelToolsConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserSubagentToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'mode', + kind: 'enum', + T: proto3.getEnumType(BrowserSubagentMode), + opt: true, + }, + { + no: 2, + name: 'browser_subagent_model', + kind: 'enum', + T: proto3.getEnumType(Model), + }, + { no: 3, name: 'use_detailed_converter', kind: 'scalar', T: 8, opt: true }, + { + no: 4, + name: 'suggested_max_tool_calls', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 5, name: 'disable_onboarding', kind: 'scalar', T: 8, opt: true }, + { + no: 6, + name: 'subagent_reminder_mode', + kind: 'message', + T: SubagentReminderMode, + }, + { no: 7, name: 'max_context_tokens', kind: 'scalar', T: 5, opt: true }, + { + no: 8, + name: 'context_config', + kind: 'message', + T: BrowserSubagentContextConfig, + opt: true, + }, + { + no: 9, + name: 'dom_extraction_config', + kind: 'message', + T: DOMExtractionConfig, + opt: true, + }, + { no: 10, name: 'disable_screenshot', kind: 'scalar', T: 8, opt: true }, + { + no: 11, + name: 'low_level_tools_config', + kind: 'message', + T: LowLevelToolsConfig, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserSubagentToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserSubagentToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserSubagentToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserSubagentToolConfig, a, b); + } +}; +var SubagentReminderMode = class _SubagentReminderMode extends Message { + /** + * @generated from oneof exa.cortex_pb.SubagentReminderMode.mode + */ + mode = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SubagentReminderMode'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'verify_screenshots', + kind: 'message', + T: BrowserVerifyScreenshotsMode, + oneof: 'mode', + }, + { + no: 2, + name: 'verify_completeness', + kind: 'message', + T: BrowserVerifyCompletenessMode, + oneof: 'mode', + }, + { + no: 3, + name: 'custom', + kind: 'message', + T: BrowserCustomReminderMode, + oneof: 'mode', + }, + ]); + static fromBinary(bytes, options) { + return new _SubagentReminderMode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SubagentReminderMode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SubagentReminderMode().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SubagentReminderMode, a, b); + } +}; +var BrowserVerifyScreenshotsMode = class _BrowserVerifyScreenshotsMode extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserVerifyScreenshotsMode'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _BrowserVerifyScreenshotsMode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserVerifyScreenshotsMode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserVerifyScreenshotsMode().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_BrowserVerifyScreenshotsMode, a, b); + } +}; +var BrowserVerifyCompletenessMode = class _BrowserVerifyCompletenessMode extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserVerifyCompletenessMode'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _BrowserVerifyCompletenessMode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserVerifyCompletenessMode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserVerifyCompletenessMode().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_BrowserVerifyCompletenessMode, a, b); + } +}; +var BrowserCustomReminderMode = class _BrowserCustomReminderMode extends Message { + /** + * The reminder to show to the planner after the subagent returns. + * + * @generated from field: string reminder = 1; + */ + reminder = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserCustomReminderMode'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'reminder', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserCustomReminderMode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserCustomReminderMode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserCustomReminderMode().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserCustomReminderMode, a, b); + } +}; +var ClickFeedbackConfig = class _ClickFeedbackConfig extends Message { + /** + * If true, a screenshot with the click's location will be shown to the model. + * + * @generated from field: optional bool enabled = 12; + */ + enabled; + /** + * Click dot color + * + * @generated from field: optional int32 red = 7; + */ + red; + /** + * @generated from field: optional int32 green = 8; + */ + green; + /** + * @generated from field: optional int32 blue = 9; + */ + blue; + /** + * @generated from field: optional int32 alpha = 10; + */ + alpha; + /** + * String description of the color. + * Used in the screenshot caption shown to the model. + * + * @generated from field: string display_color = 5; + */ + displayColor = ''; + /** + * Click dot radius + * + * @generated from field: optional int32 radius = 11; + */ + radius; + /** + * @generated from field: optional exa.cortex_pb.ClickFeedbackConfig.FeedbackType feedback_type = 13; + */ + feedbackType; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ClickFeedbackConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 12, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { no: 7, name: 'red', kind: 'scalar', T: 5, opt: true }, + { no: 8, name: 'green', kind: 'scalar', T: 5, opt: true }, + { no: 9, name: 'blue', kind: 'scalar', T: 5, opt: true }, + { no: 10, name: 'alpha', kind: 'scalar', T: 5, opt: true }, + { + no: 5, + name: 'display_color', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 11, name: 'radius', kind: 'scalar', T: 5, opt: true }, + { + no: 13, + name: 'feedback_type', + kind: 'enum', + T: proto3.getEnumType(ClickFeedbackConfig_FeedbackType), + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ClickFeedbackConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClickFeedbackConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClickFeedbackConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ClickFeedbackConfig, a, b); + } +}; +var ClickFeedbackConfig_FeedbackType; +(function (ClickFeedbackConfig_FeedbackType2) { + ClickFeedbackConfig_FeedbackType2[ + (ClickFeedbackConfig_FeedbackType2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + ClickFeedbackConfig_FeedbackType2[ + (ClickFeedbackConfig_FeedbackType2['DOT'] = 1) + ] = 'DOT'; + ClickFeedbackConfig_FeedbackType2[ + (ClickFeedbackConfig_FeedbackType2['MOUSE_POINTER'] = 2) + ] = 'MOUSE_POINTER'; +})(ClickFeedbackConfig_FeedbackType || (ClickFeedbackConfig_FeedbackType = {})); +proto3.util.setEnumType( + ClickFeedbackConfig_FeedbackType, + 'exa.cortex_pb.ClickFeedbackConfig.FeedbackType', + [ + { no: 0, name: 'FEEDBACK_TYPE_UNSPECIFIED' }, + { no: 1, name: 'FEEDBACK_TYPE_DOT' }, + { no: 2, name: 'FEEDBACK_TYPE_MOUSE_POINTER' }, + ], +); +var ClickBrowserPixelToolConfig = class _ClickBrowserPixelToolConfig extends Message { + /** + * If set, the tool output will include a screenshot of the current screen, + * with a dot marking the clicked pixel. + * + * @generated from field: exa.cortex_pb.ClickFeedbackConfig click_feedback = 1; + */ + clickFeedback; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ClickBrowserPixelToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'click_feedback', kind: 'message', T: ClickFeedbackConfig }, + ]); + static fromBinary(bytes, options) { + return new _ClickBrowserPixelToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ClickBrowserPixelToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ClickBrowserPixelToolConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ClickBrowserPixelToolConfig, a, b); + } +}; +var BrowserStateDiffingConfig = class _BrowserStateDiffingConfig extends Message { + /** + * If true, captures and displays browser state diffs with agent actions for + * the model. + * + * @generated from field: optional bool capture_agent_action_diffs = 1 [deprecated = true]; + * @deprecated + */ + captureAgentActionDiffs; + /** + * If true, includes DOM tree changes in browser state diffs. + * + * @generated from field: optional bool include_dom_tree_in_diffs = 2; + */ + includeDomTreeInDiffs; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserStateDiffingConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'capture_agent_action_diffs', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 2, + name: 'include_dom_tree_in_diffs', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserStateDiffingConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserStateDiffingConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserStateDiffingConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserStateDiffingConfig, a, b); + } +}; +var BrowserGetNetworkRequestToolConfig = class _BrowserGetNetworkRequestToolConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserGetNetworkRequestToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _BrowserGetNetworkRequestToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserGetNetworkRequestToolConfig().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _BrowserGetNetworkRequestToolConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_BrowserGetNetworkRequestToolConfig, a, b); + } +}; +var LowLevelToolsConfig = class _LowLevelToolsConfig extends Message { + /** + * If true, adds instructions for how to use low level tools like mouse_up and + * mouse_down to the browser subagent system prompt. + * + * @generated from field: optional bool enable_low_level_tools_instructions = 1; + */ + enableLowLevelToolsInstructions; + /** + * If true, enables browser_mouse_up and browser_mouse_down tools for + * click and drag-and-drop operations. Defaults to false if not specified. + * + * @generated from field: optional bool enable_mouse_tools = 2; + */ + enableMouseTools; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.LowLevelToolsConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'enable_low_level_tools_instructions', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 2, name: 'enable_mouse_tools', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _LowLevelToolsConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LowLevelToolsConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LowLevelToolsConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_LowLevelToolsConfig, a, b); + } +}; +var BrowserWindowSize = class _BrowserWindowSize extends Message { + /** + * Browser window width in pixels. + * + * @generated from field: int32 width_px = 1; + */ + widthPx = 0; + /** + * Browser window height in pixels. + * + * @generated from field: int32 height_px = 2; + */ + heightPx = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserWindowSize'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'width_px', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'height_px', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserWindowSize().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserWindowSize().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserWindowSize().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrowserWindowSize, a, b); + } +}; +var BrowserListNetworkRequestsToolConfig = class _BrowserListNetworkRequestsToolConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserListNetworkRequestsToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _BrowserListNetworkRequestsToolConfig().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _BrowserListNetworkRequestsToolConfig().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _BrowserListNetworkRequestsToolConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_BrowserListNetworkRequestsToolConfig, a, b); + } +}; +var AntigravityBrowserToolConfig = class _AntigravityBrowserToolConfig extends Message { + /** + * If true, browser tool is enabled. + * + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * @generated from field: exa.cortex_pb.AutoRunDecision auto_run_decision = 2; + */ + autoRunDecision = AutoRunDecision.UNSPECIFIED; + /** + * @generated from field: exa.cortex_pb.CaptureBrowserScreenshotToolConfig capture_browser_screenshot = 3; + */ + captureBrowserScreenshot; + /** + * @generated from field: exa.cortex_pb.BrowserSubagentToolConfig browser_subagent = 4; + */ + browserSubagent; + /** + * @generated from field: exa.cortex_pb.ClickBrowserPixelToolConfig click_browser_pixel = 5; + */ + clickBrowserPixel; + /** + * @generated from field: exa.cortex_pb.BrowserStateDiffingConfig browser_state_diffing_config = 10; + */ + browserStateDiffingConfig; + /** + * @generated from field: exa.cortex_pb.BrowserListNetworkRequestsToolConfig browser_list_network_requests_tool_config = 18; + */ + browserListNetworkRequestsToolConfig; + /** + * @generated from field: exa.cortex_pb.BrowserGetNetworkRequestToolConfig browser_get_network_request_tool_config = 19; + */ + browserGetNetworkRequestToolConfig; + /** + * Filters which browser tools are available to the model. + * Note that the 'default' tool set can vary depending on the agent (main or + * subagent) being used. + * + * @generated from field: optional exa.cortex_pb.BrowserToolSetMode tool_set_mode = 6; + */ + toolSetMode; + /** + * If true, the agent will not try to open any new browser pages + * or navigate any current ones (useful for electron apps). + * + * @generated from field: optional bool disable_open_url = 7; + */ + disableOpenUrl; + /** + * DEPRECATED: Use use_extended_timeout, log_errors_instead_of_sentry, and + * skip_permission_checks instead. This field is kept for backward + * compatibility and will be removed in a future version. + * If true, browser will be launched on the same machine as language server, + * all validation will be skipped. + * + * @generated from field: optional bool is_eval_mode = 9 [deprecated = true]; + * @deprecated + */ + isEvalMode; + /** + * @generated from field: exa.codeium_common_pb.BrowserJsExecutionPolicy browser_js_execution_policy = 11; + */ + browserJsExecutionPolicy = BrowserJsExecutionPolicy.UNSPECIFIED; + /** + * If true, disables the actuation overlay (blue border and status messages) + * that appears during browser interactions. Useful for evals where the + * overlay might interfere with screenshots or visual testing. + * + * @generated from field: optional bool disable_actuation_overlay = 12; + */ + disableActuationOverlay; + /** + * If true, uses a wait tool with a variable duration instead of a fixed 5s + * duration. + * + * @generated from field: optional bool variable_wait_tool = 13; + */ + variableWaitTool; + /** + * This has been replaced with browser_js_execution_policy. + * + * @generated from field: exa.codeium_common_pb.BrowserJsAutoRunPolicy browser_js_auto_run_policy = 8 [deprecated = true]; + * @deprecated + */ + browserJsAutoRunPolicy = BrowserJsAutoRunPolicy.UNSPECIFIED; + /** + * Initial browser window size in pixels. If set, the browser window will be + * resized to these dimensions after launch using CDP Browser.setWindowBounds. + * + * @generated from field: optional exa.cortex_pb.BrowserWindowSize initial_browser_window_size = 14; + */ + initialBrowserWindowSize; + /** + * Configuration for DOM extraction. + * + * @generated from field: optional exa.cortex_pb.DOMExtractionConfig dom_extraction_config = 15; + */ + domExtractionConfig; + /** + * If true, disables the workspace_api tool for the browser subagent. + * This tool allows the agent to make authenticated requests to Google + * Workspace APIs (Docs, Sheets, Slides, Drive). + * + * @generated from field: optional bool disable_workspace_api = 16; + */ + disableWorkspaceApi; + /** + * If true, OpenUrl will open pages in the background instead of the + * foreground (focused). Default behavior (false) opens pages in the + * foreground so the user can see the browser window as pages are opened. + * + * @generated from field: optional bool open_page_in_background = 17; + */ + openPageInBackground; + /** + * @generated from field: optional bool use_antigravity_as_browser_prompting = 20; + */ + useAntigravityAsBrowserPrompting; + /** + * If true, enables the browser_refresh_page tool. + * + * @generated from field: optional bool enable_refresh_tool = 21; + */ + enableRefreshTool; + /** + * If true, disables the read_browser_page tool. + * + * @generated from field: optional bool disable_read_browser_page = 22; + */ + disableReadBrowserPage; + /** + * If true, uses a longer timeout (30s) for browser actions instead of the + * default (10s). This is useful for eval scenarios where actions may take + * longer. + * + * @generated from field: optional bool use_extended_timeout = 23; + */ + useExtendedTimeout; + /** + * If true, logs timeout errors to stderr instead of uploading to Sentry. + * This is useful for eval/testing scenarios. + * + * @generated from field: optional bool log_timeout_errors_instead_of_sentry = 24; + */ + logTimeoutErrorsInsteadOfSentry; + /** + * If true, skips all browser action permission checks. This is useful for + * eval scenarios where permission prompts would block automation. + * + * @generated from field: optional bool skip_permission_checks = 25; + */ + skipPermissionChecks; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.AntigravityBrowserToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'auto_run_decision', + kind: 'enum', + T: proto3.getEnumType(AutoRunDecision), + }, + { + no: 3, + name: 'capture_browser_screenshot', + kind: 'message', + T: CaptureBrowserScreenshotToolConfig, + }, + { + no: 4, + name: 'browser_subagent', + kind: 'message', + T: BrowserSubagentToolConfig, + }, + { + no: 5, + name: 'click_browser_pixel', + kind: 'message', + T: ClickBrowserPixelToolConfig, + }, + { + no: 10, + name: 'browser_state_diffing_config', + kind: 'message', + T: BrowserStateDiffingConfig, + }, + { + no: 18, + name: 'browser_list_network_requests_tool_config', + kind: 'message', + T: BrowserListNetworkRequestsToolConfig, + }, + { + no: 19, + name: 'browser_get_network_request_tool_config', + kind: 'message', + T: BrowserGetNetworkRequestToolConfig, + }, + { + no: 6, + name: 'tool_set_mode', + kind: 'enum', + T: proto3.getEnumType(BrowserToolSetMode), + opt: true, + }, + { no: 7, name: 'disable_open_url', kind: 'scalar', T: 8, opt: true }, + { no: 9, name: 'is_eval_mode', kind: 'scalar', T: 8, opt: true }, + { + no: 11, + name: 'browser_js_execution_policy', + kind: 'enum', + T: proto3.getEnumType(BrowserJsExecutionPolicy), + }, + { + no: 12, + name: 'disable_actuation_overlay', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 13, name: 'variable_wait_tool', kind: 'scalar', T: 8, opt: true }, + { + no: 8, + name: 'browser_js_auto_run_policy', + kind: 'enum', + T: proto3.getEnumType(BrowserJsAutoRunPolicy), + }, + { + no: 14, + name: 'initial_browser_window_size', + kind: 'message', + T: BrowserWindowSize, + opt: true, + }, + { + no: 15, + name: 'dom_extraction_config', + kind: 'message', + T: DOMExtractionConfig, + opt: true, + }, + { no: 16, name: 'disable_workspace_api', kind: 'scalar', T: 8, opt: true }, + { + no: 17, + name: 'open_page_in_background', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 20, + name: 'use_antigravity_as_browser_prompting', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 21, name: 'enable_refresh_tool', kind: 'scalar', T: 8, opt: true }, + { + no: 22, + name: 'disable_read_browser_page', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 23, name: 'use_extended_timeout', kind: 'scalar', T: 8, opt: true }, + { + no: 24, + name: 'log_timeout_errors_instead_of_sentry', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 25, name: 'skip_permission_checks', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _AntigravityBrowserToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AntigravityBrowserToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AntigravityBrowserToolConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_AntigravityBrowserToolConfig, a, b); + } +}; +var TrajectorySearchToolConfig = class _TrajectorySearchToolConfig extends Message { + /** + * @generated from field: optional bool force_disable = 1; + */ + forceDisable; + /** + * @generated from field: optional bool conversations_enabled = 2; + */ + conversationsEnabled; + /** + * @generated from field: optional bool user_activities_enabled = 3; + */ + userActivitiesEnabled; + /** + * @generated from field: uint32 max_scored_chunks = 4; + */ + maxScoredChunks = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TrajectorySearchToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: true }, + { no: 2, name: 'conversations_enabled', kind: 'scalar', T: 8, opt: true }, + { no: 3, name: 'user_activities_enabled', kind: 'scalar', T: 8, opt: true }, + { + no: 4, + name: 'max_scored_chunks', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _TrajectorySearchToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TrajectorySearchToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TrajectorySearchToolConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_TrajectorySearchToolConfig, a, b); + } +}; +var EnterpriseToolConfig = class _EnterpriseToolConfig extends Message { + /** + * If true, enforces validation against workspace paths + * + * @generated from field: optional bool enforce_workspace_validation = 1; + */ + enforceWorkspaceValidation; + /** + * Custom workspace paths + * + * @generated from field: repeated string custom_workspace = 2; + */ + customWorkspace = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.EnterpriseToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'enforce_workspace_validation', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 2, name: 'custom_workspace', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _EnterpriseToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EnterpriseToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EnterpriseToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EnterpriseToolConfig, a, b); + } +}; +var ViewCodeItemToolConfig = class _ViewCodeItemToolConfig extends Message { + /** + * If <= 1 or nil, then only allow a single item. + * + * @generated from field: optional uint32 max_num_items = 1; + */ + maxNumItems; + /** + * If 0 or nil, then unbounded. + * + * @generated from field: optional uint32 max_bytes_per_item = 2; + */ + maxBytesPerItem; + /** + * If false, prevent access to these files if they are in .gitignore + * + * @generated from field: optional bool allow_access_gitignore = 3; + */ + allowAccessGitignore; + /** + * Configuration that limits file access. TODO(matthewli): Rename this config + * + * @generated from field: exa.cortex_pb.EnterpriseToolConfig enterprise_config = 4; + */ + enterpriseConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ViewCodeItemToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'max_num_items', kind: 'scalar', T: 13, opt: true }, + { no: 2, name: 'max_bytes_per_item', kind: 'scalar', T: 13, opt: true }, + { no: 3, name: 'allow_access_gitignore', kind: 'scalar', T: 8, opt: true }, + { + no: 4, + name: 'enterprise_config', + kind: 'message', + T: EnterpriseToolConfig, + }, + ]); + static fromBinary(bytes, options) { + return new _ViewCodeItemToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ViewCodeItemToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ViewCodeItemToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ViewCodeItemToolConfig, a, b); + } +}; +var CommandStatusToolConfig = class _CommandStatusToolConfig extends Message { + /** + * If true, use delta output instead of full output. + * + * @generated from field: optional bool use_delta = 1; + */ + useDelta; + /** + * The maximum number of characters to return in the command output. + * + * @generated from field: optional int32 max_output_characters = 2; + */ + maxOutputCharacters; + /** + * The minimum number of characters to return in the command output. + * + * @generated from field: optional int32 min_output_characters = 3; + */ + minOutputCharacters; + /** + * The maximum duration in seconds to wait for a command to finish. + * + * @generated from field: optional int32 max_wait_duration_seconds = 4; + */ + maxWaitDurationSeconds; + /** + * The duration in seconds to wait for output to stabilize before returning. + * + * @generated from field: optional int32 output_stabilization_duration_seconds = 5; + */ + outputStabilizationDurationSeconds; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CommandStatusToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'use_delta', kind: 'scalar', T: 8, opt: true }, + { no: 2, name: 'max_output_characters', kind: 'scalar', T: 5, opt: true }, + { no: 3, name: 'min_output_characters', kind: 'scalar', T: 5, opt: true }, + { + no: 4, + name: 'max_wait_duration_seconds', + kind: 'scalar', + T: 5, + opt: true, + }, + { + no: 5, + name: 'output_stabilization_duration_seconds', + kind: 'scalar', + T: 5, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CommandStatusToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CommandStatusToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CommandStatusToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CommandStatusToolConfig, a, b); + } +}; +var ReadKnowledgeBaseItemToolConfig = class _ReadKnowledgeBaseItemToolConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseItem knowledge_base_items = 2; + */ + knowledgeBaseItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ReadKnowledgeBaseItemToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'knowledge_base_items', + kind: 'message', + T: KnowledgeBaseItem, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _ReadKnowledgeBaseItemToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ReadKnowledgeBaseItemToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ReadKnowledgeBaseItemToolConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ReadKnowledgeBaseItemToolConfig, a, b); + } +}; +var ToolOverrideConfig = class _ToolOverrideConfig extends Message { + /** + * Override the tool name shown to the model. If empty, the original name is + * used. + * + * @generated from field: optional string name_override = 1; + */ + nameOverride; + /** + * Map from original argument name to new argument name. Only arguments + * specified in this map will be renamed; others keep their original names. + * This supports partial overrides. + * + * @generated from field: map argument_name_overrides = 2; + */ + argumentNameOverrides = {}; + /** + * Override for the tool description. + * + * @generated from field: exa.cortex_pb.SectionOverrideConfig description_override = 3; + */ + descriptionOverride; + /** + * Map from original argument name to new description. Only arguments + * specified in this map will have their descriptions overridden. + * + * @generated from field: map argument_description_overrides = 4; + */ + argumentDescriptionOverrides = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ToolOverrideConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'name_override', kind: 'scalar', T: 9, opt: true }, + { + no: 2, + name: 'argument_name_overrides', + kind: 'map', + K: 9, + V: { kind: 'scalar', - T: 8, - opt: !0, + T: 9, + /* ScalarType.STRING */ }, - { - no: 2, - name: 'include_dom_tree_in_diffs', + }, + { + no: 3, + name: 'description_override', + kind: 'message', + T: SectionOverrideConfig, + }, + { + no: 4, + name: 'argument_description_overrides', + kind: 'map', + K: 9, + V: { kind: 'scalar', - T: 8, - opt: !0, + T: 9, + /* ScalarType.STRING */ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - L_ = class e extends r { - enabled; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserGetNetworkRequestToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - P_ = class e extends r { - enableLowLevelToolsInstructions; - enableMouseTools; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.LowLevelToolsConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'enable_low_level_tools_instructions', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 2, name: 'enable_mouse_tools', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - D_ = class e extends r { - widthPx = 0; - heightPx = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserWindowSize'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'width_px', kind: 'scalar', T: 5 }, - { no: 2, name: 'height_px', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - k_ = class e extends r { - enabled; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserListNetworkRequestsToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - g_ = class e extends r { - enabled; - autoRunDecision = U.UNSPECIFIED; - captureBrowserScreenshot; - browserSubagent; - clickBrowserPixel; - browserStateDiffingConfig; - browserListNetworkRequestsToolConfig; - browserGetNetworkRequestToolConfig; - toolSetMode; - disableOpenUrl; - isEvalMode; - browserJsExecutionPolicy = En.UNSPECIFIED; - disableActuationOverlay; - variableWaitTool; - browserJsAutoRunPolicy = Qn.UNSPECIFIED; - initialBrowserWindowSize; - domExtractionConfig; - disableWorkspaceApi; - openPageInBackground; - useAntigravityAsBrowserPrompting; - enableRefreshTool; - disableReadBrowserPage; - useExtendedTimeout; - logTimeoutErrorsInsteadOfSentry; - skipPermissionChecks; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.AntigravityBrowserToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'auto_run_decision', kind: 'enum', T: a.getEnumType(U) }, - { no: 3, name: 'capture_browser_screenshot', kind: 'message', T: f_ }, - { no: 4, name: 'browser_subagent', kind: 'message', T: ks }, - { no: 5, name: 'click_browser_pixel', kind: 'message', T: C_ }, - { no: 10, name: 'browser_state_diffing_config', kind: 'message', T: R_ }, - { - no: 18, - name: 'browser_list_network_requests_tool_config', - kind: 'message', - T: k_, - }, - { - no: 19, - name: 'browser_get_network_request_tool_config', - kind: 'message', - T: L_, - }, - { - no: 6, - name: 'tool_set_mode', - kind: 'enum', - T: a.getEnumType(us), - opt: !0, - }, - { no: 7, name: 'disable_open_url', kind: 'scalar', T: 8, opt: !0 }, - { no: 9, name: 'is_eval_mode', kind: 'scalar', T: 8, opt: !0 }, - { - no: 11, - name: 'browser_js_execution_policy', - kind: 'enum', - T: a.getEnumType(En), - }, - { - no: 12, - name: 'disable_actuation_overlay', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 13, name: 'variable_wait_tool', kind: 'scalar', T: 8, opt: !0 }, - { - no: 8, - name: 'browser_js_auto_run_policy', - kind: 'enum', - T: a.getEnumType(Qn), - }, - { - no: 14, - name: 'initial_browser_window_size', - kind: 'message', - T: D_, - opt: !0, - }, - { - no: 15, - name: 'dom_extraction_config', - kind: 'message', - T: Ps, - opt: !0, - }, - { no: 16, name: 'disable_workspace_api', kind: 'scalar', T: 8, opt: !0 }, - { - no: 17, - name: 'open_page_in_background', - kind: 'scalar', - T: 8, - opt: !0, - }, - { - no: 20, - name: 'use_antigravity_as_browser_prompting', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 21, name: 'enable_refresh_tool', kind: 'scalar', T: 8, opt: !0 }, - { - no: 22, - name: 'disable_read_browser_page', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 23, name: 'use_extended_timeout', kind: 'scalar', T: 8, opt: !0 }, - { - no: 24, - name: 'log_timeout_errors_instead_of_sentry', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 25, name: 'skip_permission_checks', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - w_ = class e extends r { - forceDisable; - conversationsEnabled; - userActivitiesEnabled; - maxScoredChunks = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TrajectorySearchToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'force_disable', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'conversations_enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 3, name: 'user_activities_enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 4, name: 'max_scored_chunks', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rn = class e extends r { - enforceWorkspaceValidation; - customWorkspace = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.EnterpriseToolConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'enforce_workspace_validation', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 2, name: 'custom_workspace', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - J_ = class e extends r { - maxNumItems; - maxBytesPerItem; - allowAccessGitignore; - enterpriseConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ViewCodeItemToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_num_items', kind: 'scalar', T: 13, opt: !0 }, - { no: 2, name: 'max_bytes_per_item', kind: 'scalar', T: 13, opt: !0 }, - { no: 3, name: 'allow_access_gitignore', kind: 'scalar', T: 8, opt: !0 }, - { no: 4, name: 'enterprise_config', kind: 'message', T: rn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - x_ = class e extends r { - useDelta; - maxOutputCharacters; - minOutputCharacters; - maxWaitDurationSeconds; - outputStabilizationDurationSeconds; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CommandStatusToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'use_delta', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'max_output_characters', kind: 'scalar', T: 5, opt: !0 }, - { no: 3, name: 'min_output_characters', kind: 'scalar', T: 5, opt: !0 }, - { - no: 4, - name: 'max_wait_duration_seconds', + }, + ]); + static fromBinary(bytes, options) { + return new _ToolOverrideConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ToolOverrideConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ToolOverrideConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ToolOverrideConfig, a, b); + } +}; +var ToolDescriptionOverrideMap = class _ToolDescriptionOverrideMap extends Message { + /** + * DEPRECATED: Use tool_overrides instead. + * Legacy field for description-only overrides. Keyed by original tool name. + * + * @generated from field: map descriptions = 1 [deprecated = true]; + * @deprecated + */ + descriptions = {}; + /** + * Comprehensive tool overrides including name, argument renaming, and + * description. Keyed by original tool name. + * + * @generated from field: map tool_overrides = 2; + */ + toolOverrides = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ToolDescriptionOverrideMap'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'descriptions', + kind: 'map', + K: 9, + V: { kind: 'message', T: SectionOverrideConfig }, + }, + { + no: 2, + name: 'tool_overrides', + kind: 'map', + K: 9, + V: { kind: 'message', T: ToolOverrideConfig }, + }, + ]); + static fromBinary(bytes, options) { + return new _ToolDescriptionOverrideMap().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ToolDescriptionOverrideMap().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ToolDescriptionOverrideMap().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ToolDescriptionOverrideMap, a, b); + } +}; +var TaskBoundaryToolConfig = class _TaskBoundaryToolConfig extends Message { + /** + * If the predicted task size is fewer than this many tools, will prevent the + * task boundary creation. Set to 0 to disable. + * + * @generated from field: int32 minimum_predicted_task_size = 1; + */ + minimumPredictedTaskSize = 0; + /** + * The recommended number of tool calls that should separate task status + * updates within the task section. + * + * @generated from field: int32 target_status_update_frequency = 2; + */ + targetStatusUpdateFrequency = 0; + /** + * After this many tool calls, start to remind the model to call the task + * boundary tool. + * + * @generated from field: int32 no_active_task_soft_reminder_tool_threshold = 3; + */ + noActiveTaskSoftReminderToolThreshold = 0; + /** + * After this many tool calls, start to heavily encourage the model to call + * the task boundary tool. + * + * @generated from field: int32 no_active_task_strict_reminder_tool_threshold = 4; + */ + noActiveTaskStrictReminderToolThreshold = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TaskBoundaryToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'minimum_predicted_task_size', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'target_status_update_frequency', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'no_active_task_soft_reminder_tool_threshold', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'no_active_task_strict_reminder_tool_threshold', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _TaskBoundaryToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TaskBoundaryToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TaskBoundaryToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TaskBoundaryToolConfig, a, b); + } +}; +var FinishToolConfig = class _FinishToolConfig extends Message { + /** + * JSON schema string for the finish tool. Uses no arguments if empty string. + * Note configuring this field does not auto-include the tool, nor cause the + * execution to terminate on calling the finish tool. One must configure the + * other related settings for this. + * + * @generated from field: string result_json_schema_string = 1; + */ + resultJsonSchemaString = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FinishToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'result_json_schema_string', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _FinishToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FinishToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FinishToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FinishToolConfig, a, b); + } +}; +var WorkspaceAPIToolConfig = class _WorkspaceAPIToolConfig extends Message { + /** + * If true, the tool only allows GET requests (read-only mode). + * This is used for the main agent to prevent modifying Workspace documents. + * + * @generated from field: optional bool read_only = 1; + */ + readOnly; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.WorkspaceAPIToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'read_only', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _WorkspaceAPIToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkspaceAPIToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkspaceAPIToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WorkspaceAPIToolConfig, a, b); + } +}; +var NotebookEditToolConfig = class _NotebookEditToolConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.NotebookEditToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _NotebookEditToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _NotebookEditToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _NotebookEditToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_NotebookEditToolConfig, a, b); + } +}; +var CascadeToolConfig = class _CascadeToolConfig extends Message { + /** + * @generated from field: exa.cortex_pb.MqueryToolConfig mquery = 1; + */ + mquery; + /** + * @generated from field: exa.cortex_pb.CodeToolConfig code = 2; + */ + code; + /** + * @generated from field: exa.cortex_pb.IntentToolConfig intent = 3; + */ + intent; + /** + * @generated from field: exa.cortex_pb.GrepToolConfig grep = 4; + */ + grep; + /** + * @generated from field: exa.cortex_pb.FindToolConfig find = 5; + */ + find; + /** + * @generated from field: exa.cortex_pb.RunCommandToolConfig run_command = 8; + */ + runCommand; + /** + * @generated from field: exa.cortex_pb.KnowledgeBaseSearchToolConfig knowledge_base_search = 9; + */ + knowledgeBaseSearch; + /** + * @generated from field: exa.cortex_pb.ViewFileToolConfig view_file = 10; + */ + viewFile; + /** + * @generated from field: exa.cortex_pb.SuggestedResponseConfig suggested_response = 11; + */ + suggestedResponse; + /** + * @generated from field: exa.cortex_pb.SearchWebToolConfig search_web = 13; + */ + searchWeb; + /** + * @generated from field: exa.cortex_pb.MemoryToolConfig memory = 14 [deprecated = true]; + * @deprecated + */ + memory; + /** + * @generated from field: exa.cortex_pb.McpToolConfig mcp = 16; + */ + mcp; + /** + * @generated from field: exa.cortex_pb.ListDirToolConfig list_dir = 19; + */ + listDir; + /** + * @generated from field: exa.cortex_pb.ViewCodeItemToolConfig view_code_item = 20; + */ + viewCodeItem; + /** + * @generated from field: exa.cortex_pb.ReadKnowledgeBaseItemToolConfig read_knowledge_base_item = 21; + */ + readKnowledgeBaseItem; + /** + * @generated from field: exa.cortex_pb.CommandStatusToolConfig command_status = 23; + */ + commandStatus; + /** + * @generated from field: exa.cortex_pb.AntigravityBrowserToolConfig antigravity_browser = 25; + */ + antigravityBrowser; + /** + * @generated from field: exa.cortex_pb.TrajectorySearchToolConfig trajectory_search = 28; + */ + trajectorySearch; + /** + * @generated from field: exa.cortex_pb.CodeSearchToolConfig code_search = 31; + */ + codeSearch; + /** + * @generated from field: exa.cortex_pb.InternalSearchToolConfig internal_search = 32; + */ + internalSearch; + /** + * @generated from field: exa.cortex_pb.NotifyUserConfig notify_user = 33; + */ + notifyUser; + /** + * Deprecated, moved into AntigravityBrowserToolConfig. + * + * @generated from field: exa.cortex_pb.BrowserSubagentToolConfig browser_subagent = 34 [deprecated = true]; + * @deprecated + */ + browserSubagent; + /** + * @generated from field: exa.cortex_pb.TaskBoundaryToolConfig task_boundary = 35; + */ + taskBoundary; + /** + * @generated from field: exa.cortex_pb.FinishToolConfig finish = 36; + */ + finish; + /** + * @generated from field: exa.cortex_pb.WorkspaceAPIToolConfig workspace_api = 37; + */ + workspaceApi; + /** + * @generated from field: exa.cortex_pb.NotebookEditToolConfig notebook_edit = 38; + */ + notebookEdit; + /** + * @generated from field: exa.cortex_pb.InvokeSubagentToolConfig invoke_subagent = 39; + */ + invokeSubagent; + /** + * For tool description overrides + * + * @generated from field: exa.cortex_pb.ToolDescriptionOverrideMap description_override_map = 22; + */ + descriptionOverrideMap; + /** + * Disables grep_search, find_by_name, and list_dir + * + * @generated from field: optional bool disable_simple_research_tools = 29; + */ + disableSimpleResearchTools; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeToolConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'mquery', kind: 'message', T: MqueryToolConfig }, + { no: 2, name: 'code', kind: 'message', T: CodeToolConfig }, + { no: 3, name: 'intent', kind: 'message', T: IntentToolConfig }, + { no: 4, name: 'grep', kind: 'message', T: GrepToolConfig }, + { no: 5, name: 'find', kind: 'message', T: FindToolConfig }, + { no: 8, name: 'run_command', kind: 'message', T: RunCommandToolConfig }, + { + no: 9, + name: 'knowledge_base_search', + kind: 'message', + T: KnowledgeBaseSearchToolConfig, + }, + { no: 10, name: 'view_file', kind: 'message', T: ViewFileToolConfig }, + { + no: 11, + name: 'suggested_response', + kind: 'message', + T: SuggestedResponseConfig, + }, + { no: 13, name: 'search_web', kind: 'message', T: SearchWebToolConfig }, + { no: 14, name: 'memory', kind: 'message', T: MemoryToolConfig }, + { no: 16, name: 'mcp', kind: 'message', T: McpToolConfig }, + { no: 19, name: 'list_dir', kind: 'message', T: ListDirToolConfig }, + { + no: 20, + name: 'view_code_item', + kind: 'message', + T: ViewCodeItemToolConfig, + }, + { + no: 21, + name: 'read_knowledge_base_item', + kind: 'message', + T: ReadKnowledgeBaseItemToolConfig, + }, + { + no: 23, + name: 'command_status', + kind: 'message', + T: CommandStatusToolConfig, + }, + { + no: 25, + name: 'antigravity_browser', + kind: 'message', + T: AntigravityBrowserToolConfig, + }, + { + no: 28, + name: 'trajectory_search', + kind: 'message', + T: TrajectorySearchToolConfig, + }, + { no: 31, name: 'code_search', kind: 'message', T: CodeSearchToolConfig }, + { + no: 32, + name: 'internal_search', + kind: 'message', + T: InternalSearchToolConfig, + }, + { no: 33, name: 'notify_user', kind: 'message', T: NotifyUserConfig }, + { + no: 34, + name: 'browser_subagent', + kind: 'message', + T: BrowserSubagentToolConfig, + }, + { + no: 35, + name: 'task_boundary', + kind: 'message', + T: TaskBoundaryToolConfig, + }, + { no: 36, name: 'finish', kind: 'message', T: FinishToolConfig }, + { + no: 37, + name: 'workspace_api', + kind: 'message', + T: WorkspaceAPIToolConfig, + }, + { + no: 38, + name: 'notebook_edit', + kind: 'message', + T: NotebookEditToolConfig, + }, + { + no: 39, + name: 'invoke_subagent', + kind: 'message', + T: InvokeSubagentToolConfig, + }, + { + no: 22, + name: 'description_override_map', + kind: 'message', + T: ToolDescriptionOverrideMap, + }, + { + no: 29, + name: 'disable_simple_research_tools', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeToolConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeToolConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeToolConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeToolConfig, a, b); + } +}; +var ModelOutputRetryConfig = class _ModelOutputRetryConfig extends Message { + /** + * @generated from field: uint32 max_retries = 1; + */ + maxRetries = 0; + /** + * If we are on the last of max_step_parse_retries, do not allow further tool + * calls. + * + * @generated from oneof exa.cortex_pb.ModelOutputRetryConfig.last_retry_option + */ + lastRetryOption = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ModelOutputRetryConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_retries', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'forbid_tool_use', + kind: 'scalar', + T: 8, + oneof: 'last_retry_option', + }, + { + no: 4, + name: 'force_tool_name', + kind: 'scalar', + T: 9, + oneof: 'last_retry_option', + }, + ]); + static fromBinary(bytes, options) { + return new _ModelOutputRetryConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelOutputRetryConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelOutputRetryConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelOutputRetryConfig, a, b); + } +}; +var ModelAPIRetryConfig = class _ModelAPIRetryConfig extends Message { + /** + * @generated from field: uint32 max_retries = 1; + */ + maxRetries = 0; + /** + * @generated from field: uint32 initial_sleep_duration_ms = 2; + */ + initialSleepDurationMs = 0; + /** + * @generated from field: double exponential_multiplier = 3; + */ + exponentialMultiplier = 0; + /** + * If true, include error messages in the prompt when retrying generations. + * If false, retries retryable errors with the same prompt. Used during + * training to avoid including error steps in training prompts. + * + * @generated from field: optional bool include_error_feedback = 4; + */ + includeErrorFeedback; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ModelAPIRetryConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_retries', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'initial_sleep_duration_ms', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'exponential_multiplier', + kind: 'scalar', + T: 1, + /* ScalarType.DOUBLE */ + }, + { no: 4, name: 'include_error_feedback', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _ModelAPIRetryConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelAPIRetryConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelAPIRetryConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ModelAPIRetryConfig, a, b); + } +}; +var PlannerRetryConfig = class _PlannerRetryConfig extends Message { + /** + * @generated from field: exa.cortex_pb.ModelOutputRetryConfig model_output_retry = 1; + */ + modelOutputRetry; + /** + * @generated from field: exa.cortex_pb.ModelAPIRetryConfig api_retry = 2; + */ + apiRetry; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PlannerRetryConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'model_output_retry', + kind: 'message', + T: ModelOutputRetryConfig, + }, + { no: 2, name: 'api_retry', kind: 'message', T: ModelAPIRetryConfig }, + ]); + static fromBinary(bytes, options) { + return new _PlannerRetryConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlannerRetryConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlannerRetryConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlannerRetryConfig, a, b); + } +}; +var CodeAcknowledgementConverterConfig = class _CodeAcknowledgementConverterConfig extends Message { + /** + * @generated from field: bool show_to_model_on_written_feedback = 1; + */ + showToModelOnWrittenFeedback = false; + /** + * @generated from field: bool show_to_model_on_rejection = 2; + */ + showToModelOnRejection = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodeAcknowledgementConverterConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'show_to_model_on_written_feedback', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'show_to_model_on_rejection', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodeAcknowledgementConverterConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeAcknowledgementConverterConfig().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CodeAcknowledgementConverterConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CodeAcknowledgementConverterConfig, a, b); + } +}; +var StepStringConverterConfig = class _StepStringConverterConfig extends Message { + /** + * @generated from field: exa.cortex_pb.CodeAcknowledgementConverterConfig code_acknowledgement = 1; + */ + codeAcknowledgement; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.StepStringConverterConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'code_acknowledgement', + kind: 'message', + T: CodeAcknowledgementConverterConfig, + }, + ]); + static fromBinary(bytes, options) { + return new _StepStringConverterConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StepStringConverterConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StepStringConverterConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StepStringConverterConfig, a, b); + } +}; +var AgenticModeConfig = class _AgenticModeConfig extends Message { + /** + * Map from artifact filename to the number of tool calls since the last + * model interaction with that artifact before we show a reminder in an + * ephemeral message. If an artifact is not in the map or its threshold is 0, + * we do not show a reminder for that artifact. + * + * @generated from field: map inject_artifact_reminder_threshold_map = 1; + */ + injectArtifactReminderThresholdMap = {}; + /** + * If true, completely disables artifact reminders. + * + * @generated from field: optional bool disable_artifact_reminders = 2; + */ + disableArtifactReminders; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.AgenticModeConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'inject_artifact_reminder_threshold_map', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 5, - opt: !0, + /* ScalarType.INT32 */ }, - { - no: 5, - name: 'output_stabilization_duration_seconds', - kind: 'scalar', - T: 5, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - U_ = class e extends r { - enabled; - knowledgeBaseItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ReadKnowledgeBaseItemToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { - no: 2, - name: 'knowledge_base_items', - kind: 'message', - T: G, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - B_ = class e extends r { - nameOverride; - argumentNameOverrides = {}; - descriptionOverride; - argumentDescriptionOverrides = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ToolOverrideConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name_override', kind: 'scalar', T: 9, opt: !0 }, - { - no: 2, - name: 'argument_name_overrides', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { no: 3, name: 'description_override', kind: 'message', T: Ls }, - { - no: 4, - name: 'argument_description_overrides', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - F_ = class e extends r { - descriptions = {}; - toolOverrides = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ToolDescriptionOverrideMap'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'descriptions', - kind: 'map', - K: 9, - V: { kind: 'message', T: Ls }, - }, - { - no: 2, - name: 'tool_overrides', - kind: 'map', - K: 9, - V: { kind: 'message', T: B_ }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - M_ = class e extends r { - minimumPredictedTaskSize = 0; - targetStatusUpdateFrequency = 0; - noActiveTaskSoftReminderToolThreshold = 0; - noActiveTaskStrictReminderToolThreshold = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TaskBoundaryToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'minimum_predicted_task_size', kind: 'scalar', T: 5 }, - { no: 2, name: 'target_status_update_frequency', kind: 'scalar', T: 5 }, - { - no: 3, - name: 'no_active_task_soft_reminder_tool_threshold', - kind: 'scalar', - T: 5, - }, - { - no: 4, - name: 'no_active_task_strict_reminder_tool_threshold', - kind: 'scalar', - T: 5, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - y_ = class e extends r { - resultJsonSchemaString = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FinishToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'result_json_schema_string', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - h_ = class e extends r { - readOnly; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.WorkspaceAPIToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'read_only', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - G_ = class e extends r { - enabled; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.NotebookEditToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - b_ = class e extends r { - mquery; - code; - intent; - grep; - find; - runCommand; - knowledgeBaseSearch; - viewFile; - suggestedResponse; - searchWeb; - memory; - mcp; - listDir; - viewCodeItem; - readKnowledgeBaseItem; - commandStatus; - antigravityBrowser; - trajectorySearch; - codeSearch; - internalSearch; - notifyUser; - browserSubagent; - taskBoundary; - finish; - workspaceApi; - notebookEdit; - invokeSubagent; - descriptionOverrideMap; - disableSimpleResearchTools; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeToolConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'mquery', kind: 'message', T: zE }, - { no: 2, name: 'code', kind: 'message', T: o_ }, - { no: 3, name: 'intent', kind: 'message', T: m_ }, - { no: 4, name: 'grep', kind: 'message', T: QE }, - { no: 5, name: 'find', kind: 'message', T: ZE }, - { no: 8, name: 'run_command', kind: 'message', T: a_ }, - { no: 9, name: 'knowledge_base_search', kind: 'message', T: r_ }, - { no: 10, name: 'view_file', kind: 'message', T: c_ }, - { no: 11, name: 'suggested_response', kind: 'message', T: u_ }, - { no: 13, name: 'search_web', kind: 'message', T: l_ }, - { no: 14, name: 'memory', kind: 'message', T: E_ }, - { no: 16, name: 'mcp', kind: 'message', T: __ }, - { no: 19, name: 'list_dir', kind: 'message', T: t_ }, - { no: 20, name: 'view_code_item', kind: 'message', T: J_ }, - { no: 21, name: 'read_knowledge_base_item', kind: 'message', T: U_ }, - { no: 23, name: 'command_status', kind: 'message', T: x_ }, - { no: 25, name: 'antigravity_browser', kind: 'message', T: g_ }, - { no: 28, name: 'trajectory_search', kind: 'message', T: w_ }, - { no: 31, name: 'code_search', kind: 'message', T: $E }, - { no: 32, name: 'internal_search', kind: 'message', T: n_ }, - { no: 33, name: 'notify_user', kind: 'message', T: jE }, - { no: 34, name: 'browser_subagent', kind: 'message', T: ks }, - { no: 35, name: 'task_boundary', kind: 'message', T: M_ }, - { no: 36, name: 'finish', kind: 'message', T: y_ }, - { no: 37, name: 'workspace_api', kind: 'message', T: h_ }, - { no: 38, name: 'notebook_edit', kind: 'message', T: G_ }, - { no: 39, name: 'invoke_subagent', kind: 'message', T: d_ }, - { no: 22, name: 'description_override_map', kind: 'message', T: F_ }, - { - no: 29, - name: 'disable_simple_research_tools', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - q_ = class e extends r { - maxRetries = 0; - lastRetryOption = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ModelOutputRetryConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_retries', kind: 'scalar', T: 13 }, - { - no: 3, - name: 'forbid_tool_use', - kind: 'scalar', - T: 8, - oneof: 'last_retry_option', - }, - { - no: 4, - name: 'force_tool_name', - kind: 'scalar', - T: 9, - oneof: 'last_retry_option', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ws = class e extends r { - maxRetries = 0; - initialSleepDurationMs = 0; - exponentialMultiplier = 0; - includeErrorFeedback; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ModelAPIRetryConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_retries', kind: 'scalar', T: 13 }, - { no: 2, name: 'initial_sleep_duration_ms', kind: 'scalar', T: 13 }, - { no: 3, name: 'exponential_multiplier', kind: 'scalar', T: 1 }, - { no: 4, name: 'include_error_feedback', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - H_ = class e extends r { - modelOutputRetry; - apiRetry; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PlannerRetryConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model_output_retry', kind: 'message', T: q_ }, - { no: 2, name: 'api_retry', kind: 'message', T: ws }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Y_ = class e extends r { - showToModelOnWrittenFeedback = !1; - showToModelOnRejection = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodeAcknowledgementConverterConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'show_to_model_on_written_feedback', - kind: 'scalar', - T: 8, - }, - { no: 2, name: 'show_to_model_on_rejection', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - W_ = class e extends r { - codeAcknowledgement; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.StepStringConverterConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'code_acknowledgement', kind: 'message', T: Y_ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - V_ = class e extends r { - injectArtifactReminderThresholdMap = {}; - disableArtifactReminders; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.AgenticModeConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'inject_artifact_reminder_threshold_map', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 5 }, - }, - { - no: 2, - name: 'disable_artifact_reminders', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - X_ = class e extends r { - includeWorkspacePrompt = !1; - includeMcpServerPrompt = !1; - includeArtifactInstructions = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CustomAgentSystemPromptConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'include_workspace_prompt', kind: 'scalar', T: 8 }, - { no: 2, name: 'include_mcp_server_prompt', kind: 'scalar', T: 8 }, - { no: 3, name: 'include_artifact_instructions', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Js = class e extends r { - systemPromptSections = []; - toolNames = []; - systemPromptConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CustomAgentConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'system_prompt_sections', - kind: 'message', - T: Yn, - repeated: !0, - }, - { no: 2, name: 'tool_names', kind: 'scalar', T: 9, repeated: !0 }, - { no: 6, name: 'system_prompt_config', kind: 'message', T: X_ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - K_ = class e extends r { - googleMode = !1; - agenticMode = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodingAgentConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'google_mode', kind: 'scalar', T: 8 }, - { no: 2, name: 'agentic_mode', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gI = class e extends r { - config = { case: void 0 }; - mcpServers = []; - promptSectionCustomization; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CustomAgentSpec'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'custom_agent', kind: 'message', T: Js, oneof: 'config' }, - { no: 2, name: 'coding_agent', kind: 'message', T: K_, oneof: 'config' }, - { no: 4, name: 'mcp_servers', kind: 'message', T: Xa, repeated: !0 }, - { no: 9, name: 'prompt_section_customization', kind: 'message', T: xs }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - v_ = class e extends r { - promptSection; - placement = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CustomPromptSection'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'prompt_section', kind: 'message', T: Yn }, - { - no: 2, - name: 'insert_after_section', - kind: 'scalar', - T: 9, - oneof: 'placement', - }, - { - no: 3, - name: 'insert_before_section', - kind: 'scalar', - T: 9, - oneof: 'placement', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xs = class e extends r { - removePromptSections = []; - addPromptSections = []; - appendPromptSections = []; - replacePromptSections = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PromptSectionCustomizationConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'remove_prompt_sections', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { - no: 2, - name: 'add_prompt_sections', - kind: 'message', - T: v_, - repeated: !0, - }, - { - no: 3, - name: 'append_prompt_sections', - kind: 'message', - T: Yn, - repeated: !0, - }, - { - no: 4, - name: 'replace_prompt_sections', - kind: 'message', - T: Yn, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - z_ = class e extends r { - absolutePaths = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.WorkspacePaths'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_paths', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - j_ = class e extends r { - customizationServerUrl = ''; - toolNames = []; - preInvocationHookNames = []; - postInvocationHookNames = []; - mcpServers = []; - trajectoryToChatMessageOverride = ''; - preToolHookNames = []; - postToolHookNames = []; - workspace = { case: void 0 }; - skipToolNamePrefix = !1; - skipToolDescriptionPrefix = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CustomizationConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'customization_server_url', kind: 'scalar', T: 9 }, - { no: 2, name: 'tool_names', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 3, - name: 'pre_invocation_hook_names', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { - no: 4, - name: 'post_invocation_hook_names', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { no: 5, name: 'mcp_servers', kind: 'message', T: Xa, repeated: !0 }, - { - no: 6, - name: 'trajectory_to_chat_message_override', - kind: 'scalar', - T: 9, - }, - { - no: 8, - name: 'pre_tool_hook_names', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { - no: 9, - name: 'post_tool_hook_names', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { - no: 10, - name: 'user_active_workspaces', - kind: 'scalar', - T: 8, - oneof: 'workspace', - }, - { - no: 11, - name: 'workspace_paths', - kind: 'message', - T: z_, - oneof: 'workspace', - }, - { no: 12, name: 'skip_tool_name_prefix', kind: 'scalar', T: 8 }, - { no: 13, name: 'skip_tool_description_prefix', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Us = class e extends r { - plannerTypeConfig = { case: void 0 }; - customizationConfig; - promptSectionCustomizationConfig; - toolConfig; - stepStringConverterConfig; - planModel = f.UNSPECIFIED; - requestedModel; - modelName = ''; - customModelInfoOverride; - maxOutputTokens = 0; - noToolExplanation; - noToolSummary; - truncationThresholdTokens = 0; - ephemeralMessagesConfig; - showAllErrors = !1; - retryConfig; - knowledgeConfig; - agenticModeConfig; - noWaitForPreviousTools; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadePlannerConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 2, - name: 'conversational', - kind: 'message', - T: sa, - oneof: 'planner_type_config', - }, - { - no: 26, - name: 'google', - kind: 'message', - T: sa, - oneof: 'planner_type_config', - }, - { - no: 36, - name: 'cider', - kind: 'message', - T: sa, - oneof: 'planner_type_config', - }, - { - no: 39, - name: 'custom_agent', - kind: 'message', - T: Js, - oneof: 'planner_type_config', - }, - { - no: 40, - name: 'custom_agent_config_absolute_uri', - kind: 'scalar', - T: 9, - oneof: 'planner_type_config', - }, - { no: 42, name: 'customization_config', kind: 'message', T: j_ }, - { - no: 41, - name: 'prompt_section_customization_config', - kind: 'message', - T: xs, - }, - { no: 13, name: 'tool_config', kind: 'message', T: b_ }, - { no: 31, name: 'step_string_converter_config', kind: 'message', T: W_ }, - { no: 1, name: 'plan_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 15, name: 'requested_model', kind: 'message', T: nn }, - { no: 28, name: 'model_name', kind: 'scalar', T: 9 }, - { no: 27, name: 'custom_model_info_override', kind: 'message', T: tn }, - { no: 6, name: 'max_output_tokens', kind: 'scalar', T: 13 }, - { no: 7, name: 'no_tool_explanation', kind: 'scalar', T: 8, opt: !0 }, - { no: 33, name: 'no_tool_summary', kind: 'scalar', T: 8, opt: !0 }, - { no: 14, name: 'truncation_threshold_tokens', kind: 'scalar', T: 5 }, - { no: 21, name: 'ephemeral_messages_config', kind: 'message', T: Xd }, - { no: 25, name: 'show_all_errors', kind: 'scalar', T: 8 }, - { no: 30, name: 'retry_config', kind: 'message', T: H_ }, - { no: 32, name: 'knowledge_config', kind: 'message', T: wd }, - { no: 35, name: 'agentic_mode_config', kind: 'message', T: V_ }, - { - no: 37, - name: 'no_wait_for_previous_tools', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wI = class e extends r { - subdomain = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.DeploymentInteractionPayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'subdomain', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Q_ = class e extends r { - cancel = !1; - deployTarget; - subdomain = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeDeployInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'cancel', kind: 'scalar', T: 8 }, - { no: 2, name: 'deploy_target', kind: 'message', T: Nn }, - { no: 3, name: 'subdomain', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Z_ = class e extends r { - confirm = !1; - proposedCommandLine = ''; - submittedCommandLine = ''; - sandboxOverride = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeRunCommandInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - { no: 2, name: 'proposed_command_line', kind: 'scalar', T: 9 }, - { no: 3, name: 'submitted_command_line', kind: 'scalar', T: 9 }, - { no: 4, name: 'sandbox_override', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $_ = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeOpenBrowserUrlInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nd = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeRunExtensionCodeInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ed = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.cortex_pb.CascadeExecuteBrowserJavaScriptInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - td = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.cortex_pb.CascadeCaptureBrowserScreenshotInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ad = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeClickBrowserPixelInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - JI = class e extends r { - confirm = !1; - resolution; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeTaskResolutionInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - { no: 2, name: 'resolution', kind: 'message', T: _o }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bs = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeBrowserActionInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fs = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeOpenBrowserSetupInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ms = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeConfirmBrowserSetupInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - rd = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeSendCommandInputInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sd = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeReadUrlContentInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - id = class e extends r { - confirm = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeMcpInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'confirm', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - od = class e extends r { - allow = !1; - scope = bn.UNSPECIFIED; - absolutePathUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FilePermissionInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'allow', kind: 'scalar', T: 8 }, - { no: 2, name: 'scope', kind: 'enum', T: a.getEnumType(bn) }, - { no: 3, name: 'absolute_path_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - md = class e extends r { - deployTargetOptions = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeDeployInteractionSpec'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'deploy_target_options', - kind: 'message', - T: Nn, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - cd = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeRunCommandInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ud = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeOpenBrowserUrlInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ld = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeRunExtensionCodeInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ed = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.cortex_pb.CascadeExecuteBrowserJavaScriptInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _d = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = - 'exa.cortex_pb.CascadeCaptureBrowserScreenshotInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - dd = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeClickBrowserPixelInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xI = class e extends r { - title = ''; - description = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeTaskResolutionInteractionSpec'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'title', kind: 'scalar', T: 9 }, - { no: 2, name: 'description', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Td = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeSendCommandInputInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fd = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeReadUrlContentInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Nd = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeMcpInteractionSpec'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - sn = class e extends r { - absolutePathUri = ''; - isDirectory = !1; - blockReason = Ya.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FilePermissionInteractionSpec'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'is_directory', kind: 'scalar', T: 8 }, - { no: 3, name: 'block_reason', kind: 'enum', T: a.getEnumType(Ya) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ya; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.OUTSIDE_WORKSPACE = 1)] = 'OUTSIDE_WORKSPACE'), - (e[(e.GITIGNORED = 2)] = 'GITIGNORED')); -})(Ya || (Ya = {})); -a.util.setEnumType( - Ya, + }, + { + no: 2, + name: 'disable_artifact_reminders', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _AgenticModeConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _AgenticModeConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _AgenticModeConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_AgenticModeConfig, a, b); + } +}; +var CustomAgentSystemPromptConfig = class _CustomAgentSystemPromptConfig extends Message { + /** + * @generated from field: bool include_workspace_prompt = 1; + */ + includeWorkspacePrompt = false; + /** + * @generated from field: bool include_mcp_server_prompt = 2; + */ + includeMcpServerPrompt = false; + /** + * Includes information about where artifacts should be written to, and + * guidelines on allowed artifact format. Does not prescribe any specific + * artifact types. + * + * @generated from field: bool include_artifact_instructions = 3; + */ + includeArtifactInstructions = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CustomAgentSystemPromptConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'include_workspace_prompt', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'include_mcp_server_prompt', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'include_artifact_instructions', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CustomAgentSystemPromptConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CustomAgentSystemPromptConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CustomAgentSystemPromptConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CustomAgentSystemPromptConfig, a, b); + } +}; +var CustomAgentConfig = class _CustomAgentConfig extends Message { + /** + * @generated from field: repeated exa.cortex_pb.PromptSection system_prompt_sections = 1; + */ + systemPromptSections = []; + /** + * @generated from field: repeated string tool_names = 2; + */ + toolNames = []; + /** + * @generated from field: exa.cortex_pb.CustomAgentSystemPromptConfig system_prompt_config = 6; + */ + systemPromptConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CustomAgentConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'system_prompt_sections', + kind: 'message', + T: PromptSection, + repeated: true, + }, + { no: 2, name: 'tool_names', kind: 'scalar', T: 9, repeated: true }, + { + no: 6, + name: 'system_prompt_config', + kind: 'message', + T: CustomAgentSystemPromptConfig, + }, + ]); + static fromBinary(bytes, options) { + return new _CustomAgentConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CustomAgentConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CustomAgentConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CustomAgentConfig, a, b); + } +}; +var CodingAgentConfig = class _CodingAgentConfig extends Message { + /** + * @generated from field: bool google_mode = 1; + */ + googleMode = false; + /** + * @generated from field: bool agentic_mode = 2; + */ + agenticMode = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodingAgentConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'google_mode', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'agentic_mode', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodingAgentConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodingAgentConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodingAgentConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodingAgentConfig, a, b); + } +}; +var CustomAgentSpec = class _CustomAgentSpec extends Message { + /** + * @generated from oneof exa.cortex_pb.CustomAgentSpec.config + */ + config = { case: void 0 }; + /** + * @generated from field: repeated exa.cortex_pb.McpServerSpec mcp_servers = 4; + */ + mcpServers = []; + /** + * @generated from field: exa.cortex_pb.PromptSectionCustomizationConfig prompt_section_customization = 9; + */ + promptSectionCustomization; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CustomAgentSpec'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'custom_agent', + kind: 'message', + T: CustomAgentConfig, + oneof: 'config', + }, + { + no: 2, + name: 'coding_agent', + kind: 'message', + T: CodingAgentConfig, + oneof: 'config', + }, + { + no: 4, + name: 'mcp_servers', + kind: 'message', + T: McpServerSpec, + repeated: true, + }, + { + no: 9, + name: 'prompt_section_customization', + kind: 'message', + T: PromptSectionCustomizationConfig, + }, + ]); + static fromBinary(bytes, options) { + return new _CustomAgentSpec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CustomAgentSpec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CustomAgentSpec().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CustomAgentSpec, a, b); + } +}; +var CustomPromptSection = class _CustomPromptSection extends Message { + /** + * @generated from field: exa.cortex_pb.PromptSection prompt_section = 1; + */ + promptSection; + /** + * @generated from oneof exa.cortex_pb.CustomPromptSection.placement + */ + placement = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CustomPromptSection'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'prompt_section', kind: 'message', T: PromptSection }, + { + no: 2, + name: 'insert_after_section', + kind: 'scalar', + T: 9, + oneof: 'placement', + }, + { + no: 3, + name: 'insert_before_section', + kind: 'scalar', + T: 9, + oneof: 'placement', + }, + ]); + static fromBinary(bytes, options) { + return new _CustomPromptSection().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CustomPromptSection().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CustomPromptSection().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CustomPromptSection, a, b); + } +}; +var PromptSectionCustomizationConfig = class _PromptSectionCustomizationConfig extends Message { + /** + * @generated from field: repeated string remove_prompt_sections = 1; + */ + removePromptSections = []; + /** + * @generated from field: repeated exa.cortex_pb.CustomPromptSection add_prompt_sections = 2; + */ + addPromptSections = []; + /** + * These prompt sections are added to the END. + * Note that they will appear in the order specified. + * + * @generated from field: repeated exa.cortex_pb.PromptSection append_prompt_sections = 3; + */ + appendPromptSections = []; + /** + * These prompt sections replace existing sections with matching titles. + * + * @generated from field: repeated exa.cortex_pb.PromptSection replace_prompt_sections = 4; + */ + replacePromptSections = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PromptSectionCustomizationConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'remove_prompt_sections', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 2, + name: 'add_prompt_sections', + kind: 'message', + T: CustomPromptSection, + repeated: true, + }, + { + no: 3, + name: 'append_prompt_sections', + kind: 'message', + T: PromptSection, + repeated: true, + }, + { + no: 4, + name: 'replace_prompt_sections', + kind: 'message', + T: PromptSection, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _PromptSectionCustomizationConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PromptSectionCustomizationConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PromptSectionCustomizationConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_PromptSectionCustomizationConfig, a, b); + } +}; +var WorkspacePaths = class _WorkspacePaths extends Message { + /** + * @generated from field: repeated string absolute_paths = 1; + */ + absolutePaths = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.WorkspacePaths'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'absolute_paths', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _WorkspacePaths().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _WorkspacePaths().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _WorkspacePaths().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_WorkspacePaths, a, b); + } +}; +var CustomizationConfig = class _CustomizationConfig extends Message { + /** + * Server that serves all customization functions. Should be an MCP server + * URL. + * + * @generated from field: string customization_server_url = 1; + */ + customizationServerUrl = ''; + /** + * Tool names to pass as agent tools from the customization server. + * + * @generated from field: repeated string tool_names = 2; + */ + toolNames = []; + /** + * Names of tools in the customization server that correspond to + * pre-invocation hooks. + * + * @generated from field: repeated string pre_invocation_hook_names = 3; + */ + preInvocationHookNames = []; + /** + * Names of tools in the customization server that correspond to + * post-invocation hooks. + * + * @generated from field: repeated string post_invocation_hook_names = 4; + */ + postInvocationHookNames = []; + /** + * MCP servers to be used directly. Overrides mcp servers read from any other + * source, e.g the mcp_config.json + * + * @generated from field: repeated exa.cortex_pb.McpServerSpec mcp_servers = 5; + */ + mcpServers = []; + /** + * If provided, overrides the trajectory to chat message behavior. Should be + * the name of a function in the customization server that returns a JSON of + * []*chat_pb.ChatMessagePrompt + * + * @generated from field: string trajectory_to_chat_message_override = 6; + */ + trajectoryToChatMessageOverride = ''; + /** + * Names of tools in the customization server that correspond to + * pre-tool hooks. + * + * @generated from field: repeated string pre_tool_hook_names = 8; + */ + preToolHookNames = []; + /** + * Names of tools in the customization server that correspond to + * post-tool hooks. + * + * @generated from field: repeated string post_tool_hook_names = 9; + */ + postToolHookNames = []; + /** + * @generated from oneof exa.cortex_pb.CustomizationConfig.workspace + */ + workspace = { case: void 0 }; + /** + * If true, tool names from the customization server will not be prefixed + * with mcp_{server_name}_. This allows customization tools to appear as + * native tools. + * + * @generated from field: bool skip_tool_name_prefix = 12; + */ + skipToolNamePrefix = false; + /** + * If true, tool descriptions from the customization server will not be + * prefixed with "This is a tool from the {server_name} MCP server." + * + * @generated from field: bool skip_tool_description_prefix = 13; + */ + skipToolDescriptionPrefix = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CustomizationConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'customization_server_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'tool_names', kind: 'scalar', T: 9, repeated: true }, + { + no: 3, + name: 'pre_invocation_hook_names', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 4, + name: 'post_invocation_hook_names', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 5, + name: 'mcp_servers', + kind: 'message', + T: McpServerSpec, + repeated: true, + }, + { + no: 6, + name: 'trajectory_to_chat_message_override', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'pre_tool_hook_names', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 9, + name: 'post_tool_hook_names', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 10, + name: 'user_active_workspaces', + kind: 'scalar', + T: 8, + oneof: 'workspace', + }, + { + no: 11, + name: 'workspace_paths', + kind: 'message', + T: WorkspacePaths, + oneof: 'workspace', + }, + { + no: 12, + name: 'skip_tool_name_prefix', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 13, + name: 'skip_tool_description_prefix', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CustomizationConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CustomizationConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CustomizationConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CustomizationConfig, a, b); + } +}; +var CascadePlannerConfig = class _CascadePlannerConfig extends Message { + /** + * The planner-type-config should be specific to the configuration of a mixin, + * i.e in deciding certain tools to use, or other mixin customizations. It + * should not contain any tool-level configuration. + * + * @generated from oneof exa.cortex_pb.CascadePlannerConfig.planner_type_config + */ + plannerTypeConfig = { case: void 0 }; + /** + * Configuration that specifies customizations to the agent. + * + * @generated from field: exa.cortex_pb.CustomizationConfig customization_config = 42; + */ + customizationConfig; + /** + * Used to mutate the prompt sections of an existing planner type + * + * @generated from field: exa.cortex_pb.PromptSectionCustomizationConfig prompt_section_customization_config = 41; + */ + promptSectionCustomizationConfig; + /** + * All tool-level configurations. + * + * @generated from field: exa.cortex_pb.CascadeToolConfig tool_config = 13; + */ + toolConfig; + /** + * @generated from field: exa.cortex_pb.StepStringConverterConfig step_string_converter_config = 31; + */ + stepStringConverterConfig; + /** + * All non-mixin-specific planner-level configurations. + * + * @generated from field: exa.codeium_common_pb.Model plan_model = 1; + */ + planModel = Model.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.ModelOrAlias requested_model = 15; + */ + requestedModel; + /** + * @generated from field: string model_name = 28; + */ + modelName = ''; + /** + * Custom overrides for model info. Can have non-empty value if the model + * is marked with the supports_model_info_override feature. + * Must provide at minimum model_name field. + * + * @generated from field: exa.codeium_common_pb.ModelInfo custom_model_info_override = 27; + */ + customModelInfoOverride; + /** + * @generated from field: uint32 max_output_tokens = 6; + */ + maxOutputTokens = 0; + /** + * Whether to give explanation of tool calls or not. + * + * @generated from field: optional bool no_tool_explanation = 7; + */ + noToolExplanation; + /** + * Whether to give tool summary of tool calls or not. + * + * @generated from field: optional bool no_tool_summary = 33; + */ + noToolSummary; + /** + * If a conversation exceeds the truncation_threshold_tokens and the time + * since the last invocation is greater than the prompt cache TTL, we will + * proactively truncate the conversation back to the last checkpoint to + * prevent long latencies due to large cache writes. + * + * @generated from field: int32 truncation_threshold_tokens = 14; + */ + truncationThresholdTokens = 0; + /** + * Ephemeral message configuration. + * + * @generated from field: exa.cortex_pb.EphemeralMessagesConfig ephemeral_messages_config = 21; + */ + ephemeralMessagesConfig; + /** + * If true, then planner generator will mark all errors as shown to user. + * Otherwise only conditionally shows errors to user. + * + * @generated from field: bool show_all_errors = 25; + */ + showAllErrors = false; + /** + * Retry configuration for planner operations. + * + * @generated from field: exa.cortex_pb.PlannerRetryConfig retry_config = 30; + */ + retryConfig; + /** + * @generated from field: exa.cortex_pb.KnowledgeConfig knowledge_config = 32; + */ + knowledgeConfig; + /** + * Configures certain features specific to agentic mode. + * + * @generated from field: exa.cortex_pb.AgenticModeConfig agentic_mode_config = 35; + */ + agenticModeConfig; + /** + * Remove argument to allow model to queue / wait for previous tools. + * + * @generated from field: optional bool no_wait_for_previous_tools = 37; + */ + noWaitForPreviousTools; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadePlannerConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'conversational', + kind: 'message', + T: CascadeConversationalPlannerConfig, + oneof: 'planner_type_config', + }, + { + no: 26, + name: 'google', + kind: 'message', + T: CascadeConversationalPlannerConfig, + oneof: 'planner_type_config', + }, + { + no: 36, + name: 'cider', + kind: 'message', + T: CascadeConversationalPlannerConfig, + oneof: 'planner_type_config', + }, + { + no: 39, + name: 'custom_agent', + kind: 'message', + T: CustomAgentConfig, + oneof: 'planner_type_config', + }, + { + no: 40, + name: 'custom_agent_config_absolute_uri', + kind: 'scalar', + T: 9, + oneof: 'planner_type_config', + }, + { + no: 42, + name: 'customization_config', + kind: 'message', + T: CustomizationConfig, + }, + { + no: 41, + name: 'prompt_section_customization_config', + kind: 'message', + T: PromptSectionCustomizationConfig, + }, + { no: 13, name: 'tool_config', kind: 'message', T: CascadeToolConfig }, + { + no: 31, + name: 'step_string_converter_config', + kind: 'message', + T: StepStringConverterConfig, + }, + { no: 1, name: 'plan_model', kind: 'enum', T: proto3.getEnumType(Model) }, + { no: 15, name: 'requested_model', kind: 'message', T: ModelOrAlias }, + { + no: 28, + name: 'model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 27, + name: 'custom_model_info_override', + kind: 'message', + T: ModelInfo, + }, + { + no: 6, + name: 'max_output_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 7, name: 'no_tool_explanation', kind: 'scalar', T: 8, opt: true }, + { no: 33, name: 'no_tool_summary', kind: 'scalar', T: 8, opt: true }, + { + no: 14, + name: 'truncation_threshold_tokens', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 21, + name: 'ephemeral_messages_config', + kind: 'message', + T: EphemeralMessagesConfig, + }, + { + no: 25, + name: 'show_all_errors', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 30, name: 'retry_config', kind: 'message', T: PlannerRetryConfig }, + { no: 32, name: 'knowledge_config', kind: 'message', T: KnowledgeConfig }, + { + no: 35, + name: 'agentic_mode_config', + kind: 'message', + T: AgenticModeConfig, + }, + { + no: 37, + name: 'no_wait_for_previous_tools', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CascadePlannerConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadePlannerConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadePlannerConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadePlannerConfig, a, b); + } +}; +var DeploymentInteractionPayload = class _DeploymentInteractionPayload extends Message { + /** + * @generated from field: string subdomain = 1; + */ + subdomain = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.DeploymentInteractionPayload'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'subdomain', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _DeploymentInteractionPayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DeploymentInteractionPayload().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DeploymentInteractionPayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_DeploymentInteractionPayload, a, b); + } +}; +var CascadeDeployInteraction = class _CascadeDeployInteraction extends Message { + /** + * @generated from field: bool cancel = 1; + */ + cancel = false; + /** + * @generated from field: exa.codeium_common_pb.DeployTarget deploy_target = 2; + */ + deployTarget; + /** + * @generated from field: string subdomain = 3; + */ + subdomain = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeDeployInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cancel', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 2, name: 'deploy_target', kind: 'message', T: DeployTarget }, + { + no: 3, + name: 'subdomain', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeDeployInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeDeployInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeDeployInteraction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeDeployInteraction, a, b); + } +}; +var CascadeRunCommandInteraction = class _CascadeRunCommandInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + /** + * Command that was initially proposed by the model. + * + * @generated from field: string proposed_command_line = 2; + */ + proposedCommandLine = ''; + /** + * Command that is to be run. This will be the same as the proposed command + * line if the user did not edit it. + * + * @generated from field: string submitted_command_line = 3; + */ + submittedCommandLine = ''; + /** + * @generated from field: bool sandbox_override = 4; + */ + sandboxOverride = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeRunCommandInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'proposed_command_line', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'submitted_command_line', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'sandbox_override', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeRunCommandInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeRunCommandInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeRunCommandInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeRunCommandInteraction, a, b); + } +}; +var CascadeOpenBrowserUrlInteraction = class _CascadeOpenBrowserUrlInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeOpenBrowserUrlInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeOpenBrowserUrlInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeOpenBrowserUrlInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeOpenBrowserUrlInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeOpenBrowserUrlInteraction, a, b); + } +}; +var CascadeRunExtensionCodeInteraction = class _CascadeRunExtensionCodeInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeRunExtensionCodeInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeRunExtensionCodeInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeRunExtensionCodeInteraction().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeRunExtensionCodeInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeRunExtensionCodeInteraction, a, b); + } +}; +var CascadeExecuteBrowserJavaScriptInteraction = class _CascadeExecuteBrowserJavaScriptInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeExecuteBrowserJavaScriptInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeExecuteBrowserJavaScriptInteraction().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeExecuteBrowserJavaScriptInteraction().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeExecuteBrowserJavaScriptInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _CascadeExecuteBrowserJavaScriptInteraction, + a, + b, + ); + } +}; +var CascadeCaptureBrowserScreenshotInteraction = class _CascadeCaptureBrowserScreenshotInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeCaptureBrowserScreenshotInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeCaptureBrowserScreenshotInteraction().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeCaptureBrowserScreenshotInteraction().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeCaptureBrowserScreenshotInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _CascadeCaptureBrowserScreenshotInteraction, + a, + b, + ); + } +}; +var CascadeClickBrowserPixelInteraction = class _CascadeClickBrowserPixelInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeClickBrowserPixelInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeClickBrowserPixelInteraction().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeClickBrowserPixelInteraction().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeClickBrowserPixelInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeClickBrowserPixelInteraction, a, b); + } +}; +var CascadeTaskResolutionInteraction = class _CascadeTaskResolutionInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + /** + * @generated from field: exa.cortex_pb.TaskResolution resolution = 2; + */ + resolution; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeTaskResolutionInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 2, name: 'resolution', kind: 'message', T: TaskResolution }, + ]); + static fromBinary(bytes, options) { + return new _CascadeTaskResolutionInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeTaskResolutionInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeTaskResolutionInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeTaskResolutionInteraction, a, b); + } +}; +var CascadeBrowserActionInteraction = class _CascadeBrowserActionInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeBrowserActionInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeBrowserActionInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeBrowserActionInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeBrowserActionInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeBrowserActionInteraction, a, b); + } +}; +var CascadeOpenBrowserSetupInteraction = class _CascadeOpenBrowserSetupInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeOpenBrowserSetupInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeOpenBrowserSetupInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeOpenBrowserSetupInteraction().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeOpenBrowserSetupInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeOpenBrowserSetupInteraction, a, b); + } +}; +var CascadeConfirmBrowserSetupInteraction = class _CascadeConfirmBrowserSetupInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeConfirmBrowserSetupInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeConfirmBrowserSetupInteraction().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeConfirmBrowserSetupInteraction().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeConfirmBrowserSetupInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeConfirmBrowserSetupInteraction, a, b); + } +}; +var CascadeSendCommandInputInteraction = class _CascadeSendCommandInputInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeSendCommandInputInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeSendCommandInputInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeSendCommandInputInteraction().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeSendCommandInputInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeSendCommandInputInteraction, a, b); + } +}; +var CascadeReadUrlContentInteraction = class _CascadeReadUrlContentInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeReadUrlContentInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeReadUrlContentInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeReadUrlContentInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeReadUrlContentInteraction().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeReadUrlContentInteraction, a, b); + } +}; +var CascadeMcpInteraction = class _CascadeMcpInteraction extends Message { + /** + * @generated from field: bool confirm = 1; + */ + confirm = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeMcpInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'confirm', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeMcpInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeMcpInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeMcpInteraction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeMcpInteraction, a, b); + } +}; +var FilePermissionInteraction = class _FilePermissionInteraction extends Message { + /** + * true = grant access, false = deny access + * + * @generated from field: bool allow = 1; + */ + allow = false; + /** + * @generated from field: exa.cortex_pb.PermissionScope scope = 2; + */ + scope = PermissionScope.UNSPECIFIED; + /** + * @generated from field: string absolute_path_uri = 3; + */ + absolutePathUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FilePermissionInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'allow', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'scope', + kind: 'enum', + T: proto3.getEnumType(PermissionScope), + }, + { + no: 3, + name: 'absolute_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _FilePermissionInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FilePermissionInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FilePermissionInteraction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FilePermissionInteraction, a, b); + } +}; +var CascadeDeployInteractionSpec = class _CascadeDeployInteractionSpec extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.DeployTarget deploy_target_options = 1; + */ + deployTargetOptions = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeDeployInteractionSpec'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'deploy_target_options', + kind: 'message', + T: DeployTarget, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeDeployInteractionSpec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeDeployInteractionSpec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeDeployInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeDeployInteractionSpec, a, b); + } +}; +var CascadeRunCommandInteractionSpec = class _CascadeRunCommandInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeRunCommandInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeRunCommandInteractionSpec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeRunCommandInteractionSpec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeRunCommandInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeRunCommandInteractionSpec, a, b); + } +}; +var CascadeOpenBrowserUrlInteractionSpec = class _CascadeOpenBrowserUrlInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeOpenBrowserUrlInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeOpenBrowserUrlInteractionSpec().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeOpenBrowserUrlInteractionSpec().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeOpenBrowserUrlInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeOpenBrowserUrlInteractionSpec, a, b); + } +}; +var CascadeRunExtensionCodeInteractionSpec = class _CascadeRunExtensionCodeInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeRunExtensionCodeInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeRunExtensionCodeInteractionSpec().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeRunExtensionCodeInteractionSpec().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeRunExtensionCodeInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeRunExtensionCodeInteractionSpec, a, b); + } +}; +var CascadeExecuteBrowserJavaScriptInteractionSpec = class _CascadeExecuteBrowserJavaScriptInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.cortex_pb.CascadeExecuteBrowserJavaScriptInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeExecuteBrowserJavaScriptInteractionSpec().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeExecuteBrowserJavaScriptInteractionSpec().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeExecuteBrowserJavaScriptInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _CascadeExecuteBrowserJavaScriptInteractionSpec, + a, + b, + ); + } +}; +var CascadeCaptureBrowserScreenshotInteractionSpec = class _CascadeCaptureBrowserScreenshotInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = + 'exa.cortex_pb.CascadeCaptureBrowserScreenshotInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeCaptureBrowserScreenshotInteractionSpec().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeCaptureBrowserScreenshotInteractionSpec().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeCaptureBrowserScreenshotInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals( + _CascadeCaptureBrowserScreenshotInteractionSpec, + a, + b, + ); + } +}; +var CascadeClickBrowserPixelInteractionSpec = class _CascadeClickBrowserPixelInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeClickBrowserPixelInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeClickBrowserPixelInteractionSpec().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeClickBrowserPixelInteractionSpec().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeClickBrowserPixelInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeClickBrowserPixelInteractionSpec, a, b); + } +}; +var CascadeTaskResolutionInteractionSpec = class _CascadeTaskResolutionInteractionSpec extends Message { + /** + * @generated from field: string title = 1; + */ + title = ''; + /** + * @generated from field: string description = 2; + */ + description = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeTaskResolutionInteractionSpec'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeTaskResolutionInteractionSpec().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeTaskResolutionInteractionSpec().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeTaskResolutionInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeTaskResolutionInteractionSpec, a, b); + } +}; +var CascadeSendCommandInputInteractionSpec = class _CascadeSendCommandInputInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeSendCommandInputInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeSendCommandInputInteractionSpec().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeSendCommandInputInteractionSpec().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeSendCommandInputInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeSendCommandInputInteractionSpec, a, b); + } +}; +var CascadeReadUrlContentInteractionSpec = class _CascadeReadUrlContentInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeReadUrlContentInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeReadUrlContentInteractionSpec().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CascadeReadUrlContentInteractionSpec().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CascadeReadUrlContentInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CascadeReadUrlContentInteractionSpec, a, b); + } +}; +var CascadeMcpInteractionSpec = class _CascadeMcpInteractionSpec extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeMcpInteractionSpec'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CascadeMcpInteractionSpec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeMcpInteractionSpec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeMcpInteractionSpec().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeMcpInteractionSpec, a, b); + } +}; +var FilePermissionInteractionSpec = class _FilePermissionInteractionSpec extends Message { + /** + * @generated from field: string absolute_path_uri = 1; + */ + absolutePathUri = ''; + /** + * @generated from field: bool is_directory = 2; + */ + isDirectory = false; + /** + * @generated from field: exa.cortex_pb.FilePermissionInteractionSpec.BlockReason block_reason = 3; + */ + blockReason = FilePermissionInteractionSpec_BlockReason.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FilePermissionInteractionSpec'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'is_directory', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'block_reason', + kind: 'enum', + T: proto3.getEnumType(FilePermissionInteractionSpec_BlockReason), + }, + ]); + static fromBinary(bytes, options) { + return new _FilePermissionInteractionSpec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FilePermissionInteractionSpec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FilePermissionInteractionSpec().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_FilePermissionInteractionSpec, a, b); + } +}; +var FilePermissionInteractionSpec_BlockReason; +(function (FilePermissionInteractionSpec_BlockReason2) { + FilePermissionInteractionSpec_BlockReason2[ + (FilePermissionInteractionSpec_BlockReason2['UNSPECIFIED'] = 0) + ] = 'UNSPECIFIED'; + FilePermissionInteractionSpec_BlockReason2[ + (FilePermissionInteractionSpec_BlockReason2['OUTSIDE_WORKSPACE'] = 1) + ] = 'OUTSIDE_WORKSPACE'; + FilePermissionInteractionSpec_BlockReason2[ + (FilePermissionInteractionSpec_BlockReason2['GITIGNORED'] = 2) + ] = 'GITIGNORED'; +})( + FilePermissionInteractionSpec_BlockReason || + (FilePermissionInteractionSpec_BlockReason = {}), +); +proto3.util.setEnumType( + FilePermissionInteractionSpec_BlockReason, 'exa.cortex_pb.FilePermissionInteractionSpec.BlockReason', [ { no: 0, name: 'BLOCK_REASON_UNSPECIFIED' }, @@ -27732,6523 +52197,14946 @@ a.util.setEnumType( { no: 2, name: 'BLOCK_REASON_GITIGNORED' }, ], ); -var ys = class e extends r { - interaction = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.RequestedInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'deploy', kind: 'message', T: md, oneof: 'interaction' }, - { - no: 3, - name: 'run_command', - kind: 'message', - T: cd, - oneof: 'interaction', - }, - { - no: 4, - name: 'open_browser_url', - kind: 'message', - T: ud, - oneof: 'interaction', - }, - { - no: 5, - name: 'run_extension_code', - kind: 'message', - T: ld, - oneof: 'interaction', - }, - { - no: 7, - name: 'execute_browser_javascript', - kind: 'message', - T: Ed, - oneof: 'interaction', - }, - { - no: 8, - name: 'capture_browser_screenshot', - kind: 'message', - T: _d, - oneof: 'interaction', - }, - { - no: 9, - name: 'click_browser_pixel', - kind: 'message', - T: dd, - oneof: 'interaction', - }, - { - no: 13, - name: 'browser_action', - kind: 'message', - T: Bs, - oneof: 'interaction', - }, - { - no: 14, - name: 'open_browser_setup', - kind: 'message', - T: Fs, - oneof: 'interaction', - }, - { - no: 15, - name: 'confirm_browser_setup', - kind: 'message', - T: Ms, - oneof: 'interaction', - }, - { - no: 16, - name: 'send_command_input', - kind: 'message', - T: Td, - oneof: 'interaction', - }, - { - no: 17, - name: 'read_url_content', - kind: 'message', - T: fd, - oneof: 'interaction', - }, - { no: 18, name: 'mcp', kind: 'message', T: Nd, oneof: 'interaction' }, - { - no: 19, - name: 'file_permission', - kind: 'message', - T: sn, - oneof: 'interaction', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - UI = class e extends r { - trajectoryId = ''; - stepIndex = 0; - interaction = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadeUserInteraction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'trajectory_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'step_index', kind: 'scalar', T: 13 }, - { no: 4, name: 'deploy', kind: 'message', T: Q_, oneof: 'interaction' }, - { - no: 5, - name: 'run_command', - kind: 'message', - T: Z_, - oneof: 'interaction', - }, - { - no: 6, - name: 'open_browser_url', - kind: 'message', - T: $_, - oneof: 'interaction', - }, - { - no: 7, - name: 'run_extension_code', - kind: 'message', - T: nd, - oneof: 'interaction', - }, - { - no: 8, - name: 'execute_browser_javascript', - kind: 'message', - T: ed, - oneof: 'interaction', - }, - { - no: 9, - name: 'capture_browser_screenshot', - kind: 'message', - T: td, - oneof: 'interaction', - }, - { - no: 10, - name: 'click_browser_pixel', - kind: 'message', - T: ad, - oneof: 'interaction', - }, - { - no: 13, - name: 'browser_action', - kind: 'message', - T: Bs, - oneof: 'interaction', - }, - { - no: 14, - name: 'open_browser_setup', - kind: 'message', - T: Fs, - oneof: 'interaction', - }, - { - no: 15, - name: 'confirm_browser_setup', - kind: 'message', - T: Ms, - oneof: 'interaction', - }, - { - no: 16, - name: 'send_command_input', - kind: 'message', - T: rd, - oneof: 'interaction', - }, - { - no: 17, - name: 'read_url_content', - kind: 'message', - T: sd, - oneof: 'interaction', - }, - { no: 18, name: 'mcp', kind: 'message', T: id, oneof: 'interaction' }, - { - no: 19, - name: 'file_permission', - kind: 'message', - T: od, - oneof: 'interaction', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Sd = class e extends r { - reference = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.KnowledgeReference'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'file_path', kind: 'scalar', T: 9, oneof: 'reference' }, - { - no: 2, - name: 'conversation_id', +var RequestedInteraction = class _RequestedInteraction extends Message { + /** + * @generated from oneof exa.cortex_pb.RequestedInteraction.interaction + */ + interaction = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.RequestedInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 2, + name: 'deploy', + kind: 'message', + T: CascadeDeployInteractionSpec, + oneof: 'interaction', + }, + { + no: 3, + name: 'run_command', + kind: 'message', + T: CascadeRunCommandInteractionSpec, + oneof: 'interaction', + }, + { + no: 4, + name: 'open_browser_url', + kind: 'message', + T: CascadeOpenBrowserUrlInteractionSpec, + oneof: 'interaction', + }, + { + no: 5, + name: 'run_extension_code', + kind: 'message', + T: CascadeRunExtensionCodeInteractionSpec, + oneof: 'interaction', + }, + { + no: 7, + name: 'execute_browser_javascript', + kind: 'message', + T: CascadeExecuteBrowserJavaScriptInteractionSpec, + oneof: 'interaction', + }, + { + no: 8, + name: 'capture_browser_screenshot', + kind: 'message', + T: CascadeCaptureBrowserScreenshotInteractionSpec, + oneof: 'interaction', + }, + { + no: 9, + name: 'click_browser_pixel', + kind: 'message', + T: CascadeClickBrowserPixelInteractionSpec, + oneof: 'interaction', + }, + { + no: 13, + name: 'browser_action', + kind: 'message', + T: CascadeBrowserActionInteraction, + oneof: 'interaction', + }, + { + no: 14, + name: 'open_browser_setup', + kind: 'message', + T: CascadeOpenBrowserSetupInteraction, + oneof: 'interaction', + }, + { + no: 15, + name: 'confirm_browser_setup', + kind: 'message', + T: CascadeConfirmBrowserSetupInteraction, + oneof: 'interaction', + }, + { + no: 16, + name: 'send_command_input', + kind: 'message', + T: CascadeSendCommandInputInteractionSpec, + oneof: 'interaction', + }, + { + no: 17, + name: 'read_url_content', + kind: 'message', + T: CascadeReadUrlContentInteractionSpec, + oneof: 'interaction', + }, + { + no: 18, + name: 'mcp', + kind: 'message', + T: CascadeMcpInteractionSpec, + oneof: 'interaction', + }, + { + no: 19, + name: 'file_permission', + kind: 'message', + T: FilePermissionInteractionSpec, + oneof: 'interaction', + }, + ]); + static fromBinary(bytes, options) { + return new _RequestedInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RequestedInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RequestedInteraction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RequestedInteraction, a, b); + } +}; +var CascadeUserInteraction = class _CascadeUserInteraction extends Message { + /** + * @generated from field: string trajectory_id = 1; + */ + trajectoryId = ''; + /** + * @generated from field: uint32 step_index = 2; + */ + stepIndex = 0; + /** + * @generated from oneof exa.cortex_pb.CascadeUserInteraction.interaction + */ + interaction = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadeUserInteraction'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'trajectory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'step_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'deploy', + kind: 'message', + T: CascadeDeployInteraction, + oneof: 'interaction', + }, + { + no: 5, + name: 'run_command', + kind: 'message', + T: CascadeRunCommandInteraction, + oneof: 'interaction', + }, + { + no: 6, + name: 'open_browser_url', + kind: 'message', + T: CascadeOpenBrowserUrlInteraction, + oneof: 'interaction', + }, + { + no: 7, + name: 'run_extension_code', + kind: 'message', + T: CascadeRunExtensionCodeInteraction, + oneof: 'interaction', + }, + { + no: 8, + name: 'execute_browser_javascript', + kind: 'message', + T: CascadeExecuteBrowserJavaScriptInteraction, + oneof: 'interaction', + }, + { + no: 9, + name: 'capture_browser_screenshot', + kind: 'message', + T: CascadeCaptureBrowserScreenshotInteraction, + oneof: 'interaction', + }, + { + no: 10, + name: 'click_browser_pixel', + kind: 'message', + T: CascadeClickBrowserPixelInteraction, + oneof: 'interaction', + }, + { + no: 13, + name: 'browser_action', + kind: 'message', + T: CascadeBrowserActionInteraction, + oneof: 'interaction', + }, + { + no: 14, + name: 'open_browser_setup', + kind: 'message', + T: CascadeOpenBrowserSetupInteraction, + oneof: 'interaction', + }, + { + no: 15, + name: 'confirm_browser_setup', + kind: 'message', + T: CascadeConfirmBrowserSetupInteraction, + oneof: 'interaction', + }, + { + no: 16, + name: 'send_command_input', + kind: 'message', + T: CascadeSendCommandInputInteraction, + oneof: 'interaction', + }, + { + no: 17, + name: 'read_url_content', + kind: 'message', + T: CascadeReadUrlContentInteraction, + oneof: 'interaction', + }, + { + no: 18, + name: 'mcp', + kind: 'message', + T: CascadeMcpInteraction, + oneof: 'interaction', + }, + { + no: 19, + name: 'file_permission', + kind: 'message', + T: FilePermissionInteraction, + oneof: 'interaction', + }, + ]); + static fromBinary(bytes, options) { + return new _CascadeUserInteraction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadeUserInteraction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadeUserInteraction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadeUserInteraction, a, b); + } +}; +var KnowledgeReference = class _KnowledgeReference extends Message { + /** + * @generated from oneof exa.cortex_pb.KnowledgeReference.reference + */ + reference = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.KnowledgeReference'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'file_path', kind: 'scalar', T: 9, oneof: 'reference' }, + { + no: 2, + name: 'conversation_id', + kind: 'scalar', + T: 9, + oneof: 'reference', + }, + { no: 3, name: 'url', kind: 'scalar', T: 9, oneof: 'reference' }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeReference().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeReference().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeReference().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeReference, a, b); + } +}; +var KnowledgeReferences = class _KnowledgeReferences extends Message { + /** + * @generated from field: repeated exa.cortex_pb.KnowledgeReference references = 1; + */ + references = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.KnowledgeReferences'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'references', + kind: 'message', + T: KnowledgeReference, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeReferences().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeReferences().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeReferences().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeReferences, a, b); + } +}; +var CortexStepKIInsertion = class _CortexStepKIInsertion extends Message { + /** + * map of KI names to their references + * + * @generated from field: map ki_references = 1; + */ + kiReferences = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepKIInsertion'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'ki_references', + kind: 'map', + K: 9, + V: { kind: 'message', T: KnowledgeReferences }, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepKIInsertion().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepKIInsertion().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepKIInsertion().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepKIInsertion, a, b); + } +}; +var CortexStepDummy = class _CortexStepDummy extends Message { + /** + * @generated from field: uint32 input = 1; + */ + input = 0; + /** + * @generated from field: uint32 output = 2; + */ + output = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepDummy'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'input', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'output', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepDummy().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepDummy().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepDummy().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepDummy, a, b); + } +}; +var CortexStepFinish = class _CortexStepFinish extends Message { + /** + * @generated from field: map output = 1; + */ + output = {}; + /** + * @generated from field: string output_string = 2; + */ + outputString = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepFinish'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'output', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - oneof: 'reference', + /* ScalarType.STRING */ }, - { no: 3, name: 'url', kind: 'scalar', T: 9, oneof: 'reference' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Id = class e extends r { - references = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.KnowledgeReferences'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'references', kind: 'message', T: Sd, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hs = class e extends r { - kiReferences = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepKIInsertion'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'ki_references', - kind: 'map', - K: 9, - V: { kind: 'message', T: Id }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gs = class e extends r { - input = 0; - output = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepDummy'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'input', kind: 'scalar', T: 13 }, - { no: 2, name: 'output', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bs = class e extends r { - output = {}; - outputString = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepFinish'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'output', kind: 'map', K: 9, V: { kind: 'scalar', T: 9 } }, - { no: 2, name: 'output_string', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qs = class e extends r { - planInput; - userProvided = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepPlanInput'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'plan_input', kind: 'message', T: An }, - { no: 2, name: 'user_provided', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pd = class e extends r { - artifactName = ''; - content = ''; - artifactAbsoluteUri = ''; - lastEdited; - reviewState; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ArtifactSnapshot'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'artifact_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'content', kind: 'scalar', T: 9 }, - { no: 3, name: 'artifact_absolute_uri', kind: 'scalar', T: 9 }, - { no: 4, name: 'last_edited', kind: 'message', T: _ }, - { no: 5, name: 'review_state', kind: 'message', T: nT }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hs = class e extends r { - checkpointIndex = 0; - intentOnly = !1; - includedStepIndexStart = 0; - includedStepIndexEnd = 0; - conversationTitle = ''; - userIntent = ''; - sessionSummary = ''; - codeChangeSummary = ''; - modelSummarizationFailed = !1; - usedFallbackSummary = !1; - artifactSnapshots = []; - conversationLogUris = []; - editedFileMap = {}; - includedStepIndices = []; - memorySummary = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCheckpoint'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'checkpoint_index', kind: 'scalar', T: 13 }, - { no: 9, name: 'intent_only', kind: 'scalar', T: 8 }, - { no: 11, name: 'included_step_index_start', kind: 'scalar', T: 13 }, - { no: 12, name: 'included_step_index_end', kind: 'scalar', T: 13 }, - { no: 10, name: 'conversation_title', kind: 'scalar', T: 9 }, - { no: 4, name: 'user_intent', kind: 'scalar', T: 9 }, - { no: 5, name: 'session_summary', kind: 'scalar', T: 9 }, - { no: 6, name: 'code_change_summary', kind: 'scalar', T: 9 }, - { no: 16, name: 'model_summarization_failed', kind: 'scalar', T: 8 }, - { no: 17, name: 'used_fallback_summary', kind: 'scalar', T: 8 }, - { - no: 14, - name: 'artifact_snapshots', - kind: 'message', - T: pd, - repeated: !0, - }, - { - no: 15, - name: 'conversation_log_uris', + }, + { + no: 2, + name: 'output_string', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepFinish().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepFinish().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepFinish().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepFinish, a, b); + } +}; +var CortexStepPlanInput = class _CortexStepPlanInput extends Message { + /** + * @generated from field: exa.cortex_pb.PlanInput plan_input = 1; + */ + planInput; + /** + * @generated from field: bool user_provided = 2; + */ + userProvided = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepPlanInput'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'plan_input', kind: 'message', T: PlanInput }, + { + no: 2, + name: 'user_provided', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepPlanInput().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepPlanInput().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepPlanInput().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepPlanInput, a, b); + } +}; +var ArtifactSnapshot = class _ArtifactSnapshot extends Message { + /** + * @generated from field: string artifact_name = 1; + */ + artifactName = ''; + /** + * Content is only populated if the artifact is a text file. Might not be + * populated at all, depending on the method used to generate the snapshot. + * + * @generated from field: string content = 2; + */ + content = ''; + /** + * @generated from field: string artifact_absolute_uri = 3; + */ + artifactAbsoluteUri = ''; + /** + * @generated from field: google.protobuf.Timestamp last_edited = 4; + */ + lastEdited; + /** + * @generated from field: exa.cortex_pb.ArtifactReviewState review_state = 5; + */ + reviewState; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ArtifactSnapshot'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'artifact_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'artifact_absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'last_edited', kind: 'message', T: Timestamp }, + { no: 5, name: 'review_state', kind: 'message', T: ArtifactReviewState }, + ]); + static fromBinary(bytes, options) { + return new _ArtifactSnapshot().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ArtifactSnapshot().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ArtifactSnapshot().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ArtifactSnapshot, a, b); + } +}; +var CortexStepCheckpoint = class _CortexStepCheckpoint extends Message { + /** + * Inputs + * + * 0-indexed + * + * @generated from field: uint32 checkpoint_index = 1; + */ + checkpointIndex = 0; + /** + * If true, performs a minimal checkpoint and only + * + * @generated from field: bool intent_only = 9; + */ + intentOnly = false; + /** + * Outputs + * + * Start of steps summarized by the checkpoint, inclusive + * + * @generated from field: uint32 included_step_index_start = 11; + */ + includedStepIndexStart = 0; + /** + * End of steps summarized by the checkpoint, exclusive + * + * @generated from field: uint32 included_step_index_end = 12; + */ + includedStepIndexEnd = 0; + /** + * Title summarizing the conversation + * + * @generated from field: string conversation_title = 10; + */ + conversationTitle = ''; + /** + * Summary of user's objective and goals + * + * @generated from field: string user_intent = 4; + */ + userIntent = ''; + /** + * Summary of the key context and findings in the included steps + * + * @generated from field: string session_summary = 5; + */ + sessionSummary = ''; + /** + * Summary of code edited and viewed during the included steps + * + * @generated from field: string code_change_summary = 6; + */ + codeChangeSummary = ''; + /** + * Indicates that all model-based summarization attempts failed. + * + * @generated from field: bool model_summarization_failed = 16; + */ + modelSummarizationFailed = false; + /** + * Indicates that a non-model based fallback summary was used + * + * @generated from field: bool used_fallback_summary = 17; + */ + usedFallbackSummary = false; + /** + * Only populated in agentic mode. + * + * @generated from field: repeated exa.cortex_pb.ArtifactSnapshot artifact_snapshots = 14; + */ + artifactSnapshots = []; + /** + * Conversation log URIs + * These are full logs of the entire conversation up to this checkpoint, + * as well as individual logs of each task, if in agentic mode + * + * @generated from field: repeated string conversation_log_uris = 15; + */ + conversationLogUris = []; + /** + * Deprecated + * + * @generated from field: map edited_file_map = 7 [deprecated = true]; + * @deprecated + */ + editedFileMap = {}; + /** + * @generated from field: repeated uint32 included_step_indices = 3 [deprecated = true]; + * @deprecated + */ + includedStepIndices = []; + /** + * @generated from field: string memory_summary = 8 [deprecated = true]; + * @deprecated + */ + memorySummary = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCheckpoint'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'checkpoint_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 9, + name: 'intent_only', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'included_step_index_start', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 12, + name: 'included_step_index_end', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 10, + name: 'conversation_title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'user_intent', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'session_summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'code_change_summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 16, + name: 'model_summarization_failed', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 17, + name: 'used_fallback_summary', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'artifact_snapshots', + kind: 'message', + T: ArtifactSnapshot, + repeated: true, + }, + { + no: 15, + name: 'conversation_log_uris', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 7, + name: 'edited_file_map', + kind: 'map', + K: 9, + V: { kind: 'message', T: DiffList }, + }, + { + no: 3, + name: 'included_step_indices', + kind: 'scalar', + T: 13, + repeated: true, + }, + { + no: 8, + name: 'memory_summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCheckpoint().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCheckpoint().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCheckpoint().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCheckpoint, a, b); + } +}; +var CheckpointConfig = class _CheckpointConfig extends Message { + /** + * Number of new tokens since the last checkpoint before the next checkpoint + * is triggered + * + * @generated from field: uint32 token_threshold = 1; + */ + tokenThreshold = 0; + /** + * The max token ratio of the chat conversation that can be consumed by + * checkpointing summaries + * + * @generated from field: float max_overhead_ratio = 3; + */ + maxOverheadRatio = 0; + /** + * How many checkpoints worth of steps to summarize over when creating a new + * checkpoint + * + * @generated from field: uint32 moving_window_size = 4; + */ + movingWindowSize = 0; + /** + * The max number of tokens that can be in a chat conversation before it will + * be truncated + * + * @generated from field: uint32 max_token_limit = 5; + */ + maxTokenLimit = 0; + /** + * The max output tokens of the checkpoint model + * + * @generated from field: uint32 max_output_tokens = 11; + */ + maxOutputTokens = 0; + /** + * The model used to produce the checkpoint summaries + * + * @generated from field: exa.codeium_common_pb.Model checkpoint_model = 7; + */ + checkpointModel = Model.UNSPECIFIED; + /** + * Whether checkpoint steps are added to the trajectory. Does not affect + * whether trajectories are truncated due to exceeding the max_token_limit. + * + * @generated from field: optional bool enabled = 6; + */ + enabled; + /** + * Whether checkpointing should happen fully async or block the invocation + * until complete. + * + * @generated from field: optional bool full_async = 13; + */ + fullAsync; + /** + * Retry configuration for checkpoint model API calls + * + * @generated from field: exa.cortex_pb.ModelAPIRetryConfig retry_config = 14; + */ + retryConfig; + /** + * If true, a deterministic, non-model based summary will be used as a + * fallback summary if all model requests have failed. + * + * @generated from field: optional bool enable_fallback = 15; + */ + enableFallback; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CheckpointConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'token_threshold', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'max_overhead_ratio', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 4, + name: 'moving_window_size', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'max_token_limit', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 11, + name: 'max_output_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'checkpoint_model', + kind: 'enum', + T: proto3.getEnumType(Model), + }, + { no: 6, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { no: 13, name: 'full_async', kind: 'scalar', T: 8, opt: true }, + { no: 14, name: 'retry_config', kind: 'message', T: ModelAPIRetryConfig }, + { no: 15, name: 'enable_fallback', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _CheckpointConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CheckpointConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CheckpointConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CheckpointConfig, a, b); + } +}; +var CortexStepMquery = class _CortexStepMquery extends Message { + /** + * TODO(matt): Technically MQuery does not have to ingest the 'plan' input, + * but instead could take in any query on any directories. + * + * @generated from field: exa.cortex_pb.PlanInput input = 1; + */ + input; + /** + * @generated from field: repeated exa.context_module_pb.CciWithSubrangeWithRetrievalMetadata ccis = 2; + */ + ccis = []; + /** + * Progress stats. + * + * @generated from field: uint32 num_tokens_processed = 3; + */ + numTokensProcessed = 0; + /** + * @generated from field: uint32 num_items_scored = 4; + */ + numItemsScored = 0; + /** + * @generated from field: exa.cortex_pb.SemanticCodebaseSearchType search_type = 5; + */ + searchType = SemanticCodebaseSearchType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepMquery'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'input', kind: 'message', T: PlanInput }, + { + no: 2, + name: 'ccis', + kind: 'message', + T: CciWithSubrangeWithRetrievalMetadata, + repeated: true, + }, + { + no: 3, + name: 'num_tokens_processed', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'num_items_scored', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'search_type', + kind: 'enum', + T: proto3.getEnumType(SemanticCodebaseSearchType), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepMquery().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepMquery().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepMquery().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepMquery, a, b); + } +}; +var ReplacementChunkInfo = class _ReplacementChunkInfo extends Message { + /** + * @generated from field: exa.cortex_pb.ReplacementChunk original_chunk = 1; + */ + originalChunk; + /** + * Empty if exact match is found. + * + * @generated from field: string fuzzy_match = 2; + */ + fuzzyMatch = ''; + /** + * @generated from field: int32 edit_distance = 3; + */ + editDistance = 0; + /** + * @generated from field: float rel_edit_distance = 4; + */ + relEditDistance = 0; + /** + * Uses the fuzzy target. + * + * @generated from field: uint32 num_matches = 5; + */ + numMatches = 0; + /** + * True if the original target was not found in the file. + * + * @generated from field: bool is_non_exact = 7; + */ + isNonExact = false; + /** + * Only populated for non-exact. + * + * @generated from field: bool boundary_lines_match = 8; + */ + boundaryLinesMatch = false; + /** + * @generated from field: bool error = 6; + */ + error = false; + /** + * Only populated if error is true. + * + * @generated from field: string error_str = 9; + */ + errorStr = ''; + /** + * If we will attempt to fix this error with fast apply. + * + * @generated from field: bool fast_apply_fixable = 10; + */ + fastApplyFixable = false; + /** + * If true, uses a global match instead of a local match. + * + * @generated from field: bool use_global_match = 11; + */ + useGlobalMatch = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ReplacementChunkInfo'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'original_chunk', kind: 'message', T: ReplacementChunk }, + { + no: 2, + name: 'fuzzy_match', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'edit_distance', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'rel_edit_distance', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 5, + name: 'num_matches', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'is_non_exact', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 8, + name: 'boundary_lines_match', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'error', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 9, + name: 'error_str', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'fast_apply_fixable', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'use_global_match', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _ReplacementChunkInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ReplacementChunkInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ReplacementChunkInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ReplacementChunkInfo, a, b); + } +}; +var FastApplyFallbackInfo = class _FastApplyFallbackInfo extends Message { + /** + * @generated from field: bool fallback_attempted = 1; + */ + fallbackAttempted = false; + /** + * @generated from field: string fallback_error = 2; + */ + fallbackError = ''; + /** + * @generated from field: exa.cortex_pb.ActionResult fast_apply_result = 3; + */ + fastApplyResult; + /** + * @generated from field: exa.cortex_pb.CodeHeuristicFailure heuristic_failure = 4; + */ + heuristicFailure = CodeHeuristicFailure.UNSPECIFIED; + /** + * @generated from field: string fast_apply_prompt = 5; + */ + fastApplyPrompt = ''; + /** + * Number of lines of change that fast apply made outside of the allowed edit + * radius that were masked out. + * + * @generated from field: uint32 num_fast_apply_edits_masked = 6; + */ + numFastApplyEditsMasked = 0; + /** + * True if applying the best match of the fallback targets results in no + * additional diff compared to the base. + * + * @generated from field: bool fallback_match_had_no_diff = 7; + */ + fallbackMatchHadNoDiff = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.FastApplyFallbackInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'fallback_attempted', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'fallback_error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'fast_apply_result', kind: 'message', T: ActionResult }, + { + no: 4, + name: 'heuristic_failure', + kind: 'enum', + T: proto3.getEnumType(CodeHeuristicFailure), + }, + { + no: 5, + name: 'fast_apply_prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'num_fast_apply_edits_masked', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'fallback_match_had_no_diff', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _FastApplyFallbackInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _FastApplyFallbackInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _FastApplyFallbackInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_FastApplyFallbackInfo, a, b); + } +}; +var CortexStepCodeAction = class _CortexStepCodeAction extends Message { + /** + * @generated from field: exa.cortex_pb.ActionSpec action_spec = 1; + */ + actionSpec; + /** + * @generated from field: exa.cortex_pb.ActionResult action_result = 2; + */ + actionResult; + /** + * @generated from field: bool use_fast_apply = 4; + */ + useFastApply = false; + /** + * The following is only used for Cascade, and indicates that the user has + * reviewed and either accepted or rejected the code changes. + * + * @generated from field: exa.cortex_pb.AcknowledgementType acknowledgement_type = 5; + */ + acknowledgementType = AcknowledgementType.UNSPECIFIED; + /** + * Will be non-zero if the action was not applied due to failing a heuristic. + * + * @generated from field: exa.cortex_pb.CodeHeuristicFailure heuristic_failure = 7; + */ + heuristicFailure = CodeHeuristicFailure.UNSPECIFIED; + /** + * @generated from field: string code_instruction = 8; + */ + codeInstruction = ''; + /** + * @generated from field: string markdown_language = 9; + */ + markdownLanguage = ''; + /** + * New lint errors that were generated while applying the action. + * + * @generated from field: repeated exa.codeium_common_pb.CodeDiagnostic lint_errors = 11; + */ + lintErrors = []; + /** + * Lint errors that were created by a previous step in the same conversation + * but which still exist after this step + * + * @generated from field: repeated exa.codeium_common_pb.CodeDiagnostic persistent_lint_errors = 12; + */ + persistentLintErrors = []; + /** + * Information about each replacement chunk. + * + * @generated from field: repeated exa.cortex_pb.ReplacementChunkInfo replacement_infos = 13; + */ + replacementInfos = []; + /** + * IDs of lint errors that the model was previously notified about that this + * edit aims to fix. + * + * @generated from field: repeated string lint_error_ids_aiming_to_fix = 14; + */ + lintErrorIdsAimingToFix = []; + /** + * Populated if the fast apply fallback was used. + * + * @generated from field: exa.cortex_pb.FastApplyFallbackInfo fast_apply_fallback_info = 15; + */ + fastApplyFallbackInfo; + /** + * If file has any carriage returns. + * + * @generated from field: bool target_file_has_carriage_returns = 16; + */ + targetFileHasCarriageReturns = false; + /** + * If file has all carriage returns. + * + * @generated from field: bool target_file_has_all_carriage_returns = 17; + */ + targetFileHasAllCarriageReturns = false; + /** + * Diagnostics generated by a linting tool (e.g. pylint) after a code action + * step. Only generated and used during eval. + * + * @generated from field: repeated exa.cortex_pb.CortexStepCompileDiagnostic introduced_errors = 18 [deprecated = true]; + * @deprecated + */ + introducedErrors = []; + /** + * Rules that were triggered by this code action step. + * TODO(sean): This is currently pattern matched to the triggered memories in + * the view file tools, but probably should be a list of CortexMemory. + * + * @generated from field: string triggered_memories = 19; + */ + triggeredMemories = ''; + /** + * True if the code action is on an artifact file. + * + * @generated from field: bool is_artifact_file = 21; + */ + isArtifactFile = false; + /** + * The version of the artifact file that was created by this step. Only + * applicable if is_artifact_file is true. May be -1 if the artifact type + * does not support versioning. + * + * @generated from field: int32 artifact_version = 22; + */ + artifactVersion = 0; + /** + * Metadata about the artifact file that was updated by this step. Only + * applicable if is_artifact_file is true. + * + * @generated from field: exa.codeium_common_pb.ArtifactMetadata artifact_metadata = 23; + */ + artifactMetadata; + /** + * True if the code action is on a knowledge item. + * + * @generated from field: bool is_knowledge_file = 24; + */ + isKnowledgeFile = false; + /** + * @generated from field: exa.cortex_pb.FilePermissionInteractionSpec file_permission_request = 25; + */ + filePermissionRequest; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCodeAction'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'action_spec', kind: 'message', T: ActionSpec }, + { no: 2, name: 'action_result', kind: 'message', T: ActionResult }, + { + no: 4, + name: 'use_fast_apply', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'acknowledgement_type', + kind: 'enum', + T: proto3.getEnumType(AcknowledgementType), + }, + { + no: 7, + name: 'heuristic_failure', + kind: 'enum', + T: proto3.getEnumType(CodeHeuristicFailure), + }, + { + no: 8, + name: 'code_instruction', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'markdown_language', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 11, + name: 'lint_errors', + kind: 'message', + T: CodeDiagnostic, + repeated: true, + }, + { + no: 12, + name: 'persistent_lint_errors', + kind: 'message', + T: CodeDiagnostic, + repeated: true, + }, + { + no: 13, + name: 'replacement_infos', + kind: 'message', + T: ReplacementChunkInfo, + repeated: true, + }, + { + no: 14, + name: 'lint_error_ids_aiming_to_fix', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 15, + name: 'fast_apply_fallback_info', + kind: 'message', + T: FastApplyFallbackInfo, + }, + { + no: 16, + name: 'target_file_has_carriage_returns', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 17, + name: 'target_file_has_all_carriage_returns', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 18, + name: 'introduced_errors', + kind: 'message', + T: CortexStepCompileDiagnostic, + repeated: true, + }, + { + no: 19, + name: 'triggered_memories', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 21, + name: 'is_artifact_file', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 22, + name: 'artifact_version', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 23, name: 'artifact_metadata', kind: 'message', T: ArtifactMetadata }, + { + no: 24, + name: 'is_knowledge_file', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 25, + name: 'file_permission_request', + kind: 'message', + T: FilePermissionInteractionSpec, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCodeAction().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCodeAction().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCodeAction().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCodeAction, a, b); + } +}; +var CortexStepFileChange = class _CortexStepFileChange extends Message { + /** + * The absolute path to the changed file. + * + * @generated from field: string absolute_path_uri = 1; + */ + absolutePathUri = ''; + /** + * The type of file change. + * + * @generated from field: exa.cortex_pb.FileChangeType file_change_type = 2; + */ + fileChangeType = FileChangeType.UNSPECIFIED; + /** + * The replacement chunks applied to the file. For file creation, this should + * have a single replacement chunk with an empty TargetContent and the entire + * file content as the ReplacementContent. For file deletion, this should be + * empty. + * + * @generated from field: repeated exa.cortex_pb.ReplacementChunk replacement_chunks = 3; + */ + replacementChunks = []; + /** + * A description of the changes made to the file, populated by the model. + * + * @generated from field: string instruction = 5; + */ + instruction = ''; + /** + * The diff applied to the file. + * + * @generated from field: exa.diff_action_pb.DiffBlock diff = 4; + */ + diff; + /** + * Information about each replacement chunk. + * + * @generated from field: repeated exa.cortex_pb.ReplacementChunkInfo replacement_infos = 6; + */ + replacementInfos = []; + /** + * Populated if the fast apply fallback was used. + * + * @generated from field: exa.cortex_pb.FastApplyFallbackInfo fast_apply_fallback_info = 7; + */ + fastApplyFallbackInfo; + /** + * If true, allow overwriting an existing file during file creation. + * + * @generated from field: bool overwrite = 8; + */ + overwrite = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepFileChange'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'file_change_type', + kind: 'enum', + T: proto3.getEnumType(FileChangeType), + }, + { + no: 3, + name: 'replacement_chunks', + kind: 'message', + T: ReplacementChunk, + repeated: true, + }, + { + no: 5, + name: 'instruction', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'diff', kind: 'message', T: DiffBlock }, + { + no: 6, + name: 'replacement_infos', + kind: 'message', + T: ReplacementChunkInfo, + repeated: true, + }, + { + no: 7, + name: 'fast_apply_fallback_info', + kind: 'message', + T: FastApplyFallbackInfo, + }, + { + no: 8, + name: 'overwrite', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepFileChange().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepFileChange().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepFileChange().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepFileChange, a, b); + } +}; +var CortexStepMove = class _CortexStepMove extends Message { + /** + * The absolute path to the source file or directory to move. + * + * @generated from field: string src_absolute_path_uri = 1; + */ + srcAbsolutePathUri = ''; + /** + * The absolute path to the destination location. + * + * @generated from field: string dst_absolute_path_uri = 2; + */ + dstAbsolutePathUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepMove'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'src_absolute_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'dst_absolute_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepMove().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepMove().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepMove().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepMove, a, b); + } +}; +var CortexStepEphemeralMessage = class _CortexStepEphemeralMessage extends Message { + /** + * The ephemeral message shown to the model. + * + * @generated from field: string content = 1; + */ + content = ''; + /** + * Optional media (ex. images) included with the message. + * + * @generated from field: repeated exa.codeium_common_pb.Media media = 2; + */ + media = []; + /** + * The heuristics that were triggered to generate this message. + * + * @generated from field: repeated string triggered_heuristics = 3; + */ + triggeredHeuristics = []; + /** + * Dummy field named attachments to allow old clients sending protojson to + * still get parsed correctly by the CCPA server. If the server receives + * a message with attachments, it will convert it to the media field. + * + * @generated from field: repeated exa.codeium_common_pb.Media attachments = 4; + */ + attachments = []; + /** + * The DOM tree of the current page. + * + * @generated from field: string dom_tree_uri = 5; + */ + domTreeUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepEphemeralMessage'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'media', kind: 'message', T: Media, repeated: true }, + { + no: 3, + name: 'triggered_heuristics', + kind: 'scalar', + T: 9, + repeated: true, + }, + { no: 4, name: 'attachments', kind: 'message', T: Media, repeated: true }, + { + no: 5, + name: 'dom_tree_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepEphemeralMessage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepEphemeralMessage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepEphemeralMessage().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepEphemeralMessage, a, b); + } +}; +var CortexStepConversationHistory = class _CortexStepConversationHistory extends Message { + /** + * The formatted conversation history content. + * + * @generated from field: string content = 1; + */ + content = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepConversationHistory'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepConversationHistory().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepConversationHistory().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepConversationHistory().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepConversationHistory, a, b); + } +}; +var CortexStepKnowledgeArtifacts = class _CortexStepKnowledgeArtifacts extends Message { + /** + * The formatted knowledge artifacts content. + * + * @generated from field: string content = 1; + */ + content = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepKnowledgeArtifacts'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepKnowledgeArtifacts().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepKnowledgeArtifacts().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepKnowledgeArtifacts().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepKnowledgeArtifacts, a, b); + } +}; +var CortexStepProposeCode = class _CortexStepProposeCode extends Message { + /** + * @generated from field: exa.cortex_pb.ActionSpec action_spec = 1; + */ + actionSpec; + /** + * @generated from field: exa.cortex_pb.ActionResult action_result = 2; + */ + actionResult; + /** + * Shown to the user as a preview of the proposed changes. + * + * @generated from field: string code_instruction = 3; + */ + codeInstruction = ''; + /** + * @generated from field: string markdown_language = 4; + */ + markdownLanguage = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepProposeCode'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'action_spec', kind: 'message', T: ActionSpec }, + { no: 2, name: 'action_result', kind: 'message', T: ActionResult }, + { + no: 3, + name: 'code_instruction', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'markdown_language', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepProposeCode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepProposeCode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepProposeCode().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepProposeCode, a, b); + } +}; +var CortexStepGitCommit = class _CortexStepGitCommit extends Message { + /** + * TODO(matt): Reconsider if this belongs here. + * + * @generated from field: exa.cortex_pb.PlanInput input = 1; + */ + input; + /** + * @generated from field: string commit_message = 2; + */ + commitMessage = ''; + /** + * @generated from field: string commit_hash = 3; + */ + commitHash = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepGitCommit'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'input', kind: 'message', T: PlanInput }, + { + no: 2, + name: 'commit_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'commit_hash', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepGitCommit().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepGitCommit().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepGitCommit().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepGitCommit, a, b); + } +}; +var GrepSearchResult = class _GrepSearchResult extends Message { + /** + * @generated from field: string relative_path = 1; + */ + relativePath = ''; + /** + * 0-indexed + * + * @generated from field: uint32 line_number = 2; + */ + lineNumber = 0; + /** + * @generated from field: string content = 3; + */ + content = ''; + /** + * @generated from field: string absolute_path = 4; + */ + absolutePath = ''; + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem cci = 5; + */ + cci; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.GrepSearchResult'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'relative_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'line_number', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'absolute_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'cci', kind: 'message', T: CodeContextItem }, + ]); + static fromBinary(bytes, options) { + return new _GrepSearchResult().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GrepSearchResult().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GrepSearchResult().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GrepSearchResult, a, b); + } +}; +var DiffBasedCommandEvalConfig = class _DiffBasedCommandEvalConfig extends Message { + /** + * @generated from field: uint32 num_samples_per_commit = 1; + */ + numSamplesPerCommit = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.DiffBasedCommandEvalConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'num_samples_per_commit', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _DiffBasedCommandEvalConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _DiffBasedCommandEvalConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _DiffBasedCommandEvalConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_DiffBasedCommandEvalConfig, a, b); + } +}; +var CortexStepGrepSearch = class _CortexStepGrepSearch extends Message { + /** + * Inputs + * + * Uri to run the grep command from. + * + * @generated from field: string search_path_uri = 11; + */ + searchPathUri = ''; + /** + * @generated from field: string query = 1; + */ + query = ''; + /** + * @generated from field: bool match_per_line = 8; + */ + matchPerLine = false; + /** + * @generated from field: repeated string includes = 2; + */ + includes = []; + /** + * New field for case-insensitive search + * + * @generated from field: bool case_insensitive = 9; + */ + caseInsensitive = false; + /** + * Whether to allow ripgrep to match files in .gitignore + * + * @generated from field: bool allow_access_gitignore = 13; + */ + allowAccessGitignore = false; + /** + * If true, then treat the query as a regexp + * + * @generated from field: bool is_regex = 14; + */ + isRegex = false; + /** + * Outputs. + * + * @generated from field: repeated exa.cortex_pb.GrepSearchResult results = 4; + */ + results = []; + /** + * Will not be modified when truncated. + * + * @generated from field: uint32 total_results = 7; + */ + totalResults = 0; + /** + * Primarily for debug, will not be truncated. + * + * @generated from field: string raw_output = 3; + */ + rawOutput = ''; + /** + * The command that was run. + * + * @generated from field: string command_run = 10; + */ + commandRun = ''; + /** + * Indicates no files were searched + * + * @generated from field: bool no_files_searched = 12; + */ + noFilesSearched = false; + /** + * Indicates whether the grep command timed out + * + * @generated from field: bool timed_out = 15; + */ + timedOut = false; + /** + * @generated from field: exa.cortex_pb.FilePermissionInteractionSpec file_permission_request = 16; + */ + filePermissionRequest; + /** + * Error when running the grep command. + * + * @generated from field: string grep_error = 5 [deprecated = true]; + * @deprecated + */ + grepError = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepGrepSearch'; + static fields = proto3.util.newFieldList(() => [ + { + no: 11, + name: 'search_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'match_per_line', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 2, name: 'includes', kind: 'scalar', T: 9, repeated: true }, + { + no: 9, + name: 'case_insensitive', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 13, + name: 'allow_access_gitignore', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'is_regex', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'results', + kind: 'message', + T: GrepSearchResult, + repeated: true, + }, + { + no: 7, + name: 'total_results', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'raw_output', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'command_run', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'no_files_searched', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 15, + name: 'timed_out', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 16, + name: 'file_permission_request', + kind: 'message', + T: FilePermissionInteractionSpec, + }, + { + no: 5, + name: 'grep_error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepGrepSearch().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepGrepSearch().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepGrepSearch().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepGrepSearch, a, b); + } +}; +var CortexStepFind = class _CortexStepFind extends Message { + /** + * Inputs. + * + * directory to run the fd command from. + * + * @generated from field: string search_directory = 10; + */ + searchDirectory = ''; + /** + * the search pattern (supports regex) + * + * @generated from field: string pattern = 1; + */ + pattern = ''; + /** + * glob patterns to exclude + * + * @generated from field: repeated string excludes = 3; + */ + excludes = []; + /** + * type (file or directory) + * + * @generated from field: exa.cortex_pb.FindResultType type = 4; + */ + type = FindResultType.UNSPECIFIED; + /** + * maximum depth to search (<= 0 for unlimited) + * + * @generated from field: int32 max_depth = 5; + */ + maxDepth = 0; + /** + * file extensions to include (e.g., "go", "py") + * + * @generated from field: repeated string extensions = 12; + */ + extensions = []; + /** + * whether to search the full absolute path, default: filename only + * + * @generated from field: bool full_path = 13; + */ + fullPath = false; + /** + * Outputs. + * + * Potentially truncated version of raw_output shown to model. + * + * @generated from field: string truncated_output = 14; + */ + truncatedOutput = ''; + /** + * Number of truncated results. + * + * @generated from field: uint32 truncated_total_results = 15; + */ + truncatedTotalResults = 0; + /** + * Number of untruncated results. + * + * @generated from field: uint32 total_results = 7; + */ + totalResults = 0; + /** + * Primarily for debug, will not be truncated. + * + * @generated from field: string raw_output = 11; + */ + rawOutput = ''; + /** + * The command that was run. + * + * @generated from field: string command_run = 9; + */ + commandRun = ''; + /** + * Deprecated fields. + * + * @generated from field: repeated string includes = 2 [deprecated = true]; + * @deprecated + */ + includes = []; + /** + * Error when running the find command. + * + * @generated from field: string find_error = 8 [deprecated = true]; + * @deprecated + */ + findError = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepFind'; + static fields = proto3.util.newFieldList(() => [ + { + no: 10, + name: 'search_directory', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'pattern', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'excludes', kind: 'scalar', T: 9, repeated: true }, + { + no: 4, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(FindResultType), + }, + { + no: 5, + name: 'max_depth', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 12, name: 'extensions', kind: 'scalar', T: 9, repeated: true }, + { + no: 13, + name: 'full_path', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 14, + name: 'truncated_output', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 15, + name: 'truncated_total_results', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'total_results', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 11, + name: 'raw_output', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'command_run', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'includes', kind: 'scalar', T: 9, repeated: true }, + { + no: 8, + name: 'find_error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepFind().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepFind().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepFind().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepFind, a, b); + } +}; +var CortexStepViewFile = class _CortexStepViewFile extends Message { + /** + * @generated from field: string absolute_path_uri = 1; + */ + absolutePathUri = ''; + /** + * 0-indexed, inclusive + * + * @generated from field: uint32 start_line = 2; + */ + startLine = 0; + /** + * 0-indexed, inclusive + * + * @generated from field: uint32 end_line = 3; + */ + endLine = 0; + /** + * @generated from field: string content = 4; + */ + content = ''; + /** + * Full raw content of the file. + * + * @generated from field: string raw_content = 9; + */ + rawContent = ''; + /** + * Deprecated use media_data + * + * @generated from field: exa.codeium_common_pb.ImageData binary_data = 14 [deprecated = true]; + * @deprecated + */ + binaryData; + /** + * Populated only when viewing a binary file, contains the entire file + * content. + * + * @generated from field: exa.codeium_common_pb.Media media_data = 15; + */ + mediaData; + /** + * Any rules that were triggered by this file view. + * + * @generated from field: string triggered_memories = 10; + */ + triggeredMemories = ''; + /** + * The total number of lines in the file. + * + * @generated from field: uint32 num_lines = 11; + */ + numLines = 0; + /** + * The total number of bytes in the file. + * + * @generated from field: uint32 num_bytes = 12; + */ + numBytes = 0; + /** + * If true, this view file step was injected as a reminder. + * + * @generated from field: bool is_injected_reminder = 13; + */ + isInjectedReminder = false; + /** + * @generated from field: exa.cortex_pb.FilePermissionInteractionSpec file_permission_request = 16; + */ + filePermissionRequest; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepViewFile'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'start_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'end_line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'raw_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 14, name: 'binary_data', kind: 'message', T: ImageData }, + { no: 15, name: 'media_data', kind: 'message', T: Media }, + { + no: 10, + name: 'triggered_memories', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 11, + name: 'num_lines', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 12, + name: 'num_bytes', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 13, + name: 'is_injected_reminder', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 16, + name: 'file_permission_request', + kind: 'message', + T: FilePermissionInteractionSpec, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepViewFile().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepViewFile().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepViewFile().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepViewFile, a, b); + } +}; +var ListDirectoryResult = class _ListDirectoryResult extends Message { + /** + * @generated from field: string name = 1; + */ + name = ''; + /** + * @generated from field: bool is_dir = 2; + */ + isDir = false; + /** + * Recursive count, only set if is_dir is true. May be nil for a directory if + * the workspace manager has not fully scanned the directory + * + * @generated from field: optional uint32 num_children = 3; + */ + numChildren; + /** + * Only set if is_dir is false + * + * @generated from field: uint64 size_bytes = 4; + */ + sizeBytes = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ListDirectoryResult'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'is_dir', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 3, name: 'num_children', kind: 'scalar', T: 13, opt: true }, + { + no: 4, + name: 'size_bytes', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ListDirectoryResult().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ListDirectoryResult().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ListDirectoryResult().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ListDirectoryResult, a, b); + } +}; +var CortexStepListDirectory = class _CortexStepListDirectory extends Message { + /** + * @generated from field: string directory_path_uri = 1; + */ + directoryPathUri = ''; + /** + * Children are relative to the directory. + * + * @generated from field: repeated string children = 2 [deprecated = true]; + * @deprecated + */ + children = []; + /** + * @generated from field: repeated exa.cortex_pb.ListDirectoryResult results = 3; + */ + results = []; + /** + * @generated from field: bool dir_not_found = 4 [deprecated = true]; + * @deprecated + */ + dirNotFound = false; + /** + * @generated from field: exa.cortex_pb.FilePermissionInteractionSpec file_permission_request = 5; + */ + filePermissionRequest; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepListDirectory'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'directory_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'children', kind: 'scalar', T: 9, repeated: true }, + { + no: 3, + name: 'results', + kind: 'message', + T: ListDirectoryResult, + repeated: true, + }, + { + no: 4, + name: 'dir_not_found', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'file_permission_request', + kind: 'message', + T: FilePermissionInteractionSpec, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepListDirectory().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepListDirectory().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepListDirectory().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepListDirectory, a, b); + } +}; +var CortexStepDeleteDirectory = class _CortexStepDeleteDirectory extends Message { + /** + * @generated from field: string directory_path_uri = 1; + */ + directoryPathUri = ''; + /** + * If true, recursively delete all files and subdirectories + * If false, only delete empty directories, + * and error if the directory is not empty + * + * @generated from field: bool force = 2; + */ + force = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepDeleteDirectory'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'directory_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'force', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepDeleteDirectory().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepDeleteDirectory().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepDeleteDirectory().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepDeleteDirectory, a, b); + } +}; +var CortexStepCompileDiagnostic = class _CortexStepCompileDiagnostic extends Message { + /** + * @generated from field: string message = 1; + */ + message = ''; + /** + * @generated from field: string path = 2; + */ + path = ''; + /** + * @generated from field: uint32 line = 3; + */ + line = 0; + /** + * @generated from field: uint32 column = 4; + */ + column = 0; + /** + * The symbol indicates the type of error or warning encountered + * by the linter e.g. syntax-error, unused, import, type + * + * @generated from field: string symbol = 5; + */ + symbol = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCompileDiagnostic'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'column', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'symbol', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCompileDiagnostic().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCompileDiagnostic().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCompileDiagnostic().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCompileDiagnostic, a, b); + } +}; +var CortexStepCompile = class _CortexStepCompile extends Message { + /** + * @generated from field: exa.cortex_pb.CortexStepCompileTool tool = 1; + */ + tool = CortexStepCompileTool.UNSPECIFIED; + /** + * The input to compile. This can be a file/directory path or something else + * specific to the compile tool (eg. Bazel label). The handler will internally + * infer a build target based on the input. + * + * @generated from field: string input_spec = 2; + */ + inputSpec = ''; + /** + * The compilation tools can take various options to customize their behavior. + * However, running compile without options should work on most codebases. + * + * @generated from field: map options = 3; + */ + options = {}; + /** + * The name of the inferred build target. + * + * @generated from field: string target = 4; + */ + target = ''; + /** + * The path to the actual build artifact, if any. + * + * @generated from field: string artifact_path = 5; + */ + artifactPath = ''; + /** + * Whether the build target is an executable. + * + * @generated from field: bool artifact_is_executable = 6; + */ + artifactIsExecutable = false; + /** + * @generated from field: repeated exa.cortex_pb.CortexStepCompileDiagnostic errors = 7; + */ + errors = []; + /** + * @generated from field: repeated exa.cortex_pb.CortexStepCompileDiagnostic warnings = 8; + */ + warnings = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCompile'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'tool', + kind: 'enum', + T: proto3.getEnumType(CortexStepCompileTool), + }, + { + no: 2, + name: 'input_spec', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'options', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { - no: 7, - name: 'edited_file_map', - kind: 'map', - K: 9, - V: { kind: 'message', T: es }, - }, - { - no: 3, - name: 'included_step_indices', - kind: 'scalar', - T: 13, - repeated: !0, - }, - { no: 8, name: 'memory_summary', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Od = class e extends r { - tokenThreshold = 0; - maxOverheadRatio = 0; - movingWindowSize = 0; - maxTokenLimit = 0; - maxOutputTokens = 0; - checkpointModel = f.UNSPECIFIED; - enabled; - fullAsync; - retryConfig; - enableFallback; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CheckpointConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'token_threshold', kind: 'scalar', T: 13 }, - { no: 3, name: 'max_overhead_ratio', kind: 'scalar', T: 2 }, - { no: 4, name: 'moving_window_size', kind: 'scalar', T: 13 }, - { no: 5, name: 'max_token_limit', kind: 'scalar', T: 13 }, - { no: 11, name: 'max_output_tokens', kind: 'scalar', T: 13 }, - { no: 7, name: 'checkpoint_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 6, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 13, name: 'full_async', kind: 'scalar', T: 8, opt: !0 }, - { no: 14, name: 'retry_config', kind: 'message', T: ws }, - { no: 15, name: 'enable_fallback', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ys = class e extends r { - input; - ccis = []; - numTokensProcessed = 0; - numItemsScored = 0; - searchType = fa.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepMquery'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'input', kind: 'message', T: An }, - { no: 2, name: 'ccis', kind: 'message', T: Fn, repeated: !0 }, - { no: 3, name: 'num_tokens_processed', kind: 'scalar', T: 13 }, - { no: 4, name: 'num_items_scored', kind: 'scalar', T: 13 }, - { no: 5, name: 'search_type', kind: 'enum', T: a.getEnumType(fa) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ws = class e extends r { - originalChunk; - fuzzyMatch = ''; - editDistance = 0; - relEditDistance = 0; - numMatches = 0; - isNonExact = !1; - boundaryLinesMatch = !1; - error = !1; - errorStr = ''; - fastApplyFixable = !1; - useGlobalMatch = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ReplacementChunkInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'original_chunk', kind: 'message', T: Ne }, - { no: 2, name: 'fuzzy_match', kind: 'scalar', T: 9 }, - { no: 3, name: 'edit_distance', kind: 'scalar', T: 5 }, - { no: 4, name: 'rel_edit_distance', kind: 'scalar', T: 2 }, - { no: 5, name: 'num_matches', kind: 'scalar', T: 13 }, - { no: 7, name: 'is_non_exact', kind: 'scalar', T: 8 }, - { no: 8, name: 'boundary_lines_match', kind: 'scalar', T: 8 }, - { no: 6, name: 'error', kind: 'scalar', T: 8 }, - { no: 9, name: 'error_str', kind: 'scalar', T: 9 }, - { no: 10, name: 'fast_apply_fixable', kind: 'scalar', T: 8 }, - { no: 11, name: 'use_global_match', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vs = class e extends r { - fallbackAttempted = !1; - fallbackError = ''; - fastApplyResult; - heuristicFailure = qn.UNSPECIFIED; - fastApplyPrompt = ''; - numFastApplyEditsMasked = 0; - fallbackMatchHadNoDiff = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.FastApplyFallbackInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'fallback_attempted', kind: 'scalar', T: 8 }, - { no: 2, name: 'fallback_error', kind: 'scalar', T: 9 }, - { no: 3, name: 'fast_apply_result', kind: 'message', T: Se }, - { no: 4, name: 'heuristic_failure', kind: 'enum', T: a.getEnumType(qn) }, - { no: 5, name: 'fast_apply_prompt', kind: 'scalar', T: 9 }, - { no: 6, name: 'num_fast_apply_edits_masked', kind: 'scalar', T: 13 }, - { no: 7, name: 'fallback_match_had_no_diff', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xs = class e extends r { - actionSpec; - actionResult; - useFastApply = !1; - acknowledgementType = b.UNSPECIFIED; - heuristicFailure = qn.UNSPECIFIED; - codeInstruction = ''; - markdownLanguage = ''; - lintErrors = []; - persistentLintErrors = []; - replacementInfos = []; - lintErrorIdsAimingToFix = []; - fastApplyFallbackInfo; - targetFileHasCarriageReturns = !1; - targetFileHasAllCarriageReturns = !1; - introducedErrors = []; - triggeredMemories = ''; - isArtifactFile = !1; - artifactVersion = 0; - artifactMetadata; - isKnowledgeFile = !1; - filePermissionRequest; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCodeAction'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'action_spec', kind: 'message', T: ba }, - { no: 2, name: 'action_result', kind: 'message', T: Se }, - { no: 4, name: 'use_fast_apply', kind: 'scalar', T: 8 }, - { - no: 5, - name: 'acknowledgement_type', - kind: 'enum', - T: a.getEnumType(b), - }, - { no: 7, name: 'heuristic_failure', kind: 'enum', T: a.getEnumType(qn) }, - { no: 8, name: 'code_instruction', kind: 'scalar', T: 9 }, - { no: 9, name: 'markdown_language', kind: 'scalar', T: 9 }, - { no: 11, name: 'lint_errors', kind: 'message', T: ae, repeated: !0 }, - { - no: 12, - name: 'persistent_lint_errors', - kind: 'message', - T: ae, - repeated: !0, - }, - { - no: 13, - name: 'replacement_infos', - kind: 'message', - T: Ws, - repeated: !0, - }, - { - no: 14, - name: 'lint_error_ids_aiming_to_fix', + }, + { + no: 4, + name: 'target', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'artifact_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'artifact_is_executable', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'errors', + kind: 'message', + T: CortexStepCompileDiagnostic, + repeated: true, + }, + { + no: 8, + name: 'warnings', + kind: 'message', + T: CortexStepCompileDiagnostic, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCompile().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCompile().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCompile().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCompile, a, b); + } +}; +var CortexStepCompileApplet = class _CortexStepCompileApplet extends Message { + /** + * Error message from the build, if any. + * + * @generated from field: string error_message = 1; + */ + errorMessage = ''; + /** + * Build logs, populated when build fails. + * + * @generated from field: string logs = 3; + */ + logs = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCompileApplet'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'logs', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCompileApplet().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCompileApplet().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCompileApplet().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCompileApplet, a, b); + } +}; +var CortexStepInstallAppletDependencies = class _CortexStepInstallAppletDependencies extends Message { + /** + * Error message from the install, if any. + * + * @generated from field: string error_message = 1; + */ + errorMessage = ''; + /** + * Logs from the install. + * + * @generated from field: string logs = 2; + */ + logs = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepInstallAppletDependencies'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'logs', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepInstallAppletDependencies().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CortexStepInstallAppletDependencies().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CortexStepInstallAppletDependencies().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepInstallAppletDependencies, a, b); + } +}; +var CortexStepInstallAppletPackage = class _CortexStepInstallAppletPackage extends Message { + /** + * The package name to install. + * + * @generated from field: string package_name = 1 [deprecated = true]; + * @deprecated + */ + packageName = ''; + /** + * Error message from the install, if any. + * + * @generated from field: string error_message = 2; + */ + errorMessage = ''; + /** + * Logs from the install. + * + * @generated from field: string logs = 3; + */ + logs = ''; + /** + * Whether the packages are dev dependencies. + * + * @generated from field: bool is_dev_dependency = 4; + */ + isDevDependency = false; + /** + * The package names to install. + * + * @generated from field: repeated string package_names = 5; + */ + packageNames = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepInstallAppletPackage'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'package_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'logs', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'is_dev_dependency', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 5, name: 'package_names', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepInstallAppletPackage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepInstallAppletPackage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepInstallAppletPackage().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepInstallAppletPackage, a, b); + } +}; +var CortexStepSetUpFirebase = class _CortexStepSetUpFirebase extends Message { + /** + * Error message from the setup, if any. + * + * @generated from field: string error_message = 1; + */ + errorMessage = ''; + /** + * Error code from the setup, if any. These codes are canonical error codes + * (see: go/canonical-codes) that map to google3/google/rpc/code.proto + * + * @generated from field: exa.cortex_pb.SetUpFirebaseErrorCode rpc_error_code = 6; + */ + rpcErrorCode = SetUpFirebaseErrorCode.ERROR_CODE_OK; + /** + * Optional Firebase project ID to use for the app, instead of the default + * Cloud project used in AI Studio. + * + * @generated from field: optional string firebase_project_id = 7; + */ + firebaseProjectId; + /** + * The requested action from the agent or user for what the tool should do + * + * @generated from field: exa.cortex_pb.SetUpFirebaseRequest request = 2; + */ + request = SetUpFirebaseRequest.UNSPECIFIED; + /** + * The result of the tool setup, indicating how the frontend should proceed. + * + * @generated from field: exa.cortex_pb.SetUpFirebaseResult result = 3; + */ + result = SetUpFirebaseResult.UNSPECIFIED; + /** + * The app config that was provisioned by the tool. + * + * @generated from field: exa.cortex_pb.SetUpFirebaseAppConfig app_config = 4; + */ + appConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepSetUpFirebase'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'rpc_error_code', + kind: 'enum', + T: proto3.getEnumType(SetUpFirebaseErrorCode), + }, + { no: 7, name: 'firebase_project_id', kind: 'scalar', T: 9, opt: true }, + { + no: 2, + name: 'request', + kind: 'enum', + T: proto3.getEnumType(SetUpFirebaseRequest), + }, + { + no: 3, + name: 'result', + kind: 'enum', + T: proto3.getEnumType(SetUpFirebaseResult), + }, + { no: 4, name: 'app_config', kind: 'message', T: SetUpFirebaseAppConfig }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepSetUpFirebase().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepSetUpFirebase().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepSetUpFirebase().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepSetUpFirebase, a, b); + } +}; +var SetUpFirebaseAppConfig = class _SetUpFirebaseAppConfig extends Message { + /** + * The Firebase project id for the app. + * + * @generated from field: string firebase_project_id = 1; + */ + firebaseProjectId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SetUpFirebaseAppConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'firebase_project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _SetUpFirebaseAppConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SetUpFirebaseAppConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SetUpFirebaseAppConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SetUpFirebaseAppConfig, a, b); + } +}; +var CortexStepRestartDevServer = class _CortexStepRestartDevServer extends Message { + /** + * Error message from the restart, if any. + * + * @generated from field: string error_message = 1; + */ + errorMessage = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepRestartDevServer'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepRestartDevServer().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepRestartDevServer().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepRestartDevServer().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepRestartDevServer, a, b); + } +}; +var CortexStepDeployFirebase = class _CortexStepDeployFirebase extends Message { + /** + * Error message from the deploy, if any. + * + * @generated from field: string error_message = 1; + */ + errorMessage = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepDeployFirebase'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepDeployFirebase().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepDeployFirebase().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepDeployFirebase().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepDeployFirebase, a, b); + } +}; +var CortexStepShellExec = class _CortexStepShellExec extends Message { + /** + * The command to execute. + * + * @generated from field: string command = 1; + */ + command = ''; + /** + * The exit code of the command. + * + * @generated from field: int32 exit_code = 2; + */ + exitCode = 0; + /** + * The output of the command (stdout and stderr combined). + * + * @generated from field: string output = 3; + */ + output = ''; + /** + * Error message from the execution, if any. + * + * @generated from field: string error_message = 4; + */ + errorMessage = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepShellExec'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'command', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'exit_code', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'output', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepShellExec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepShellExec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepShellExec().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepShellExec, a, b); + } +}; +var CortexStepLintApplet = class _CortexStepLintApplet extends Message { + /** + * The exit code of the linter. + * + * @generated from field: int32 exit_code = 1; + */ + exitCode = 0; + /** + * The output of the linter. + * + * @generated from field: string output = 2; + */ + output = ''; + /** + * Error message from the linter, if any. + * + * @generated from field: string error_message = 3; + */ + errorMessage = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepLintApplet'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'exit_code', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 2, + name: 'output', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepLintApplet().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepLintApplet().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepLintApplet().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepLintApplet, a, b); + } +}; +var CortexStepDefineNewEnvVariable = class _CortexStepDefineNewEnvVariable extends Message { + /** + * The environment variable name detected (e.g., "NEXT_PUBLIC_API_KEY") + * + * @generated from field: string variable_name = 1; + */ + variableName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepDefineNewEnvVariable'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'variable_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepDefineNewEnvVariable().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepDefineNewEnvVariable().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepDefineNewEnvVariable().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepDefineNewEnvVariable, a, b); + } +}; +var CortexStepWriteBlob = class _CortexStepWriteBlob extends Message { + /** + * Input: The blob_id. + * + * @generated from field: string blob_id = 1; + */ + blobId = ''; + /** + * Input: The target path in the applet filesystem. + * + * @generated from field: string target_path = 2; + */ + targetPath = ''; + /** + * Output: Error message if the operation failed. + * + * @generated from field: string error_message = 3; + */ + errorMessage = ''; + /** + * Output: The number of bytes written. + * + * @generated from field: int64 bytes_written = 4; + */ + bytesWritten = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepWriteBlob'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'blob_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'target_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'error_message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'bytes_written', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepWriteBlob().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepWriteBlob().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepWriteBlob().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepWriteBlob, a, b); + } +}; +var CortexTrajectoryToPromptConfig = class _CortexTrajectoryToPromptConfig extends Message { + /** + * The fraction of the system prompt to allocate to the trajectory. + * + * @generated from field: float prompt_fraction = 1; + */ + promptFraction = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexTrajectoryToPromptConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'prompt_fraction', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexTrajectoryToPromptConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexTrajectoryToPromptConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexTrajectoryToPromptConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexTrajectoryToPromptConfig, a, b); + } +}; +var CortexStepUserInput = class _CortexStepUserInput extends Message { + /** + * @generated from field: repeated exa.codeium_common_pb.TextOrScopeItem items = 3; + */ + items = []; + /** + * items converted to readable string. + * + * @generated from field: string user_response = 2; + */ + userResponse = ''; + /** + * Only contains active doc, local node state, and open docs. Content of the + * docs will be cleared to save memory. + * + * @generated from field: exa.context_module_pb.ContextModuleResult active_user_state = 4; + */ + activeUserState; + /** + * Artifact comments are sent along with the user input. + * + * @generated from field: repeated exa.codeium_common_pb.ArtifactComment artifact_comments = 7; + */ + artifactComments = []; + /** + * File diff comments are sent along with the user input. + * + * @generated from field: repeated exa.codeium_common_pb.FileDiffComment file_diff_comments = 10; + */ + fileDiffComments = []; + /** + * File comments are sent along with the user input. + * + * @generated from field: repeated exa.codeium_common_pb.FileComment file_comments = 11; + */ + fileComments = []; + /** + * Whether the message was sent mid-stream as a queued message. + * + * @generated from field: bool is_queued_message = 6; + */ + isQueuedMessage = false; + /** + * What type of chat client panel this message is from (IDE panel, browser + * panel, etc.) + * + * @generated from field: exa.chat_client_server_pb.ChatClientRequestStreamClientType client_type = 8; + */ + clientType = ChatClientRequestStreamClientType.UNSPECIFIED; + /** + * NOTE: This is not the fully resolved config, just the subset of the config + * specified by the user directly. + * + * @generated from field: exa.cortex_pb.CascadeConfig user_config = 12; + */ + userConfig; + /** + * Same as above, but from the last user input. Nil if there is no last user + * input. + * + * @generated from field: exa.cortex_pb.CascadeConfig last_user_config = 13; + */ + lastUserConfig; + /** + * DEPRECATED + * + * @generated from field: string query = 1 [deprecated = true]; + * @deprecated + */ + query = ''; + /** + * Deprecated: Use media instead + * + * @generated from field: repeated exa.codeium_common_pb.ImageData images = 5 [deprecated = true]; + * @deprecated + */ + images = []; + /** + * Arbitrary file media as part of the user input. + * Supported types include text files, images, and PDFs. + * + * @generated from field: repeated exa.codeium_common_pb.Media media = 9; + */ + media = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepUserInput'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'items', + kind: 'message', + T: TextOrScopeItem, + repeated: true, + }, + { + no: 2, + name: 'user_response', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'active_user_state', + kind: 'message', + T: ContextModuleResult, + }, + { + no: 7, + name: 'artifact_comments', + kind: 'message', + T: ArtifactComment, + repeated: true, + }, + { + no: 10, + name: 'file_diff_comments', + kind: 'message', + T: FileDiffComment, + repeated: true, + }, + { + no: 11, + name: 'file_comments', + kind: 'message', + T: FileComment, + repeated: true, + }, + { + no: 6, + name: 'is_queued_message', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 8, + name: 'client_type', + kind: 'enum', + T: proto3.getEnumType(ChatClientRequestStreamClientType), + }, + { no: 12, name: 'user_config', kind: 'message', T: CascadeConfig }, + { no: 13, name: 'last_user_config', kind: 'message', T: CascadeConfig }, + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'images', kind: 'message', T: ImageData, repeated: true }, + { no: 9, name: 'media', kind: 'message', T: Media, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepUserInput().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepUserInput().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepUserInput().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepUserInput, a, b); + } +}; +var ActiveUserState = class _ActiveUserState extends Message { + /** + * @generated from field: exa.codeium_common_pb.Document active_document = 1; + */ + activeDocument; + /** + * @generated from field: repeated exa.codeium_common_pb.Document open_documents = 2; + */ + openDocuments = []; + /** + * @generated from field: exa.codeium_common_pb.CodeContextItem active_node = 3; + */ + activeNode; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ActiveUserState'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'active_document', kind: 'message', T: Document }, + { + no: 2, + name: 'open_documents', + kind: 'message', + T: Document, + repeated: true, + }, + { no: 3, name: 'active_node', kind: 'message', T: CodeContextItem }, + ]); + static fromBinary(bytes, options) { + return new _ActiveUserState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ActiveUserState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ActiveUserState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ActiveUserState, a, b); + } +}; +var CortexStepPlannerResponse = class _CortexStepPlannerResponse extends Message { + /** + * This is the direct raw output from the planner. + * User-facing clients should not handle this field directly (and should + * not expect it to necessarily be populated in the proto it receives). + * + * @generated from field: string response = 1; + */ + response = ''; + /** + * We may modify the response to include additional information, such as + * citations. This is what should be handled by the client. + * + * @generated from field: string modified_response = 8; + */ + modifiedResponse = ''; + /** + * @generated from field: string thinking = 3; + */ + thinking = ''; + /** + * Deprecated. Use thinking_signature instead. + * + * @generated from field: string signature = 4 [deprecated = true]; + * @deprecated + */ + signature = ''; + /** + * @generated from field: bytes thinking_signature = 14; + */ + thinkingSignature = new Uint8Array(0); + /** + * @generated from field: bool thinking_redacted = 5; + */ + thinkingRedacted = false; + /** + * @generated from field: string message_id = 6; + */ + messageId = ''; + /** + * All tool calls generated by the planner in this response. + * + * @generated from field: repeated exa.codeium_common_pb.ChatToolCall tool_calls = 7; + */ + toolCalls = []; + /** + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseItemWithMetadata knowledge_base_items = 2; + */ + knowledgeBaseItems = []; + /** + * @generated from field: google.protobuf.Duration thinking_duration = 11; + */ + thinkingDuration; + /** + * @generated from field: exa.codeium_common_pb.StopReason stop_reason = 12; + */ + stopReason = StopReason.UNSPECIFIED; + /** + * Citation metadata aggregated from model response stream + * + * @generated from field: exa.codeium_common_pb.RecitationMetadata recitation_metadata = 13; + */ + recitationMetadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepPlannerResponse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'response', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'modified_response', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'thinking', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'signature', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 14, + name: 'thinking_signature', + kind: 'scalar', + T: 12, + /* ScalarType.BYTES */ + }, + { + no: 5, + name: 'thinking_redacted', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'message_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'tool_calls', + kind: 'message', + T: ChatToolCall, + repeated: true, + }, + { + no: 2, + name: 'knowledge_base_items', + kind: 'message', + T: KnowledgeBaseItemWithMetadata, + repeated: true, + }, + { no: 11, name: 'thinking_duration', kind: 'message', T: Duration }, + { + no: 12, + name: 'stop_reason', + kind: 'enum', + T: proto3.getEnumType(StopReason), + }, + { + no: 13, + name: 'recitation_metadata', + kind: 'message', + T: RecitationMetadata, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepPlannerResponse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepPlannerResponse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepPlannerResponse().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepPlannerResponse, a, b); + } +}; +var CortexStepFileBreakdown = class _CortexStepFileBreakdown extends Message { + /** + * INPUTS + * + * @generated from field: string absolute_path = 1; + */ + absolutePath = ''; + /** + * Only one of the following should be populated. + * + * @generated from field: exa.codeium_common_pb.DocumentOutline document_outline = 2; + */ + documentOutline; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepFileBreakdown'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'document_outline', kind: 'message', T: DocumentOutline }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepFileBreakdown().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepFileBreakdown().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepFileBreakdown().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepFileBreakdown, a, b); + } +}; +var CortexStepViewCodeItem = class _CortexStepViewCodeItem extends Message { + /** + * INPUTS + * + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * @generated from field: repeated string node_paths = 4; + */ + nodePaths = []; + /** + * OUTPUTS + * + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem ccis = 5; + */ + ccis = []; + /** + * @generated from field: exa.cortex_pb.FilePermissionInteractionSpec file_permission_request = 6; + */ + filePermissionRequest; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepViewCodeItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'node_paths', kind: 'scalar', T: 9, repeated: true }, + { + no: 5, + name: 'ccis', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { + no: 6, + name: 'file_permission_request', + kind: 'message', + T: FilePermissionInteractionSpec, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepViewCodeItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepViewCodeItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepViewCodeItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepViewCodeItem, a, b); + } +}; +var CortexStepWriteToFile = class _CortexStepWriteToFile extends Message { + /** + * Input + * + * @generated from field: string target_file_uri = 1; + */ + targetFileUri = ''; + /** + * code content is represented as an array of strings + * to avoid requiring the model to generate \n for line returns. + * GPT-4o sometimes generates double escapes (\\n), which + * causes syntax errors. + * + * @generated from field: repeated string code_content = 2; + */ + codeContent = []; + /** + * Output + * + * @generated from field: exa.diff_action_pb.DiffBlock diff = 3; + */ + diff; + /** + * @generated from field: bool file_created = 4; + */ + fileCreated = false; + /** + * The following is only used for Cascade, and indicates that the user has + * reviewed and either accepted or rejected the code changes. + * + * @generated from field: exa.cortex_pb.AcknowledgementType acknowledgement_type = 5; + */ + acknowledgementType = AcknowledgementType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepWriteToFile'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'target_file_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'code_content', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'diff', kind: 'message', T: DiffBlock }, + { + no: 4, + name: 'file_created', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'acknowledgement_type', + kind: 'enum', + T: proto3.getEnumType(AcknowledgementType), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepWriteToFile().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepWriteToFile().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepWriteToFile().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepWriteToFile, a, b); + } +}; +var CortexStepSearchKnowledgeBase = class _CortexStepSearchKnowledgeBase extends Message { + /** + * Input + * + * @generated from field: repeated string queries = 1; + */ + queries = []; + /** + * @generated from field: exa.opensearch_clients_pb.TimeRange time_range = 3; + */ + timeRange; + /** + * @generated from field: repeated exa.opensearch_clients_pb.ConnectorType connector_types = 4; + */ + connectorTypes = []; + /** + * @generated from field: repeated string aggregate_ids = 7; + */ + aggregateIds = []; + /** + * Output + * + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseGroup knowledge_base_groups = 2; + */ + knowledgeBaseGroups = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepSearchKnowledgeBase'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'queries', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'time_range', kind: 'message', T: TimeRange }, + { + no: 4, + name: 'connector_types', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + repeated: true, + }, + { no: 7, name: 'aggregate_ids', kind: 'scalar', T: 9, repeated: true }, + { + no: 2, + name: 'knowledge_base_groups', + kind: 'message', + T: KnowledgeBaseGroup, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepSearchKnowledgeBase().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepSearchKnowledgeBase().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepSearchKnowledgeBase().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepSearchKnowledgeBase, a, b); + } +}; +var CortexStepLookupKnowledgeBase = class _CortexStepLookupKnowledgeBase extends Message { + /** + * Input + * + * @generated from field: repeated string urls = 1; + */ + urls = []; + /** + * @generated from field: repeated string document_ids = 2; + */ + documentIds = []; + /** + * Output + * + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseItemWithMetadata knowledge_base_items = 3; + */ + knowledgeBaseItems = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepLookupKnowledgeBase'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'urls', kind: 'scalar', T: 9, repeated: true }, + { no: 2, name: 'document_ids', kind: 'scalar', T: 9, repeated: true }, + { + no: 3, + name: 'knowledge_base_items', + kind: 'message', + T: KnowledgeBaseItemWithMetadata, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepLookupKnowledgeBase().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepLookupKnowledgeBase().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepLookupKnowledgeBase().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepLookupKnowledgeBase, a, b); + } +}; +var CortexStepSuggestedResponses = class _CortexStepSuggestedResponses extends Message { + /** + * Input + * + * @generated from field: repeated string suggestions = 1; + */ + suggestions = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepSuggestedResponses'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'suggestions', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepSuggestedResponses().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepSuggestedResponses().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepSuggestedResponses().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepSuggestedResponses, a, b); + } +}; +var CortexStepErrorMessage = class _CortexStepErrorMessage extends Message { + /** + * @generated from field: exa.cortex_pb.CortexErrorDetails error = 3; + */ + error; + /** + * @generated from field: bool should_show_user = 5; + */ + shouldShowUser = false; + /** + * @generated from field: bool should_show_model = 4; + */ + shouldShowModel = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepErrorMessage'; + static fields = proto3.util.newFieldList(() => [ + { no: 3, name: 'error', kind: 'message', T: CortexErrorDetails }, + { + no: 5, + name: 'should_show_user', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'should_show_model', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepErrorMessage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepErrorMessage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepErrorMessage().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepErrorMessage, a, b); + } +}; +var RunCommandOutput = class _RunCommandOutput extends Message { + /** + * Full output provided to Cascade. Note that for very large outputs, this may + * be truncated. + * + * @generated from field: string full = 1; + */ + full = ''; + /** + * Deprecated fields. + * + * @generated from field: string truncated = 2 [deprecated = true]; + * @deprecated + */ + truncated = ''; + /** + * @generated from field: uint32 num_lines_above = 3 [deprecated = true]; + * @deprecated + */ + numLinesAbove = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.RunCommandOutput'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'full', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'truncated', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'num_lines_above', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _RunCommandOutput().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RunCommandOutput().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RunCommandOutput().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RunCommandOutput, a, b); + } +}; +var CortexStepRunCommand = class _CortexStepRunCommand extends Message { + /** + * Command that is run if the user accepted. Same as proposed_command_line if + * not edited or if user rejected. + * + * @generated from field: string command_line = 23; + */ + commandLine = ''; + /** + * Command that was initially proposed by the model. + * + * @generated from field: string proposed_command_line = 25; + */ + proposedCommandLine = ''; + /** + * @generated from field: string cwd = 2; + */ + cwd = ''; + /** + * @generated from field: uint64 wait_ms_before_async = 12; + */ + waitMsBeforeAsync = protoInt64.zero; + /** + * Whether the command should be run without user approval, as decided by the + * model. Will not take effect unless the user has opted in to automated + * commands. + * + * @generated from field: bool should_auto_run = 15; + */ + shouldAutoRun = false; + /** + * Optional ID of the terminal to use for the command. If not specified or it + * doesn't exist, a new terminal will be created. + * + * @generated from field: string requested_terminal_id = 17; + */ + requestedTerminalId = ''; + /** + * Whether to run the command with sandbox override enabled. + * + * @generated from field: bool sandbox_override = 27; + */ + sandboxOverride = false; + /** + * OUTPUT + * blocking is set to true while the command is running synchronously, + * and then set to false when the command is backgrounded + * + * @generated from field: bool blocking = 11; + */ + blocking = false; + /** + * Only set if running in background. + * + * @generated from field: string command_id = 13; + */ + commandId = ''; + /** + * Will be unset if the exit code cannot be determined. + * + * @generated from field: optional int32 exit_code = 6; + */ + exitCode; + /** + * @generated from field: bool user_rejected = 14; + */ + userRejected = false; + /** + * @generated from field: exa.cortex_pb.AutoRunDecision auto_run_decision = 16; + */ + autoRunDecision = AutoRunDecision.UNSPECIFIED; + /** + * ID of the terminal used for the command. + * + * @generated from field: string terminal_id = 18; + */ + terminalId = ''; + /** + * @generated from field: exa.cortex_pb.RunCommandOutput combined_output = 21; + */ + combinedOutput; + /** + * Snapshot of the output at the time the command was backgrounded. + * + * @generated from field: exa.cortex_pb.RunCommandOutput combined_output_snapshot = 26; + */ + combinedOutputSnapshot; + /** + * True iff the IDE's terminal was used to execute the command. + * + * @generated from field: bool used_ide_terminal = 22; + */ + usedIdeTerminal = false; + /** + * Raw bytes from IDE execution used for debugging. + * + * @generated from field: string raw_debug_output = 24; + */ + rawDebugOutput = ''; + /** + * Deprecated fields. + * + * @generated from field: string command = 1 [deprecated = true]; + * @deprecated + */ + command = ''; + /** + * @generated from field: repeated string args = 3 [deprecated = true]; + * @deprecated + */ + args = []; + /** + * @generated from field: string stdout = 4 [deprecated = true]; + * @deprecated + */ + stdout = ''; + /** + * @generated from field: string stderr = 5 [deprecated = true]; + * @deprecated + */ + stderr = ''; + /** + * @generated from field: string stdout_buffer = 7 [deprecated = true]; + * @deprecated + */ + stdoutBuffer = ''; + /** + * @generated from field: string stderr_buffer = 8 [deprecated = true]; + * @deprecated + */ + stderrBuffer = ''; + /** + * @generated from field: uint32 stdout_lines_above = 9 [deprecated = true]; + * @deprecated + */ + stdoutLinesAbove = 0; + /** + * @generated from field: uint32 stderr_lines_above = 10 [deprecated = true]; + * @deprecated + */ + stderrLinesAbove = 0; + /** + * @generated from field: exa.cortex_pb.RunCommandOutput stdout_output = 19 [deprecated = true]; + * @deprecated + */ + stdoutOutput; + /** + * @generated from field: exa.cortex_pb.RunCommandOutput stderr_output = 20 [deprecated = true]; + * @deprecated + */ + stderrOutput; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepRunCommand'; + static fields = proto3.util.newFieldList(() => [ + { + no: 23, + name: 'command_line', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 25, + name: 'proposed_command_line', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'cwd', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'wait_ms_before_async', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 15, + name: 'should_auto_run', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 17, + name: 'requested_terminal_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 27, + name: 'sandbox_override', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 11, + name: 'blocking', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 13, + name: 'command_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 6, name: 'exit_code', kind: 'scalar', T: 5, opt: true }, + { + no: 14, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 16, + name: 'auto_run_decision', + kind: 'enum', + T: proto3.getEnumType(AutoRunDecision), + }, + { + no: 18, + name: 'terminal_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 21, name: 'combined_output', kind: 'message', T: RunCommandOutput }, + { + no: 26, + name: 'combined_output_snapshot', + kind: 'message', + T: RunCommandOutput, + }, + { + no: 22, + name: 'used_ide_terminal', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 24, + name: 'raw_debug_output', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'command', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'args', kind: 'scalar', T: 9, repeated: true }, + { + no: 4, + name: 'stdout', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'stderr', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'stdout_buffer', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'stderr_buffer', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'stdout_lines_above', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 10, + name: 'stderr_lines_above', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 19, name: 'stdout_output', kind: 'message', T: RunCommandOutput }, + { no: 20, name: 'stderr_output', kind: 'message', T: RunCommandOutput }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepRunCommand().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepRunCommand().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepRunCommand().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepRunCommand, a, b); + } +}; +var CortexStepReadUrlContent = class _CortexStepReadUrlContent extends Message { + /** + * INPUTS + * + * @generated from field: string url = 1; + */ + url = ''; + /** + * OUTPUTS + * + * @generated from field: exa.codeium_common_pb.KnowledgeBaseItem web_document = 2; + */ + webDocument; + /** + * Sometimes the URL passed in may not be the same as the one actually used. + * For example, we will redirect Mintlify documentation sites to their + * LLM-friendly pages: + * https://docs.antigravity.com --> + * https://docs.antigravity.com/llms-full.txt + * + * @generated from field: string resolved_url = 3; + */ + resolvedUrl = ''; + /** + * Latency of the web document retrieval in milliseconds. + * + * @generated from field: uint32 latency_ms = 4; + */ + latencyMs = 0; + /** + * @generated from field: bool user_rejected = 5; + */ + userRejected = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepReadUrlContent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'web_document', kind: 'message', T: KnowledgeBaseItem }, + { + no: 3, + name: 'resolved_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'latency_ms', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepReadUrlContent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepReadUrlContent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepReadUrlContent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepReadUrlContent, a, b); + } +}; +var CortexStepReadKnowledgeBaseItem = class _CortexStepReadKnowledgeBaseItem extends Message { + /** + * INPUTS + * + * @generated from field: string identifier = 1; + */ + identifier = ''; + /** + * OUTPUTS + * + * @generated from field: exa.codeium_common_pb.KnowledgeBaseItem knowledge_base_item = 2; + */ + knowledgeBaseItem; + /** + * @generated from field: exa.opensearch_clients_pb.ConnectorType connector_type = 3; + */ + connectorType = ConnectorType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepReadKnowledgeBaseItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'identifier', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'knowledge_base_item', + kind: 'message', + T: KnowledgeBaseItem, + }, + { + no: 3, + name: 'connector_type', + kind: 'enum', + T: proto3.getEnumType(ConnectorType), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepReadKnowledgeBaseItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepReadKnowledgeBaseItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepReadKnowledgeBaseItem().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepReadKnowledgeBaseItem, a, b); + } +}; +var CortexStepSendCommandInput = class _CortexStepSendCommandInput extends Message { + /** + * INPUTS + * The command ID to send input to (from run_command) + * + * @generated from field: string command_id = 1; + */ + commandId = ''; + /** + * The input to send + * + * @generated from field: string input = 2; + */ + input = ''; + /** + * Whether the command should be run without user approval, as decided by the + * model. Will not take effect unless the user has opted in to automated + * commands. + * + * @generated from field: bool should_auto_run = 3; + */ + shouldAutoRun = false; + /** + * Whether the command should terminate after being sent the input. + * + * @generated from field: bool terminate = 6; + */ + terminate = false; + /** + * Amount of time to wait for output after sending input. + * + * @generated from field: int64 wait_ms = 7; + */ + waitMs = protoInt64.zero; + /** + * OUTPUTS + * + * @generated from field: bool user_rejected = 4; + */ + userRejected = false; + /** + * @generated from field: exa.cortex_pb.AutoRunDecision auto_run_decision = 5; + */ + autoRunDecision = AutoRunDecision.UNSPECIFIED; + /** + * output captured after waiting for wait_ms. + * + * @generated from field: exa.cortex_pb.RunCommandOutput output = 8; + */ + output; + /** + * True if the command is still running after waiting for wait_ms. + * + * @generated from field: bool running = 9; + */ + running = false; + /** + * Exit code of the command if it terminated before wait_ms. + * + * @generated from field: optional int32 exit_code = 10; + */ + exitCode; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepSendCommandInput'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'command_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'input', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'should_auto_run', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'terminate', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'wait_ms', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 4, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'auto_run_decision', + kind: 'enum', + T: proto3.getEnumType(AutoRunDecision), + }, + { no: 8, name: 'output', kind: 'message', T: RunCommandOutput }, + { + no: 9, + name: 'running', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 10, name: 'exit_code', kind: 'scalar', T: 5, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepSendCommandInput().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepSendCommandInput().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepSendCommandInput().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepSendCommandInput, a, b); + } +}; +var CortexStepViewContentChunk = class _CortexStepViewContentChunk extends Message { + /** + * INPUTS + * The URL of the chunk to view. + * + * @generated from field: string document_id = 5; + */ + documentId = ''; + /** + * The position of the chunk. + * + * @generated from field: int32 position = 2; + */ + position = 0; + /** + * OUTPUTS + * The knowledge base item corresponding to the chunk with _only_ the chunk + * that is desired. Specifically, there will be one chunk in the chunks array. + * + * @generated from field: exa.codeium_common_pb.KnowledgeBaseItem cropped_item = 4; + */ + croppedItem; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepViewContentChunk'; + static fields = proto3.util.newFieldList(() => [ + { + no: 5, + name: 'document_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'position', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 4, name: 'cropped_item', kind: 'message', T: KnowledgeBaseItem }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepViewContentChunk().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepViewContentChunk().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepViewContentChunk().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepViewContentChunk, a, b); + } +}; +var CortexStepSearchWeb = class _CortexStepSearchWeb extends Message { + /** + * INPUTS + * The query to search for. + * + * @generated from field: string query = 1; + */ + query = ''; + /** + * Optional domain for the search to prioritize. + * + * @generated from field: string domain = 3; + */ + domain = ''; + /** + * OUTPUTS + * A list of web documents that match the web search query. + * + * @generated from field: repeated exa.codeium_common_pb.KnowledgeBaseItem web_documents = 2; + */ + webDocuments = []; + /** + * The URL to view the full search results in a browser. + * + * @generated from field: string web_search_url = 4; + */ + webSearchUrl = ''; + /** + * This variable is only for an experimental feature where we use a third + * party API to perform web search. + * + * @generated from field: string summary = 5; + */ + summary = ''; + /** + * @generated from field: exa.codeium_common_pb.ThirdPartyWebSearchConfig third_party_config = 6; + */ + thirdPartyConfig; + /** + * The type of search performed. Default is SEARCH_WEB_TYPE_WEB. + * + * @generated from field: exa.cortex_pb.SearchWebType search_type = 7; + */ + searchType = SearchWebType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepSearchWeb'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'domain', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'web_documents', + kind: 'message', + T: KnowledgeBaseItem, + repeated: true, + }, + { + no: 4, + name: 'web_search_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'third_party_config', + kind: 'message', + T: ThirdPartyWebSearchConfig, + }, + { + no: 7, + name: 'search_type', + kind: 'enum', + T: proto3.getEnumType(SearchWebType), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepSearchWeb().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepSearchWeb().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepSearchWeb().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepSearchWeb, a, b); + } +}; +var CortexStepReadDeploymentConfig = class _CortexStepReadDeploymentConfig extends Message { + /** + * INPUTS + * The absolute path to the web app's project directory. + * + * @generated from field: string project_path = 1; + */ + projectPath = ''; + /** + * OUTPUTS + * The deployment configuration file. + * + * @generated from field: string deployment_config_uri = 2; + */ + deploymentConfigUri = ''; + /** + * The config that was read from the existing deployment config file. If no + * config file existed, this will be empty. + * + * @generated from field: exa.codeium_common_pb.WebAppDeploymentConfig deployment_config = 3; + */ + deploymentConfig; + /** + * Whether there are any missing files that need to be created before + * deployment. For example, Netlify sites requires a `netlify.toml` file. + * + * @generated from field: repeated string missing_file_uris = 4; + */ + missingFileUris = []; + /** + * Whether we are planning on uploading any node_modules files based on the + * ignore files. We automatically add node_modules to the ignore files so this + * should rarely be true. + * + * @generated from field: bool will_upload_node_modules = 5; + */ + willUploadNodeModules = false; + /** + * Whether we are planning on uploading any dist files based on the ignore + * files. + * + * @generated from field: bool will_upload_dist = 6; + */ + willUploadDist = false; + /** + * The ignore files that the user has in this project. + * + * @generated from field: repeated string ignore_file_uris = 7; + */ + ignoreFileUris = []; + /** + * The number of files that will be uploaded. + * + * @generated from field: uint32 num_files_to_upload = 8; + */ + numFilesToUpload = 0; + /** + * Any .env files that the user has in this project that will be uploaded. + * + * @generated from field: repeated string env_file_uris = 9; + */ + envFileUris = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepReadDeploymentConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'project_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'deployment_config_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'deployment_config', + kind: 'message', + T: WebAppDeploymentConfig, + }, + { no: 4, name: 'missing_file_uris', kind: 'scalar', T: 9, repeated: true }, + { + no: 5, + name: 'will_upload_node_modules', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'will_upload_dist', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 7, name: 'ignore_file_uris', kind: 'scalar', T: 9, repeated: true }, + { + no: 8, + name: 'num_files_to_upload', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 9, name: 'env_file_uris', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepReadDeploymentConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepReadDeploymentConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepReadDeploymentConfig().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepReadDeploymentConfig, a, b); + } +}; +var CortexStepDeployWebApp = class _CortexStepDeployWebApp extends Message { + /** + * INPUTS + * The absolute path to the web app's project directory. + * + * @generated from field: string project_path = 1; + */ + projectPath = ''; + /** + * The subdomain of the app as determined by Cascade. This will only be used + * for new deployments and will be the value used in the URL (ie. + * .antigravity.app). + * + * @generated from field: string subdomain = 2; + */ + subdomain = ''; + /** + * The project ID used for deploying to an existing project. If this value is + * populated, we will consider this to be a deploy to an existing project. + * + * @generated from field: string project_id = 11; + */ + projectId = ''; + /** + * JS framework used for the app (ie. nextjs, sveltekit, etc.). This varies + * based on the provider. + * + * @generated from field: string framework = 3; + */ + framework = ''; + /** + * Whether the user confirmed to run the deployment. + * + * @generated from field: bool user_confirmed = 4; + */ + userConfirmed = false; + /** + * Map from absolute file path to the status of the file's upload to the app. + * + * @generated from field: map file_upload_status = 5; + */ + fileUploadStatus = {}; + /** + * If successful, the Antigravity deployment record. + * + * @generated from field: exa.codeium_common_pb.AntigravityDeployment deployment = 6; + */ + deployment; + /** + * The URI for the deployment config file. Does not mean it was written to. + * This is the target path that the deployment config will be written to. + * + * @generated from field: string deployment_config_uri = 7; + */ + deploymentConfigUri = ''; + /** + * The config that was written to the deployment config file. If the config + * was not written for some reason, this will be empty. + * + * @generated from field: exa.codeium_common_pb.WebAppDeploymentConfig deployment_config_output = 8; + */ + deploymentConfigOutput; + /** + * The subdomain that was retrieved from the provider if the input specified a + * project ID. + * + * @generated from field: string subdomain_for_project_id = 12; + */ + subdomainForProjectId = ''; + /** + * The subdomain that the user specified in the step input. + * + * @generated from field: string subdomain_user_specified = 13; + */ + subdomainUserSpecified = ''; + /** + * The subdomain that was ultimately used for the deployment. For updating an + * existing deployment, this will be the subdomain used by the existing + * deployment. + * + * @generated from field: string subdomain_used = 9; + */ + subdomainUsed = ''; + /** + * The deploy target that was retrieved from the provider if the input + * specified a project ID. + * + * @generated from field: exa.codeium_common_pb.DeployTarget deploy_target_for_project_id = 15; + */ + deployTargetForProjectId; + /** + * The deploy target that the user specified in the step input. + * + * @generated from field: exa.codeium_common_pb.DeployTarget deploy_target_user_specified = 16; + */ + deployTargetUserSpecified; + /** + * The deploy target that was ultimately used for the deployment. For updating + * an existing deployment, this will be the deploy target used by the existing + * deployment. + * + * @generated from field: exa.codeium_common_pb.DeployTarget deploy_target_used = 17; + */ + deployTargetUsed; + /** + * The project ID that was ultimately used for the deployment. For updating an + * existing deployment, this will be the project ID used by the existing + * deployment. For new deployments, this will be empty. + * + * @generated from field: string project_id_used = 14; + */ + projectIdUsed = ''; + /** + * Claim URL for the deployment (if unclaimed). + * + * @generated from field: string claim_url = 10; + */ + claimUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepDeployWebApp'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'project_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'subdomain', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 11, + name: 'project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'framework', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'user_confirmed', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'file_upload_status', + kind: 'map', + K: 9, + V: { kind: 'enum', T: proto3.getEnumType(DeployWebAppFileUploadStatus) }, + }, + { no: 6, name: 'deployment', kind: 'message', T: AntigravityDeployment }, + { + no: 7, + name: 'deployment_config_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'deployment_config_output', + kind: 'message', + T: WebAppDeploymentConfig, + }, + { + no: 12, + name: 'subdomain_for_project_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 13, + name: 'subdomain_user_specified', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'subdomain_used', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 15, + name: 'deploy_target_for_project_id', + kind: 'message', + T: DeployTarget, + }, + { + no: 16, + name: 'deploy_target_user_specified', + kind: 'message', + T: DeployTarget, + }, + { no: 17, name: 'deploy_target_used', kind: 'message', T: DeployTarget }, + { + no: 14, + name: 'project_id_used', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'claim_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepDeployWebApp().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepDeployWebApp().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepDeployWebApp().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepDeployWebApp, a, b); + } +}; +var CortexStepCheckDeployStatus = class _CortexStepCheckDeployStatus extends Message { + /** + * INPUTS + * The Antigravity deployment ID (primary key of the `antigravity_deployments` + * table) to check. + * + * @generated from field: string antigravity_deployment_id = 1; + */ + antigravityDeploymentId = ''; + /** + * The Antigravity deployment record. + * + * @generated from field: exa.codeium_common_pb.AntigravityDeployment deployment = 2; + */ + deployment; + /** + * Build status. + * + * @generated from field: exa.codeium_common_pb.DeploymentBuildStatus build_status = 3; + */ + buildStatus = DeploymentBuildStatus.UNSPECIFIED; + /** + * The one line error message, if the build errored. + * + * @generated from field: string build_error = 4; + */ + buildError = ''; + /** + * The logs for the build. Depending on the provider, this may not be + * populated. + * + * @generated from field: string build_logs = 5; + */ + buildLogs = ''; + /** + * Whether the app has been claimed. + * + * @generated from field: bool is_claimed = 6; + */ + isClaimed = false; + /** + * The URL to claim the app if it has not yet been claimed. + * + * @generated from field: string claim_url = 7; + */ + claimUrl = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCheckDeployStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'antigravity_deployment_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'deployment', kind: 'message', T: AntigravityDeployment }, + { + no: 3, + name: 'build_status', + kind: 'enum', + T: proto3.getEnumType(DeploymentBuildStatus), + }, + { + no: 4, + name: 'build_error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'build_logs', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'is_claimed', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'claim_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCheckDeployStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCheckDeployStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCheckDeployStatus().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCheckDeployStatus, a, b); + } +}; +var CortexStepClipboard = class _CortexStepClipboard extends Message { + /** + * @generated from field: string content = 1; + */ + content = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepClipboard'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepClipboard().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepClipboard().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepClipboard().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepClipboard, a, b); + } +}; +var ExecutorMetadata = class _ExecutorMetadata extends Message { + /** + * @generated from field: exa.cortex_pb.ExecutorTerminationReason termination_reason = 1; + */ + terminationReason = ExecutorTerminationReason.UNSPECIFIED; + /** + * @generated from field: int32 num_generator_invocations = 2; + */ + numGeneratorInvocations = 0; + /** + * The inclusive index of the last step that was executed in this execution + * loop. + * + * @generated from field: int32 last_step_idx = 3; + */ + lastStepIdx = 0; + /** + * Whether the executor proceeded with auto-continue, per the user settings. + * This is only relevant if termination_reason is MAX_INVOCATIONS. + * + * @generated from field: bool proceeded_with_auto_continue = 4; + */ + proceededWithAutoContinue = false; + /** + * @generated from field: int32 num_forced_invocations = 5 [deprecated = true]; + * @deprecated + */ + numForcedInvocations = 0; + /** + * Metrics records for the trajectory segment, only populated for dev mode. + * + * @generated from field: repeated exa.codeium_common_pb.MetricsRecord segment_records = 6; + */ + segmentRecords = []; + /** + * @generated from field: repeated exa.codeium_common_pb.MetricsRecord trajectory_records = 7; + */ + trajectoryRecords = []; + /** + * Trajectory state at the end of execution as GenerateContentRequest. + * Relevant for training data extraction. + * Type: google.ai.generativelanguage.v1main.GenerateContentRequest + * Uses Any to avoid a direct proto import dependency on generative_service + * + * @generated from field: string execution_id = 9; + */ + executionId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ExecutorMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'termination_reason', + kind: 'enum', + T: proto3.getEnumType(ExecutorTerminationReason), + }, + { + no: 2, + name: 'num_generator_invocations', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'last_step_idx', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'proceeded_with_auto_continue', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'num_forced_invocations', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'segment_records', + kind: 'message', + T: MetricsRecord, + repeated: true, + }, + { + no: 7, + name: 'trajectory_records', + kind: 'message', + T: MetricsRecord, + repeated: true, + }, + { + no: 9, + name: 'execution_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ExecutorMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ExecutorMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ExecutorMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ExecutorMetadata, a, b); + } +}; +var CortexStepLintDiff = class _CortexStepLintDiff extends Message { + /** + * @generated from field: exa.cortex_pb.LintDiffType type = 1; + */ + type = LintDiffType.UNSPECIFIED; + /** + * @generated from field: exa.codeium_common_pb.CodeDiagnostic lint = 2; + */ + lint; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepLintDiff'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'type', kind: 'enum', T: proto3.getEnumType(LintDiffType) }, + { no: 2, name: 'lint', kind: 'message', T: CodeDiagnostic }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepLintDiff().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepLintDiff().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepLintDiff().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepLintDiff, a, b); + } +}; +var BrainEntry = class _BrainEntry extends Message { + /** + * @generated from field: string id = 1; + */ + id = ''; + /** + * @generated from field: exa.cortex_pb.BrainEntryType type = 2; + */ + type = BrainEntryType.UNSPECIFIED; + /** + * TODO(matt): Consider adding more structure to the content. + * + * @generated from field: string content = 3; + */ + content = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrainEntry'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(BrainEntryType), + }, + { + no: 3, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrainEntry().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrainEntry().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrainEntry().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrainEntry, a, b); + } +}; +var PlanEntryDeltaSummary = class _PlanEntryDeltaSummary extends Message { + /** + * @generated from field: repeated string items_added = 1; + */ + itemsAdded = []; + /** + * @generated from field: repeated string items_completed = 2; + */ + itemsCompleted = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.PlanEntryDeltaSummary'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'items_added', kind: 'scalar', T: 9, repeated: true }, + { no: 2, name: 'items_completed', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _PlanEntryDeltaSummary().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _PlanEntryDeltaSummary().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _PlanEntryDeltaSummary().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_PlanEntryDeltaSummary, a, b); + } +}; +var BrainEntryDeltaSummary = class _BrainEntryDeltaSummary extends Message { + /** + * @generated from oneof exa.cortex_pb.BrainEntryDeltaSummary.summary + */ + summary = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrainEntryDeltaSummary'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'plan', + kind: 'message', + T: PlanEntryDeltaSummary, + oneof: 'summary', + }, + { + no: 2, + name: 'task', + kind: 'message', + T: TaskEntryDeltaSummary, + oneof: 'summary', + }, + ]); + static fromBinary(bytes, options) { + return new _BrainEntryDeltaSummary().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrainEntryDeltaSummary().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrainEntryDeltaSummary().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrainEntryDeltaSummary, a, b); + } +}; +var BrainEntryDelta = class _BrainEntryDelta extends Message { + /** + * @generated from field: exa.cortex_pb.BrainEntry before = 1; + */ + before; + /** + * @generated from field: exa.cortex_pb.BrainEntry after = 2; + */ + after; + /** + * @generated from field: string absolute_path_uri = 3; + */ + absolutePathUri = ''; + /** + * Optional summary of the delta, specific to the type of entry. + * + * @generated from field: exa.cortex_pb.BrainEntryDeltaSummary summary = 4; + */ + summary; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrainEntryDelta'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'before', kind: 'message', T: BrainEntry }, + { no: 2, name: 'after', kind: 'message', T: BrainEntry }, + { + no: 3, + name: 'absolute_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'summary', kind: 'message', T: BrainEntryDeltaSummary }, + ]); + static fromBinary(bytes, options) { + return new _BrainEntryDelta().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrainEntryDelta().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrainEntryDelta().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_BrainEntryDelta, a, b); + } +}; +var TaskItem = class _TaskItem extends Message { + /** + * @generated from field: string id = 1; + */ + id = ''; + /** + * @generated from field: string content = 2; + */ + content = ''; + /** + * @generated from field: exa.cortex_pb.TaskStatus status = 3; + */ + status = TaskStatus.UNSPECIFIED; + /** + * Empty for root-level tasks + * + * @generated from field: string parent_id = 4; + */ + parentId = ''; + /** + * ID of previous sibling (empty for first child) + * + * @generated from field: string prev_sibling_id = 5; + */ + prevSiblingId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TaskItem'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'status', kind: 'enum', T: proto3.getEnumType(TaskStatus) }, + { + no: 4, + name: 'parent_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'prev_sibling_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _TaskItem().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TaskItem().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TaskItem().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TaskItem, a, b); + } +}; +var TaskDelta = class _TaskDelta extends Message { + /** + * @generated from field: exa.cortex_pb.TaskDeltaType type = 1; + */ + type = TaskDeltaType.UNSPECIFIED; + /** + * @generated from field: string id = 2; + */ + id = ''; + /** + * Task data - always populated for relevant operations + * + * Current/new content + * + * @generated from field: string content = 3; + */ + content = ''; + /** + * Current/new status + * + * @generated from field: exa.cortex_pb.TaskStatus status = 4; + */ + status = TaskStatus.UNSPECIFIED; + /** + * For add/move operations - positioning info + * + * Target parent (empty for root level) + * + * @generated from field: string parent_id = 5; + */ + parentId = ''; + /** + * Insert after this sibling (empty for first position) + * + * @generated from field: string prev_sibling_id = 6; + */ + prevSiblingId = ''; + /** + * For move operations - original position (optional, for context) + * + * Original parent id (empty for root level) + * + * @generated from field: string from_parent = 7; + */ + fromParent = ''; + /** + * Original previous sibling id (empty for first position) + * + * @generated from field: string from_prev_sibling = 8; + */ + fromPrevSibling = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TaskDelta'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'type', kind: 'enum', T: proto3.getEnumType(TaskDeltaType) }, + { + no: 2, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'status', kind: 'enum', T: proto3.getEnumType(TaskStatus) }, + { + no: 5, + name: 'parent_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'prev_sibling_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'from_parent', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'from_prev_sibling', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _TaskDelta().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TaskDelta().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TaskDelta().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TaskDelta, a, b); + } +}; +var TaskEntryDeltaSummary = class _TaskEntryDeltaSummary extends Message { + /** + * @generated from field: repeated exa.cortex_pb.TaskDelta deltas = 1; + */ + deltas = []; + /** + * High-level summary counts for quick overview + * + * @generated from field: int32 items_added = 2; + */ + itemsAdded = 0; + /** + * Tasks completed & deleted + * + * @generated from field: int32 items_pruned = 3; + */ + itemsPruned = 0; + /** + * Tasks never completed & deleted + * + * @generated from field: int32 items_deleted = 4; + */ + itemsDeleted = 0; + /** + * Status or content changes + * + * @generated from field: int32 items_updated = 5; + */ + itemsUpdated = 0; + /** + * Parent or order changes + * + * @generated from field: int32 items_moved = 6; + */ + itemsMoved = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TaskEntryDeltaSummary'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'deltas', kind: 'message', T: TaskDelta, repeated: true }, + { + no: 2, + name: 'items_added', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'items_pruned', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'items_deleted', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'items_updated', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'items_moved', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _TaskEntryDeltaSummary().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TaskEntryDeltaSummary().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TaskEntryDeltaSummary().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TaskEntryDeltaSummary, a, b); + } +}; +var CortexStepBrainUpdate = class _CortexStepBrainUpdate extends Message { + /** + * Inputs + * + * @generated from oneof exa.cortex_pb.CortexStepBrainUpdate.target + */ + target = { case: void 0 }; + /** + * The trigger for the update. + * + * @generated from field: exa.cortex_pb.BrainUpdateTrigger trigger = 3; + */ + trigger = BrainUpdateTrigger.UNSPECIFIED; + /** + * Outputs + * + * @generated from field: repeated exa.cortex_pb.BrainEntryDelta deltas = 2; + */ + deltas = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrainUpdate'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'entry_type', + kind: 'enum', + T: proto3.getEnumType(BrainEntryType), + oneof: 'target', + }, + { + no: 3, + name: 'trigger', + kind: 'enum', + T: proto3.getEnumType(BrainUpdateTrigger), + }, + { + no: 2, + name: 'deltas', + kind: 'message', + T: BrainEntryDelta, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrainUpdate().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrainUpdate().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrainUpdate().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrainUpdate, a, b); + } +}; +var CortexStepBrowserSubagent = class _CortexStepBrowserSubagent extends Message { + /** + * Inputs + * + * @generated from field: string task = 1; + */ + task = ''; + /** + * ID of the subagent to use. If empty, a new subagent will be created. + * + * @generated from field: string reused_subagent_id = 9; + */ + reusedSubagentId = ''; + /** + * Name of the recording file (without extension) when saving as artifact. + * + * @generated from field: string recording_name = 7; + */ + recordingName = ''; + /** + * Outputs + * + * @generated from field: string result = 2; + */ + result = ''; + /** + * Title of the task + * + * @generated from field: string task_name = 3; + */ + taskName = ''; + /** + * Path to the recording of the subagent's work + * + * @generated from field: string recording_path = 4; + */ + recordingPath = ''; + /** + * Status of the recording video generation + * + * @generated from field: exa.cortex_pb.RecordingGenerationStatus recording_generation_status = 6; + */ + recordingGenerationStatus = RecordingGenerationStatus.UNSPECIFIED; + /** + * ID of the subagent (same as subagent_id if a subagent was not newly created + * by this invocation) + * + * @generated from field: string subagent_id = 8; + */ + subagentId = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserSubagent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'task', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 9, + name: 'reused_subagent_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'recording_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'result', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'task_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'recording_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'recording_generation_status', + kind: 'enum', + T: proto3.getEnumType(RecordingGenerationStatus), + }, + { + no: 8, + name: 'subagent_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserSubagent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserSubagent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserSubagent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserSubagent, a, b); + } +}; +var KnowledgeConfig = class _KnowledgeConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * @generated from field: exa.codeium_common_pb.Model model = 2; + */ + model = Model.UNSPECIFIED; + /** + * @generated from field: uint32 max_context_tokens = 3; + */ + maxContextTokens = 0; + /** + * @generated from field: uint32 max_invocations = 4; + */ + maxInvocations = 0; + /** + * @generated from field: uint32 min_turns_between_knowledge_generation = 5; + */ + minTurnsBetweenKnowledgeGeneration = 0; + /** + * @generated from field: uint32 max_knowledge_items = 6; + */ + maxKnowledgeItems = 0; + /** + * @generated from field: uint32 max_artifacts_per_ki = 7; + */ + maxArtifactsPerKi = 0; + /** + * @generated from field: uint32 max_title_length = 8; + */ + maxTitleLength = 0; + /** + * @generated from field: uint32 max_summary_length = 9; + */ + maxSummaryLength = 0; + /** + * @generated from field: optional bool enable_ki_insertion = 10; + */ + enableKiInsertion; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.KnowledgeConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { no: 2, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 3, + name: 'max_context_tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'max_invocations', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'min_turns_between_knowledge_generation', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 6, + name: 'max_knowledge_items', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'max_artifacts_per_ki', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 8, + name: 'max_title_length', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 9, + name: 'max_summary_length', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 10, name: 'enable_ki_insertion', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _KnowledgeConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _KnowledgeConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _KnowledgeConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_KnowledgeConfig, a, b); + } +}; +var CortexStepKnowledgeGeneration = class _CortexStepKnowledgeGeneration extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepKnowledgeGeneration'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CortexStepKnowledgeGeneration().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepKnowledgeGeneration().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepKnowledgeGeneration().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepKnowledgeGeneration, a, b); + } +}; +var CortexStepOpenBrowserUrl = class _CortexStepOpenBrowserUrl extends Message { + /** + * Inputs + * + * @generated from field: string url = 1; + */ + url = ''; + /** + * Page ID (optional) to replace with the new URL. + * + * @generated from field: string page_id_to_replace = 8; + */ + pageIdToReplace = ''; + /** + * The decision for whether to auto open the URL in the Browser. + * + * @generated from field: exa.cortex_pb.AutoRunDecision auto_run_decision = 2; + */ + autoRunDecision = AutoRunDecision.UNSPECIFIED; + /** + * Whether the user rejected to open the URL (if the auto run decision was not + * to auto run). + * + * @generated from field: bool user_rejected = 3; + */ + userRejected = false; + /** + * The page ID of the opened page (from the Antigravity Browser service). + * + * @generated from field: string page_id = 4; + */ + pageId = ''; + /** + * The web document captured from the opened page. + * + * @generated from field: exa.codeium_common_pb.KnowledgeBaseItem web_document = 5; + */ + webDocument; + /** + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 6; + */ + pageMetadata; + /** + * Deprecated use media_screenshot + * + * @generated from field: exa.codeium_common_pb.ImageData screenshot = 7 [deprecated = true]; + * @deprecated + */ + screenshot; + /** + * The screenshot of the opened page (can be either full page or viewport). + * + * @generated from field: exa.codeium_common_pb.Media media_screenshot = 10; + */ + mediaScreenshot; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 9; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepOpenBrowserUrl'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'page_id_to_replace', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'auto_run_decision', + kind: 'enum', + T: proto3.getEnumType(AutoRunDecision), + }, + { + no: 3, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'web_document', kind: 'message', T: KnowledgeBaseItem }, + { no: 6, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { no: 7, name: 'screenshot', kind: 'message', T: ImageData }, + { no: 10, name: 'media_screenshot', kind: 'message', T: Media }, + { + no: 9, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepOpenBrowserUrl().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepOpenBrowserUrl().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepOpenBrowserUrl().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepOpenBrowserUrl, a, b); + } +}; +var CortexStepExecuteBrowserJavaScript = class _CortexStepExecuteBrowserJavaScript extends Message { + /** + * An at most 20 character title describing the task in the imperative form. + * Will be displayed in the step UI as the title of the tool. + * + * @generated from field: string title = 9; + */ + title = ''; + /** + * page_id of the Browser page to execute the JavaScript on. + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * JavaScript to execute on the page. + * + * @generated from field: string javascript_source = 2; + */ + javascriptSource = ''; + /** + * Human-readable description of the JavaScript to execute. + * + * @generated from field: string javascript_description = 3; + */ + javascriptDescription = ''; + /** + * Whether the command should be run without user approval, as decided by the + * model. Will not take effect unless the user has opted in to automated + * commands. + * + * @generated from field: bool should_auto_run = 10; + */ + shouldAutoRun = false; + /** + * The reason why the step is waiting for user input. Only relevant when + * the step status is WAITING. + * + * @generated from field: exa.cortex_pb.BrowserActionWaitingReason waiting_reason = 13; + */ + waitingReason = BrowserActionWaitingReason.UNSPECIFIED; + /** + * Whether the user rejected to execute the JavaScript (if the auto run + * decision was not to auto run). + * + * @generated from field: bool user_rejected = 4; + */ + userRejected = false; + /** + * @generated from field: exa.codeium_common_pb.ImageData screenshot_end = 5 [deprecated = true]; + * @deprecated + */ + screenshotEnd; + /** + * Screenshot of the page after executing the JavaScript. + * + * @generated from field: exa.codeium_common_pb.Media media_screenshot_end = 12; + */ + mediaScreenshotEnd; + /** + * Metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 6; + */ + pageMetadata; + /** + * How long it took to execute the JavaScript. + * + * @generated from field: uint64 execution_duration_ms = 7; + */ + executionDurationMs = protoInt64.zero; + /** + * Result of the JavaScript execution. + * + * @generated from field: string javascript_result = 8; + */ + javascriptResult = ''; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 11; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepExecuteBrowserJavaScript'; + static fields = proto3.util.newFieldList(() => [ + { + no: 9, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'javascript_source', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'javascript_description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 10, + name: 'should_auto_run', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 13, + name: 'waiting_reason', + kind: 'enum', + T: proto3.getEnumType(BrowserActionWaitingReason), + }, + { + no: 4, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 5, name: 'screenshot_end', kind: 'message', T: ImageData }, + { no: 12, name: 'media_screenshot_end', kind: 'message', T: Media }, + { no: 6, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 7, + name: 'execution_duration_ms', + kind: 'scalar', + T: 4, + /* ScalarType.UINT64 */ + }, + { + no: 8, + name: 'javascript_result', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 11, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepExecuteBrowserJavaScript().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepExecuteBrowserJavaScript().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CortexStepExecuteBrowserJavaScript().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepExecuteBrowserJavaScript, a, b); + } +}; +var CortexStepReadBrowserPage = class _CortexStepReadBrowserPage extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * The web document captured from the opened page. + * + * @generated from field: exa.codeium_common_pb.KnowledgeBaseItem web_document = 2; + */ + webDocument; + /** + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 3; + */ + pageMetadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepReadBrowserPage'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'web_document', kind: 'message', T: KnowledgeBaseItem }, + { no: 3, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepReadBrowserPage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepReadBrowserPage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepReadBrowserPage().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepReadBrowserPage, a, b); + } +}; +var CortexStepBrowserGetDom = class _CortexStepBrowserGetDom extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * The DOM tree of the page. + * + * @generated from field: exa.codeium_common_pb.DOMTree dom_tree = 2 [deprecated = true]; + * @deprecated + */ + domTree; + /** + * The serialized DOM tree of the page. + * + * @generated from field: string serialized_dom_tree = 3 [deprecated = true]; + * @deprecated + */ + serializedDomTree = ''; + /** + * The URI of a txt file storing the serialized DOM tree of the page. + * + * @generated from field: string serialized_dom_tree_uri = 5; + */ + serializedDomTreeUri = ''; + /** + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 4; + */ + pageMetadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserGetDom'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'dom_tree', kind: 'message', T: DOMTree }, + { + no: 3, + name: 'serialized_dom_tree', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'serialized_dom_tree_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 4, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserGetDom().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserGetDom().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserGetDom().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserGetDom, a, b); + } +}; +var CortexStepListBrowserPages = class _CortexStepListBrowserPages extends Message { + /** + * Outputs + * + * @generated from field: repeated exa.codeium_common_pb.BrowserPageMetadata pages = 1; + */ + pages = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepListBrowserPages'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'pages', + kind: 'message', + T: BrowserPageMetadata, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepListBrowserPages().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepListBrowserPages().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepListBrowserPages().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepListBrowserPages, a, b); + } +}; +var CortexStepCaptureBrowserScreenshot = class _CortexStepCaptureBrowserScreenshot extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * Whether to save the screenshot as an artifact. + * + * @generated from field: bool save_screenshot = 7; + */ + saveScreenshot = false; + /** + * Name of the screenshot file (without extension) when saving as artifact. + * + * @generated from field: string screenshot_name = 10; + */ + screenshotName = ''; + /** + * Whether to capture a screenshot of a specific element by index. + * + * @generated from field: bool capture_by_element_index = 8; + */ + captureByElementIndex = false; + /** + * The index of the element to capture (required if capture_by_element_index + * is true). + * + * @generated from field: int32 element_index = 9; + */ + elementIndex = 0; + /** + * Whether to capture more of the screen beyond the viewport (max height is + * 4000 pixels). + * + * @generated from field: bool capture_beyond_viewport = 12; + */ + captureBeyondViewport = false; + /** + * Whether the user rejected to take the screenshot (if the auto run decision + * was not to auto run). + * + * @generated from field: bool user_rejected = 2; + */ + userRejected = false; + /** + * Deprecated use media_screenshot + * + * @generated from field: exa.codeium_common_pb.ImageData screenshot = 3 [deprecated = true]; + * @deprecated + */ + screenshot; + /** + * The screenshot of the viewport. + * + * @generated from field: exa.codeium_common_pb.Media media_screenshot = 11; + */ + mediaScreenshot; + /** + * The captured screenshot viewport. + * + * @generated from field: exa.codeium_common_pb.Viewport screenshot_viewport = 13; + */ + screenshotViewport; + /** + * Metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 4; + */ + pageMetadata; + /** + * The decision for whether to auto capture the screenshot in the Browser. + * + * @generated from field: exa.cortex_pb.AutoRunDecision auto_run_decision = 5; + */ + autoRunDecision = AutoRunDecision.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCaptureBrowserScreenshot'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'save_screenshot', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 10, + name: 'screenshot_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'capture_by_element_index', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 9, + name: 'element_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 12, + name: 'capture_beyond_viewport', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 3, name: 'screenshot', kind: 'message', T: ImageData }, + { no: 11, name: 'media_screenshot', kind: 'message', T: Media }, + { no: 13, name: 'screenshot_viewport', kind: 'message', T: Viewport }, + { no: 4, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 5, + name: 'auto_run_decision', + kind: 'enum', + T: proto3.getEnumType(AutoRunDecision), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCaptureBrowserScreenshot().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCaptureBrowserScreenshot().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCaptureBrowserScreenshot().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCaptureBrowserScreenshot, a, b); + } +}; +var CortexStepClickBrowserPixel = class _CortexStepClickBrowserPixel extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * Coordinates within the viewport. + * + * X coordinate of the pixel to click + * + * @generated from field: int32 x = 2; + */ + x = 0; + /** + * Y coordinate of the pixel to click + * + * @generated from field: int32 y = 3; + */ + y = 0; + /** + * Optional click type (ex. left, right, double). Defaults to left click if + * not specified. + * + * @generated from field: exa.browser_pb.ClickType click_type = 7; + */ + clickType = ClickType.UNSPECIFIED; + /** + * Whether the user rejected to click (if the auto run decision was not to + * auto run). + * + * @generated from field: bool user_rejected = 4; + */ + userRejected = false; + /** + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 5; + */ + pageMetadata; + /** + * Screenshot of the page after clicking the pixel. Might not be populated, + * depends on CascadeConfig + * + * @generated from field: optional exa.codeium_common_pb.Media screenshot_with_click_feedback = 6; + */ + screenshotWithClickFeedback; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 8; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepClickBrowserPixel'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'x', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'y', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 7, + name: 'click_type', + kind: 'enum', + T: proto3.getEnumType(ClickType), + }, + { + no: 4, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 5, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 6, + name: 'screenshot_with_click_feedback', + kind: 'message', + T: Media, + opt: true, + }, + { + no: 8, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepClickBrowserPixel().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepClickBrowserPixel().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepClickBrowserPixel().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepClickBrowserPixel, a, b); + } +}; +var CortexStepAddAnnotation = class _CortexStepAddAnnotation extends Message { + /** + * Inputs + * + * @generated from field: exa.codeium_common_pb.CodeAnnotation annotation = 1; + */ + annotation; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepAddAnnotation'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'annotation', kind: 'message', T: CodeAnnotation }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepAddAnnotation().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepAddAnnotation().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepAddAnnotation().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepAddAnnotation, a, b); + } +}; +var CortexStepCaptureBrowserConsoleLogs = class _CortexStepCaptureBrowserConsoleLogs extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * Metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 2; + */ + pageMetadata; + /** + * The console logs. + * + * @generated from field: exa.codeium_common_pb.ConsoleLogScopeItem console_logs = 3; + */ + consoleLogs; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCaptureBrowserConsoleLogs'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { no: 3, name: 'console_logs', kind: 'message', T: ConsoleLogScopeItem }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCaptureBrowserConsoleLogs().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CortexStepCaptureBrowserConsoleLogs().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCaptureBrowserConsoleLogs().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCaptureBrowserConsoleLogs, a, b); + } +}; +var CascadePanelState = class _CascadePanelState extends Message { + /** + * @generated from field: exa.codeium_common_pb.PlanStatus plan_status = 1; + */ + planStatus; + /** + * @generated from field: exa.codeium_common_pb.UserSettings user_settings = 2; + */ + userSettings; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CascadePanelState'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'plan_status', kind: 'message', T: PlanStatus }, + { no: 2, name: 'user_settings', kind: 'message', T: UserSettings }, + ]); + static fromBinary(bytes, options) { + return new _CascadePanelState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CascadePanelState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CascadePanelState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CascadePanelState, a, b); + } +}; +var CortexStepCommandStatus = class _CortexStepCommandStatus extends Message { + /** + * Input + * + * @generated from field: string command_id = 1; + */ + commandId = ''; + /** + * @generated from field: uint32 output_character_count = 8; + */ + outputCharacterCount = 0; + /** + * Number of seconds to wait for command completion. + * + * @generated from field: uint32 wait_duration_seconds = 10; + */ + waitDurationSeconds = 0; + /** + * Output + * + * @generated from field: exa.cortex_pb.CortexStepStatus status = 2; + */ + status = CortexStepStatus.UNSPECIFIED; + /** + * Full output of the command at this point. Note that for very large outputs, + * this may be truncated. + * + * @generated from field: string combined = 9; + */ + combined = ''; + /** + * Delta output since previous CommandStatus. Note that for very large + * outputs, this may be truncated. Will be unset if no previous command status + * to compare to. + * + * @generated from field: optional string delta = 12; + */ + delta; + /** + * Will be unset if the exit code cannot be determined. + * + * @generated from field: optional int32 exit_code = 5; + */ + exitCode; + /** + * @generated from field: exa.cortex_pb.CortexErrorDetails error = 6; + */ + error; + /** + * Number of seconds waited. + * + * @generated from field: uint32 waited_duration_seconds = 11; + */ + waitedDurationSeconds = 0; + /** + * Deprecated fields. + * + * @generated from field: string stdout = 3 [deprecated = true]; + * @deprecated + */ + stdout = ''; + /** + * @generated from field: string stderr = 4 [deprecated = true]; + * @deprecated + */ + stderr = ''; + /** + * @generated from field: exa.cortex_pb.CommandOutputPriority output_priority = 7 [deprecated = true]; + * @deprecated + */ + outputPriority = CommandOutputPriority.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCommandStatus'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'command_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'output_character_count', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 10, + name: 'wait_duration_seconds', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(CortexStepStatus), + }, + { + no: 9, + name: 'combined', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 12, name: 'delta', kind: 'scalar', T: 9, opt: true }, + { no: 5, name: 'exit_code', kind: 'scalar', T: 5, opt: true }, + { no: 6, name: 'error', kind: 'message', T: CortexErrorDetails }, + { + no: 11, + name: 'waited_duration_seconds', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'stdout', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'stderr', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'output_priority', + kind: 'enum', + T: proto3.getEnumType(CommandOutputPriority), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCommandStatus().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCommandStatus().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCommandStatus().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCommandStatus, a, b); + } +}; +var CortexMemory = class _CortexMemory extends Message { + /** + * @generated from field: string memory_id = 1; + */ + memoryId = ''; + /** + * A short title for the memory, only used when Cascade generates memories + * + * @generated from field: string title = 6; + */ + title = ''; + /** + * @generated from field: exa.cortex_pb.CortexMemoryMetadata metadata = 2; + */ + metadata; + /** + * Whether the memory is generated by a user or cascade + * + * @generated from field: exa.cortex_pb.CortexMemorySource source = 3; + */ + source = CortexMemorySource.UNSPECIFIED; + /** + * Global scope vs. Local (workspace) scope + * + * @generated from field: exa.cortex_pb.CortexMemoryScope scope = 4; + */ + scope; + /** + * @generated from oneof exa.cortex_pb.CortexMemory.memory + */ + memory = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexMemory'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'memory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'metadata', kind: 'message', T: CortexMemoryMetadata }, + { + no: 3, + name: 'source', + kind: 'enum', + T: proto3.getEnumType(CortexMemorySource), + }, + { no: 4, name: 'scope', kind: 'message', T: CortexMemoryScope }, + { + no: 5, + name: 'text_memory', + kind: 'message', + T: CortexMemoryText, + oneof: 'memory', + }, + ]); + static fromBinary(bytes, options) { + return new _CortexMemory().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexMemory().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexMemory().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexMemory, a, b); + } +}; +var CortexMemoryMetadata = class _CortexMemoryMetadata extends Message { + /** + * @generated from field: google.protobuf.Timestamp created_at = 1; + */ + createdAt; + /** + * last time the memory was modified + * + * @generated from field: google.protobuf.Timestamp last_modified = 2; + */ + lastModified; + /** + * last time the memory was retrieved + * + * @generated from field: google.protobuf.Timestamp last_accessed = 3; + */ + lastAccessed; + /** + * @generated from field: repeated string tags = 4; + */ + tags = []; + /** + * Whether the memory was triggered by a user action + * Only relevant for Cascade generated memories + * + * @generated from field: bool user_triggered = 5; + */ + userTriggered = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexMemoryMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'created_at', kind: 'message', T: Timestamp }, + { no: 2, name: 'last_modified', kind: 'message', T: Timestamp }, + { no: 3, name: 'last_accessed', kind: 'message', T: Timestamp }, + { no: 4, name: 'tags', kind: 'scalar', T: 9, repeated: true }, + { + no: 5, + name: 'user_triggered', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexMemoryMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexMemoryMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexMemoryMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexMemoryMetadata, a, b); + } +}; +var CortexMemoryText = class _CortexMemoryText extends Message { + /** + * @generated from field: string content = 1; + */ + content = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexMemoryText'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexMemoryText().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexMemoryText().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexMemoryText().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexMemoryText, a, b); + } +}; +var CortexMemoryScope = class _CortexMemoryScope extends Message { + /** + * @generated from oneof exa.cortex_pb.CortexMemoryScope.scope + */ + scope = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexMemoryScope'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'global_scope', + kind: 'message', + T: CortexMemoryGlobalScope, + oneof: 'scope', + }, + { + no: 2, + name: 'local_scope', + kind: 'message', + T: CortexMemoryLocalScope, + oneof: 'scope', + }, + { + no: 3, + name: 'all_scope', + kind: 'message', + T: CortexMemoryAllScope, + oneof: 'scope', + }, + { + no: 4, + name: 'project_scope', + kind: 'message', + T: CortexMemoryProjectScope, + oneof: 'scope', + }, + ]); + static fromBinary(bytes, options) { + return new _CortexMemoryScope().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexMemoryScope().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexMemoryScope().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexMemoryScope, a, b); + } +}; +var CortexMemoryGlobalScope = class _CortexMemoryGlobalScope extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexMemoryGlobalScope'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CortexMemoryGlobalScope().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexMemoryGlobalScope().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexMemoryGlobalScope().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexMemoryGlobalScope, a, b); + } +}; +var CortexMemoryLocalScope = class _CortexMemoryLocalScope extends Message { + /** + * @generated from field: repeated string corpus_names = 2; + */ + corpusNames = []; + /** + * only used by user-defined local rules + * + * @generated from field: repeated string base_dir_uris = 3; + */ + baseDirUris = []; + /** + * deprecated + * + * @generated from field: string repo_base_dir_uri = 1 [deprecated = true]; + * @deprecated + */ + repoBaseDirUri = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexMemoryLocalScope'; + static fields = proto3.util.newFieldList(() => [ + { no: 2, name: 'corpus_names', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'base_dir_uris', kind: 'scalar', T: 9, repeated: true }, + { + no: 1, + name: 'repo_base_dir_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexMemoryLocalScope().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexMemoryLocalScope().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexMemoryLocalScope().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexMemoryLocalScope, a, b); + } +}; +var CortexMemoryAllScope = class _CortexMemoryAllScope extends Message { + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexMemoryAllScope'; + static fields = proto3.util.newFieldList(() => []); + static fromBinary(bytes, options) { + return new _CortexMemoryAllScope().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexMemoryAllScope().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexMemoryAllScope().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexMemoryAllScope, a, b); + } +}; +var CortexMemoryProjectScope = class _CortexMemoryProjectScope extends Message { + /** + * @generated from field: string file_path = 1; + */ + filePath = ''; + /** + * @generated from field: string absolute_file_path = 7; + */ + absoluteFilePath = ''; + /** + * @generated from field: repeated string base_dir_uris = 2; + */ + baseDirUris = []; + /** + * @generated from field: repeated string corpus_names = 3; + */ + corpusNames = []; + /** + * @generated from field: exa.cortex_pb.CortexMemoryTrigger trigger = 4; + */ + trigger = CortexMemoryTrigger.UNSPECIFIED; + /** + * @generated from field: string description = 5; + */ + description = ''; + /** + * @generated from field: repeated string globs = 6; + */ + globs = []; + /** + * To determine which memories to show first, higher priority = show earlier + * + * @generated from field: int32 priority = 8; + */ + priority = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexMemoryProjectScope'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'file_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'absolute_file_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'base_dir_uris', kind: 'scalar', T: 9, repeated: true }, + { no: 3, name: 'corpus_names', kind: 'scalar', T: 9, repeated: true }, + { + no: 4, + name: 'trigger', + kind: 'enum', + T: proto3.getEnumType(CortexMemoryTrigger), + }, + { + no: 5, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 6, name: 'globs', kind: 'scalar', T: 9, repeated: true }, + { + no: 8, + name: 'priority', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexMemoryProjectScope().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexMemoryProjectScope().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexMemoryProjectScope().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexMemoryProjectScope, a, b); + } +}; +var CortexStepMemory = class _CortexStepMemory extends Message { + /** + * Inputs + * Memory id being updated. Empty string for new memory. + * + * @generated from field: string memory_id = 1; + */ + memoryId = ''; + /** + * Updated version of the memory, nil if deleted. + * + * @generated from field: exa.cortex_pb.CortexMemory memory = 2; + */ + memory; + /** + * The previous state of the memory, if it was deleted or updated. + * Only populated if the memory action was DELETE or UPDATE. + * + * @generated from field: exa.cortex_pb.CortexMemory prev_memory = 4; + */ + prevMemory; + /** + * Action to take on the memory. + * + * @generated from field: exa.cortex_pb.MemoryActionType action = 3; + */ + action = MemoryActionType.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepMemory'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'memory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'memory', kind: 'message', T: CortexMemory }, + { no: 4, name: 'prev_memory', kind: 'message', T: CortexMemory }, + { + no: 3, + name: 'action', + kind: 'enum', + T: proto3.getEnumType(MemoryActionType), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepMemory().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepMemory().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepMemory().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepMemory, a, b); + } +}; +var CortexStepRetrieveMemory = class _CortexStepRetrieveMemory extends Message { + /** + * INPUTS + * Run the subagent that retrieves relevant memories + * + * @generated from field: bool run_subagent = 1; + */ + runSubagent = false; + /** + * automatically append user memories to the retrieved memories + * + * @generated from field: bool add_user_memories = 8; + */ + addUserMemories = false; + /** + * OUTPUTS + * A summary of retrieved Cascade memories to show to Cascade + * + * @generated from field: string cascade_memory_summary = 2; + */ + cascadeMemorySummary = ''; + /** + * A summary of User memories to show Cascade + * + * @generated from field: string user_memory_summary = 3; + */ + userMemorySummary = ''; + /** + * The reason why these memories were retrieved + * + * @generated from field: string reason = 4; + */ + reason = ''; + /** + * Add the reason into the chat conversation. + * + * @generated from field: bool show_reason = 5; + */ + showReason = false; + /** + * Memories that are retrieved during this step + * + * @generated from field: repeated exa.cortex_pb.CortexMemory retrieved_memories = 6; + */ + retrievedMemories = []; + /** + * Deprecated + * + * @generated from field: bool blocking = 7 [deprecated = true]; + * @deprecated + */ + blocking = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepRetrieveMemory'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'run_subagent', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 8, + name: 'add_user_memories', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 2, + name: 'cascade_memory_summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'user_memory_summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'reason', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'show_reason', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'retrieved_memories', + kind: 'message', + T: CortexMemory, + repeated: true, + }, + { + no: 7, + name: 'blocking', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepRetrieveMemory().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepRetrieveMemory().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepRetrieveMemory().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepRetrieveMemory, a, b); + } +}; +var MemoryConfig = class _MemoryConfig extends Message { + /** + * Model used by the subagent to retrieve memories + * + * @generated from field: exa.codeium_common_pb.Model memory_model = 1; + */ + memoryModel = Model.UNSPECIFIED; + /** + * Number of checkpoints to include in the chat conversation + * used to provide context for memory retrieval + * + * @generated from field: uint32 num_checkpoints_for_context = 5; + */ + numCheckpointsForContext = 0; + /** + * The memory subagent will consider the num_memories_to_consider + * most recently accessed Cascade memories (global + local), when + * selecting which ones to present to the main agent. + * Set to -1 to consider all memories + * + * @generated from field: int32 num_memories_to_consider = 3; + */ + numMemoriesToConsider = 0; + /** + * Max number of global Cascade memories that can be stored on disk + * Set to -1 to not limit the number of global Cascade memories + * + * @generated from field: int32 max_global_cascade_memories = 4; + */ + maxGlobalCascadeMemories = 0; + /** + * If true, condenses input trajectory to a single user message, instead of + * representing as a whole conversation. + * + * @generated from field: optional bool condense_input_trajectory = 6; + */ + condenseInputTrajectory; + /** + * Inject user memories into the system prompt, but not Cascade's memories + * + * @generated from field: optional bool add_user_memories_to_system_prompt = 7; + */ + addUserMemoriesToSystemPrompt; + /** + * Deprecated + * The MemoryToolConfig's ForceDisable is now the global control for memories + * + * @generated from field: optional bool enabled = 2 [deprecated = true]; + * @deprecated + */ + enabled; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.MemoryConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'memory_model', kind: 'enum', T: proto3.getEnumType(Model) }, + { + no: 5, + name: 'num_checkpoints_for_context', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'num_memories_to_consider', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'max_global_cascade_memories', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'condense_input_trajectory', + kind: 'scalar', + T: 8, + opt: true, + }, + { + no: 7, + name: 'add_user_memories_to_system_prompt', + kind: 'scalar', + T: 8, + opt: true, + }, + { no: 2, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _MemoryConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _MemoryConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _MemoryConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_MemoryConfig, a, b); + } +}; +var ViewedFileTrackerConfig = class _ViewedFileTrackerConfig extends Message { + /** + * WARNING(nmoy): These can only be set to 0 by experiment config if they are + * optional. For now only max_steps_per_checkpoint is optional. + * + * @generated from field: optional uint32 max_steps_per_checkpoint = 1; + */ + maxStepsPerCheckpoint; + /** + * @generated from field: uint32 max_files_in_prompt = 2; + */ + maxFilesInPrompt = 0; + /** + * @generated from field: uint32 max_lines_per_file_in_prompt = 3; + */ + maxLinesPerFileInPrompt = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ViewedFileTrackerConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_steps_per_checkpoint', + kind: 'scalar', + T: 13, + opt: true, + }, + { + no: 2, + name: 'max_files_in_prompt', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'max_lines_per_file_in_prompt', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ViewedFileTrackerConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ViewedFileTrackerConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ViewedFileTrackerConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ViewedFileTrackerConfig, a, b); + } +}; +var CodeStepCreationOptions = class _CodeStepCreationOptions extends Message { + /** + * @generated from field: int64 diff_block_separation_threshold = 1; + */ + diffBlockSeparationThreshold = protoInt64.zero; + /** + * @generated from field: bool handle_deletions = 2; + */ + handleDeletions = false; + /** + * @generated from field: bool handle_creations = 3; + */ + handleCreations = false; + /** + * @generated from field: optional bool include_original_content = 4; + */ + includeOriginalContent; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodeStepCreationOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'diff_block_separation_threshold', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + { + no: 2, + name: 'handle_deletions', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'handle_creations', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'include_original_content', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CodeStepCreationOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeStepCreationOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeStepCreationOptions().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeStepCreationOptions, a, b); + } +}; +var BrainUpdateStepCreationOptions = class _BrainUpdateStepCreationOptions extends Message { + /** + * @generated from field: string entry_id_prefix = 1; + */ + entryIdPrefix = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrainUpdateStepCreationOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'entry_id_prefix', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrainUpdateStepCreationOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrainUpdateStepCreationOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrainUpdateStepCreationOptions().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_BrainUpdateStepCreationOptions, a, b); + } +}; +var ViewFileStepCreationOptions = class _ViewFileStepCreationOptions extends Message { + /** + * @generated from field: bool condition_on_edit_step = 1; + */ + conditionOnEditStep = false; + /** + * @generated from field: optional bool include_raw_content = 2; + */ + includeRawContent; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ViewFileStepCreationOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'condition_on_edit_step', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 2, name: 'include_raw_content', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _ViewFileStepCreationOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ViewFileStepCreationOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ViewFileStepCreationOptions().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ViewFileStepCreationOptions, a, b); + } +}; +var UserGrepStepCreationOptions = class _UserGrepStepCreationOptions extends Message { + /** + * @generated from field: uint32 num_search_events = 1; + */ + numSearchEvents = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.UserGrepStepCreationOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'num_search_events', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _UserGrepStepCreationOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _UserGrepStepCreationOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _UserGrepStepCreationOptions().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_UserGrepStepCreationOptions, a, b); + } +}; +var RunCommandStepCreationOptions = class _RunCommandStepCreationOptions extends Message { + /** + * Maximum number of commands to consider. + * + * @generated from field: uint32 max_commands = 1; + */ + maxCommands = 0; + /** + * Maximum age of a command to consider. + * + * @generated from field: google.protobuf.Duration max_command_age = 2; + */ + maxCommandAge; + /** + * Maximum bytes of output to keep per command. + * + * @generated from field: uint32 per_command_max_bytes_output = 3; + */ + perCommandMaxBytesOutput = 0; + /** + * Maximum total bytes of output to keep across all commands. + * + * @generated from field: uint32 total_max_bytes_output = 4; + */ + totalMaxBytesOutput = 0; + /** + * Whether to include commands that are still running. + * + * @generated from field: optional bool include_running = 5; + */ + includeRunning; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.RunCommandStepCreationOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_commands', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 2, name: 'max_command_age', kind: 'message', T: Duration }, + { + no: 3, + name: 'per_command_max_bytes_output', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'total_max_bytes_output', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { no: 5, name: 'include_running', kind: 'scalar', T: 8, opt: true }, + ]); + static fromBinary(bytes, options) { + return new _RunCommandStepCreationOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RunCommandStepCreationOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RunCommandStepCreationOptions().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_RunCommandStepCreationOptions, a, b); + } +}; +var LintDiffStepCreationOptions = class _LintDiffStepCreationOptions extends Message { + /** + * Maximum number of lint changes to add to trajectory at once + * + * @generated from field: uint32 max_lint_inserts = 1; + */ + maxLintInserts = 0; + /** + * Minimum time a lint should exist before adding to trajectory, in ms + * + * @generated from field: uint32 min_required_lint_duration = 2; + */ + minRequiredLintDuration = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.LintDiffStepCreationOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_lint_inserts', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'min_required_lint_duration', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _LintDiffStepCreationOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _LintDiffStepCreationOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _LintDiffStepCreationOptions().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_LintDiffStepCreationOptions, a, b); + } +}; +var BrowserStepCreationOptions = class _BrowserStepCreationOptions extends Message { + /** + * Maximum number of browser interactions to consider. + * + * @generated from field: uint32 max_browser_interactions = 1; + */ + maxBrowserInteractions = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.BrowserStepCreationOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_browser_interactions', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _BrowserStepCreationOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _BrowserStepCreationOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _BrowserStepCreationOptions().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_BrowserStepCreationOptions, a, b); + } +}; +var SnapshotToStepsOptions = class _SnapshotToStepsOptions extends Message { + /** + * @generated from field: exa.cortex_pb.CodeStepCreationOptions code_step_creation_options = 1; + */ + codeStepCreationOptions; + /** + * @generated from field: exa.cortex_pb.ViewFileStepCreationOptions view_file_step_creation_options = 2; + */ + viewFileStepCreationOptions; + /** + * @generated from field: exa.cortex_pb.ViewedFileTrackerConfig viewed_file_tracker_config = 3; + */ + viewedFileTrackerConfig; + /** + * Note: because of how proto merge handles repeated fields, this can never be + * overwritten by an experiment override -- only appended. + * + * @generated from field: repeated exa.cortex_pb.CortexStepType step_type_allow_list = 4; + */ + stepTypeAllowList = []; + /** + * @generated from field: exa.cortex_pb.UserGrepStepCreationOptions user_grep_step_creation_options = 5; + */ + userGrepStepCreationOptions; + /** + * @generated from field: exa.cortex_pb.RunCommandStepCreationOptions run_command_step_creation_options = 6; + */ + runCommandStepCreationOptions; + /** + * @generated from field: exa.cortex_pb.LintDiffStepCreationOptions lint_diff_step_creation_options = 7; + */ + lintDiffStepCreationOptions; + /** + * @generated from field: exa.cortex_pb.BrowserStepCreationOptions browser_step_creation_options = 9; + */ + browserStepCreationOptions; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.SnapshotToStepsOptions'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'code_step_creation_options', + kind: 'message', + T: CodeStepCreationOptions, + }, + { + no: 2, + name: 'view_file_step_creation_options', + kind: 'message', + T: ViewFileStepCreationOptions, + }, + { + no: 3, + name: 'viewed_file_tracker_config', + kind: 'message', + T: ViewedFileTrackerConfig, + }, + { + no: 4, + name: 'step_type_allow_list', + kind: 'enum', + T: proto3.getEnumType(CortexStepType), + repeated: true, + }, + { + no: 5, + name: 'user_grep_step_creation_options', + kind: 'message', + T: UserGrepStepCreationOptions, + }, + { + no: 6, + name: 'run_command_step_creation_options', + kind: 'message', + T: RunCommandStepCreationOptions, + }, + { + no: 7, + name: 'lint_diff_step_creation_options', + kind: 'message', + T: LintDiffStepCreationOptions, + }, + { + no: 9, + name: 'browser_step_creation_options', + kind: 'message', + T: BrowserStepCreationOptions, + }, + ]); + static fromBinary(bytes, options) { + return new _SnapshotToStepsOptions().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _SnapshotToStepsOptions().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _SnapshotToStepsOptions().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_SnapshotToStepsOptions, a, b); + } +}; +var CortexStepPostPrReview = class _CortexStepPostPrReview extends Message { + /** + * The comment body + * + * @generated from field: string body = 1; + */ + body = ''; + /** + * The SHA of the commit needing a comment + * + * @generated from field: string commit_id = 2; + */ + commitId = ''; + /** + * The relative path to the file that necessitates a comment + * + * @generated from field: string path = 3; + */ + path = ''; + /** + * The side of the diff that the PR's changes appear on + * + * @generated from field: string side = 4; + */ + side = ''; + /** + * The first line in the PR diff that a multi-line comment applies to. + * + * @generated from field: int32 start_line = 5; + */ + startLine = 0; + /** + * The line, or the last line of the blob if multi-line, of the blob in PR + * diff that the comment applies to. + * + * @generated from field: int32 end_line = 6; + */ + endLine = 0; + /** + * The category of the comment. We set to "negative" during eval to flag + * negative comments. + * + * @generated from field: string category = 7; + */ + category = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepPostPrReview'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'body', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'commit_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'side', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'start_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'end_line', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 7, + name: 'category', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepPostPrReview().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepPostPrReview().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepPostPrReview().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepPostPrReview, a, b); + } +}; +var McpServerSpec = class _McpServerSpec extends Message { + /** + * @generated from field: string server_name = 1; + */ + serverName = ''; + /** + * @generated from field: string command = 2; + */ + command = ''; + /** + * @generated from field: repeated string args = 3; + */ + args = []; + /** + * @generated from field: map env = 4; + */ + env = {}; + /** + * URL of the server for SSE. Ignores command, args, env if provided. + * + * @generated from field: string server_url = 6; + */ + serverUrl = ''; + /** + * @generated from field: bool disabled = 7; + */ + disabled = false; + /** + * The tools available to the model include enabled tools (or all tools if no + * enabled tools are specified) minus disabled tools. + * + * @generated from field: repeated string disabled_tools = 8; + */ + disabledTools = []; + /** + * @generated from field: repeated string enabled_tools = 10; + */ + enabledTools = []; + /** + * @generated from field: map headers = 9; + */ + headers = {}; + /** + * Server's index in config when sorted by server_name + * + * @generated from field: uint32 server_index = 5 [deprecated = true]; + * @deprecated + */ + serverIndex = 0; + /** + * If true, tool names will not be prefixed with mcp_{server_name}_ + * This allows MCP tools to appear as native tools. + * + * @generated from field: bool skip_tool_name_prefix = 11; + */ + skipToolNamePrefix = false; + /** + * If true, tool descriptions will not be prefixed with + * "This is a tool from the {server_name} MCP server." + * + * @generated from field: bool skip_tool_description_prefix = 12; + */ + skipToolDescriptionPrefix = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.McpServerSpec'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'server_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'command', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'args', kind: 'scalar', T: 9, repeated: true }, + { + no: 4, + name: 'env', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { no: 15, name: 'fast_apply_fallback_info', kind: 'message', T: Vs }, - { - no: 16, - name: 'target_file_has_carriage_returns', - kind: 'scalar', - T: 8, - }, - { - no: 17, - name: 'target_file_has_all_carriage_returns', - kind: 'scalar', - T: 8, - }, - { - no: 18, - name: 'introduced_errors', - kind: 'message', - T: Wa, - repeated: !0, - }, - { no: 19, name: 'triggered_memories', kind: 'scalar', T: 9 }, - { no: 21, name: 'is_artifact_file', kind: 'scalar', T: 8 }, - { no: 22, name: 'artifact_version', kind: 'scalar', T: 5 }, - { no: 23, name: 'artifact_metadata', kind: 'message', T: jr }, - { no: 24, name: 'is_knowledge_file', kind: 'scalar', T: 8 }, - { no: 25, name: 'file_permission_request', kind: 'message', T: sn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ks = class e extends r { - absolutePathUri = ''; - fileChangeType = Na.UNSPECIFIED; - replacementChunks = []; - instruction = ''; - diff; - replacementInfos = []; - fastApplyFallbackInfo; - overwrite = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepFileChange'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'file_change_type', kind: 'enum', T: a.getEnumType(Na) }, - { - no: 3, - name: 'replacement_chunks', - kind: 'message', - T: Ne, - repeated: !0, - }, - { no: 5, name: 'instruction', kind: 'scalar', T: 9 }, - { no: 4, name: 'diff', kind: 'message', T: an }, - { - no: 6, - name: 'replacement_infos', - kind: 'message', - T: Ws, - repeated: !0, - }, - { no: 7, name: 'fast_apply_fallback_info', kind: 'message', T: Vs }, - { no: 8, name: 'overwrite', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vs = class e extends r { - srcAbsolutePathUri = ''; - dstAbsolutePathUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepMove'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'src_absolute_path_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'dst_absolute_path_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zs = class e extends r { - content = ''; - media = []; - triggeredHeuristics = []; - attachments = []; - domTreeUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepEphemeralMessage'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - { no: 2, name: 'media', kind: 'message', T: C, repeated: !0 }, - { - no: 3, - name: 'triggered_heuristics', + }, + { + no: 6, + name: 'server_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'disabled', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 8, name: 'disabled_tools', kind: 'scalar', T: 9, repeated: true }, + { no: 10, name: 'enabled_tools', kind: 'scalar', T: 9, repeated: true }, + { + no: 9, + name: 'headers', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { no: 4, name: 'attachments', kind: 'message', T: C, repeated: !0 }, - { no: 5, name: 'dom_tree_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - js = class e extends r { - content = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepConversationHistory'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Qs = class e extends r { - content = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepKnowledgeArtifacts'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zs = class e extends r { - actionSpec; - actionResult; - codeInstruction = ''; - markdownLanguage = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepProposeCode'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'action_spec', kind: 'message', T: ba }, - { no: 2, name: 'action_result', kind: 'message', T: Se }, - { no: 3, name: 'code_instruction', kind: 'scalar', T: 9 }, - { no: 4, name: 'markdown_language', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $s = class e extends r { - input; - commitMessage = ''; - commitHash = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepGitCommit'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'input', kind: 'message', T: An }, - { no: 2, name: 'commit_message', kind: 'scalar', T: 9 }, - { no: 3, name: 'commit_hash', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ad = class e extends r { - relativePath = ''; - lineNumber = 0; - content = ''; - absolutePath = ''; - cci; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.GrepSearchResult'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'relative_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'line_number', kind: 'scalar', T: 13 }, - { no: 3, name: 'content', kind: 'scalar', T: 9 }, - { no: 4, name: 'absolute_path', kind: 'scalar', T: 9 }, - { no: 5, name: 'cci', kind: 'message', T: I }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - BI = class e extends r { - numSamplesPerCommit = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.DiffBasedCommandEvalConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'num_samples_per_commit', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ni = class e extends r { - searchPathUri = ''; - query = ''; - matchPerLine = !1; - includes = []; - caseInsensitive = !1; - allowAccessGitignore = !1; - isRegex = !1; - results = []; - totalResults = 0; - rawOutput = ''; - commandRun = ''; - noFilesSearched = !1; - timedOut = !1; - filePermissionRequest; - grepError = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepGrepSearch'; - static fields = a.util.newFieldList(() => [ - { no: 11, name: 'search_path_uri', kind: 'scalar', T: 9 }, - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 8, name: 'match_per_line', kind: 'scalar', T: 8 }, - { no: 2, name: 'includes', kind: 'scalar', T: 9, repeated: !0 }, - { no: 9, name: 'case_insensitive', kind: 'scalar', T: 8 }, - { no: 13, name: 'allow_access_gitignore', kind: 'scalar', T: 8 }, - { no: 14, name: 'is_regex', kind: 'scalar', T: 8 }, - { no: 4, name: 'results', kind: 'message', T: Ad, repeated: !0 }, - { no: 7, name: 'total_results', kind: 'scalar', T: 13 }, - { no: 3, name: 'raw_output', kind: 'scalar', T: 9 }, - { no: 10, name: 'command_run', kind: 'scalar', T: 9 }, - { no: 12, name: 'no_files_searched', kind: 'scalar', T: 8 }, - { no: 15, name: 'timed_out', kind: 'scalar', T: 8 }, - { no: 16, name: 'file_permission_request', kind: 'message', T: sn }, - { no: 5, name: 'grep_error', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ei = class e extends r { - searchDirectory = ''; - pattern = ''; - excludes = []; - type = Sa.UNSPECIFIED; - maxDepth = 0; - extensions = []; - fullPath = !1; - truncatedOutput = ''; - truncatedTotalResults = 0; - totalResults = 0; - rawOutput = ''; - commandRun = ''; - includes = []; - findError = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepFind'; - static fields = a.util.newFieldList(() => [ - { no: 10, name: 'search_directory', kind: 'scalar', T: 9 }, - { no: 1, name: 'pattern', kind: 'scalar', T: 9 }, - { no: 3, name: 'excludes', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'type', kind: 'enum', T: a.getEnumType(Sa) }, - { no: 5, name: 'max_depth', kind: 'scalar', T: 5 }, - { no: 12, name: 'extensions', kind: 'scalar', T: 9, repeated: !0 }, - { no: 13, name: 'full_path', kind: 'scalar', T: 8 }, - { no: 14, name: 'truncated_output', kind: 'scalar', T: 9 }, - { no: 15, name: 'truncated_total_results', kind: 'scalar', T: 13 }, - { no: 7, name: 'total_results', kind: 'scalar', T: 13 }, - { no: 11, name: 'raw_output', kind: 'scalar', T: 9 }, - { no: 9, name: 'command_run', kind: 'scalar', T: 9 }, - { no: 2, name: 'includes', kind: 'scalar', T: 9, repeated: !0 }, - { no: 8, name: 'find_error', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ti = class e extends r { - absolutePathUri = ''; - startLine = 0; - endLine = 0; - content = ''; - rawContent = ''; - binaryData; - mediaData; - triggeredMemories = ''; - numLines = 0; - numBytes = 0; - isInjectedReminder = !1; - filePermissionRequest; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepViewFile'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'start_line', kind: 'scalar', T: 13 }, - { no: 3, name: 'end_line', kind: 'scalar', T: 13 }, - { no: 4, name: 'content', kind: 'scalar', T: 9 }, - { no: 9, name: 'raw_content', kind: 'scalar', T: 9 }, - { no: 14, name: 'binary_data', kind: 'message', T: P }, - { no: 15, name: 'media_data', kind: 'message', T: C }, - { no: 10, name: 'triggered_memories', kind: 'scalar', T: 9 }, - { no: 11, name: 'num_lines', kind: 'scalar', T: 13 }, - { no: 12, name: 'num_bytes', kind: 'scalar', T: 13 }, - { no: 13, name: 'is_injected_reminder', kind: 'scalar', T: 8 }, - { no: 16, name: 'file_permission_request', kind: 'message', T: sn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Cd = class e extends r { - name = ''; - isDir = !1; - numChildren; - sizeBytes = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ListDirectoryResult'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'is_dir', kind: 'scalar', T: 8 }, - { no: 3, name: 'num_children', kind: 'scalar', T: 13, opt: !0 }, - { no: 4, name: 'size_bytes', kind: 'scalar', T: 4 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ai = class e extends r { - directoryPathUri = ''; - children = []; - results = []; - dirNotFound = !1; - filePermissionRequest; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepListDirectory'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'directory_path_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'children', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'results', kind: 'message', T: Cd, repeated: !0 }, - { no: 4, name: 'dir_not_found', kind: 'scalar', T: 8 }, - { no: 5, name: 'file_permission_request', kind: 'message', T: sn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ri = class e extends r { - directoryPathUri = ''; - force = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepDeleteDirectory'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'directory_path_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'force', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wa = class e extends r { - message = ''; - path = ''; - line = 0; - column = 0; - symbol = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCompileDiagnostic'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'message', kind: 'scalar', T: 9 }, - { no: 2, name: 'path', kind: 'scalar', T: 9 }, - { no: 3, name: 'line', kind: 'scalar', T: 13 }, - { no: 4, name: 'column', kind: 'scalar', T: 13 }, - { no: 5, name: 'symbol', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - si = class e extends r { - tool = Ia.UNSPECIFIED; - inputSpec = ''; - options = {}; - target = ''; - artifactPath = ''; - artifactIsExecutable = !1; - errors = []; - warnings = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCompile'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'tool', kind: 'enum', T: a.getEnumType(Ia) }, - { no: 2, name: 'input_spec', kind: 'scalar', T: 9 }, - { - no: 3, - name: 'options', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { no: 4, name: 'target', kind: 'scalar', T: 9 }, - { no: 5, name: 'artifact_path', kind: 'scalar', T: 9 }, - { no: 6, name: 'artifact_is_executable', kind: 'scalar', T: 8 }, - { no: 7, name: 'errors', kind: 'message', T: Wa, repeated: !0 }, - { no: 8, name: 'warnings', kind: 'message', T: Wa, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ii = class e extends r { - errorMessage = ''; - logs = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCompileApplet'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'error_message', kind: 'scalar', T: 9 }, - { no: 3, name: 'logs', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - oi = class e extends r { - errorMessage = ''; - logs = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepInstallAppletDependencies'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'error_message', kind: 'scalar', T: 9 }, - { no: 2, name: 'logs', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mi = class e extends r { - packageName = ''; - errorMessage = ''; - logs = ''; - isDevDependency = !1; - packageNames = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepInstallAppletPackage'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'package_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'error_message', kind: 'scalar', T: 9 }, - { no: 3, name: 'logs', kind: 'scalar', T: 9 }, - { no: 4, name: 'is_dev_dependency', kind: 'scalar', T: 8 }, - { no: 5, name: 'package_names', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ci = class e extends r { - errorMessage = ''; - rpcErrorCode = pa.ERROR_CODE_OK; - firebaseProjectId; - request = Oa.UNSPECIFIED; - result = Aa.UNSPECIFIED; - appConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepSetUpFirebase'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'error_message', kind: 'scalar', T: 9 }, - { no: 6, name: 'rpc_error_code', kind: 'enum', T: a.getEnumType(pa) }, - { no: 7, name: 'firebase_project_id', kind: 'scalar', T: 9, opt: !0 }, - { no: 2, name: 'request', kind: 'enum', T: a.getEnumType(Oa) }, - { no: 3, name: 'result', kind: 'enum', T: a.getEnumType(Aa) }, - { no: 4, name: 'app_config', kind: 'message', T: Rd }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Rd = class e extends r { - firebaseProjectId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SetUpFirebaseAppConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'firebase_project_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ui = class e extends r { - errorMessage = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepRestartDevServer'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'error_message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - li = class e extends r { - errorMessage = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepDeployFirebase'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'error_message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ei = class e extends r { - command = ''; - exitCode = 0; - output = ''; - errorMessage = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepShellExec'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'command', kind: 'scalar', T: 9 }, - { no: 2, name: 'exit_code', kind: 'scalar', T: 5 }, - { no: 3, name: 'output', kind: 'scalar', T: 9 }, - { no: 4, name: 'error_message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _i = class e extends r { - exitCode = 0; - output = ''; - errorMessage = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepLintApplet'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'exit_code', kind: 'scalar', T: 5 }, - { no: 2, name: 'output', kind: 'scalar', T: 9 }, - { no: 3, name: 'error_message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - di = class e extends r { - variableName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepDefineNewEnvVariable'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'variable_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ti = class e extends r { - blobId = ''; - targetPath = ''; - errorMessage = ''; - bytesWritten = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepWriteBlob'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'blob_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'target_path', kind: 'scalar', T: 9 }, - { no: 3, name: 'error_message', kind: 'scalar', T: 9 }, - { no: 4, name: 'bytes_written', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - FI = class e extends r { - promptFraction = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexTrajectoryToPromptConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'prompt_fraction', kind: 'scalar', T: 2 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fi = class e extends r { - items = []; - userResponse = ''; - activeUserState; - artifactComments = []; - fileDiffComments = []; - fileComments = []; - isQueuedMessage = !1; - clientType = Sn.UNSPECIFIED; - userConfig; - lastUserConfig; - query = ''; - images = []; - media = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepUserInput'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'items', kind: 'message', T: Tn, repeated: !0 }, - { no: 2, name: 'user_response', kind: 'scalar', T: 9 }, - { no: 4, name: 'active_user_state', kind: 'message', T: as }, - { - no: 7, - name: 'artifact_comments', - kind: 'message', - T: zr, - repeated: !0, - }, - { - no: 10, - name: 'file_diff_comments', - kind: 'message', - T: Qr, - repeated: !0, - }, - { no: 11, name: 'file_comments', kind: 'message', T: Zr, repeated: !0 }, - { no: 6, name: 'is_queued_message', kind: 'scalar', T: 8 }, - { no: 8, name: 'client_type', kind: 'enum', T: a.getEnumType(Sn) }, - { no: 12, name: 'user_config', kind: 'message', T: pe }, - { no: 13, name: 'last_user_config', kind: 'message', T: pe }, - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 5, name: 'images', kind: 'message', T: P, repeated: !0 }, - { no: 9, name: 'media', kind: 'message', T: C, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - MI = class e extends r { - activeDocument; - openDocuments = []; - activeNode; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ActiveUserState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'active_document', kind: 'message', T: g }, - { no: 2, name: 'open_documents', kind: 'message', T: g, repeated: !0 }, - { no: 3, name: 'active_node', kind: 'message', T: I }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ni = class e extends r { - response = ''; - modifiedResponse = ''; - thinking = ''; - signature = ''; - thinkingSignature = new Uint8Array(0); - thinkingRedacted = !1; - messageId = ''; - toolCalls = []; - knowledgeBaseItems = []; - thinkingDuration; - stopReason = F.UNSPECIFIED; - recitationMetadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepPlannerResponse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'response', kind: 'scalar', T: 9 }, - { no: 8, name: 'modified_response', kind: 'scalar', T: 9 }, - { no: 3, name: 'thinking', kind: 'scalar', T: 9 }, - { no: 4, name: 'signature', kind: 'scalar', T: 9 }, - { no: 14, name: 'thinking_signature', kind: 'scalar', T: 12 }, - { no: 5, name: 'thinking_redacted', kind: 'scalar', T: 8 }, - { no: 6, name: 'message_id', kind: 'scalar', T: 9 }, - { no: 7, name: 'tool_calls', kind: 'message', T: x, repeated: !0 }, - { - no: 2, - name: 'knowledge_base_items', - kind: 'message', - T: K, - repeated: !0, - }, - { no: 11, name: 'thinking_duration', kind: 'message', T: k }, - { no: 12, name: 'stop_reason', kind: 'enum', T: a.getEnumType(F) }, - { no: 13, name: 'recitation_metadata', kind: 'message', T: Br }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Si = class e extends r { - absolutePath = ''; - documentOutline; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepFileBreakdown'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'document_outline', kind: 'message', T: re }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ii = class e extends r { - absoluteUri = ''; - nodePaths = []; - ccis = []; - filePermissionRequest; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepViewCodeItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 4, name: 'node_paths', kind: 'scalar', T: 9, repeated: !0 }, - { no: 5, name: 'ccis', kind: 'message', T: I, repeated: !0 }, - { no: 6, name: 'file_permission_request', kind: 'message', T: sn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - pi = class e extends r { - targetFileUri = ''; - codeContent = []; - diff; - fileCreated = !1; - acknowledgementType = b.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepWriteToFile'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'target_file_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'code_content', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'diff', kind: 'message', T: an }, - { no: 4, name: 'file_created', kind: 'scalar', T: 8 }, - { - no: 5, - name: 'acknowledgement_type', - kind: 'enum', - T: a.getEnumType(b), - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Oi = class e extends r { - queries = []; - timeRange; - connectorTypes = []; - aggregateIds = []; - knowledgeBaseGroups = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepSearchKnowledgeBase'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'queries', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'time_range', kind: 'message', T: aa }, - { - no: 4, - name: 'connector_types', - kind: 'enum', - T: a.getEnumType(D), - repeated: !0, - }, - { no: 7, name: 'aggregate_ids', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 2, - name: 'knowledge_base_groups', - kind: 'message', - T: se, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ai = class e extends r { - urls = []; - documentIds = []; - knowledgeBaseItems = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepLookupKnowledgeBase'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'urls', kind: 'scalar', T: 9, repeated: !0 }, - { no: 2, name: 'document_ids', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 3, - name: 'knowledge_base_items', - kind: 'message', - T: K, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ci = class e extends r { - suggestions = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepSuggestedResponses'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'suggestions', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ri = class e extends r { - error; - shouldShowUser = !1; - shouldShowModel = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepErrorMessage'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'error', kind: 'message', T: Ie }, - { no: 5, name: 'should_show_user', kind: 'scalar', T: 8 }, - { no: 4, name: 'should_show_model', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yn = class e extends r { - full = ''; - truncated = ''; - numLinesAbove = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.RunCommandOutput'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'full', kind: 'scalar', T: 9 }, - { no: 2, name: 'truncated', kind: 'scalar', T: 9 }, - { no: 3, name: 'num_lines_above', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Li = class e extends r { - commandLine = ''; - proposedCommandLine = ''; - cwd = ''; - waitMsBeforeAsync = o.zero; - shouldAutoRun = !1; - requestedTerminalId = ''; - sandboxOverride = !1; - blocking = !1; - commandId = ''; - exitCode; - userRejected = !1; - autoRunDecision = U.UNSPECIFIED; - terminalId = ''; - combinedOutput; - combinedOutputSnapshot; - usedIdeTerminal = !1; - rawDebugOutput = ''; - command = ''; - args = []; - stdout = ''; - stderr = ''; - stdoutBuffer = ''; - stderrBuffer = ''; - stdoutLinesAbove = 0; - stderrLinesAbove = 0; - stdoutOutput; - stderrOutput; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepRunCommand'; - static fields = a.util.newFieldList(() => [ - { no: 23, name: 'command_line', kind: 'scalar', T: 9 }, - { no: 25, name: 'proposed_command_line', kind: 'scalar', T: 9 }, - { no: 2, name: 'cwd', kind: 'scalar', T: 9 }, - { no: 12, name: 'wait_ms_before_async', kind: 'scalar', T: 4 }, - { no: 15, name: 'should_auto_run', kind: 'scalar', T: 8 }, - { no: 17, name: 'requested_terminal_id', kind: 'scalar', T: 9 }, - { no: 27, name: 'sandbox_override', kind: 'scalar', T: 8 }, - { no: 11, name: 'blocking', kind: 'scalar', T: 8 }, - { no: 13, name: 'command_id', kind: 'scalar', T: 9 }, - { no: 6, name: 'exit_code', kind: 'scalar', T: 5, opt: !0 }, - { no: 14, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 16, name: 'auto_run_decision', kind: 'enum', T: a.getEnumType(U) }, - { no: 18, name: 'terminal_id', kind: 'scalar', T: 9 }, - { no: 21, name: 'combined_output', kind: 'message', T: yn }, - { no: 26, name: 'combined_output_snapshot', kind: 'message', T: yn }, - { no: 22, name: 'used_ide_terminal', kind: 'scalar', T: 8 }, - { no: 24, name: 'raw_debug_output', kind: 'scalar', T: 9 }, - { no: 1, name: 'command', kind: 'scalar', T: 9 }, - { no: 3, name: 'args', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'stdout', kind: 'scalar', T: 9 }, - { no: 5, name: 'stderr', kind: 'scalar', T: 9 }, - { no: 7, name: 'stdout_buffer', kind: 'scalar', T: 9 }, - { no: 8, name: 'stderr_buffer', kind: 'scalar', T: 9 }, - { no: 9, name: 'stdout_lines_above', kind: 'scalar', T: 13 }, - { no: 10, name: 'stderr_lines_above', kind: 'scalar', T: 13 }, - { no: 19, name: 'stdout_output', kind: 'message', T: yn }, - { no: 20, name: 'stderr_output', kind: 'message', T: yn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Pi = class e extends r { - url = ''; - webDocument; - resolvedUrl = ''; - latencyMs = 0; - userRejected = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepReadUrlContent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'url', kind: 'scalar', T: 9 }, - { no: 2, name: 'web_document', kind: 'message', T: G }, - { no: 3, name: 'resolved_url', kind: 'scalar', T: 9 }, - { no: 4, name: 'latency_ms', kind: 'scalar', T: 13 }, - { no: 5, name: 'user_rejected', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yI = class e extends r { - identifier = ''; - knowledgeBaseItem; - connectorType = D.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepReadKnowledgeBaseItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'identifier', kind: 'scalar', T: 9 }, - { no: 2, name: 'knowledge_base_item', kind: 'message', T: G }, - { no: 3, name: 'connector_type', kind: 'enum', T: a.getEnumType(D) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Di = class e extends r { - commandId = ''; - input = ''; - shouldAutoRun = !1; - terminate = !1; - waitMs = o.zero; - userRejected = !1; - autoRunDecision = U.UNSPECIFIED; - output; - running = !1; - exitCode; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepSendCommandInput'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'command_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'input', kind: 'scalar', T: 9 }, - { no: 3, name: 'should_auto_run', kind: 'scalar', T: 8 }, - { no: 6, name: 'terminate', kind: 'scalar', T: 8 }, - { no: 7, name: 'wait_ms', kind: 'scalar', T: 3 }, - { no: 4, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 5, name: 'auto_run_decision', kind: 'enum', T: a.getEnumType(U) }, - { no: 8, name: 'output', kind: 'message', T: yn }, - { no: 9, name: 'running', kind: 'scalar', T: 8 }, - { no: 10, name: 'exit_code', kind: 'scalar', T: 5, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ki = class e extends r { - documentId = ''; - position = 0; - croppedItem; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepViewContentChunk'; - static fields = a.util.newFieldList(() => [ - { no: 5, name: 'document_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'position', kind: 'scalar', T: 5 }, - { no: 4, name: 'cropped_item', kind: 'message', T: G }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gi = class e extends r { - query = ''; - domain = ''; - webDocuments = []; - webSearchUrl = ''; - summary = ''; - thirdPartyConfig; - searchType = Ca.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepSearchWeb'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 3, name: 'domain', kind: 'scalar', T: 9 }, - { no: 2, name: 'web_documents', kind: 'message', T: G, repeated: !0 }, - { no: 4, name: 'web_search_url', kind: 'scalar', T: 9 }, - { no: 5, name: 'summary', kind: 'scalar', T: 9 }, - { no: 6, name: 'third_party_config', kind: 'message', T: Ht }, - { no: 7, name: 'search_type', kind: 'enum', T: a.getEnumType(Ca) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hI = class e extends r { - projectPath = ''; - deploymentConfigUri = ''; - deploymentConfig; - missingFileUris = []; - willUploadNodeModules = !1; - willUploadDist = !1; - ignoreFileUris = []; - numFilesToUpload = 0; - envFileUris = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepReadDeploymentConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'project_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'deployment_config_uri', kind: 'scalar', T: 9 }, - { no: 3, name: 'deployment_config', kind: 'message', T: bt }, - { no: 4, name: 'missing_file_uris', kind: 'scalar', T: 9, repeated: !0 }, - { no: 5, name: 'will_upload_node_modules', kind: 'scalar', T: 8 }, - { no: 6, name: 'will_upload_dist', kind: 'scalar', T: 8 }, - { no: 7, name: 'ignore_file_uris', kind: 'scalar', T: 9, repeated: !0 }, - { no: 8, name: 'num_files_to_upload', kind: 'scalar', T: 13 }, - { no: 9, name: 'env_file_uris', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - GI = class e extends r { - projectPath = ''; - subdomain = ''; - projectId = ''; - framework = ''; - userConfirmed = !1; - fileUploadStatus = {}; - deployment; - deploymentConfigUri = ''; - deploymentConfigOutput; - subdomainForProjectId = ''; - subdomainUserSpecified = ''; - subdomainUsed = ''; - deployTargetForProjectId; - deployTargetUserSpecified; - deployTargetUsed; - projectIdUsed = ''; - claimUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepDeployWebApp'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'project_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'subdomain', kind: 'scalar', T: 9 }, - { no: 11, name: 'project_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'framework', kind: 'scalar', T: 9 }, - { no: 4, name: 'user_confirmed', kind: 'scalar', T: 8 }, - { - no: 5, - name: 'file_upload_status', - kind: 'map', - K: 9, - V: { kind: 'enum', T: a.getEnumType(ls) }, - }, - { no: 6, name: 'deployment', kind: 'message', T: Gt }, - { no: 7, name: 'deployment_config_uri', kind: 'scalar', T: 9 }, - { no: 8, name: 'deployment_config_output', kind: 'message', T: bt }, - { no: 12, name: 'subdomain_for_project_id', kind: 'scalar', T: 9 }, - { no: 13, name: 'subdomain_user_specified', kind: 'scalar', T: 9 }, - { no: 9, name: 'subdomain_used', kind: 'scalar', T: 9 }, - { no: 15, name: 'deploy_target_for_project_id', kind: 'message', T: Nn }, - { no: 16, name: 'deploy_target_user_specified', kind: 'message', T: Nn }, - { no: 17, name: 'deploy_target_used', kind: 'message', T: Nn }, - { no: 14, name: 'project_id_used', kind: 'scalar', T: 9 }, - { no: 10, name: 'claim_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wi = class e extends r { - antigravityDeploymentId = ''; - deployment; - buildStatus = zn.UNSPECIFIED; - buildError = ''; - buildLogs = ''; - isClaimed = !1; - claimUrl = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCheckDeployStatus'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'antigravity_deployment_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'deployment', kind: 'message', T: Gt }, - { no: 3, name: 'build_status', kind: 'enum', T: a.getEnumType(zn) }, - { no: 4, name: 'build_error', kind: 'scalar', T: 9 }, - { no: 5, name: 'build_logs', kind: 'scalar', T: 9 }, - { no: 6, name: 'is_claimed', kind: 'scalar', T: 8 }, - { no: 7, name: 'claim_url', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ji = class e extends r { - content = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepClipboard'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xi = class e extends r { - terminationReason = Ra.UNSPECIFIED; - numGeneratorInvocations = 0; - lastStepIdx = 0; - proceededWithAutoContinue = !1; - numForcedInvocations = 0; - segmentRecords = []; - trajectoryRecords = []; - executionId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ExecutorMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'termination_reason', kind: 'enum', T: a.getEnumType(Ra) }, - { no: 2, name: 'num_generator_invocations', kind: 'scalar', T: 5 }, - { no: 3, name: 'last_step_idx', kind: 'scalar', T: 5 }, - { no: 4, name: 'proceeded_with_auto_continue', kind: 'scalar', T: 8 }, - { no: 5, name: 'num_forced_invocations', kind: 'scalar', T: 5 }, - { no: 6, name: 'segment_records', kind: 'message', T: ie, repeated: !0 }, - { - no: 7, - name: 'trajectory_records', - kind: 'message', - T: ie, - repeated: !0, - }, - { no: 9, name: 'execution_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ui = class e extends r { - type = La.UNSPECIFIED; - lint; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepLintDiff'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'enum', T: a.getEnumType(La) }, - { no: 2, name: 'lint', kind: 'message', T: ae }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bi = class e extends r { - id = ''; - type = fe.UNSPECIFIED; - content = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrainEntry'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'type', kind: 'enum', T: a.getEnumType(fe) }, - { no: 3, name: 'content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ld = class e extends r { - itemsAdded = []; - itemsCompleted = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.PlanEntryDeltaSummary'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'items_added', kind: 'scalar', T: 9, repeated: !0 }, - { no: 2, name: 'items_completed', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Pd = class e extends r { - summary = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrainEntryDeltaSummary'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'plan', kind: 'message', T: Ld, oneof: 'summary' }, - { no: 2, name: 'task', kind: 'message', T: gd, oneof: 'summary' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Dd = class e extends r { - before; - after; - absolutePathUri = ''; - summary; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrainEntryDelta'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'before', kind: 'message', T: Bi }, - { no: 2, name: 'after', kind: 'message', T: Bi }, - { no: 3, name: 'absolute_path_uri', kind: 'scalar', T: 9 }, - { no: 4, name: 'summary', kind: 'message', T: Pd }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bI = class e extends r { - id = ''; - content = ''; - status = Hn.UNSPECIFIED; - parentId = ''; - prevSiblingId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TaskItem'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'content', kind: 'scalar', T: 9 }, - { no: 3, name: 'status', kind: 'enum', T: a.getEnumType(Hn) }, - { no: 4, name: 'parent_id', kind: 'scalar', T: 9 }, - { no: 5, name: 'prev_sibling_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - kd = class e extends r { - type = Pa.UNSPECIFIED; - id = ''; - content = ''; - status = Hn.UNSPECIFIED; - parentId = ''; - prevSiblingId = ''; - fromParent = ''; - fromPrevSibling = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TaskDelta'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'enum', T: a.getEnumType(Pa) }, - { no: 2, name: 'id', kind: 'scalar', T: 9 }, - { no: 3, name: 'content', kind: 'scalar', T: 9 }, - { no: 4, name: 'status', kind: 'enum', T: a.getEnumType(Hn) }, - { no: 5, name: 'parent_id', kind: 'scalar', T: 9 }, - { no: 6, name: 'prev_sibling_id', kind: 'scalar', T: 9 }, - { no: 7, name: 'from_parent', kind: 'scalar', T: 9 }, - { no: 8, name: 'from_prev_sibling', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - gd = class e extends r { - deltas = []; - itemsAdded = 0; - itemsPruned = 0; - itemsDeleted = 0; - itemsUpdated = 0; - itemsMoved = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TaskEntryDeltaSummary'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'deltas', kind: 'message', T: kd, repeated: !0 }, - { no: 2, name: 'items_added', kind: 'scalar', T: 5 }, - { no: 3, name: 'items_pruned', kind: 'scalar', T: 5 }, - { no: 4, name: 'items_deleted', kind: 'scalar', T: 5 }, - { no: 5, name: 'items_updated', kind: 'scalar', T: 5 }, - { no: 6, name: 'items_moved', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fi = class e extends r { - target = { case: void 0 }; - trigger = Da.UNSPECIFIED; - deltas = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrainUpdate'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'entry_type', - kind: 'enum', - T: a.getEnumType(fe), - oneof: 'target', - }, - { no: 3, name: 'trigger', kind: 'enum', T: a.getEnumType(Da) }, - { no: 2, name: 'deltas', kind: 'message', T: Dd, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mi = class e extends r { - task = ''; - reusedSubagentId = ''; - recordingName = ''; - result = ''; - taskName = ''; - recordingPath = ''; - recordingGenerationStatus = ka.UNSPECIFIED; - subagentId = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserSubagent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'task', kind: 'scalar', T: 9 }, - { no: 9, name: 'reused_subagent_id', kind: 'scalar', T: 9 }, - { no: 7, name: 'recording_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'result', kind: 'scalar', T: 9 }, - { no: 3, name: 'task_name', kind: 'scalar', T: 9 }, - { no: 4, name: 'recording_path', kind: 'scalar', T: 9 }, - { - no: 6, - name: 'recording_generation_status', - kind: 'enum', - T: a.getEnumType(ka), - }, - { no: 8, name: 'subagent_id', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wd = class e extends r { - enabled; - model = f.UNSPECIFIED; - maxContextTokens = 0; - maxInvocations = 0; - minTurnsBetweenKnowledgeGeneration = 0; - maxKnowledgeItems = 0; - maxArtifactsPerKi = 0; - maxTitleLength = 0; - maxSummaryLength = 0; - enableKiInsertion; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.KnowledgeConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - { no: 3, name: 'max_context_tokens', kind: 'scalar', T: 13 }, - { no: 4, name: 'max_invocations', kind: 'scalar', T: 13 }, - { - no: 5, - name: 'min_turns_between_knowledge_generation', - kind: 'scalar', - T: 13, - }, - { no: 6, name: 'max_knowledge_items', kind: 'scalar', T: 13 }, - { no: 7, name: 'max_artifacts_per_ki', kind: 'scalar', T: 13 }, - { no: 8, name: 'max_title_length', kind: 'scalar', T: 13 }, - { no: 9, name: 'max_summary_length', kind: 'scalar', T: 13 }, - { no: 10, name: 'enable_ki_insertion', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yi = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepKnowledgeGeneration'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hi = class e extends r { - url = ''; - pageIdToReplace = ''; - autoRunDecision = U.UNSPECIFIED; - userRejected = !1; - pageId = ''; - webDocument; - pageMetadata; - screenshot; - mediaScreenshot; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepOpenBrowserUrl'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'url', kind: 'scalar', T: 9 }, - { no: 8, name: 'page_id_to_replace', kind: 'scalar', T: 9 }, - { no: 2, name: 'auto_run_decision', kind: 'enum', T: a.getEnumType(U) }, - { no: 3, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 4, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 5, name: 'web_document', kind: 'message', T: G }, - { no: 6, name: 'page_metadata', kind: 'message', T: A }, - { no: 7, name: 'screenshot', kind: 'message', T: P }, - { no: 10, name: 'media_screenshot', kind: 'message', T: C }, - { no: 9, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gi = class e extends r { - title = ''; - pageId = ''; - javascriptSource = ''; - javascriptDescription = ''; - shouldAutoRun = !1; - waitingReason = Ta.UNSPECIFIED; - userRejected = !1; - screenshotEnd; - mediaScreenshotEnd; - pageMetadata; - executionDurationMs = o.zero; - javascriptResult = ''; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepExecuteBrowserJavaScript'; - static fields = a.util.newFieldList(() => [ - { no: 9, name: 'title', kind: 'scalar', T: 9 }, - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'javascript_source', kind: 'scalar', T: 9 }, - { no: 3, name: 'javascript_description', kind: 'scalar', T: 9 }, - { no: 10, name: 'should_auto_run', kind: 'scalar', T: 8 }, - { no: 13, name: 'waiting_reason', kind: 'enum', T: a.getEnumType(Ta) }, - { no: 4, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 5, name: 'screenshot_end', kind: 'message', T: P }, - { no: 12, name: 'media_screenshot_end', kind: 'message', T: C }, - { no: 6, name: 'page_metadata', kind: 'message', T: A }, - { no: 7, name: 'execution_duration_ms', kind: 'scalar', T: 4 }, - { no: 8, name: 'javascript_result', kind: 'scalar', T: 9 }, - { no: 11, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bi = class e extends r { - pageId = ''; - webDocument; - pageMetadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepReadBrowserPage'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'web_document', kind: 'message', T: G }, - { no: 3, name: 'page_metadata', kind: 'message', T: A }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qi = class e extends r { - pageId = ''; - domTree; - serializedDomTree = ''; - serializedDomTreeUri = ''; - pageMetadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserGetDom'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'dom_tree', kind: 'message', T: xn }, - { no: 3, name: 'serialized_dom_tree', kind: 'scalar', T: 9 }, - { no: 5, name: 'serialized_dom_tree_uri', kind: 'scalar', T: 9 }, - { no: 4, name: 'page_metadata', kind: 'message', T: A }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hi = class e extends r { - pages = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepListBrowserPages'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'pages', kind: 'message', T: A, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yi = class e extends r { - pageId = ''; - saveScreenshot = !1; - screenshotName = ''; - captureByElementIndex = !1; - elementIndex = 0; - captureBeyondViewport = !1; - userRejected = !1; - screenshot; - mediaScreenshot; - screenshotViewport; - pageMetadata; - autoRunDecision = U.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCaptureBrowserScreenshot'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 7, name: 'save_screenshot', kind: 'scalar', T: 8 }, - { no: 10, name: 'screenshot_name', kind: 'scalar', T: 9 }, - { no: 8, name: 'capture_by_element_index', kind: 'scalar', T: 8 }, - { no: 9, name: 'element_index', kind: 'scalar', T: 5 }, - { no: 12, name: 'capture_beyond_viewport', kind: 'scalar', T: 8 }, - { no: 2, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 3, name: 'screenshot', kind: 'message', T: P }, - { no: 11, name: 'media_screenshot', kind: 'message', T: C }, - { no: 13, name: 'screenshot_viewport', kind: 'message', T: Hr }, - { no: 4, name: 'page_metadata', kind: 'message', T: A }, - { no: 5, name: 'auto_run_decision', kind: 'enum', T: a.getEnumType(U) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wi = class e extends r { - pageId = ''; - x = 0; - y = 0; - clickType = pn.UNSPECIFIED; - userRejected = !1; - pageMetadata; - screenshotWithClickFeedback; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepClickBrowserPixel'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'x', kind: 'scalar', T: 5 }, - { no: 3, name: 'y', kind: 'scalar', T: 5 }, - { no: 7, name: 'click_type', kind: 'enum', T: a.getEnumType(pn) }, - { no: 4, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 5, name: 'page_metadata', kind: 'message', T: A }, - { - no: 6, - name: 'screenshot_with_click_feedback', - kind: 'message', - T: C, - opt: !0, - }, - { no: 8, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vi = class e extends r { - annotation; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepAddAnnotation'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'annotation', kind: 'message', T: qt }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xi = class e extends r { - pageId = ''; - pageMetadata; - consoleLogs; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCaptureBrowserConsoleLogs'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'page_metadata', kind: 'message', T: A }, - { no: 3, name: 'console_logs', kind: 'message', T: Jn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qI = class e extends r { - planStatus; - userSettings; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CascadePanelState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'plan_status', kind: 'message', T: Ut }, - { no: 2, name: 'user_settings', kind: 'message', T: qr }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ki = class e extends r { - commandId = ''; - outputCharacterCount = 0; - waitDurationSeconds = 0; - status = z.UNSPECIFIED; - combined = ''; - delta; - exitCode; - error; - waitedDurationSeconds = 0; - stdout = ''; - stderr = ''; - outputPriority = ga.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCommandStatus'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'command_id', kind: 'scalar', T: 9 }, - { no: 8, name: 'output_character_count', kind: 'scalar', T: 13 }, - { no: 10, name: 'wait_duration_seconds', kind: 'scalar', T: 13 }, - { no: 2, name: 'status', kind: 'enum', T: a.getEnumType(z) }, - { no: 9, name: 'combined', kind: 'scalar', T: 9 }, - { no: 12, name: 'delta', kind: 'scalar', T: 9, opt: !0 }, - { no: 5, name: 'exit_code', kind: 'scalar', T: 5, opt: !0 }, - { no: 6, name: 'error', kind: 'message', T: Ie }, - { no: 11, name: 'waited_duration_seconds', kind: 'scalar', T: 13 }, - { no: 3, name: 'stdout', kind: 'scalar', T: 9 }, - { no: 4, name: 'stderr', kind: 'scalar', T: 9 }, - { no: 7, name: 'output_priority', kind: 'enum', T: a.getEnumType(ga) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Va = class e extends r { - memoryId = ''; - title = ''; - metadata; - source = wa.UNSPECIFIED; - scope; - memory = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexMemory'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'memory_id', kind: 'scalar', T: 9 }, - { no: 6, name: 'title', kind: 'scalar', T: 9 }, - { no: 2, name: 'metadata', kind: 'message', T: Jd }, - { no: 3, name: 'source', kind: 'enum', T: a.getEnumType(wa) }, - { no: 4, name: 'scope', kind: 'message', T: vi }, - { no: 5, name: 'text_memory', kind: 'message', T: xd, oneof: 'memory' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jd = class e extends r { - createdAt; - lastModified; - lastAccessed; - tags = []; - userTriggered = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexMemoryMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'created_at', kind: 'message', T: _ }, - { no: 2, name: 'last_modified', kind: 'message', T: _ }, - { no: 3, name: 'last_accessed', kind: 'message', T: _ }, - { no: 4, name: 'tags', kind: 'scalar', T: 9, repeated: !0 }, - { no: 5, name: 'user_triggered', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xd = class e extends r { - content = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexMemoryText'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vi = class e extends r { - scope = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexMemoryScope'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'global_scope', kind: 'message', T: Ud, oneof: 'scope' }, - { no: 2, name: 'local_scope', kind: 'message', T: Bd, oneof: 'scope' }, - { no: 3, name: 'all_scope', kind: 'message', T: Fd, oneof: 'scope' }, - { no: 4, name: 'project_scope', kind: 'message', T: Md, oneof: 'scope' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ud = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexMemoryGlobalScope'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bd = class e extends r { - corpusNames = []; - baseDirUris = []; - repoBaseDirUri = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexMemoryLocalScope'; - static fields = a.util.newFieldList(() => [ - { no: 2, name: 'corpus_names', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'base_dir_uris', kind: 'scalar', T: 9, repeated: !0 }, - { no: 1, name: 'repo_base_dir_uri', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fd = class e extends r { - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexMemoryAllScope'; - static fields = a.util.newFieldList(() => []); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Md = class e extends r { - filePath = ''; - absoluteFilePath = ''; - baseDirUris = []; - corpusNames = []; - trigger = Ja.UNSPECIFIED; - description = ''; - globs = []; - priority = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexMemoryProjectScope'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'file_path', kind: 'scalar', T: 9 }, - { no: 7, name: 'absolute_file_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'base_dir_uris', kind: 'scalar', T: 9, repeated: !0 }, - { no: 3, name: 'corpus_names', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'trigger', kind: 'enum', T: a.getEnumType(Ja) }, - { no: 5, name: 'description', kind: 'scalar', T: 9 }, - { no: 6, name: 'globs', kind: 'scalar', T: 9, repeated: !0 }, - { no: 8, name: 'priority', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zi = class e extends r { - memoryId = ''; - memory; - prevMemory; - action = xa.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepMemory'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'memory_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'memory', kind: 'message', T: Va }, - { no: 4, name: 'prev_memory', kind: 'message', T: Va }, - { no: 3, name: 'action', kind: 'enum', T: a.getEnumType(xa) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ji = class e extends r { - runSubagent = !1; - addUserMemories = !1; - cascadeMemorySummary = ''; - userMemorySummary = ''; - reason = ''; - showReason = !1; - retrievedMemories = []; - blocking = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepRetrieveMemory'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'run_subagent', kind: 'scalar', T: 8 }, - { no: 8, name: 'add_user_memories', kind: 'scalar', T: 8 }, - { no: 2, name: 'cascade_memory_summary', kind: 'scalar', T: 9 }, - { no: 3, name: 'user_memory_summary', kind: 'scalar', T: 9 }, - { no: 4, name: 'reason', kind: 'scalar', T: 9 }, - { no: 5, name: 'show_reason', kind: 'scalar', T: 8 }, - { - no: 6, - name: 'retrieved_memories', - kind: 'message', - T: Va, - repeated: !0, - }, - { no: 7, name: 'blocking', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - HI = class e extends r { - memoryModel = f.UNSPECIFIED; - numCheckpointsForContext = 0; - numMemoriesToConsider = 0; - maxGlobalCascadeMemories = 0; - condenseInputTrajectory; - addUserMemoriesToSystemPrompt; - enabled; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.MemoryConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'memory_model', kind: 'enum', T: a.getEnumType(f) }, - { no: 5, name: 'num_checkpoints_for_context', kind: 'scalar', T: 13 }, - { no: 3, name: 'num_memories_to_consider', kind: 'scalar', T: 5 }, - { no: 4, name: 'max_global_cascade_memories', kind: 'scalar', T: 5 }, - { - no: 6, - name: 'condense_input_trajectory', - kind: 'scalar', - T: 8, - opt: !0, - }, - { - no: 7, - name: 'add_user_memories_to_system_prompt', - kind: 'scalar', - T: 8, - opt: !0, - }, - { no: 2, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yd = class e extends r { - maxStepsPerCheckpoint; - maxFilesInPrompt = 0; - maxLinesPerFileInPrompt = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ViewedFileTrackerConfig'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'max_steps_per_checkpoint', - kind: 'scalar', - T: 13, - opt: !0, - }, - { no: 2, name: 'max_files_in_prompt', kind: 'scalar', T: 13 }, - { no: 3, name: 'max_lines_per_file_in_prompt', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - hd = class e extends r { - diffBlockSeparationThreshold = o.zero; - handleDeletions = !1; - handleCreations = !1; - includeOriginalContent; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodeStepCreationOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'diff_block_separation_threshold', kind: 'scalar', T: 3 }, - { no: 2, name: 'handle_deletions', kind: 'scalar', T: 8 }, - { no: 3, name: 'handle_creations', kind: 'scalar', T: 8 }, - { - no: 4, - name: 'include_original_content', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - YI = class e extends r { - entryIdPrefix = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrainUpdateStepCreationOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'entry_id_prefix', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Gd = class e extends r { - conditionOnEditStep = !1; - includeRawContent; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ViewFileStepCreationOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'condition_on_edit_step', kind: 'scalar', T: 8 }, - { no: 2, name: 'include_raw_content', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bd = class e extends r { - numSearchEvents = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.UserGrepStepCreationOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'num_search_events', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qd = class e extends r { - maxCommands = 0; - maxCommandAge; - perCommandMaxBytesOutput = 0; - totalMaxBytesOutput = 0; - includeRunning; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.RunCommandStepCreationOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_commands', kind: 'scalar', T: 13 }, - { no: 2, name: 'max_command_age', kind: 'message', T: k }, - { no: 3, name: 'per_command_max_bytes_output', kind: 'scalar', T: 13 }, - { no: 4, name: 'total_max_bytes_output', kind: 'scalar', T: 13 }, - { no: 5, name: 'include_running', kind: 'scalar', T: 8, opt: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Hd = class e extends r { - maxLintInserts = 0; - minRequiredLintDuration = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.LintDiffStepCreationOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_lint_inserts', kind: 'scalar', T: 13 }, - { no: 2, name: 'min_required_lint_duration', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yd = class e extends r { - maxBrowserInteractions = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.BrowserStepCreationOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_browser_interactions', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - WI = class e extends r { - codeStepCreationOptions; - viewFileStepCreationOptions; - viewedFileTrackerConfig; - stepTypeAllowList = []; - userGrepStepCreationOptions; - runCommandStepCreationOptions; - lintDiffStepCreationOptions; - browserStepCreationOptions; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.SnapshotToStepsOptions'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'code_step_creation_options', kind: 'message', T: hd }, - { - no: 2, - name: 'view_file_step_creation_options', - kind: 'message', - T: Gd, - }, - { no: 3, name: 'viewed_file_tracker_config', kind: 'message', T: yd }, - { - no: 4, - name: 'step_type_allow_list', - kind: 'enum', - T: a.getEnumType(j), - repeated: !0, - }, - { - no: 5, - name: 'user_grep_step_creation_options', - kind: 'message', - T: bd, - }, - { - no: 6, - name: 'run_command_step_creation_options', - kind: 'message', - T: qd, - }, - { - no: 7, - name: 'lint_diff_step_creation_options', - kind: 'message', - T: Hd, - }, - { no: 9, name: 'browser_step_creation_options', kind: 'message', T: Yd }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Qi = class e extends r { - body = ''; - commitId = ''; - path = ''; - side = ''; - startLine = 0; - endLine = 0; - category = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepPostPrReview'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'body', kind: 'scalar', T: 9 }, - { no: 2, name: 'commit_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'path', kind: 'scalar', T: 9 }, - { no: 4, name: 'side', kind: 'scalar', T: 9 }, - { no: 5, name: 'start_line', kind: 'scalar', T: 5 }, - { no: 6, name: 'end_line', kind: 'scalar', T: 5 }, - { no: 7, name: 'category', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xa = class e extends r { - serverName = ''; - command = ''; - args = []; - env = {}; - serverUrl = ''; - disabled = !1; - disabledTools = []; - enabledTools = []; - headers = {}; - serverIndex = 0; - skipToolNamePrefix = !1; - skipToolDescriptionPrefix = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.McpServerSpec'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'server_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'command', kind: 'scalar', T: 9 }, - { no: 3, name: 'args', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'env', kind: 'map', K: 9, V: { kind: 'scalar', T: 9 } }, - { no: 6, name: 'server_url', kind: 'scalar', T: 9 }, - { no: 7, name: 'disabled', kind: 'scalar', T: 8 }, - { no: 8, name: 'disabled_tools', kind: 'scalar', T: 9, repeated: !0 }, - { no: 10, name: 'enabled_tools', kind: 'scalar', T: 9, repeated: !0 }, - { - no: 9, - name: 'headers', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { no: 5, name: 'server_index', kind: 'scalar', T: 13 }, - { no: 11, name: 'skip_tool_name_prefix', kind: 'scalar', T: 8 }, - { no: 12, name: 'skip_tool_description_prefix', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zi = class e extends r { - name = ''; - version = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.McpServerInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'name', kind: 'scalar', T: 9 }, - { no: 2, name: 'version', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $i = class e extends r { - title = ''; - markdown = ''; - metadata = {}; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.StepRenderInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'title', kind: 'scalar', T: 9 }, - { no: 2, name: 'markdown', kind: 'scalar', T: 9 }, - { - no: 3, - name: 'metadata', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - no = class e extends r { - serverName = ''; - toolCall; - serverInfo; - result = { case: void 0 }; - images = []; - media = []; - userRejected = !1; - renderInfo; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepMcpTool'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'server_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'tool_call', kind: 'message', T: x }, - { no: 4, name: 'server_info', kind: 'message', T: Zi }, - { no: 3, name: 'result_string', kind: 'scalar', T: 9, oneof: 'result' }, - { no: 8, name: 'result_uri', kind: 'scalar', T: 9, oneof: 'result' }, - { no: 5, name: 'images', kind: 'message', T: P, repeated: !0 }, - { no: 6, name: 'media', kind: 'message', T: C, repeated: !0 }, - { no: 7, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 9, name: 'render_info', kind: 'message', T: $i }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wd = class e extends r { - uri = ''; - name = ''; - description = ''; - mimeType = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.McpResource'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - { no: 4, name: 'mime_type', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Vd = class e extends r { - uri = ''; - data = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.McpResourceContent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'text', kind: 'message', T: Wr, oneof: 'data' }, - { no: 3, name: 'image', kind: 'message', T: P, oneof: 'data' }, - { no: 4, name: 'media_content', kind: 'message', T: C, oneof: 'data' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - eo = class e extends r { - serverName = ''; - cursor; - resources = []; - nextCursor = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepListResources'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'server_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9, opt: !0 }, - { no: 3, name: 'resources', kind: 'message', T: Wd, repeated: !0 }, - { no: 4, name: 'next_cursor', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - to = class e extends r { - serverName = ''; - uri = ''; - contents = []; - skippedNonImageBinaryContent = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepReadResource'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'server_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'uri', kind: 'scalar', T: 9 }, - { no: 3, name: 'contents', kind: 'message', T: Vd, repeated: !0 }, - { no: 4, name: 'skipped_non_image_binary_content', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - VI = class e extends r { - summary = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepArtifactSummary'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'summary', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ao = class e extends r { - status = Ua.UNSPECIFIED; - feedback = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepManagerFeedback'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'status', kind: 'enum', T: a.getEnumType(Ua) }, - { no: 2, name: 'feedback', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ro = class e extends r { - toolCall; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepToolCallProposal'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'tool_call', kind: 'message', T: x }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - so = class e extends r { - proposalToolCalls = []; - choice = 0; - reason = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepToolCallChoice'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'proposal_tool_calls', - kind: 'message', - T: x, - repeated: !0, - }, - { no: 2, name: 'choice', kind: 'scalar', T: 13 }, - { no: 3, name: 'reason', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - io = class e extends r { - proposalTrajectoryIds = []; - choice = 0; - reason = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepTrajectoryChoice'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'proposal_trajectory_ids', + }, + { + no: 5, + name: 'server_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 11, + name: 'skip_tool_name_prefix', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 12, + name: 'skip_tool_description_prefix', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _McpServerSpec().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpServerSpec().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpServerSpec().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpServerSpec, a, b); + } +}; +var McpServerInfo = class _McpServerInfo extends Message { + /** + * @generated from field: string name = 1; + */ + name = ''; + /** + * @generated from field: string version = 2; + */ + version = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.McpServerInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'version', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _McpServerInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpServerInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpServerInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpServerInfo, a, b); + } +}; +var StepRenderInfo = class _StepRenderInfo extends Message { + /** + * title to display for the tool result. + * + * @generated from field: string title = 1; + */ + title = ''; + /** + * markdown content to render. + * + * @generated from field: string markdown = 2; + */ + markdown = ''; + /** + * Optional metadata for additional context. + * + * @generated from field: map metadata = 3; + */ + metadata = {}; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.StepRenderInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'markdown', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'metadata', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - repeated: !0, + /* ScalarType.STRING */ }, - { no: 2, name: 'choice', kind: 'scalar', T: 5 }, - { no: 3, name: 'reason', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - XI = class e extends r { - spec; - status = Ba.UNSPECIFIED; - error = ''; - tools = []; - toolErrors = []; - serverInfo; - instructions = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.McpServerState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'spec', kind: 'message', T: Xa }, - { no: 2, name: 'status', kind: 'enum', T: a.getEnumType(Ba) }, - { no: 3, name: 'error', kind: 'scalar', T: 9 }, - { no: 4, name: 'tools', kind: 'message', T: ue, repeated: !0 }, - { no: 7, name: 'tool_errors', kind: 'scalar', T: 9, repeated: !0 }, - { no: 5, name: 'server_info', kind: 'message', T: Zi }, - { no: 6, name: 'instructions', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - KI = class e extends r { - maxStepsToJudge = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TrajectoryJudgeConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'max_steps_to_judge', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - oo = class e extends r { - absolutePathUri = ''; - cciOffset = 0; - ccis = []; - outlineItems = []; - numItemsScanned = 0; - totalCciCount = 0; - numLines = 0; - numBytes = 0; - contents = ''; - contentLinesTruncated = 0; - triggeredMemories = ''; - rawContent = ''; - filePermissionRequest; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepViewFileOutline'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_path_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'cci_offset', kind: 'scalar', T: 13 }, - { no: 3, name: 'ccis', kind: 'message', T: I, repeated: !0 }, - { no: 9, name: 'outline_items', kind: 'scalar', T: 9, repeated: !0 }, - { no: 10, name: 'num_items_scanned', kind: 'scalar', T: 13 }, - { no: 4, name: 'total_cci_count', kind: 'scalar', T: 13 }, - { no: 5, name: 'num_lines', kind: 'scalar', T: 13 }, - { no: 6, name: 'num_bytes', kind: 'scalar', T: 13 }, - { no: 7, name: 'contents', kind: 'scalar', T: 9 }, - { no: 8, name: 'content_lines_truncated', kind: 'scalar', T: 13 }, - { no: 11, name: 'triggered_memories', kind: 'scalar', T: 9 }, - { no: 12, name: 'raw_content', kind: 'scalar', T: 9 }, - { no: 13, name: 'file_permission_request', kind: 'message', T: sn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Xd = class e extends r { - enabled; - numSteps = 0; - heuristicPrompts = []; - persistenceLevel = Fa.UNSPECIFIED; - browserEphemeralOptions = []; - excludeUnleashBrowserEphemeralOptions; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.EphemeralMessagesConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'num_steps', kind: 'scalar', T: 13 }, - { - no: 3, - name: 'heuristic_prompts', - kind: 'message', - T: Kd, - repeated: !0, - }, - { no: 4, name: 'persistence_level', kind: 'enum', T: a.getEnumType(Fa) }, - { - no: 5, - name: 'browser_ephemeral_options', - kind: 'enum', - T: a.getEnumType(Es), - repeated: !0, - }, - { - no: 6, - name: 'exclude_unleash_browser_ephemeral_options', - kind: 'scalar', - T: 8, - opt: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Kd = class e extends r { - heuristic = ''; - prompt = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.HeuristicPrompt'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'heuristic', kind: 'scalar', T: 9 }, - { no: 2, name: 'prompt', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vI = class e extends r { - revertedUris = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.RevertMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 4, name: 'reverted_uris', kind: 'scalar', T: 9, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zI = class e extends r { - length = 0; - tokens = 0; - numSkipped = 0; - numTruncated = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TrajectoryPrefixMetadata'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'length', kind: 'scalar', T: 13 }, - { no: 2, name: 'tokens', kind: 'scalar', T: 13 }, - { no: 3, name: 'num_skipped', kind: 'scalar', T: 13 }, - { no: 4, name: 'num_truncated', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - mo = class e extends r { - absoluteUri = ''; - symbol = ''; - line = 0; - occurrenceIndex = 0; - references = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepFindAllReferences'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'symbol', kind: 'scalar', T: 9 }, - { no: 3, name: 'line', kind: 'scalar', T: 13 }, - { no: 4, name: 'occurrence_index', kind: 'scalar', T: 13 }, - { no: 5, name: 'references', kind: 'message', T: vr, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - co = class e extends r { - code = ''; - language = ''; - modelWantsAutoRun = !1; - userFacingExplanation = ''; - output = ''; - userRejected = !1; - autoRunDecision = Ma.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepRunExtensionCode'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'code', kind: 'scalar', T: 9 }, - { no: 2, name: 'language', kind: 'scalar', T: 9 }, - { no: 6, name: 'model_wants_auto_run', kind: 'scalar', T: 8 }, - { no: 7, name: 'user_facing_explanation', kind: 'scalar', T: 9 }, - { no: 3, name: 'output', kind: 'scalar', T: 9 }, - { no: 4, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 5, name: 'auto_run_decision', kind: 'enum', T: a.getEnumType(Ma) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - uo = class e extends r { - acknowledgementType = b.UNSPECIFIED; - targetStepIndex = 0; - target = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepProposalFeedback'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'acknowledgement_type', - kind: 'enum', - T: a.getEnumType(b), - }, - { no: 2, name: 'target_step_index', kind: 'scalar', T: 13 }, - { - no: 3, - name: 'replacement_chunk', - kind: 'message', - T: Ne, - oneof: 'target', - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - vd = class e extends r { - description = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TrajectoryDescription'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'cascade_conversation_title', + }, + ]); + static fromBinary(bytes, options) { + return new _StepRenderInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _StepRenderInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _StepRenderInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_StepRenderInfo, a, b); + } +}; +var CortexStepMcpTool = class _CortexStepMcpTool extends Message { + /** + * Inputs + * + * @generated from field: string server_name = 1; + */ + serverName = ''; + /** + * @generated from field: exa.codeium_common_pb.ChatToolCall tool_call = 2; + */ + toolCall; + /** + * Info directly from the MCP server. + * + * @generated from field: exa.cortex_pb.McpServerInfo server_info = 4; + */ + serverInfo; + /** + * Outputs + * + * @generated from oneof exa.cortex_pb.CortexStepMcpTool.result + */ + result = { case: void 0 }; + /** + * Deprecated: Use media instead + * + * @generated from field: repeated exa.codeium_common_pb.ImageData images = 5 [deprecated = true]; + * @deprecated + */ + images = []; + /** + * @generated from field: repeated exa.codeium_common_pb.Media media = 6; + */ + media = []; + /** + * @generated from field: bool user_rejected = 7; + */ + userRejected = false; + /** + * Optional rendering information for custom UI display. + * + * @generated from field: exa.cortex_pb.StepRenderInfo render_info = 9; + */ + renderInfo; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepMcpTool'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'server_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'tool_call', kind: 'message', T: ChatToolCall }, + { no: 4, name: 'server_info', kind: 'message', T: McpServerInfo }, + { no: 3, name: 'result_string', kind: 'scalar', T: 9, oneof: 'result' }, + { no: 8, name: 'result_uri', kind: 'scalar', T: 9, oneof: 'result' }, + { no: 5, name: 'images', kind: 'message', T: ImageData, repeated: true }, + { no: 6, name: 'media', kind: 'message', T: Media, repeated: true }, + { + no: 7, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 9, name: 'render_info', kind: 'message', T: StepRenderInfo }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepMcpTool().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepMcpTool().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepMcpTool().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepMcpTool, a, b); + } +}; +var McpResource = class _McpResource extends Message { + /** + * @generated from field: string uri = 1; + */ + uri = ''; + /** + * @generated from field: string name = 2; + */ + name = ''; + /** + * @generated from field: string description = 3; + */ + description = ''; + /** + * @generated from field: string mime_type = 4; + */ + mimeType = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.McpResource'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'mime_type', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _McpResource().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpResource().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpResource().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpResource, a, b); + } +}; +var McpResourceContent = class _McpResourceContent extends Message { + /** + * @generated from field: string uri = 1; + */ + uri = ''; + /** + * @generated from oneof exa.cortex_pb.McpResourceContent.data + */ + data = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.McpResourceContent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'text', kind: 'message', T: TextData, oneof: 'data' }, + { no: 3, name: 'image', kind: 'message', T: ImageData, oneof: 'data' }, + { no: 4, name: 'media_content', kind: 'message', T: Media, oneof: 'data' }, + ]); + static fromBinary(bytes, options) { + return new _McpResourceContent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpResourceContent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpResourceContent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpResourceContent, a, b); + } +}; +var CortexStepListResources = class _CortexStepListResources extends Message { + /** + * Inputs + * + * @generated from field: string server_name = 1; + */ + serverName = ''; + /** + * Used for pagination + * + * @generated from field: optional string cursor = 2; + */ + cursor; + /** + * Outputs + * + * @generated from field: repeated exa.cortex_pb.McpResource resources = 3; + */ + resources = []; + /** + * @generated from field: string next_cursor = 4; + */ + nextCursor = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepListResources'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'server_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9, opt: true }, + { + no: 3, + name: 'resources', + kind: 'message', + T: McpResource, + repeated: true, + }, + { + no: 4, + name: 'next_cursor', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepListResources().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepListResources().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepListResources().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepListResources, a, b); + } +}; +var CortexStepReadResource = class _CortexStepReadResource extends Message { + /** + * Inputs + * + * @generated from field: string server_name = 1; + */ + serverName = ''; + /** + * @generated from field: string uri = 2; + */ + uri = ''; + /** + * Outputs + * + * @generated from field: repeated exa.cortex_pb.McpResourceContent contents = 3; + */ + contents = []; + /** + * @generated from field: bool skipped_non_image_binary_content = 4; + */ + skippedNonImageBinaryContent = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepReadResource'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'server_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'contents', + kind: 'message', + T: McpResourceContent, + repeated: true, + }, + { + no: 4, + name: 'skipped_non_image_binary_content', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepReadResource().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepReadResource().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepReadResource().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepReadResource, a, b); + } +}; +var CortexStepArtifactSummary = class _CortexStepArtifactSummary extends Message { + /** + * Outputs + * + * @generated from field: string summary = 1; + */ + summary = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepArtifactSummary'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepArtifactSummary().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepArtifactSummary().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepArtifactSummary().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepArtifactSummary, a, b); + } +}; +var CortexStepManagerFeedback = class _CortexStepManagerFeedback extends Message { + /** + * Outputs + * + * @generated from field: exa.cortex_pb.CortexStepManagerFeedbackStatus status = 1; + */ + status = CortexStepManagerFeedbackStatus.UNSPECIFIED; + /** + * @generated from field: string feedback = 2; + */ + feedback = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepManagerFeedback'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(CortexStepManagerFeedbackStatus), + }, + { + no: 2, + name: 'feedback', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepManagerFeedback().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepManagerFeedback().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepManagerFeedback().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepManagerFeedback, a, b); + } +}; +var CortexStepToolCallProposal = class _CortexStepToolCallProposal extends Message { + /** + * Inputs + * + * @generated from field: exa.codeium_common_pb.ChatToolCall tool_call = 1; + */ + toolCall; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepToolCallProposal'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'tool_call', kind: 'message', T: ChatToolCall }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepToolCallProposal().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepToolCallProposal().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepToolCallProposal().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepToolCallProposal, a, b); + } +}; +var CortexStepToolCallChoice = class _CortexStepToolCallChoice extends Message { + /** + * Inputs + * + * @generated from field: repeated exa.codeium_common_pb.ChatToolCall proposal_tool_calls = 1; + */ + proposalToolCalls = []; + /** + * Outputs + * + * @generated from field: uint32 choice = 2; + */ + choice = 0; + /** + * @generated from field: string reason = 3; + */ + reason = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepToolCallChoice'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'proposal_tool_calls', + kind: 'message', + T: ChatToolCall, + repeated: true, + }, + { + no: 2, + name: 'choice', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'reason', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepToolCallChoice().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepToolCallChoice().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepToolCallChoice().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepToolCallChoice, a, b); + } +}; +var CortexStepTrajectoryChoice = class _CortexStepTrajectoryChoice extends Message { + /** + * Inputs + * + * @generated from field: repeated string proposal_trajectory_ids = 1; + */ + proposalTrajectoryIds = []; + /** + * Outputs + * + * @generated from field: int32 choice = 2; + */ + choice = 0; + /** + * @generated from field: string reason = 3; + */ + reason = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepTrajectoryChoice'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'proposal_trajectory_ids', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 2, + name: 'choice', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'reason', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepTrajectoryChoice().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepTrajectoryChoice().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepTrajectoryChoice().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepTrajectoryChoice, a, b); + } +}; +var McpServerState = class _McpServerState extends Message { + /** + * @generated from field: exa.cortex_pb.McpServerSpec spec = 1; + */ + spec; + /** + * @generated from field: exa.cortex_pb.McpServerStatus status = 2; + */ + status = McpServerStatus.UNSPECIFIED; + /** + * @generated from field: string error = 3; + */ + error = ''; + /** + * @generated from field: repeated exa.chat_pb.ChatToolDefinition tools = 4; + */ + tools = []; + /** + * Index-matched with tools; if any tools are invalid, this will contain the + * error. + * + * @generated from field: repeated string tool_errors = 7; + */ + toolErrors = []; + /** + * Info directly from the MCP server. + * + * @generated from field: exa.cortex_pb.McpServerInfo server_info = 5; + */ + serverInfo; + /** + * @generated from field: string instructions = 6; + */ + instructions = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.McpServerState'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'spec', kind: 'message', T: McpServerSpec }, + { + no: 2, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(McpServerStatus), + }, + { + no: 3, + name: 'error', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'tools', + kind: 'message', + T: ChatToolDefinition, + repeated: true, + }, + { no: 7, name: 'tool_errors', kind: 'scalar', T: 9, repeated: true }, + { no: 5, name: 'server_info', kind: 'message', T: McpServerInfo }, + { + no: 6, + name: 'instructions', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _McpServerState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _McpServerState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _McpServerState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_McpServerState, a, b); + } +}; +var TrajectoryJudgeConfig = class _TrajectoryJudgeConfig extends Message { + /** + * If , truncates all non-input trajectories to be this long before + * judging. 0 means no truncation. + * + * @generated from field: int32 max_steps_to_judge = 1; + */ + maxStepsToJudge = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TrajectoryJudgeConfig'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'max_steps_to_judge', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _TrajectoryJudgeConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TrajectoryJudgeConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TrajectoryJudgeConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TrajectoryJudgeConfig, a, b); + } +}; +var CortexStepViewFileOutline = class _CortexStepViewFileOutline extends Message { + /** + * INPUTS + * + * @generated from field: string absolute_path_uri = 1; + */ + absolutePathUri = ''; + /** + * For pagination of results. + * + * @generated from field: uint32 cci_offset = 2; + */ + cciOffset = 0; + /** + * OUTPUTS + * Number of ccis is truncated based on config. This includes all ccis that + * were successfully converted to outline items. + * + * @generated from field: repeated exa.codeium_common_pb.CodeContextItem ccis = 3; + */ + ccis = []; + /** + * @generated from field: repeated string outline_items = 9; + */ + outlineItems = []; + /** + * This could be different from len(ccis) if any ccis failed. This number is + * >= len(ccis) for that reason. + * + * @generated from field: uint32 num_items_scanned = 10; + */ + numItemsScanned = 0; + /** + * @generated from field: uint32 total_cci_count = 4; + */ + totalCciCount = 0; + /** + * @generated from field: uint32 num_lines = 5; + */ + numLines = 0; + /** + * @generated from field: uint32 num_bytes = 6; + */ + numBytes = 0; + /** + * Only populated if offset is 0. May be truncated. + * + * @generated from field: string contents = 7; + */ + contents = ''; + /** + * @generated from field: uint32 content_lines_truncated = 8; + */ + contentLinesTruncated = 0; + /** + * Any rules that were triggered by this file outline view. + * + * @generated from field: string triggered_memories = 11; + */ + triggeredMemories = ''; + /** + * Full raw content of the file. Only stored for telemetry. + * + * @generated from field: string raw_content = 12; + */ + rawContent = ''; + /** + * @generated from field: exa.cortex_pb.FilePermissionInteractionSpec file_permission_request = 13; + */ + filePermissionRequest; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepViewFileOutline'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_path_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'cci_offset', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'ccis', + kind: 'message', + T: CodeContextItem, + repeated: true, + }, + { no: 9, name: 'outline_items', kind: 'scalar', T: 9, repeated: true }, + { + no: 10, + name: 'num_items_scanned', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'total_cci_count', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'num_lines', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 6, + name: 'num_bytes', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 7, + name: 'contents', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'content_lines_truncated', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 11, + name: 'triggered_memories', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 12, + name: 'raw_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 13, + name: 'file_permission_request', + kind: 'message', + T: FilePermissionInteractionSpec, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepViewFileOutline().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepViewFileOutline().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepViewFileOutline().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepViewFileOutline, a, b); + } +}; +var EphemeralMessagesConfig = class _EphemeralMessagesConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * Number of steps from the end of the trajectory + * to consider when applying heuristics + * + * @generated from field: uint32 num_steps = 2; + */ + numSteps = 0; + /** + * Prompts to inject, if a heuristic is triggered + * + * @generated from field: repeated exa.cortex_pb.HeuristicPrompt heuristic_prompts = 3; + */ + heuristicPrompts = []; + /** + * Sets whether ephemeral messages are persisted in the chat conversation + * + * @generated from field: exa.cortex_pb.EphemeralMessagePersistenceLevel persistence_level = 4; + */ + persistenceLevel = EphemeralMessagePersistenceLevel.UNSPECIFIED; + /** + * Optionally include parts of current browser page in ephemeral message. + * + * @generated from field: repeated exa.cortex_pb.BrowserEphemeralOption browser_ephemeral_options = 5; + */ + browserEphemeralOptions = []; + /** + * Proto.merge appends lists, so there's no way to exactly specify a list + * from the client without adding this field. This should only be used + * for local, dev-mode experiments. Prefer Unleash otherwise. + * See applyUnleashBrowserEphemeralMessageOverrideConfig. + * + * @generated from field: optional bool exclude_unleash_browser_ephemeral_options = 6; + */ + excludeUnleashBrowserEphemeralOptions; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.EphemeralMessagesConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'num_steps', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'heuristic_prompts', + kind: 'message', + T: HeuristicPrompt, + repeated: true, + }, + { + no: 4, + name: 'persistence_level', + kind: 'enum', + T: proto3.getEnumType(EphemeralMessagePersistenceLevel), + }, + { + no: 5, + name: 'browser_ephemeral_options', + kind: 'enum', + T: proto3.getEnumType(BrowserEphemeralOption), + repeated: true, + }, + { + no: 6, + name: 'exclude_unleash_browser_ephemeral_options', + kind: 'scalar', + T: 8, + opt: true, + }, + ]); + static fromBinary(bytes, options) { + return new _EphemeralMessagesConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _EphemeralMessagesConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _EphemeralMessagesConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_EphemeralMessagesConfig, a, b); + } +}; +var HeuristicPrompt = class _HeuristicPrompt extends Message { + /** + * name of the heuristic + * + * @generated from field: string heuristic = 1; + */ + heuristic = ''; + /** + * injected prompt if heuristic is triggered + * + * @generated from field: string prompt = 2; + */ + prompt = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.HeuristicPrompt'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'heuristic', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _HeuristicPrompt().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _HeuristicPrompt().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _HeuristicPrompt().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_HeuristicPrompt, a, b); + } +}; +var RevertMetadata = class _RevertMetadata extends Message { + /** + * uris of any reverted file edits + * + * @generated from field: repeated string reverted_uris = 4; + */ + revertedUris = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.RevertMetadata'; + static fields = proto3.util.newFieldList(() => [ + { no: 4, name: 'reverted_uris', kind: 'scalar', T: 9, repeated: true }, + ]); + static fromBinary(bytes, options) { + return new _RevertMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _RevertMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _RevertMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_RevertMetadata, a, b); + } +}; +var TrajectoryPrefixMetadata = class _TrajectoryPrefixMetadata extends Message { + /** + * Metadata for getting a prefix of a trajectory based on a + * token limit. + * + * @generated from field: uint32 length = 1; + */ + length = 0; + /** + * @generated from field: uint32 tokens = 2; + */ + tokens = 0; + /** + * @generated from field: uint32 num_skipped = 3; + */ + numSkipped = 0; + /** + * @generated from field: uint32 num_truncated = 4; + */ + numTruncated = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TrajectoryPrefixMetadata'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'length', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 2, + name: 'tokens', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'num_skipped', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'num_truncated', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _TrajectoryPrefixMetadata().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TrajectoryPrefixMetadata().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TrajectoryPrefixMetadata().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TrajectoryPrefixMetadata, a, b); + } +}; +var CortexStepFindAllReferences = class _CortexStepFindAllReferences extends Message { + /** + * INPUTS + * + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * Symbol to search for + * + * @generated from field: string symbol = 2; + */ + symbol = ''; + /** + * 0-indexed line number + * + * @generated from field: uint32 line = 3; + */ + line = 0; + /** + * 0-indexed occurrence index on the specified line; this is used to + * disambiguate cases where the specified symbol occurs multiple times on the + * same line + * + * @generated from field: uint32 occurrence_index = 4; + */ + occurrenceIndex = 0; + /** + * OUTPUTS + * + * @generated from field: repeated exa.codeium_common_pb.LspReference references = 5; + */ + references = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepFindAllReferences'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'symbol', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'line', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 4, + name: 'occurrence_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 5, + name: 'references', + kind: 'message', + T: LspReference, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepFindAllReferences().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepFindAllReferences().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepFindAllReferences().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepFindAllReferences, a, b); + } +}; +var CortexStepRunExtensionCode = class _CortexStepRunExtensionCode extends Message { + /** + * inputs + * + * @generated from field: string code = 1; + */ + code = ''; + /** + * @generated from field: string language = 2; + */ + language = ''; + /** + * Whether the model wants to auto-run this extension code. Only relevant if + * the user's setting allows model to decide. + * + * @generated from field: bool model_wants_auto_run = 6; + */ + modelWantsAutoRun = false; + /** + * @generated from field: string user_facing_explanation = 7; + */ + userFacingExplanation = ''; + /** + * outputs + * + * @generated from field: string output = 3; + */ + output = ''; + /** + * @generated from field: bool user_rejected = 4; + */ + userRejected = false; + /** + * @generated from field: exa.cortex_pb.RunExtensionCodeAutoRunDecision auto_run_decision = 5; + */ + autoRunDecision = RunExtensionCodeAutoRunDecision.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepRunExtensionCode'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'code', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'language', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'model_wants_auto_run', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'user_facing_explanation', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'output', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'auto_run_decision', + kind: 'enum', + T: proto3.getEnumType(RunExtensionCodeAutoRunDecision), + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepRunExtensionCode().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepRunExtensionCode().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepRunExtensionCode().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepRunExtensionCode, a, b); + } +}; +var CortexStepProposalFeedback = class _CortexStepProposalFeedback extends Message { + /** + * @generated from field: exa.cortex_pb.AcknowledgementType acknowledgement_type = 1; + */ + acknowledgementType = AcknowledgementType.UNSPECIFIED; + /** + * @generated from field: uint32 target_step_index = 2; + */ + targetStepIndex = 0; + /** + * @generated from oneof exa.cortex_pb.CortexStepProposalFeedback.target + */ + target = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepProposalFeedback'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'acknowledgement_type', + kind: 'enum', + T: proto3.getEnumType(AcknowledgementType), + }, + { + no: 2, + name: 'target_step_index', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + { + no: 3, + name: 'replacement_chunk', + kind: 'message', + T: ReplacementChunk, + oneof: 'target', + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepProposalFeedback().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepProposalFeedback().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepProposalFeedback().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepProposalFeedback, a, b); + } +}; +var TrajectoryDescription2 = class _TrajectoryDescription extends Message { + /** + * @generated from oneof exa.cortex_pb.TrajectoryDescription.description + */ + description = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TrajectoryDescription'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'cascade_conversation_title', + kind: 'scalar', + T: 9, + oneof: 'description', + }, + { + no: 2, + name: 'mainline_branch_name', + kind: 'scalar', + T: 9, + oneof: 'description', + }, + ]); + static fromBinary(bytes, options) { + return new _TrajectoryDescription().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TrajectoryDescription().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TrajectoryDescription().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TrajectoryDescription, a, b); + } +}; +var CortexStepTrajectorySearch = class _CortexStepTrajectorySearch extends Message { + /** + * INPUTS + * The ID of the trajectory to search. + * + * @generated from field: string id = 1; + */ + id = ''; + /** + * The search query string. If empty, the entire trajectory is retrieved. + * + * @generated from field: string query = 2; + */ + query = ''; + /** + * The type of the search + * + * @generated from field: exa.cortex_pb.TrajectorySearchIdType id_type = 3; + */ + idType = TrajectorySearchIdType.UNSPECIFIED; + /** + * OUTPUTS + * Scored output chunks + * + * @generated from field: repeated exa.context_module_pb.CciWithSubrangeWithRetrievalMetadata chunks = 4; + */ + chunks = []; + /** + * Description of the searched trajectory (e.g., conversation title or branch + * name). + * + * @generated from field: exa.cortex_pb.TrajectoryDescription trajectory_description = 5; + */ + trajectoryDescription; + /** + * Total number of chunks in the trajectory + * + * @generated from field: uint32 total_chunks = 6; + */ + totalChunks = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepTrajectorySearch'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'id_type', + kind: 'enum', + T: proto3.getEnumType(TrajectorySearchIdType), + }, + { + no: 4, + name: 'chunks', + kind: 'message', + T: CciWithSubrangeWithRetrievalMetadata, + repeated: true, + }, + { + no: 5, + name: 'trajectory_description', + kind: 'message', + T: TrajectoryDescription2, + }, + { + no: 6, + name: 'total_chunks', + kind: 'scalar', + T: 13, + /* ScalarType.UINT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepTrajectorySearch().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepTrajectorySearch().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepTrajectorySearch().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepTrajectorySearch, a, b); + } +}; +var CortexStepReadTerminal = class _CortexStepReadTerminal extends Message { + /** + * INPUTS + * The process ID of the terminal to read. + * + * @generated from field: string process_id = 1; + */ + processId = ''; + /** + * @generated from field: string name = 2; + */ + name = ''; + /** + * OUTPUTS + * The contents of the requested terminal (truncated to 4000 characters) + * + * @generated from field: string contents = 3; + */ + contents = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepReadTerminal'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'process_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'contents', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepReadTerminal().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepReadTerminal().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepReadTerminal().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepReadTerminal, a, b); + } +}; +var TaskResolutionOpenPr = class _TaskResolutionOpenPr extends Message { + /** + * @generated from field: string pr_title = 1; + */ + prTitle = ''; + /** + * @generated from field: string pr_body = 2; + */ + prBody = ''; + /** + * Github URL + * + * @generated from field: string pr_url = 3; + */ + prUrl = ''; + /** + * Whether a PR for the branch existed prior to this task resolution; in this + * case, the task resolution amounts to an update to that PR. + * + * @generated from field: bool existed_previously = 4; + */ + existedPreviously = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TaskResolutionOpenPr'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'pr_title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'pr_body', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'pr_url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'existed_previously', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _TaskResolutionOpenPr().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TaskResolutionOpenPr().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TaskResolutionOpenPr().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TaskResolutionOpenPr, a, b); + } +}; +var TaskResolution = class _TaskResolution extends Message { + /** + * @generated from oneof exa.cortex_pb.TaskResolution.resolution + */ + resolution = { case: void 0 }; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.TaskResolution'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'open_pr', + kind: 'message', + T: TaskResolutionOpenPr, + oneof: 'resolution', + }, + ]); + static fromBinary(bytes, options) { + return new _TaskResolution().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _TaskResolution().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _TaskResolution().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_TaskResolution, a, b); + } +}; +var CortexStepResolveTask = class _CortexStepResolveTask extends Message { + /** + * URI for the absolute path of the working directory for the task, i.e. repo + * root. + * + * @generated from field: string absolute_uri = 1; + */ + absoluteUri = ''; + /** + * A proposed title for the task. Suitable for e.g. a PR title, or a commit + * message. + * + * @generated from field: string title = 2; + */ + title = ''; + /** + * A proposed description of the task. Suitable for e.g. a PR description, or + * the extra message of a commit. + * + * @generated from field: string description = 3; + */ + description = ''; + /** + * Whether the user rejected the task resolution. + * + * @generated from field: bool user_rejected = 4; + */ + userRejected = false; + /** + * The resolution outcome of the task. + * + * @generated from field: exa.cortex_pb.TaskResolution resolution = 5; + */ + resolution; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepResolveTask'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'absolute_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 5, name: 'resolution', kind: 'message', T: TaskResolution }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepResolveTask().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepResolveTask().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepResolveTask().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepResolveTask, a, b); + } +}; +var CodeSearchMatch = class _CodeSearchMatch extends Message { + /** + * @generated from field: string snippet = 1; + */ + snippet = ''; + /** + * @generated from field: int32 line_number = 2; + */ + lineNumber = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodeSearchMatch'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'snippet', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'line_number', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodeSearchMatch().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeSearchMatch().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeSearchMatch().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeSearchMatch, a, b); + } +}; +var CodeSearchResults = class _CodeSearchResults extends Message { + /** + * @generated from field: string path = 1; + */ + path = ''; + /** + * @generated from field: repeated exa.cortex_pb.CodeSearchMatch matches = 4; + */ + matches = []; + /** + * @generated from field: string changelist = 5; + */ + changelist = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodeSearchResults'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'matches', + kind: 'message', + T: CodeSearchMatch, + repeated: true, + }, + { + no: 5, + name: 'changelist', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CodeSearchResults().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeSearchResults().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeSearchResults().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeSearchResults, a, b); + } +}; +var CortexStepCodeSearch = class _CortexStepCodeSearch extends Message { + /** + * INPUTS + * + * @generated from field: string query = 1; + */ + query = ''; + /** + * @generated from field: bool only_paths = 6; + */ + onlyPaths = false; + /** + * @generated from field: bool allow_dirs = 7; + */ + allowDirs = false; + /** + * OUTPUTS + * + * @generated from field: repeated exa.cortex_pb.CodeSearchResults results = 5; + */ + results = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCodeSearch'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'only_paths', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 7, + name: 'allow_dirs', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'results', + kind: 'message', + T: CodeSearchResults, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCodeSearch().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCodeSearch().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCodeSearch().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCodeSearch, a, b); + } +}; +var CortexStepBrowserInput = class _CortexStepBrowserInput extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: int32 index = 2; + */ + index = 0; + /** + * @generated from field: string text = 3; + */ + text = ''; + /** + * @generated from field: bool press_enter = 4; + */ + pressEnter = false; + /** + * @generated from field: bool clear_text = 5; + */ + clearText = false; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 6; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 7; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserInput'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'press_enter', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'clear_text', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 6, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 7, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserInput().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserInput().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserInput().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserInput, a, b); + } +}; +var CortexStepBrowserMoveMouse = class _CortexStepBrowserMoveMouse extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: int32 x = 2; + */ + x = 0; + /** + * @generated from field: int32 y = 3; + */ + y = 0; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 6; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 7; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserMoveMouse'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'x', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'y', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 6, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 7, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserMoveMouse().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserMoveMouse().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserMoveMouse().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserMoveMouse, a, b); + } +}; +var CortexStepBrowserSelectOption = class _CortexStepBrowserSelectOption extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: int32 index = 2; + */ + index = 0; + /** + * @generated from field: string value = 3; + */ + value = ''; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 6; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 7; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserSelectOption'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'value', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 6, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 7, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserSelectOption().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserSelectOption().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserSelectOption().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserSelectOption, a, b); + } +}; +var CortexStepBrowserScroll = class _CortexStepBrowserScroll extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: exa.browser_pb.ScrollDirection direction = 2; + */ + direction = ScrollDirection.UNSPECIFIED; + /** + * @generated from field: bool scroll_to_end = 3; + */ + scrollToEnd = false; + /** + * @generated from field: bool scroll_by_element_index = 4; + */ + scrollByElementIndex = false; + /** + * @generated from field: int32 element_index = 5; + */ + elementIndex = 0; + /** + * Outputs + * + * @generated from field: int32 pixels_scrolled_x = 6; + */ + pixelsScrolledX = 0; + /** + * @generated from field: int32 pixels_scrolled_y = 7; + */ + pixelsScrolledY = 0; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 8; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserScroll'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'direction', + kind: 'enum', + T: proto3.getEnumType(ScrollDirection), + }, + { + no: 3, + name: 'scroll_to_end', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'scroll_by_element_index', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 5, + name: 'element_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'pixels_scrolled_x', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 7, + name: 'pixels_scrolled_y', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 8, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserScroll().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserScroll().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserScroll().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserScroll, a, b); + } +}; +var CortexStepBrowserScrollUp = class _CortexStepBrowserScrollUp extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: bool scroll_to_end = 2; + */ + scrollToEnd = false; + /** + * Optional flags for scrolling inside specific elements + * + * if true, scroll to the specific element + * + * @generated from field: bool scroll_by_element_index = 3; + */ + scrollByElementIndex = false; + /** + * Index of the element to scroll to + * + * @generated from field: int32 element_index = 4; + */ + elementIndex = 0; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 5; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserScrollUp'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'scroll_to_end', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'scroll_by_element_index', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'element_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserScrollUp().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserScrollUp().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserScrollUp().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserScrollUp, a, b); + } +}; +var CortexStepBrowserScrollDown = class _CortexStepBrowserScrollDown extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: bool scroll_to_end = 2; + */ + scrollToEnd = false; + /** + * Optional flags for scrolling inside specific elements + * + * if true, scroll to the specific element + * + * @generated from field: bool scroll_by_element_index = 3; + */ + scrollByElementIndex = false; + /** + * Index of the element to scroll to + * + * @generated from field: int32 element_index = 4; + */ + elementIndex = 0; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 5; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserScrollDown'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'scroll_to_end', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 3, + name: 'scroll_by_element_index', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'element_index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserScrollDown().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserScrollDown().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserScrollDown().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserScrollDown, a, b); + } +}; +var CortexStepBrowserClickElement = class _CortexStepBrowserClickElement extends Message { + /** + * Inputs + * The page_id to click on. + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * The index of the DOM element to click on. Page must be injected to have + * elements indexed. + * + * @generated from field: int32 index = 2; + */ + index = 0; + /** + * Optional natural language description of the element to click on. + * + * @generated from field: string description = 3; + */ + description = ''; + /** + * Optional click type (left, right, double). Defaults to left click if not + * specified. + * + * @generated from field: exa.browser_pb.ClickType click_type = 5; + */ + clickType = ClickType.UNSPECIFIED; + /** + * Outputs + * + * @generated from field: bool user_rejected = 4; + */ + userRejected = false; + /** + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 6; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 7; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserClickElement'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'index', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'click_type', + kind: 'enum', + T: proto3.getEnumType(ClickType), + }, + { + no: 4, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 6, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 7, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserClickElement().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserClickElement().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserClickElement().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserClickElement, a, b); + } +}; +var CortexStepBrowserListNetworkRequests = class _CortexStepBrowserListNetworkRequests extends Message { + /** + * Inputs + * The page_id to list network requests for. + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * Optional. Set to true to return the preserved requests over the last three + * navigations. + * + * @generated from field: bool include_preserved_requests = 2; + */ + includePreservedRequests = false; + /** + * Optional. The resource types to list network requests for. When empty, all + * resource types are listed. + * + * @generated from field: repeated string resource_types = 3; + */ + resourceTypes = []; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 4; + */ + pageMetadata; + /** + * String representation of the network requests for this action. + * + * @generated from field: string network_requests = 5; + */ + networkRequests = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserListNetworkRequests'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'include_preserved_requests', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 3, name: 'resource_types', kind: 'scalar', T: 9, repeated: true }, + { no: 4, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 5, + name: 'network_requests', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserListNetworkRequests().fromBinary( + bytes, + options, + ); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserListNetworkRequests().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserListNetworkRequests().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserListNetworkRequests, a, b); + } +}; +var CortexStepBrowserGetNetworkRequest = class _CortexStepBrowserGetNetworkRequest extends Message { + /** + * Inputs + * The page_id to get network request from. + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * The request ID to retrieve details for. + * + * @generated from field: string request_id = 2; + */ + requestId = ''; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 3; + */ + pageMetadata; + /** + * String representation of the network request details. + * + * @generated from field: string network_request_details = 4; + */ + networkRequestDetails = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserGetNetworkRequest'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'request_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 4, + name: 'network_request_details', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserGetNetworkRequest().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserGetNetworkRequest().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserGetNetworkRequest().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserGetNetworkRequest, a, b); + } +}; +var ModelAliasResolutionPayload = class _ModelAliasResolutionPayload extends Message { + /** + * The model enum that the alias resolves to. + * + * @generated from field: exa.codeium_common_pb.Model model = 1; + */ + model = Model.UNSPECIFIED; + /** + * Model info override to be merged on top of default model info for the model + * enum. Only meant to be used with BYOM enum for custom models. + * + * @generated from field: exa.codeium_common_pb.ModelInfo model_info_override = 2; + */ + modelInfoOverride; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ModelAliasResolutionPayload'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'model', kind: 'enum', T: proto3.getEnumType(Model) }, + { no: 2, name: 'model_info_override', kind: 'message', T: ModelInfo }, + ]); + static fromBinary(bytes, options) { + return new _ModelAliasResolutionPayload().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ModelAliasResolutionPayload().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ModelAliasResolutionPayload().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_ModelAliasResolutionPayload, a, b); + } +}; +var CortexStepBrowserMouseWheel = class _CortexStepBrowserMouseWheel extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: int32 x = 2; + */ + x = 0; + /** + * @generated from field: int32 y = 3; + */ + y = 0; + /** + * @generated from field: int32 dx = 4; + */ + dx = 0; + /** + * @generated from field: int32 dy = 5; + */ + dy = 0; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 6; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 7; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserMouseWheel'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'x', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'y', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'dx', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'dy', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { no: 6, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 7, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserMouseWheel().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserMouseWheel().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserMouseWheel().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserMouseWheel, a, b); + } +}; +var CortexStepBrowserMouseUp = class _CortexStepBrowserMouseUp extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: string button = 2; + */ + button = ''; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 3; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 4; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserMouseUp'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'button', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 4, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserMouseUp().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserMouseUp().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserMouseUp().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserMouseUp, a, b); + } +}; +var CortexStepBrowserMouseDown = class _CortexStepBrowserMouseDown extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * @generated from field: string button = 2; + */ + button = ''; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 3; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 4; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserMouseDown'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'button', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 4, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserMouseDown().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserMouseDown().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserMouseDown().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserMouseDown, a, b); + } +}; +var CortexStepBrowserRefreshPage = class _CortexStepBrowserRefreshPage extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 2; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 3; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserRefreshPage'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 3, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserRefreshPage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserRefreshPage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserRefreshPage().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserRefreshPage, a, b); + } +}; +var CortexStepBrowserPressKey = class _CortexStepBrowserPressKey extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * Note: Only one of key / text should be set in a well-formed tool call. + * Key name or combination, primarily for shortcuts and special keys (e.g., + * "Enter", "Control+C", "F1"). + * + * @generated from field: string key = 2; + */ + key = ''; + /** + * Text to type character by character. For regular text input. Cannot include + * special keys (e.g. "F1", "Enter"). + * + * @generated from field: string text = 3; + */ + text = ''; + /** + * Outputs + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 5; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 4; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserPressKey'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'key', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'text', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 4, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserPressKey().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserPressKey().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserPressKey().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserPressKey, a, b); + } +}; +var CortexStepGenerateImage = class _CortexStepGenerateImage extends Message { + /** + * Inputs + * The text prompt to generate an image for. + * + * @generated from field: string prompt = 1; + */ + prompt = ''; + /** + * Optional absolute paths to the images to use in generation. Maximum of 3 + * images. + * + * @generated from field: repeated string image_paths = 2; + */ + imagePaths = []; + /** + * Name of the generated image file (without extension) when saving as + * artifact. + * + * @generated from field: string image_name = 4; + */ + imageName = ''; + /** + * Outputs + * The generated image. This is also saved in the artifacts directory with the + * path set in the ImageData. + * + * @generated from field: exa.codeium_common_pb.ImageData generated_image = 3 [deprecated = true]; + * @deprecated + */ + generatedImage; + /** + * The image generation model's name. + * + * @generated from field: string model_name = 5; + */ + modelName = ''; + /** + * @generated from field: exa.codeium_common_pb.Media generated_media = 6; + */ + generatedMedia; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepGenerateImage'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'image_paths', kind: 'scalar', T: 9, repeated: true }, + { + no: 4, + name: 'image_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 3, name: 'generated_image', kind: 'message', T: ImageData }, + { + no: 5, + name: 'model_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 6, name: 'generated_media', kind: 'message', T: Media }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepGenerateImage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepGenerateImage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepGenerateImage().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepGenerateImage, a, b); + } +}; +var CortexStepBrowserResizeWindow = class _CortexStepBrowserResizeWindow extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * New width for the browser window in display-independent pixels. + * Only used when window_state is 'normal'. + * + * @generated from field: int32 width = 2; + */ + width = 0; + /** + * New height for the browser window in display-independent pixels. + * Only used when window_state is 'normal'. + * + * @generated from field: int32 height = 3; + */ + height = 0; + /** + * Window state to set. ex. minimized, normal, etc. + * + * @generated from field: exa.browser_pb.WindowState window_state = 6; + */ + windowState = WindowState.UNSPECIFIED; + /** + * Whether the user rejected to resize the window (if the auto run decision + * was not to auto run). + * + * @generated from field: bool user_rejected = 4; + */ + userRejected = false; + /** + * Auto-populated metadata associated with the Browser page. + * + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 5; + */ + pageMetadata; + /** + * String representation of the browser state diff for this action. + * + * @generated from field: string browser_state_diff = 7; + */ + browserStateDiff = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserResizeWindow'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'width', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'height', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'window_state', + kind: 'enum', + T: proto3.getEnumType(WindowState), + }, + { + no: 4, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 5, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 7, + name: 'browser_state_diff', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserResizeWindow().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserResizeWindow().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserResizeWindow().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserResizeWindow, a, b); + } +}; +var CortexStepBrowserDragPixelToPixel = class _CortexStepBrowserDragPixelToPixel extends Message { + /** + * Inputs + * + * @generated from field: string page_id = 1; + */ + pageId = ''; + /** + * A waypoint may not necessarily be the start or end of the drag, such as if + * the agent starts a drag at point A, moves to point B, and then releases at + * point C. A, B, and C are all waypoints. + * There must be at least two waypoints in a well-formed tool call. + * + * @generated from field: repeated exa.codeium_common_pb.Point2 waypoints = 2; + */ + waypoints = []; + /** + * Outputs + * + * @generated from field: bool user_rejected = 6; + */ + userRejected = false; + /** + * @generated from field: exa.codeium_common_pb.BrowserPageMetadata page_metadata = 7; + */ + pageMetadata; + /** + * Screenshots showing the drag path. To avoid filling the context window with + * too many images, one screenshot might include multiple waypoints. We do + * ensure that each screen shows a contiguous set of waypoints, and that + * the screenshots are time-ordered. + * For example, if the tool call includes waypoints A, B, C, D, then it is + * possible for two screenshots to contain {A} and {B, C, D} respectively. + * It is also possible for there to be a single screenshot with {A, B, C, D}. + * + * @generated from field: repeated exa.codeium_common_pb.Media screenshots_with_drag_feedback = 8; + */ + screenshotsWithDragFeedback = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepBrowserDragPixelToPixel'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'page_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'waypoints', kind: 'message', T: Point2, repeated: true }, + { + no: 6, + name: 'user_rejected', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { no: 7, name: 'page_metadata', kind: 'message', T: BrowserPageMetadata }, + { + no: 8, + name: 'screenshots_with_drag_feedback', + kind: 'message', + T: Media, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepBrowserDragPixelToPixel().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepBrowserDragPixelToPixel().fromJson( + jsonValue, + options, + ); + } + static fromJsonString(jsonString, options) { + return new _CortexStepBrowserDragPixelToPixel().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepBrowserDragPixelToPixel, a, b); + } +}; +var CortexStepTaskBoundary = class _CortexStepTaskBoundary extends Message { + /** + * Inputs + * + * @generated from field: string task_name = 1; + */ + taskName = ''; + /** + * @generated from field: string task_status = 2; + */ + taskStatus = ''; + /** + * @generated from field: string task_summary = 3; + */ + taskSummary = ''; + /** + * @generated from field: string task_summary_with_citations = 4; + */ + taskSummaryWithCitations = ''; + /** + * @generated from field: string delta_summary = 6; + */ + deltaSummary = ''; + /** + * @generated from field: string delta_summary_with_citations = 7; + */ + deltaSummaryWithCitations = ''; + /** + * Outputs + * + * @generated from field: exa.cortex_pb.AgentMode mode = 5; + */ + mode = AgentMode.UNSPECIFIED; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepTaskBoundary'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'task_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'task_status', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'task_summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'task_summary_with_citations', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'delta_summary', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'delta_summary_with_citations', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 5, name: 'mode', kind: 'enum', T: proto3.getEnumType(AgentMode) }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepTaskBoundary().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepTaskBoundary().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepTaskBoundary().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepTaskBoundary, a, b); + } +}; +var CortexStepNotifyUser = class _CortexStepNotifyUser extends Message { + /** + * Inputs + * + * Files that request review + * + * @generated from field: repeated string review_absolute_uris = 1; + */ + reviewAbsoluteUris = []; + /** + * @generated from field: string notification_content = 2; + */ + notificationContent = ''; + /** + * @generated from field: bool is_blocking = 3; + */ + isBlocking = false; + /** + * Agent's confidence in the documents being reviewed (0.0-1.0) + * + * @generated from field: float confidence_score = 4 [deprecated = true]; + * @deprecated + */ + confidenceScore = 0; + /** + * Justification for the confidence score + * + * @generated from field: string confidence_justification = 5 [deprecated = true]; + * @deprecated + */ + confidenceJustification = ''; + /** + * Whether the agent believes it should auto-proceed without user interaction + * + * @generated from field: bool should_auto_proceed = 8; + */ + shouldAutoProceed = false; + /** + * Outputs + * URI of the generated diffs artifact + * + * @generated from field: string diffs_uri = 6; + */ + diffsUri = ''; + /** + * Whether the notify user step requires user interaction before the agent can + * proceed. Used to determine when to send auto-approved review steps. + * + * @generated from field: bool ask_for_user_feedback = 7; + */ + askForUserFeedback = false; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepNotifyUser'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'review_absolute_uris', + kind: 'scalar', + T: 9, + repeated: true, + }, + { + no: 2, + name: 'notification_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'is_blocking', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'confidence_score', + kind: 'scalar', + T: 2, + /* ScalarType.FLOAT */ + }, + { + no: 5, + name: 'confidence_justification', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 8, + name: 'should_auto_proceed', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 6, + name: 'diffs_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 7, + name: 'ask_for_user_feedback', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepNotifyUser().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepNotifyUser().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepNotifyUser().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepNotifyUser, a, b); + } +}; +var CodeAcknowledgementInfo = class _CodeAcknowledgementInfo extends Message { + /** + * The absolute URI of the file that the code acknowledgement is for. + * + * @generated from field: string uri_path = 1; + */ + uriPath = ''; + /** + * The code action steps that are relevant to the acknowledgement. + * + * @generated from field: repeated uint32 step_indices = 2; + */ + stepIndices = []; + /** + * The diff that happened as a result of the code acknowledgement. + * + * @generated from field: exa.diff_action_pb.UnifiedDiff diff = 3; + */ + diff; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CodeAcknowledgementInfo'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'uri_path', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'step_indices', kind: 'scalar', T: 13, repeated: true }, + { no: 3, name: 'diff', kind: 'message', T: UnifiedDiff }, + ]); + static fromBinary(bytes, options) { + return new _CodeAcknowledgementInfo().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CodeAcknowledgementInfo().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CodeAcknowledgementInfo().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CodeAcknowledgementInfo, a, b); + } +}; +var CortexStepCodeAcknowledgement = class _CortexStepCodeAcknowledgement extends Message { + /** + * Whether the user accepted the code action steps + * + * @generated from field: bool is_accept = 3; + */ + isAccept = false; + /** + * User-written feedback. + * + * @generated from field: string written_feedback = 4; + */ + writtenFeedback = ''; + /** + * How the user acknowledged the code action. + * + * @generated from field: exa.cortex_pb.CodeAcknowledgementScope acknowledgement_scope = 5; + */ + acknowledgementScope = CodeAcknowledgementScope.UNSPECIFIED; + /** + * code_acknowledgement_infos has length 1 if the + * acknowledgement_scope is FILE or HUNK, and >1 if the acknowledgement_scope + * is ALL. + * + * @generated from field: repeated exa.cortex_pb.CodeAcknowledgementInfo code_acknowledgement_infos = 7; + */ + codeAcknowledgementInfos = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepCodeAcknowledgement'; + static fields = proto3.util.newFieldList(() => [ + { + no: 3, + name: 'is_accept', + kind: 'scalar', + T: 8, + /* ScalarType.BOOL */ + }, + { + no: 4, + name: 'written_feedback', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'acknowledgement_scope', + kind: 'enum', + T: proto3.getEnumType(CodeAcknowledgementScope), + }, + { + no: 7, + name: 'code_acknowledgement_infos', + kind: 'message', + T: CodeAcknowledgementInfo, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepCodeAcknowledgement().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepCodeAcknowledgement().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepCodeAcknowledgement().fromJsonString( + jsonString, + options, + ); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepCodeAcknowledgement, a, b); + } +}; +var InternalSearchResults = class _InternalSearchResults extends Message { + /** + * @generated from field: string url = 1; + */ + url = ''; + /** + * @generated from field: string title = 2; + */ + title = ''; + /** + * @generated from field: string content = 3; + */ + content = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.InternalSearchResults'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'title', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _InternalSearchResults().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _InternalSearchResults().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _InternalSearchResults().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_InternalSearchResults, a, b); + } +}; +var CortexStepInternalSearch = class _CortexStepInternalSearch extends Message { + /** + * Inputs + * + * @generated from field: string query = 1; + */ + query = ''; + /** + * Outputs + * + * @generated from field: repeated exa.cortex_pb.InternalSearchResults results = 2; + */ + results = []; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepInternalSearch'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'query', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'results', + kind: 'message', + T: InternalSearchResults, + repeated: true, + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepInternalSearch().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepInternalSearch().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepInternalSearch().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepInternalSearch, a, b); + } +}; +var ArtifactReviewState = class _ArtifactReviewState extends Message { + /** + * @generated from field: string artifact_uri = 1; + */ + artifactUri = ''; + /** + * @generated from field: exa.cortex_pb.ArtifactReviewStatus status = 2; + */ + status = ArtifactReviewStatus.UNSPECIFIED; + /** + * @generated from field: google.protobuf.Timestamp last_reviewed_time = 3; + */ + lastReviewedTime; + /** + * @generated from field: string last_reviewed_content = 4; + */ + lastReviewedContent = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ArtifactReviewState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'artifact_uri', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(ArtifactReviewStatus), + }, + { no: 3, name: 'last_reviewed_time', kind: 'message', T: Timestamp }, + { + no: 4, + name: 'last_reviewed_content', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _ArtifactReviewState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ArtifactReviewState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ArtifactReviewState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ArtifactReviewState, a, b); + } +}; +var ConversationHistoryConfig = class _ConversationHistoryConfig extends Message { + /** + * @generated from field: optional bool enabled = 1; + */ + enabled; + /** + * @generated from field: int32 max_conversations = 2; + */ + maxConversations = 0; + /** + * @generated from field: int32 max_title_chars = 3; + */ + maxTitleChars = 0; + /** + * @generated from field: int32 max_user_intent_chars = 4; + */ + maxUserIntentChars = 0; + /** + * @generated from field: int32 max_conversation_logs_chars = 5; + */ + maxConversationLogsChars = 0; + /** + * @generated from field: int32 max_artifact_summary_chars = 6; + */ + maxArtifactSummaryChars = 0; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.ConversationHistoryConfig'; + static fields = proto3.util.newFieldList(() => [ + { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: true }, + { + no: 2, + name: 'max_conversations', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 3, + name: 'max_title_chars', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 4, + name: 'max_user_intent_chars', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 5, + name: 'max_conversation_logs_chars', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'max_artifact_summary_chars', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + ]); + static fromBinary(bytes, options) { + return new _ConversationHistoryConfig().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConversationHistoryConfig().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConversationHistoryConfig().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConversationHistoryConfig, a, b); + } +}; +var CortexStepSystemMessage = class _CortexStepSystemMessage extends Message { + /** + * @generated from field: string message = 1; + */ + message = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepSystemMessage'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'message', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepSystemMessage().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepSystemMessage().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepSystemMessage().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepSystemMessage, a, b); + } +}; +var CortexStepWait = class _CortexStepWait extends Message { + /** + * Duration to wait in milliseconds. + * + * @generated from field: int64 duration_ms = 1; + */ + durationMs = protoInt64.zero; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepWait'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'duration_ms', + kind: 'scalar', + T: 3, + /* ScalarType.INT64 */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepWait().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepWait().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepWait().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepWait, a, b); + } +}; +var CortexStepAgencyToolCall = class _CortexStepAgencyToolCall extends Message { + /** + * The target Agency agent name (e.g., "go_moma_agent") + * + * @generated from field: string agent_name = 1; + */ + agentName = ''; + /** + * The function being called (e.g., "moma_search") + * + * @generated from field: string function_name = 2; + */ + functionName = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepAgencyToolCall'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'agent_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'function_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepAgencyToolCall().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepAgencyToolCall().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepAgencyToolCall().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepAgencyToolCall, a, b); + } +}; +var CortexStepWorkspaceAPI = class _CortexStepWorkspaceAPI extends Message { + /** + * Full API URL (e.g., + * https://docs.googleapis.com/v1/documents/{documentId}:batchUpdate) + * + * @generated from field: string url = 1; + */ + url = ''; + /** + * HTTP method (GET, POST, PUT, DELETE). + * + * @generated from field: string http_method = 2; + */ + httpMethod = ''; + /** + * Request body JSON. + * + * @generated from field: string body = 3; + */ + body = ''; + /** + * User-facing explanation of what this call does. + * + * @generated from field: string description = 4; + */ + description = ''; + /** + * HTTP status code. + * + * @generated from field: int32 status_code = 5; + */ + statusCode = 0; + /** + * Raw JSON response. + * + * @generated from field: string response = 6; + */ + response = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepWorkspaceAPI'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'url', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'http_method', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'body', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'description', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 5, + name: 'status_code', + kind: 'scalar', + T: 5, + /* ScalarType.INT32 */ + }, + { + no: 6, + name: 'response', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepWorkspaceAPI().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepWorkspaceAPI().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepWorkspaceAPI().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepWorkspaceAPI, a, b); + } +}; +var GenericStepResult = class _GenericStepResult extends Message { + /** + * Result that will be shown to the model. + * + * @generated from field: string result = 1; + */ + result = ''; + /** + * Optional key-value metadata for additional context (e.g., for rendering). + * + * @generated from field: map metadata = 2; + */ + metadata = {}; + /** + * Optional step render info. + * + * @generated from field: exa.cortex_pb.StepRenderInfo step_render_info = 3; + */ + stepRenderInfo; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.GenericStepResult'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'result', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'metadata', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - oneof: 'description', + /* ScalarType.STRING */ }, - { - no: 2, - name: 'mainline_branch_name', + }, + { no: 3, name: 'step_render_info', kind: 'message', T: StepRenderInfo }, + ]); + static fromBinary(bytes, options) { + return new _GenericStepResult().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _GenericStepResult().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _GenericStepResult().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_GenericStepResult, a, b); + } +}; +var CortexStepInvokeSubagent = class _CortexStepInvokeSubagent extends Message { + /** + * Name of the subagent to invoke. + * + * @generated from field: string subagent_name = 1; + */ + subagentName = ''; + /** + * Natural language prompt/instructions for the subagent. + * + * @generated from field: string prompt = 2; + */ + prompt = ''; + /** + * Result returned by the subagent (populated after execution). + * + * @generated from field: string result = 3; + */ + result = ''; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepInvokeSubagent'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'subagent_name', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'prompt', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 3, + name: 'result', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepInvokeSubagent().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepInvokeSubagent().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepInvokeSubagent().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepInvokeSubagent, a, b); + } +}; +var CortexStepGeneric = class _CortexStepGeneric extends Message { + /** + * Inputs + * + * @generated from field: map args = 1; + */ + args = {}; + /** + * Outputs + * + * @generated from field: exa.cortex_pb.GenericStepResult result = 2; + */ + result; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'exa.cortex_pb.CortexStepGeneric'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'args', + kind: 'map', + K: 9, + V: { kind: 'scalar', T: 9, - oneof: 'description', + /* ScalarType.STRING */ }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - lo = class e extends r { - id = ''; - query = ''; - idType = ya.UNSPECIFIED; - chunks = []; - trajectoryDescription; - totalChunks = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepTrajectorySearch'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'id', kind: 'scalar', T: 9 }, - { no: 2, name: 'query', kind: 'scalar', T: 9 }, - { no: 3, name: 'id_type', kind: 'enum', T: a.getEnumType(ya) }, - { no: 4, name: 'chunks', kind: 'message', T: Fn, repeated: !0 }, - { no: 5, name: 'trajectory_description', kind: 'message', T: vd }, - { no: 6, name: 'total_chunks', kind: 'scalar', T: 13 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Eo = class e extends r { - processId = ''; - name = ''; - contents = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepReadTerminal'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'process_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'name', kind: 'scalar', T: 9 }, - { no: 3, name: 'contents', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - zd = class e extends r { - prTitle = ''; - prBody = ''; - prUrl = ''; - existedPreviously = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TaskResolutionOpenPr'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'pr_title', kind: 'scalar', T: 9 }, - { no: 2, name: 'pr_body', kind: 'scalar', T: 9 }, - { no: 3, name: 'pr_url', kind: 'scalar', T: 9 }, - { no: 4, name: 'existed_previously', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - _o = class e extends r { - resolution = { case: void 0 }; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.TaskResolution'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'open_pr', kind: 'message', T: zd, oneof: 'resolution' }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jI = class e extends r { - absoluteUri = ''; - title = ''; - description = ''; - userRejected = !1; - resolution; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepResolveTask'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'absolute_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'title', kind: 'scalar', T: 9 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - { no: 4, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 5, name: 'resolution', kind: 'message', T: _o }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - jd = class e extends r { - snippet = ''; - lineNumber = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodeSearchMatch'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'snippet', kind: 'scalar', T: 9 }, - { no: 2, name: 'line_number', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Qd = class e extends r { - path = ''; - matches = []; - changelist = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodeSearchResults'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'path', kind: 'scalar', T: 9 }, - { no: 4, name: 'matches', kind: 'message', T: jd, repeated: !0 }, - { no: 5, name: 'changelist', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - To = class e extends r { - query = ''; - onlyPaths = !1; - allowDirs = !1; - results = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCodeSearch'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 6, name: 'only_paths', kind: 'scalar', T: 8 }, - { no: 7, name: 'allow_dirs', kind: 'scalar', T: 8 }, - { no: 5, name: 'results', kind: 'message', T: Qd, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - fo = class e extends r { - pageId = ''; - index = 0; - text = ''; - pressEnter = !1; - clearText = !1; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserInput'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'index', kind: 'scalar', T: 5 }, - { no: 3, name: 'text', kind: 'scalar', T: 9 }, - { no: 4, name: 'press_enter', kind: 'scalar', T: 8 }, - { no: 5, name: 'clear_text', kind: 'scalar', T: 8 }, - { no: 6, name: 'page_metadata', kind: 'message', T: A }, - { no: 7, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - No = class e extends r { - pageId = ''; - x = 0; - y = 0; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserMoveMouse'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'x', kind: 'scalar', T: 5 }, - { no: 3, name: 'y', kind: 'scalar', T: 5 }, - { no: 6, name: 'page_metadata', kind: 'message', T: A }, - { no: 7, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - So = class e extends r { - pageId = ''; - index = 0; - value = ''; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserSelectOption'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'index', kind: 'scalar', T: 5 }, - { no: 3, name: 'value', kind: 'scalar', T: 9 }, - { no: 6, name: 'page_metadata', kind: 'message', T: A }, - { no: 7, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Io = class e extends r { - pageId = ''; - direction = _e.UNSPECIFIED; - scrollToEnd = !1; - scrollByElementIndex = !1; - elementIndex = 0; - pixelsScrolledX = 0; - pixelsScrolledY = 0; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserScroll'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'direction', kind: 'enum', T: a.getEnumType(_e) }, - { no: 3, name: 'scroll_to_end', kind: 'scalar', T: 8 }, - { no: 4, name: 'scroll_by_element_index', kind: 'scalar', T: 8 }, - { no: 5, name: 'element_index', kind: 'scalar', T: 5 }, - { no: 6, name: 'pixels_scrolled_x', kind: 'scalar', T: 5 }, - { no: 7, name: 'pixels_scrolled_y', kind: 'scalar', T: 5 }, - { no: 8, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - po = class e extends r { - pageId = ''; - scrollToEnd = !1; - scrollByElementIndex = !1; - elementIndex = 0; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserScrollUp'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'scroll_to_end', kind: 'scalar', T: 8 }, - { no: 3, name: 'scroll_by_element_index', kind: 'scalar', T: 8 }, - { no: 4, name: 'element_index', kind: 'scalar', T: 5 }, - { no: 5, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Oo = class e extends r { - pageId = ''; - scrollToEnd = !1; - scrollByElementIndex = !1; - elementIndex = 0; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserScrollDown'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'scroll_to_end', kind: 'scalar', T: 8 }, - { no: 3, name: 'scroll_by_element_index', kind: 'scalar', T: 8 }, - { no: 4, name: 'element_index', kind: 'scalar', T: 5 }, - { no: 5, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ao = class e extends r { - pageId = ''; - index = 0; - description = ''; - clickType = pn.UNSPECIFIED; - userRejected = !1; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserClickElement'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'index', kind: 'scalar', T: 5 }, - { no: 3, name: 'description', kind: 'scalar', T: 9 }, - { no: 5, name: 'click_type', kind: 'enum', T: a.getEnumType(pn) }, - { no: 4, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 6, name: 'page_metadata', kind: 'message', T: A }, - { no: 7, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Co = class e extends r { - pageId = ''; - includePreservedRequests = !1; - resourceTypes = []; - pageMetadata; - networkRequests = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserListNetworkRequests'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'include_preserved_requests', kind: 'scalar', T: 8 }, - { no: 3, name: 'resource_types', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'page_metadata', kind: 'message', T: A }, - { no: 5, name: 'network_requests', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ro = class e extends r { - pageId = ''; - requestId = ''; - pageMetadata; - networkRequestDetails = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserGetNetworkRequest'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'request_id', kind: 'scalar', T: 9 }, - { no: 3, name: 'page_metadata', kind: 'message', T: A }, - { no: 4, name: 'network_request_details', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - QI = class e extends r { - model = f.UNSPECIFIED; - modelInfoOverride; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ModelAliasResolutionPayload'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'model', kind: 'enum', T: a.getEnumType(f) }, - { no: 2, name: 'model_info_override', kind: 'message', T: tn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Lo = class e extends r { - pageId = ''; - x = 0; - y = 0; - dx = 0; - dy = 0; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserMouseWheel'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'x', kind: 'scalar', T: 5 }, - { no: 3, name: 'y', kind: 'scalar', T: 5 }, - { no: 4, name: 'dx', kind: 'scalar', T: 5 }, - { no: 5, name: 'dy', kind: 'scalar', T: 5 }, - { no: 6, name: 'page_metadata', kind: 'message', T: A }, - { no: 7, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Po = class e extends r { - pageId = ''; - button = ''; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserMouseUp'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'button', kind: 'scalar', T: 9 }, - { no: 3, name: 'page_metadata', kind: 'message', T: A }, - { no: 4, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Do = class e extends r { - pageId = ''; - button = ''; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserMouseDown'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'button', kind: 'scalar', T: 9 }, - { no: 3, name: 'page_metadata', kind: 'message', T: A }, - { no: 4, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ko = class e extends r { - pageId = ''; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserRefreshPage'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'page_metadata', kind: 'message', T: A }, - { no: 3, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - go = class e extends r { - pageId = ''; - key = ''; - text = ''; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserPressKey'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'key', kind: 'scalar', T: 9 }, - { no: 3, name: 'text', kind: 'scalar', T: 9 }, - { no: 5, name: 'page_metadata', kind: 'message', T: A }, - { no: 4, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - wo = class e extends r { - prompt = ''; - imagePaths = []; - imageName = ''; - generatedImage; - modelName = ''; - generatedMedia; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepGenerateImage'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'prompt', kind: 'scalar', T: 9 }, - { no: 2, name: 'image_paths', kind: 'scalar', T: 9, repeated: !0 }, - { no: 4, name: 'image_name', kind: 'scalar', T: 9 }, - { no: 3, name: 'generated_image', kind: 'message', T: P }, - { no: 5, name: 'model_name', kind: 'scalar', T: 9 }, - { no: 6, name: 'generated_media', kind: 'message', T: C }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Jo = class e extends r { - pageId = ''; - width = 0; - height = 0; - windowState = de.UNSPECIFIED; - userRejected = !1; - pageMetadata; - browserStateDiff = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserResizeWindow'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'width', kind: 'scalar', T: 5 }, - { no: 3, name: 'height', kind: 'scalar', T: 5 }, - { no: 6, name: 'window_state', kind: 'enum', T: a.getEnumType(de) }, - { no: 4, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 5, name: 'page_metadata', kind: 'message', T: A }, - { no: 7, name: 'browser_state_diff', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - xo = class e extends r { - pageId = ''; - waypoints = []; - userRejected = !1; - pageMetadata; - screenshotsWithDragFeedback = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepBrowserDragPixelToPixel'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'page_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'waypoints', kind: 'message', T: $r, repeated: !0 }, - { no: 6, name: 'user_rejected', kind: 'scalar', T: 8 }, - { no: 7, name: 'page_metadata', kind: 'message', T: A }, - { - no: 8, - name: 'screenshots_with_drag_feedback', - kind: 'message', - T: C, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Uo = class e extends r { - taskName = ''; - taskStatus = ''; - taskSummary = ''; - taskSummaryWithCitations = ''; - deltaSummary = ''; - deltaSummaryWithCitations = ''; - mode = _a.UNSPECIFIED; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepTaskBoundary'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'task_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'task_status', kind: 'scalar', T: 9 }, - { no: 3, name: 'task_summary', kind: 'scalar', T: 9 }, - { no: 4, name: 'task_summary_with_citations', kind: 'scalar', T: 9 }, - { no: 6, name: 'delta_summary', kind: 'scalar', T: 9 }, - { no: 7, name: 'delta_summary_with_citations', kind: 'scalar', T: 9 }, - { no: 5, name: 'mode', kind: 'enum', T: a.getEnumType(_a) }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Bo = class e extends r { - reviewAbsoluteUris = []; - notificationContent = ''; - isBlocking = !1; - confidenceScore = 0; - confidenceJustification = ''; - shouldAutoProceed = !1; - diffsUri = ''; - askForUserFeedback = !1; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepNotifyUser'; - static fields = a.util.newFieldList(() => [ - { - no: 1, - name: 'review_absolute_uris', - kind: 'scalar', - T: 9, - repeated: !0, - }, - { no: 2, name: 'notification_content', kind: 'scalar', T: 9 }, - { no: 3, name: 'is_blocking', kind: 'scalar', T: 8 }, - { no: 4, name: 'confidence_score', kind: 'scalar', T: 2 }, - { no: 5, name: 'confidence_justification', kind: 'scalar', T: 9 }, - { no: 8, name: 'should_auto_proceed', kind: 'scalar', T: 8 }, - { no: 6, name: 'diffs_uri', kind: 'scalar', T: 9 }, - { no: 7, name: 'ask_for_user_feedback', kind: 'scalar', T: 8 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Zd = class e extends r { - uriPath = ''; - stepIndices = []; - diff; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CodeAcknowledgementInfo'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'uri_path', kind: 'scalar', T: 9 }, - { no: 2, name: 'step_indices', kind: 'scalar', T: 13, repeated: !0 }, - { no: 3, name: 'diff', kind: 'message', T: me }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Fo = class e extends r { - isAccept = !1; - writtenFeedback = ''; - acknowledgementScope = ha.UNSPECIFIED; - codeAcknowledgementInfos = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepCodeAcknowledgement'; - static fields = a.util.newFieldList(() => [ - { no: 3, name: 'is_accept', kind: 'scalar', T: 8 }, - { no: 4, name: 'written_feedback', kind: 'scalar', T: 9 }, - { - no: 5, - name: 'acknowledgement_scope', - kind: 'enum', - T: a.getEnumType(ha), - }, - { - no: 7, - name: 'code_acknowledgement_infos', - kind: 'message', - T: Zd, - repeated: !0, - }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - $d = class e extends r { - url = ''; - title = ''; - content = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.InternalSearchResults'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'url', kind: 'scalar', T: 9 }, - { no: 2, name: 'title', kind: 'scalar', T: 9 }, - { no: 3, name: 'content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Mo = class e extends r { - query = ''; - results = []; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepInternalSearch'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'query', kind: 'scalar', T: 9 }, - { no: 2, name: 'results', kind: 'message', T: $d, repeated: !0 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - nT = class e extends r { - artifactUri = ''; - status = Ga.UNSPECIFIED; - lastReviewedTime; - lastReviewedContent = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ArtifactReviewState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'artifact_uri', kind: 'scalar', T: 9 }, - { no: 2, name: 'status', kind: 'enum', T: a.getEnumType(Ga) }, - { no: 3, name: 'last_reviewed_time', kind: 'message', T: _ }, - { no: 4, name: 'last_reviewed_content', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - yo = class e extends r { - enabled; - maxConversations = 0; - maxTitleChars = 0; - maxUserIntentChars = 0; - maxConversationLogsChars = 0; - maxArtifactSummaryChars = 0; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.ConversationHistoryConfig'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'enabled', kind: 'scalar', T: 8, opt: !0 }, - { no: 2, name: 'max_conversations', kind: 'scalar', T: 5 }, - { no: 3, name: 'max_title_chars', kind: 'scalar', T: 5 }, - { no: 4, name: 'max_user_intent_chars', kind: 'scalar', T: 5 }, - { no: 5, name: 'max_conversation_logs_chars', kind: 'scalar', T: 5 }, - { no: 6, name: 'max_artifact_summary_chars', kind: 'scalar', T: 5 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - ho = class e extends r { - message = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepSystemMessage'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'message', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Go = class e extends r { - durationMs = o.zero; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepWait'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'duration_ms', kind: 'scalar', T: 3 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - bo = class e extends r { - agentName = ''; - functionName = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepAgencyToolCall'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'agent_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'function_name', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - qo = class e extends r { - url = ''; - httpMethod = ''; - body = ''; - description = ''; - statusCode = 0; - response = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepWorkspaceAPI'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'url', kind: 'scalar', T: 9 }, - { no: 2, name: 'http_method', kind: 'scalar', T: 9 }, - { no: 3, name: 'body', kind: 'scalar', T: 9 }, - { no: 4, name: 'description', kind: 'scalar', T: 9 }, - { no: 5, name: 'status_code', kind: 'scalar', T: 5 }, - { no: 6, name: 'response', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - eT = class e extends r { - result = ''; - metadata = {}; - stepRenderInfo; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.GenericStepResult'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'result', kind: 'scalar', T: 9 }, - { - no: 2, - name: 'metadata', - kind: 'map', - K: 9, - V: { kind: 'scalar', T: 9 }, - }, - { no: 3, name: 'step_render_info', kind: 'message', T: $i }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Ho = class e extends r { - subagentName = ''; - prompt = ''; - result = ''; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepInvokeSubagent'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'subagent_name', kind: 'scalar', T: 9 }, - { no: 2, name: 'prompt', kind: 'scalar', T: 9 }, - { no: 3, name: 'result', kind: 'scalar', T: 9 }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Yo = class e extends r { - args = {}; - result; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'exa.cortex_pb.CortexStepGeneric'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'args', kind: 'map', K: 9, V: { kind: 'scalar', T: 9 } }, - { no: 2, name: 'result', kind: 'message', T: eT }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var Ka; -(function (e) { - ((e[(e.UNSPECIFIED = 0)] = 'UNSPECIFIED'), - (e[(e.IDLE = 1)] = 'IDLE'), - (e[(e.RUNNING = 2)] = 'RUNNING'), - (e[(e.CANCELING = 3)] = 'CANCELING')); -})(Ka || (Ka = {})); -a.util.setEnumType(Ka, 'gemini_coder.ExecutionStatus', [ + }, + { no: 2, name: 'result', kind: 'message', T: GenericStepResult }, + ]); + static fromBinary(bytes, options) { + return new _CortexStepGeneric().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _CortexStepGeneric().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _CortexStepGeneric().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_CortexStepGeneric, a, b); + } +}; + +// exa/proto_ts/dist/exa/gemini_coder/proto/trajectory_pb.js +var ExecutionStatus; +(function (ExecutionStatus2) { + ExecutionStatus2[(ExecutionStatus2['UNSPECIFIED'] = 0)] = 'UNSPECIFIED'; + ExecutionStatus2[(ExecutionStatus2['IDLE'] = 1)] = 'IDLE'; + ExecutionStatus2[(ExecutionStatus2['RUNNING'] = 2)] = 'RUNNING'; + ExecutionStatus2[(ExecutionStatus2['CANCELING'] = 3)] = 'CANCELING'; +})(ExecutionStatus || (ExecutionStatus = {})); +proto3.util.setEnumType(ExecutionStatus, 'gemini_coder.ExecutionStatus', [ { no: 0, name: 'EXECUTION_STATUS_UNSPECIFIED' }, { no: 1, name: 'EXECUTION_STATUS_IDLE' }, { no: 2, name: 'EXECUTION_STATUS_RUNNING' }, { no: 3, name: 'EXECUTION_STATUS_CANCELING' }, ]); -var ZI = class e extends r { - conversationId = ''; - trajectory; - state; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'gemini_coder.Conversation'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'conversation_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'trajectory', kind: 'message', T: Wn }, - { no: 3, name: 'state', kind: 'message', T: tT }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - tT = class e extends r { - trajectoryId = ''; - status = Ka.UNSPECIFIED; - stagedSteps = []; - executeConfig; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'gemini_coder.ConversationState'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'trajectory_id', kind: 'scalar', T: 9 }, - { no: 2, name: 'status', kind: 'enum', T: a.getEnumType(Ka) }, - { no: 3, name: 'staged_steps', kind: 'message', T: Wo, repeated: !0 }, - { no: 4, name: 'execute_config', kind: 'message', T: pe }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wn = class e extends r { - trajectoryId = ''; - cascadeId = ''; - trajectoryType = On.UNSPECIFIED; - steps = []; - parentReferences = []; - generatorMetadata = []; - executorMetadatas = []; - source = Te.UNSPECIFIED; - metadata; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'gemini_coder.Trajectory'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'trajectory_id', kind: 'scalar', T: 9 }, - { no: 6, name: 'cascade_id', kind: 'scalar', T: 9 }, - { no: 4, name: 'trajectory_type', kind: 'enum', T: a.getEnumType(On) }, - { no: 2, name: 'steps', kind: 'message', T: Wo, repeated: !0 }, - { - no: 5, - name: 'parent_references', - kind: 'message', - T: Ss, - repeated: !0, - }, - { - no: 3, - name: 'generator_metadata', - kind: 'message', - T: Is, - repeated: !0, - }, - { - no: 9, - name: 'executor_metadatas', - kind: 'message', - T: xi, - repeated: !0, - }, - { no: 8, name: 'source', kind: 'enum', T: a.getEnumType(Te) }, - { no: 7, name: 'metadata', kind: 'message', T: Ns }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }, - Wo = class e extends r { - type = j.UNSPECIFIED; - status = z.UNSPECIFIED; - metadata; - error; - permissions; - step = { case: void 0 }; - requestedInteraction; - userAnnotations; - subtrajectory; - constructor(n) { - (super(), a.util.initPartial(n, this)); - } - static runtime = a; - static typeName = 'gemini_coder.Step'; - static fields = a.util.newFieldList(() => [ - { no: 1, name: 'type', kind: 'enum', T: a.getEnumType(j) }, - { no: 4, name: 'status', kind: 'enum', T: a.getEnumType(z) }, - { no: 5, name: 'metadata', kind: 'message', T: As }, - { no: 31, name: 'error', kind: 'message', T: Ie }, - { no: 133, name: 'permissions', kind: 'message', T: Cs }, - { no: 140, name: 'generic', kind: 'message', T: Yo, oneof: 'step' }, - { no: 12, name: 'finish', kind: 'message', T: bs, oneof: 'step' }, - { no: 9, name: 'mquery', kind: 'message', T: Ys, oneof: 'step' }, - { no: 10, name: 'code_action', kind: 'message', T: Xs, oneof: 'step' }, - { no: 11, name: 'git_commit', kind: 'message', T: $s, oneof: 'step' }, - { no: 13, name: 'grep_search', kind: 'message', T: ni, oneof: 'step' }, - { no: 16, name: 'compile', kind: 'message', T: si, oneof: 'step' }, - { no: 22, name: 'view_code_item', kind: 'message', T: Ii, oneof: 'step' }, - { no: 24, name: 'error_message', kind: 'message', T: Ri, oneof: 'step' }, - { no: 28, name: 'run_command', kind: 'message', T: Li, oneof: 'step' }, - { no: 34, name: 'find', kind: 'message', T: ei, oneof: 'step' }, - { - no: 36, - name: 'suggested_responses', - kind: 'message', - T: Ci, - oneof: 'step', - }, - { no: 37, name: 'command_status', kind: 'message', T: Ki, oneof: 'step' }, - { - no: 40, - name: 'read_url_content', - kind: 'message', - T: Pi, - oneof: 'step', - }, - { - no: 41, - name: 'view_content_chunk', - kind: 'message', - T: ki, - oneof: 'step', - }, - { no: 42, name: 'search_web', kind: 'message', T: gi, oneof: 'step' }, - { no: 47, name: 'mcp_tool', kind: 'message', T: no, oneof: 'step' }, - { no: 55, name: 'clipboard', kind: 'message', T: Ji, oneof: 'step' }, - { - no: 58, - name: 'view_file_outline', - kind: 'message', - T: oo, - oneof: 'step', - }, - { no: 62, name: 'list_resources', kind: 'message', T: eo, oneof: 'step' }, - { no: 63, name: 'read_resource', kind: 'message', T: to, oneof: 'step' }, - { no: 64, name: 'lint_diff', kind: 'message', T: Ui, oneof: 'step' }, - { - no: 67, - name: 'open_browser_url', - kind: 'message', - T: hi, - oneof: 'step', - }, - { - no: 72, - name: 'trajectory_search', - kind: 'message', - T: lo, - oneof: 'step', - }, - { - no: 73, - name: 'execute_browser_javascript', - kind: 'message', - T: Gi, - oneof: 'step', - }, - { - no: 74, - name: 'list_browser_pages', - kind: 'message', - T: Hi, - oneof: 'step', - }, - { - no: 75, - name: 'capture_browser_screenshot', - kind: 'message', - T: Yi, - oneof: 'step', - }, - { - no: 76, - name: 'click_browser_pixel', - kind: 'message', - T: Wi, - oneof: 'step', - }, - { no: 77, name: 'read_terminal', kind: 'message', T: Eo, oneof: 'step' }, - { - no: 78, - name: 'capture_browser_console_logs', - kind: 'message', - T: Xi, - oneof: 'step', - }, - { - no: 79, - name: 'read_browser_page', - kind: 'message', - T: bi, - oneof: 'step', - }, - { - no: 80, - name: 'browser_get_dom', - kind: 'message', - T: qi, - oneof: 'step', - }, - { no: 85, name: 'code_search', kind: 'message', T: To, oneof: 'step' }, - { no: 86, name: 'browser_input', kind: 'message', T: fo, oneof: 'step' }, - { - no: 87, - name: 'browser_move_mouse', - kind: 'message', - T: No, - oneof: 'step', - }, - { - no: 88, - name: 'browser_select_option', - kind: 'message', - T: So, - oneof: 'step', - }, - { - no: 89, - name: 'browser_scroll_up', - kind: 'message', - T: po, - oneof: 'step', - }, - { - no: 90, - name: 'browser_scroll_down', - kind: 'message', - T: Oo, - oneof: 'step', - }, - { - no: 91, - name: 'browser_click_element', - kind: 'message', - T: Ao, - oneof: 'step', - }, - { - no: 137, - name: 'browser_list_network_requests', - kind: 'message', - T: Co, - oneof: 'step', - }, - { - no: 138, - name: 'browser_get_network_request', - kind: 'message', - T: Ro, - oneof: 'step', - }, - { - no: 92, - name: 'browser_press_key', - kind: 'message', - T: go, - oneof: 'step', - }, - { no: 93, name: 'task_boundary', kind: 'message', T: Uo, oneof: 'step' }, - { no: 94, name: 'notify_user', kind: 'message', T: Bo, oneof: 'step' }, - { - no: 95, - name: 'code_acknowledgement', - kind: 'message', - T: Fo, - oneof: 'step', - }, - { - no: 96, - name: 'internal_search', - kind: 'message', - T: Mo, - oneof: 'step', - }, - { - no: 97, - name: 'browser_subagent', - kind: 'message', - T: Mi, - oneof: 'step', - }, - { - no: 102, - name: 'knowledge_generation', - kind: 'message', - T: yi, - oneof: 'step', - }, - { - no: 104, - name: 'generate_image', - kind: 'message', - T: wo, - oneof: 'step', - }, - { - no: 101, - name: 'browser_scroll', - kind: 'message', - T: Io, - oneof: 'step', - }, - { - no: 109, - name: 'browser_resize_window', - kind: 'message', - T: Jo, - oneof: 'step', - }, - { - no: 110, - name: 'browser_drag_pixel_to_pixel', - kind: 'message', - T: xo, - oneof: 'step', - }, - { - no: 125, - name: 'browser_mouse_wheel', - kind: 'message', - T: Lo, - oneof: 'step', - }, - { - no: 134, - name: 'browser_mouse_up', - kind: 'message', - T: Po, - oneof: 'step', - }, - { - no: 135, - name: 'browser_mouse_down', - kind: 'message', - T: Do, - oneof: 'step', - }, - { - no: 139, - name: 'browser_refresh_page', - kind: 'message', - T: ko, - oneof: 'step', - }, - { - no: 111, - name: 'conversation_history', - kind: 'message', - T: js, - oneof: 'step', - }, - { - no: 112, - name: 'knowledge_artifacts', - kind: 'message', - T: Qs, - oneof: 'step', - }, - { - no: 113, - name: 'send_command_input', - kind: 'message', - T: Di, - oneof: 'step', - }, - { - no: 114, - name: 'system_message', - kind: 'message', - T: ho, - oneof: 'step', - }, - { no: 115, name: 'wait', kind: 'message', T: Go, oneof: 'step' }, - { no: 129, name: 'ki_insertion', kind: 'message', T: hs, oneof: 'step' }, - { no: 136, name: 'workspace_api', kind: 'message', T: qo, oneof: 'step' }, - { - no: 143, - name: 'invoke_subagent', - kind: 'message', - T: Ho, - oneof: 'step', - }, - { - no: 106, - name: 'compile_applet', - kind: 'message', - T: ii, - oneof: 'step', - }, - { - no: 107, - name: 'install_applet_dependencies', - kind: 'message', - T: oi, - oneof: 'step', - }, - { - no: 108, - name: 'install_applet_package', - kind: 'message', - T: mi, - oneof: 'step', - }, - { - no: 121, - name: 'set_up_firebase', - kind: 'message', - T: ci, - oneof: 'step', - }, - { - no: 123, - name: 'restart_dev_server', - kind: 'message', - T: ui, - oneof: 'step', - }, - { - no: 124, - name: 'deploy_firebase', - kind: 'message', - T: li, - oneof: 'step', - }, - { no: 126, name: 'lint_applet', kind: 'message', T: _i, oneof: 'step' }, - { no: 127, name: 'shell_exec', kind: 'message', T: Ei, oneof: 'step' }, - { - no: 128, - name: 'define_new_env_variable', - kind: 'message', - T: di, - oneof: 'step', - }, - { no: 142, name: 'write_blob', kind: 'message', T: Ti, oneof: 'step' }, - { - no: 116, - name: 'agency_tool_call', - kind: 'message', - T: bo, - oneof: 'step', - }, - { no: 19, name: 'user_input', kind: 'message', T: fi, oneof: 'step' }, - { - no: 20, - name: 'planner_response', - kind: 'message', - T: Ni, - oneof: 'step', - }, - { no: 14, name: 'view_file', kind: 'message', T: ti, oneof: 'step' }, - { no: 15, name: 'list_directory', kind: 'message', T: ai, oneof: 'step' }, - { - no: 105, - name: 'delete_directory', - kind: 'message', - T: ri, - oneof: 'step', - }, - { no: 30, name: 'checkpoint', kind: 'message', T: Hs, oneof: 'step' }, - { no: 98, name: 'file_change', kind: 'message', T: Ks, oneof: 'step' }, - { no: 100, name: 'move', kind: 'message', T: vs, oneof: 'step' }, - { - no: 103, - name: 'ephemeral_message', - kind: 'message', - T: zs, - oneof: 'step', - }, - { no: 7, name: 'dummy', kind: 'message', T: Gs, oneof: 'step' }, - { no: 8, name: 'plan_input', kind: 'message', T: qs, oneof: 'step' }, - { no: 21, name: 'file_breakdown', kind: 'message', T: Si, oneof: 'step' }, - { no: 23, name: 'write_to_file', kind: 'message', T: pi, oneof: 'step' }, - { no: 32, name: 'propose_code', kind: 'message', T: Zs, oneof: 'step' }, - { - no: 35, - name: 'search_knowledge_base', - kind: 'message', - T: Oi, - oneof: 'step', - }, - { - no: 39, - name: 'lookup_knowledge_base', - kind: 'message', - T: Ai, - oneof: 'step', - }, - { - no: 48, - name: 'manager_feedback', - kind: 'message', - T: ao, - oneof: 'step', - }, - { - no: 49, - name: 'tool_call_proposal', - kind: 'message', - T: ro, - oneof: 'step', - }, - { - no: 50, - name: 'tool_call_choice', - kind: 'message', - T: so, - oneof: 'step', - }, - { - no: 52, - name: 'trajectory_choice', - kind: 'message', - T: io, - oneof: 'step', - }, - { - no: 59, - name: 'check_deploy_status', - kind: 'message', - T: wi, - oneof: 'step', - }, - { no: 60, name: 'post_pr_review', kind: 'message', T: Qi, oneof: 'step' }, - { - no: 65, - name: 'find_all_references', - kind: 'message', - T: mo, - oneof: 'step', - }, - { no: 66, name: 'brain_update', kind: 'message', T: Fi, oneof: 'step' }, - { - no: 68, - name: 'run_extension_code', - kind: 'message', - T: co, - oneof: 'step', - }, - { no: 70, name: 'add_annotation', kind: 'message', T: Vi, oneof: 'step' }, - { - no: 71, - name: 'proposal_feedback', - kind: 'message', - T: uo, - oneof: 'step', - }, - { - no: 43, - name: 'retrieve_memory', - kind: 'message', - T: ji, - oneof: 'step', - }, - { no: 38, name: 'memory', kind: 'message', T: zi, oneof: 'step' }, - { no: 56, name: 'requested_interaction', kind: 'message', T: ys }, - { no: 69, name: 'user_annotations', kind: 'message', T: Rs }, - { no: 6, name: 'subtrajectory', kind: 'message', T: Wn }, - ]); - static fromBinary(n, t) { - return new e().fromBinary(n, t); - } - static fromJson(n, t) { - return new e().fromJson(n, t); - } - static fromJsonString(n, t) { - return new e().fromJsonString(n, t); - } - static equals(n, t) { - return a.util.equals(e, n, t); - } - }; -var $I = Buffer.from('safeCodeiumworldKeYsecretBalloon'), - Vo = 12, - aT = 16; -function Ap(e, n = $I) { - if (e.length < Vo + aT) throw new Error('Data too short'); - let t = e.subarray(0, Vo), - i = e.subarray(e.length - aT), - s = e.subarray(Vo, e.length - aT), - m = Oe.createDecipheriv('aes-256-gcm', n, t); - return (m.setAuthTag(i), Buffer.concat([m.update(s), m.final()])); -} -function Cp(e, n = $I) { - let t = Oe.randomBytes(Vo), - i = Oe.createCipheriv('aes-256-gcm', n, t), - s = Buffer.concat([i.update(e), i.final()]), - m = i.getAuthTag(); - return Buffer.concat([t, s, m]); -} -function _C(e) { - let n; - try { - n = Ap(e); - } catch { - n = e; +var Conversation2 = class _Conversation extends Message { + /** + * ID of the conversation. + * + * @generated from field: string conversation_id = 1; + */ + conversationId = ''; + /** + * The trajectory underlying the current conversation state. + * + * @generated from field: gemini_coder.Trajectory trajectory = 2; + */ + trajectory; + /** + * The current state of the conversation. + * + * @generated from field: gemini_coder.ConversationState state = 3; + */ + state; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'gemini_coder.Conversation'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'conversation_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { no: 2, name: 'trajectory', kind: 'message', T: Trajectory }, + { no: 3, name: 'state', kind: 'message', T: ConversationState }, + ]); + static fromBinary(bytes, options) { + return new _Conversation().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Conversation().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Conversation().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Conversation, a, b); } - return Wn.fromBinary(n).toJson(); -} -function dC(e) { - let n = Wn.fromJson(e, { ignoreUnknownFields: !0 }), - t = Buffer.from(n.toBinary()); - return Cp(t); -} -export { - Ap as decrypt, - Cp as encrypt, - dC as jsonToTrajectory, - _C as trajectoryToJson, }; +var ConversationState = class _ConversationState extends Message { + /** + * ID of the underlying trajectory. + * + * @generated from field: string trajectory_id = 1; + */ + trajectoryId = ''; + /** + * The status of the execution. + * + * @generated from field: gemini_coder.ExecutionStatus status = 2; + */ + status = ExecutionStatus.UNSPECIFIED; + /** + * Steps staged to be included in the trajectory. These will be included in + * the next invocation. + * + * @generated from field: repeated gemini_coder.Step staged_steps = 3; + */ + stagedSteps = []; + /** + * The most recent execute request config. This needs to be stored in order to + * resume the trajectory in case of an agent crash. + * + * @generated from field: exa.cortex_pb.CascadeConfig execute_config = 4; + */ + executeConfig; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'gemini_coder.ConversationState'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'trajectory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 2, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(ExecutionStatus), + }, + { no: 3, name: 'staged_steps', kind: 'message', T: Step, repeated: true }, + { no: 4, name: 'execute_config', kind: 'message', T: CascadeConfig }, + ]); + static fromBinary(bytes, options) { + return new _ConversationState().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _ConversationState().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _ConversationState().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_ConversationState, a, b); + } +}; +var Trajectory = class _Trajectory extends Message { + /** + * The ID of the trajectory. + * + * @generated from field: string trajectory_id = 1; + */ + trajectoryId = ''; + /** + * The ID of the conversation, which could be related + * + * @generated from field: string cascade_id = 6; + */ + cascadeId = ''; + /** + * to many trajectories. + * + * @generated from field: exa.cortex_pb.CortexTrajectoryType trajectory_type = 4; + */ + trajectoryType = CortexTrajectoryType.UNSPECIFIED; + /** + * @generated from field: repeated gemini_coder.Step steps = 2; + */ + steps = []; + /** + * See comment in CortexTrajectoryReference definition for full + * + * @generated from field: repeated exa.cortex_pb.CortexTrajectoryReference parent_references = 5; + */ + parentReferences = []; + /** + * explanation. + * + * @generated from field: repeated exa.cortex_pb.CortexStepGeneratorMetadata generator_metadata = 3; + */ + generatorMetadata = []; + /** + * Snapshots of executor metadata states at various points in the + * conversation, at a per-execution-loop cadence. + * + * @generated from field: repeated exa.cortex_pb.ExecutorMetadata executor_metadatas = 9; + */ + executorMetadatas = []; + /** + * @generated from field: exa.cortex_pb.CortexTrajectorySource source = 8; + */ + source = CortexTrajectorySource.UNSPECIFIED; + /** + * @generated from field: exa.cortex_pb.CortexTrajectoryMetadata metadata = 7; + */ + metadata; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'gemini_coder.Trajectory'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'trajectory_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 6, + name: 'cascade_id', + kind: 'scalar', + T: 9, + /* ScalarType.STRING */ + }, + { + no: 4, + name: 'trajectory_type', + kind: 'enum', + T: proto3.getEnumType(CortexTrajectoryType), + }, + { no: 2, name: 'steps', kind: 'message', T: Step, repeated: true }, + { + no: 5, + name: 'parent_references', + kind: 'message', + T: CortexTrajectoryReference, + repeated: true, + }, + { + no: 3, + name: 'generator_metadata', + kind: 'message', + T: CortexStepGeneratorMetadata, + repeated: true, + }, + { + no: 9, + name: 'executor_metadatas', + kind: 'message', + T: ExecutorMetadata, + repeated: true, + }, + { + no: 8, + name: 'source', + kind: 'enum', + T: proto3.getEnumType(CortexTrajectorySource), + }, + { no: 7, name: 'metadata', kind: 'message', T: CortexTrajectoryMetadata }, + ]); + static fromBinary(bytes, options) { + return new _Trajectory().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Trajectory().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Trajectory().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Trajectory, a, b); + } +}; +var Step = class _Step extends Message { + /** + * TODO(matthewli, nicholasjiang): Soon to be deprecated; the type should be + * inferred from the one-of payload. + * + * @generated from field: exa.cortex_pb.CortexStepType type = 1; + */ + type = CortexStepType.UNSPECIFIED; + /** + * @generated from field: exa.cortex_pb.CortexStepStatus status = 4; + */ + status = CortexStepStatus.UNSPECIFIED; + /** + * @generated from field: exa.cortex_pb.CortexStepMetadata metadata = 5; + */ + metadata; + /** + * Populated only if status is ERROR. + * + * @generated from field: exa.cortex_pb.CortexErrorDetails error = 31; + */ + error; + /** + * Permissions granted/denied during this step. + * + * @generated from field: exa.cortex_pb.TrajectoryPermissions permissions = 133; + */ + permissions; + /** + * @generated from oneof gemini_coder.Step.step + */ + step = { case: void 0 }; + /** + * DEPRECATED. + * TODO(jetski): Deprecated, reason: requested interaction should be built + * into the corresponding step payload. + * + * @generated from field: exa.cortex_pb.RequestedInteraction requested_interaction = 56 [deprecated = true]; + * @deprecated + */ + requestedInteraction; + /** + * TODO(tmitrovska): Deprecate, reason: unused. + * + * @generated from field: exa.cortex_pb.UserStepAnnotations user_annotations = 69 [deprecated = true]; + * @deprecated + */ + userAnnotations; + /** + * TODO(matthewli, nicholasjiang): Deprecate, reason: re-think how subagents + * work in the framework. + * + * @generated from field: gemini_coder.Trajectory subtrajectory = 6 [deprecated = true]; + * @deprecated + */ + subtrajectory; + constructor(data) { + super(); + proto3.util.initPartial(data, this); + } + static runtime = proto3; + static typeName = 'gemini_coder.Step'; + static fields = proto3.util.newFieldList(() => [ + { + no: 1, + name: 'type', + kind: 'enum', + T: proto3.getEnumType(CortexStepType), + }, + { + no: 4, + name: 'status', + kind: 'enum', + T: proto3.getEnumType(CortexStepStatus), + }, + { no: 5, name: 'metadata', kind: 'message', T: CortexStepMetadata }, + { no: 31, name: 'error', kind: 'message', T: CortexErrorDetails }, + { no: 133, name: 'permissions', kind: 'message', T: TrajectoryPermissions }, + { + no: 140, + name: 'generic', + kind: 'message', + T: CortexStepGeneric, + oneof: 'step', + }, + { + no: 12, + name: 'finish', + kind: 'message', + T: CortexStepFinish, + oneof: 'step', + }, + { + no: 9, + name: 'mquery', + kind: 'message', + T: CortexStepMquery, + oneof: 'step', + }, + { + no: 10, + name: 'code_action', + kind: 'message', + T: CortexStepCodeAction, + oneof: 'step', + }, + { + no: 11, + name: 'git_commit', + kind: 'message', + T: CortexStepGitCommit, + oneof: 'step', + }, + { + no: 13, + name: 'grep_search', + kind: 'message', + T: CortexStepGrepSearch, + oneof: 'step', + }, + { + no: 16, + name: 'compile', + kind: 'message', + T: CortexStepCompile, + oneof: 'step', + }, + { + no: 22, + name: 'view_code_item', + kind: 'message', + T: CortexStepViewCodeItem, + oneof: 'step', + }, + { + no: 24, + name: 'error_message', + kind: 'message', + T: CortexStepErrorMessage, + oneof: 'step', + }, + { + no: 28, + name: 'run_command', + kind: 'message', + T: CortexStepRunCommand, + oneof: 'step', + }, + { no: 34, name: 'find', kind: 'message', T: CortexStepFind, oneof: 'step' }, + { + no: 36, + name: 'suggested_responses', + kind: 'message', + T: CortexStepSuggestedResponses, + oneof: 'step', + }, + { + no: 37, + name: 'command_status', + kind: 'message', + T: CortexStepCommandStatus, + oneof: 'step', + }, + { + no: 40, + name: 'read_url_content', + kind: 'message', + T: CortexStepReadUrlContent, + oneof: 'step', + }, + { + no: 41, + name: 'view_content_chunk', + kind: 'message', + T: CortexStepViewContentChunk, + oneof: 'step', + }, + { + no: 42, + name: 'search_web', + kind: 'message', + T: CortexStepSearchWeb, + oneof: 'step', + }, + { + no: 47, + name: 'mcp_tool', + kind: 'message', + T: CortexStepMcpTool, + oneof: 'step', + }, + { + no: 55, + name: 'clipboard', + kind: 'message', + T: CortexStepClipboard, + oneof: 'step', + }, + { + no: 58, + name: 'view_file_outline', + kind: 'message', + T: CortexStepViewFileOutline, + oneof: 'step', + }, + { + no: 62, + name: 'list_resources', + kind: 'message', + T: CortexStepListResources, + oneof: 'step', + }, + { + no: 63, + name: 'read_resource', + kind: 'message', + T: CortexStepReadResource, + oneof: 'step', + }, + { + no: 64, + name: 'lint_diff', + kind: 'message', + T: CortexStepLintDiff, + oneof: 'step', + }, + { + no: 67, + name: 'open_browser_url', + kind: 'message', + T: CortexStepOpenBrowserUrl, + oneof: 'step', + }, + { + no: 72, + name: 'trajectory_search', + kind: 'message', + T: CortexStepTrajectorySearch, + oneof: 'step', + }, + { + no: 73, + name: 'execute_browser_javascript', + kind: 'message', + T: CortexStepExecuteBrowserJavaScript, + oneof: 'step', + }, + { + no: 74, + name: 'list_browser_pages', + kind: 'message', + T: CortexStepListBrowserPages, + oneof: 'step', + }, + { + no: 75, + name: 'capture_browser_screenshot', + kind: 'message', + T: CortexStepCaptureBrowserScreenshot, + oneof: 'step', + }, + { + no: 76, + name: 'click_browser_pixel', + kind: 'message', + T: CortexStepClickBrowserPixel, + oneof: 'step', + }, + { + no: 77, + name: 'read_terminal', + kind: 'message', + T: CortexStepReadTerminal, + oneof: 'step', + }, + { + no: 78, + name: 'capture_browser_console_logs', + kind: 'message', + T: CortexStepCaptureBrowserConsoleLogs, + oneof: 'step', + }, + { + no: 79, + name: 'read_browser_page', + kind: 'message', + T: CortexStepReadBrowserPage, + oneof: 'step', + }, + { + no: 80, + name: 'browser_get_dom', + kind: 'message', + T: CortexStepBrowserGetDom, + oneof: 'step', + }, + { + no: 85, + name: 'code_search', + kind: 'message', + T: CortexStepCodeSearch, + oneof: 'step', + }, + { + no: 86, + name: 'browser_input', + kind: 'message', + T: CortexStepBrowserInput, + oneof: 'step', + }, + { + no: 87, + name: 'browser_move_mouse', + kind: 'message', + T: CortexStepBrowserMoveMouse, + oneof: 'step', + }, + { + no: 88, + name: 'browser_select_option', + kind: 'message', + T: CortexStepBrowserSelectOption, + oneof: 'step', + }, + { + no: 89, + name: 'browser_scroll_up', + kind: 'message', + T: CortexStepBrowserScrollUp, + oneof: 'step', + }, + { + no: 90, + name: 'browser_scroll_down', + kind: 'message', + T: CortexStepBrowserScrollDown, + oneof: 'step', + }, + { + no: 91, + name: 'browser_click_element', + kind: 'message', + T: CortexStepBrowserClickElement, + oneof: 'step', + }, + { + no: 137, + name: 'browser_list_network_requests', + kind: 'message', + T: CortexStepBrowserListNetworkRequests, + oneof: 'step', + }, + { + no: 138, + name: 'browser_get_network_request', + kind: 'message', + T: CortexStepBrowserGetNetworkRequest, + oneof: 'step', + }, + { + no: 92, + name: 'browser_press_key', + kind: 'message', + T: CortexStepBrowserPressKey, + oneof: 'step', + }, + { + no: 93, + name: 'task_boundary', + kind: 'message', + T: CortexStepTaskBoundary, + oneof: 'step', + }, + { + no: 94, + name: 'notify_user', + kind: 'message', + T: CortexStepNotifyUser, + oneof: 'step', + }, + { + no: 95, + name: 'code_acknowledgement', + kind: 'message', + T: CortexStepCodeAcknowledgement, + oneof: 'step', + }, + { + no: 96, + name: 'internal_search', + kind: 'message', + T: CortexStepInternalSearch, + oneof: 'step', + }, + { + no: 97, + name: 'browser_subagent', + kind: 'message', + T: CortexStepBrowserSubagent, + oneof: 'step', + }, + { + no: 102, + name: 'knowledge_generation', + kind: 'message', + T: CortexStepKnowledgeGeneration, + oneof: 'step', + }, + { + no: 104, + name: 'generate_image', + kind: 'message', + T: CortexStepGenerateImage, + oneof: 'step', + }, + { + no: 101, + name: 'browser_scroll', + kind: 'message', + T: CortexStepBrowserScroll, + oneof: 'step', + }, + { + no: 109, + name: 'browser_resize_window', + kind: 'message', + T: CortexStepBrowserResizeWindow, + oneof: 'step', + }, + { + no: 110, + name: 'browser_drag_pixel_to_pixel', + kind: 'message', + T: CortexStepBrowserDragPixelToPixel, + oneof: 'step', + }, + { + no: 125, + name: 'browser_mouse_wheel', + kind: 'message', + T: CortexStepBrowserMouseWheel, + oneof: 'step', + }, + { + no: 134, + name: 'browser_mouse_up', + kind: 'message', + T: CortexStepBrowserMouseUp, + oneof: 'step', + }, + { + no: 135, + name: 'browser_mouse_down', + kind: 'message', + T: CortexStepBrowserMouseDown, + oneof: 'step', + }, + { + no: 139, + name: 'browser_refresh_page', + kind: 'message', + T: CortexStepBrowserRefreshPage, + oneof: 'step', + }, + { + no: 111, + name: 'conversation_history', + kind: 'message', + T: CortexStepConversationHistory, + oneof: 'step', + }, + { + no: 112, + name: 'knowledge_artifacts', + kind: 'message', + T: CortexStepKnowledgeArtifacts, + oneof: 'step', + }, + { + no: 113, + name: 'send_command_input', + kind: 'message', + T: CortexStepSendCommandInput, + oneof: 'step', + }, + { + no: 114, + name: 'system_message', + kind: 'message', + T: CortexStepSystemMessage, + oneof: 'step', + }, + { + no: 115, + name: 'wait', + kind: 'message', + T: CortexStepWait, + oneof: 'step', + }, + { + no: 129, + name: 'ki_insertion', + kind: 'message', + T: CortexStepKIInsertion, + oneof: 'step', + }, + { + no: 136, + name: 'workspace_api', + kind: 'message', + T: CortexStepWorkspaceAPI, + oneof: 'step', + }, + { + no: 143, + name: 'invoke_subagent', + kind: 'message', + T: CortexStepInvokeSubagent, + oneof: 'step', + }, + { + no: 106, + name: 'compile_applet', + kind: 'message', + T: CortexStepCompileApplet, + oneof: 'step', + }, + { + no: 107, + name: 'install_applet_dependencies', + kind: 'message', + T: CortexStepInstallAppletDependencies, + oneof: 'step', + }, + { + no: 108, + name: 'install_applet_package', + kind: 'message', + T: CortexStepInstallAppletPackage, + oneof: 'step', + }, + { + no: 121, + name: 'set_up_firebase', + kind: 'message', + T: CortexStepSetUpFirebase, + oneof: 'step', + }, + { + no: 123, + name: 'restart_dev_server', + kind: 'message', + T: CortexStepRestartDevServer, + oneof: 'step', + }, + { + no: 124, + name: 'deploy_firebase', + kind: 'message', + T: CortexStepDeployFirebase, + oneof: 'step', + }, + { + no: 126, + name: 'lint_applet', + kind: 'message', + T: CortexStepLintApplet, + oneof: 'step', + }, + { + no: 127, + name: 'shell_exec', + kind: 'message', + T: CortexStepShellExec, + oneof: 'step', + }, + { + no: 128, + name: 'define_new_env_variable', + kind: 'message', + T: CortexStepDefineNewEnvVariable, + oneof: 'step', + }, + { + no: 142, + name: 'write_blob', + kind: 'message', + T: CortexStepWriteBlob, + oneof: 'step', + }, + { + no: 116, + name: 'agency_tool_call', + kind: 'message', + T: CortexStepAgencyToolCall, + oneof: 'step', + }, + { + no: 19, + name: 'user_input', + kind: 'message', + T: CortexStepUserInput, + oneof: 'step', + }, + { + no: 20, + name: 'planner_response', + kind: 'message', + T: CortexStepPlannerResponse, + oneof: 'step', + }, + { + no: 14, + name: 'view_file', + kind: 'message', + T: CortexStepViewFile, + oneof: 'step', + }, + { + no: 15, + name: 'list_directory', + kind: 'message', + T: CortexStepListDirectory, + oneof: 'step', + }, + { + no: 105, + name: 'delete_directory', + kind: 'message', + T: CortexStepDeleteDirectory, + oneof: 'step', + }, + { + no: 30, + name: 'checkpoint', + kind: 'message', + T: CortexStepCheckpoint, + oneof: 'step', + }, + { + no: 98, + name: 'file_change', + kind: 'message', + T: CortexStepFileChange, + oneof: 'step', + }, + { + no: 100, + name: 'move', + kind: 'message', + T: CortexStepMove, + oneof: 'step', + }, + { + no: 103, + name: 'ephemeral_message', + kind: 'message', + T: CortexStepEphemeralMessage, + oneof: 'step', + }, + { + no: 7, + name: 'dummy', + kind: 'message', + T: CortexStepDummy, + oneof: 'step', + }, + { + no: 8, + name: 'plan_input', + kind: 'message', + T: CortexStepPlanInput, + oneof: 'step', + }, + { + no: 21, + name: 'file_breakdown', + kind: 'message', + T: CortexStepFileBreakdown, + oneof: 'step', + }, + { + no: 23, + name: 'write_to_file', + kind: 'message', + T: CortexStepWriteToFile, + oneof: 'step', + }, + { + no: 32, + name: 'propose_code', + kind: 'message', + T: CortexStepProposeCode, + oneof: 'step', + }, + { + no: 35, + name: 'search_knowledge_base', + kind: 'message', + T: CortexStepSearchKnowledgeBase, + oneof: 'step', + }, + { + no: 39, + name: 'lookup_knowledge_base', + kind: 'message', + T: CortexStepLookupKnowledgeBase, + oneof: 'step', + }, + { + no: 48, + name: 'manager_feedback', + kind: 'message', + T: CortexStepManagerFeedback, + oneof: 'step', + }, + { + no: 49, + name: 'tool_call_proposal', + kind: 'message', + T: CortexStepToolCallProposal, + oneof: 'step', + }, + { + no: 50, + name: 'tool_call_choice', + kind: 'message', + T: CortexStepToolCallChoice, + oneof: 'step', + }, + { + no: 52, + name: 'trajectory_choice', + kind: 'message', + T: CortexStepTrajectoryChoice, + oneof: 'step', + }, + { + no: 59, + name: 'check_deploy_status', + kind: 'message', + T: CortexStepCheckDeployStatus, + oneof: 'step', + }, + { + no: 60, + name: 'post_pr_review', + kind: 'message', + T: CortexStepPostPrReview, + oneof: 'step', + }, + { + no: 65, + name: 'find_all_references', + kind: 'message', + T: CortexStepFindAllReferences, + oneof: 'step', + }, + { + no: 66, + name: 'brain_update', + kind: 'message', + T: CortexStepBrainUpdate, + oneof: 'step', + }, + { + no: 68, + name: 'run_extension_code', + kind: 'message', + T: CortexStepRunExtensionCode, + oneof: 'step', + }, + { + no: 70, + name: 'add_annotation', + kind: 'message', + T: CortexStepAddAnnotation, + oneof: 'step', + }, + { + no: 71, + name: 'proposal_feedback', + kind: 'message', + T: CortexStepProposalFeedback, + oneof: 'step', + }, + { + no: 43, + name: 'retrieve_memory', + kind: 'message', + T: CortexStepRetrieveMemory, + oneof: 'step', + }, + { + no: 38, + name: 'memory', + kind: 'message', + T: CortexStepMemory, + oneof: 'step', + }, + { + no: 56, + name: 'requested_interaction', + kind: 'message', + T: RequestedInteraction, + }, + { + no: 69, + name: 'user_annotations', + kind: 'message', + T: UserStepAnnotations, + }, + { no: 6, name: 'subtrajectory', kind: 'message', T: Trajectory }, + ]); + static fromBinary(bytes, options) { + return new _Step().fromBinary(bytes, options); + } + static fromJson(jsonValue, options) { + return new _Step().fromJson(jsonValue, options); + } + static fromJsonString(jsonString, options) { + return new _Step().fromJsonString(jsonString, options); + } + static equals(a, b) { + return proto3.util.equals(_Step, a, b); + } +}; + +// trajectory_teleporter_tmp.ts +var DEFAULT_KEY = Buffer.from('safeCodeiumworldKeYsecretBalloon'); +var NONCE_SIZE = 12; +var TAG_SIZE = 16; +function decrypt(data, key = DEFAULT_KEY) { + if (data.length < NONCE_SIZE + TAG_SIZE) { + throw new Error('Data too short'); + } + const nonce = data.subarray(0, NONCE_SIZE); + const tag = data.subarray(data.length - TAG_SIZE); + const ciphertext = data.subarray(NONCE_SIZE, data.length - TAG_SIZE); + const decipher = crypto.createDecipheriv('aes-256-gcm', key, nonce); + decipher.setAuthTag(tag); + return Buffer.concat([decipher.update(ciphertext), decipher.final()]); +} +function encrypt(data, key = DEFAULT_KEY) { + const nonce = crypto.randomBytes(NONCE_SIZE); + const cipher = crypto.createCipheriv('aes-256-gcm', key, nonce); + const ciphertext = Buffer.concat([cipher.update(data), cipher.final()]); + const tag = cipher.getAuthTag(); + return Buffer.concat([nonce, ciphertext, tag]); +} +function trajectoryToJson(data) { + let pbData; + try { + pbData = decrypt(data); + } catch (_e) { + pbData = data; + } + const trajectory = Trajectory.fromBinary(pbData); + return trajectory.toJson(); +} +function jsonToTrajectory(json) { + const trajectory = Trajectory.fromJson(json, { ignoreUnknownFields: true }); + const pbData = Buffer.from(trajectory.toBinary()); + return encrypt(pbData); +} +export { decrypt, encrypt, jsonToTrajectory, trajectoryToJson }; +/** + * @license + * Copyright 2026 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */