diff --git a/docs/architecture/rolling-upgrades.md b/docs/architecture/rolling-upgrades.md index aa9ce62aed..73e4ff30cf 100644 --- a/docs/architecture/rolling-upgrades.md +++ b/docs/architecture/rolling-upgrades.md @@ -1192,6 +1192,35 @@ See the [participant lifecycle baseline](cells.md#participant-lifecycle-baseline worker build. No gate holds the rollout. `tests/unit/test_worker_source_copies.py` checks N's side, and the mixed-version gate does not check this rule. +78. **A commit an N-1 ingest worker is publishing** (`code.branch.diff`'s `heads_stable`): + N's worker sets the commit's slice cursor before its first row and clears it after + `git_head` moves. N-1 sets none for a commit of one round, and clears the cursor + before `git_head` moves, so a missing cursor does not show that N-1 has finished. A + code-only release keeps the workers on N-1 until it stops (rule 6). N's reader + therefore fences on what the read itself captured, not on the writers' clocks, and the + fence has two halves because a write can land on either side of the read. The rows it + founded the answer on — the tree-sitter `code_symbols` rows and the `code_chunks` rows + under the served embedding model — are digested when they are read and read again after + them, which catches a write that lands while the read runs. Each of those rows names the + commit it was written at, and every one of those commits must be the head or in its + history: one `rev-list` against the head catches a write that had already landed + before the read began, which is the N-1 shape, since N-1 flushes a round's chunk rows + before its symbol and file rows. A commit the mirror does not hold is unverifiable and + counted as neither, and so is ancestry git cannot read (a head the mirror lacks). The files are compared one way with the blobs the head's tree holds + at exactly the manifest's paths — a row whose path the tree does not hold, or whose blob + differs, is another commit's file, and a tree path with no live row is one the index + declines to hold (the denylist, a binary, a path outside the configured prefixes, a + submodule), so a settled partial index does not read as a publish. A deleted file has + no live row to compare, so a tombstone stamped after the head's row was written counts + as another commit's whatever version its writer gave it. The version count + over the three tables stays as the cheap first exclusion; it is not the fence, because a + previous build whose clock trails the head's is invisible to it. Without the mirror, the + two git legs are left out and the digest and head checks stand. + `tests/unit/test_code_branch_diff.py` replays N-1's write order on both sides of the + read; `tests/integration/test_code_branch_diff.py` runs its slower-clock apply against a + real head and reads the capture off the store. The mixed-version gate does not check + this rule. + ## What checks them `scripts/gates/mixed_version.py` (`make test-mixed-version`, the `mixed-version` CI job, diff --git a/docs/features/code-index/history-and-prs.md b/docs/features/code-index/history-and-prs.md index 82eef761b2..db89c3b27e 100644 --- a/docs/features/code-index/history-and-prs.md +++ b/docs/features/code-index/history-and-prs.md @@ -157,6 +157,7 @@ no merged-date search, so the branch is matched on each PR's `base.ref` and | Before I open a PR: does one like it already exist? | `code.pr_check` | | Which merged PRs could have introduced this bug? | `code.bisect_candidates` | | Which release branches still carry the bug a fix removed? | `code.backport_gap` (one fix), `code.backport_gaps` (every labelled fix) | +| How do two branches differ, and which others change the same code? | `code.branch.diff` (`overlaps` for the others) | | Which CI build first carried this commit? | `code.first_build` | Arguments are in the [operations reference](../../reference/operations.md#code). @@ -587,6 +588,56 @@ on, effective only with `LOOM_CODE_PR_HISTORY_ENABLED`); the op reads that table `wanted_only: false` includes unlabelled fixes. Every branch namespace is authorized before it is read, failing closed. +## Branch diff + +`code.branch.diff` takes `namespace`, `against` (another namespace, usually the trunk's) and +an optional `path_prefix`, and answers what the two indexes hold differently: the files +added, removed and changed (judged by blob), then the definitions added, removed or changed +on those paths, from the tree-sitter symbol rows. A definition counts as changed when its +signature, the length of its line span or its text differs (`reasons`: `signature`, `size`, +`body`). The text is compared through the content hashes of the chunks that carry the +definition's text, so a one-line fix inside a body is a change: a function or container +chunk is the definition's by its first tag, and a chunk that packs several SQL test +statements (with statement records on) is every one of those statements', since its text +cannot say which of them changed. One that only moved down the file because lines were +added above it is counted in `definitions_moved` and not listed. A definition no chunk +carries (one nested in another's chunk, or a body-less declaration a container's skeleton +lists) is compared by signature and span only; the enclosing definition carries its edit. + +It compares the two **indexed heads, tip to tip**, and pins both `git_head` values in the +answer (`head`, `base`). A change already on `against` and absent from `namespace` shows as +a removal, so `divergence` states how the heads relate: their `merge_base`, and `ahead` and +`behind`, the commits each head has that the other lacks. A branch with `behind: 0` is up +to date with `against`, and its removals are its own; otherwise some may be additions made +on `against` after the fork. The divergence is read from the git mirror both namespaces +share, never cloned or fetched for this: two git reads, each bounded at 2 s. Without that +mirror on the serving process, with a head the mirror lacks, or when git fails or runs out +of time, it is `unknown` with a `reason`, and the rest of the answer stands. If a side's +head moves while the rows are read, or the side is partway through publishing a +commit (its rows hold files, definitions or chunk text of a commit its head does not name yet), +`heads_stable` is false and the answer may mix two commits of that side. The same holds +for the head of every overlap row. A publish is decided by what the read captured, not by +the writers' clocks: the definition rows the answer is built from are digested when they are +read and read again after them, so a row that moves under the read is caught whatever +version its worker stamped, and every commit those rows name must be the head's, so a row +that had already landed before the read began is caught too; the files are compared, one +way, with the blobs +the head's tree holds at exactly the manifest's paths, so a row whose blob is not the head's +is another commit's file while a file the index declines to hold — a binary, a path outside +the configured prefixes — is not. Without the repository's mirror on the serving process, +the tree comparison is left out and the definition capture and head checks stand. + +Both namespaces are authorized before any read, failing closed: one the caller cannot read +refuses the call, as in every named fan-out. `overlaps: true` adds the other namespaces of +the same repository that change a definition `namespace` changes against the same +`against`; a candidate the caller cannot read, or that has no index yet, is skipped and +named in `overlaps_skipped`. At most 16 readable candidates are compared; an unreadable one +takes no slot. Each list is cut at `limit` +(default 100, at most 500) with its total beside it; there is no continuation, so narrow a +large answer with `path_prefix`. A side that holds more than 200,000 files under the prefix +refuses and asks for a narrower one, and the definitions of at most the first 2,000 +differing paths are read (`definitions_complete` says when more differ). + ## First build `code.first_build` takes a commit `sha` or a merged PR's `pr_number` and answers which CI diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index 05ff6ec9e7..248d983517 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -307,6 +307,15 @@ One code namespace indexes one repository. No repository is configured by defaul | `LOOM_CODE_CONVENTIONS_DIFF_MAX_BYTES` | `int` | `1500000` | | Max bytes of a PR patch code.conventions reads from the mirror; a longer patch is cut at a file boundary and flagged `diff_truncated`. | | `LOOM_CODE_CONVENTIONS_WIDE_CALLER_DIRS` | `int` | `5` | | A touched function is "widely called" when its hop-1 callers span more than this many `src/` directories (rule wide_callers_untested). | +### code.branch.diff + +| Variable | Type | Default | Live | Meaning | +| --- | --- | --- | --- | --- | +| `LOOM_CODE_BRANCH_DIFF_MAX_MANIFEST_FILES` | `int` | `200000` | | Files one side's manifest may hold under the path prefix before the call asks for a narrower `path_prefix` (the largest indexed repository holds about 40 thousand). | +| `LOOM_CODE_BRANCH_DIFF_MAX_DEFINITION_PATHS` | `int` | `2000` | | Differing paths whose definitions are read; the rest are counted and the answer says `definitions_complete: false`. | +| `LOOM_CODE_BRANCH_DIFF_MAX_OVERLAP_NAMESPACES` | `int` | `16` | | Readable sibling namespaces `overlaps` compares; the rest are named `over_cap`. | +| `LOOM_CODE_BRANCH_DIFF_DIVERGENCE_TIMEOUT_S` | `float` | `2.0` | | Seconds each git read of `divergence` (the merge-base and the ahead/behind count) may take before the answer is `unknown`. | + ### Multi-repo and self-service | Variable | Type | Default | Live | Meaning | diff --git a/docs/reference/operations.md b/docs/reference/operations.md index 00f1235c5a..86671fa9f5 100644 --- a/docs/reference/operations.md +++ b/docs/reference/operations.md @@ -124,7 +124,7 @@ python scripts/codegen/docs_reference.py --check # exit 1 when a region is stal -387 operations in 43 groups. Every op is served at `POST /v1/` and as the MCP tool `loom_` (dots become underscores). +388 operations in 43 groups. Every op is served at `POST /v1/` and as the MCP tool `loom_` (dots become underscores). Columns: **Role** is the minimum role (`viewer` < `writer` < `admin` < `org_admin` < `platform_admin`); **Kind** is `read` (idempotent, viewer, unaudited, writes nothing — MCP `readOnlyHint`), `idempotent` (safe to retry) or `write`; **Listed under `all`** says whether an MCP connection on the `all` toolset lists the op in `tools/list` (`code.*` ops only with `LOOM_MCP_CODE_TOOLS=true`); an op marked `no` is still callable by name or through `loom_op`, unless it is hidden from MCP; **Audit** marks ops that leave an `audit_log` row. @@ -192,6 +192,7 @@ Fields for every `code` op: [operations/code.md](operations/code.md). | [`code.backport_gaps`](operations/code.md#codebackport_gaps) | The set-wide backport report: which merged fixes labelled for backport does a release branch still owe? | viewer | read | no | | | [`code.bisect_candidates`](operations/code.md#codebisect_candidates) | Rank PRs that may have introduced a bug; Loom does not test or reproduce it. | viewer | read | no | | | [`code.blame_range`](operations/code.md#codeblame_range) | Which merged PRs last touched these lines, between release A and B? | viewer | read | no | | +| [`code.branch.diff`](operations/code.md#codebranchdiff) | The files, then the definitions, that `namespace` has and `against` lacks or holds differently: both branches' indexed heads compared tip to tip, files by blob. | viewer | read | no | | | [`code.calibrate`](operations/code.md#codecalibrate) | Derive this namespace's calibration from the authored probe corpus and persist it: the code-specific abstention thresholds and the confident-hit cosine at the top of the `retrieval_confidence` scale. | admin | write | no | yes | | [`code.callees`](operations/code.md#codecallees) | What does this symbol call — forward call edges (depth<=3), tier-marked like code.callers. | viewer | read | no | | | [`code.callers`](operations/code.md#codecallers) | Find callers before editing shared code. | viewer | read | yes | | diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index 8e6e9b959d..e8a0e44152 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -238,6 +238,47 @@ Which merged PRs last touched these lines, between release A and B? | `tracker_unavailable` | `bool` | True when a tracker is bound but its read failed; the candidates stand without `has_test` / `caused_by` / `fixes`. | | `trace_run_id` | `str` | Id of this call's trace row; pass it to `code.outcome`. | +## `code.branch.diff` + +The files, then the definitions, that `namespace` has and `against` lacks or holds differently: both branches' indexed heads compared tip to tip, files by blob. + +`POST /v1/code.branch.diff` · MCP `loom_code_branch_diff` · role `viewer` · read · not listed under the MCP `all` toolset + +| Input field | Type | Default | Meaning | +| --- | --- | --- | --- | +| `org` | `str` | `''` | The tenant (first element of the identity tuple). | +| `namespace` | `str` | `''` | The namespace the op reads or writes. | +| `agent` | `str` | `'-'` | The writing or reading agent; `'-'` or `'*'` means any agent where the op allows it. | +| `user_id` | `str` | `'-'` | The end user the row belongs to; `'-'` for none. | +| `consumer` | `str` | `''` | trace attribution: which integration is calling (clickgap\|claude-code\|…) | +| `against` | `str` | required | The namespace to compare `namespace` against, usually the trunk's. | +| `path_prefix` | `str` | `''` | Compare only the paths under this prefix; '' compares every indexed path. | +| `overlaps` | `bool` | `False` | Also name the other readable namespaces of this repository that change the same definitions against the same base. | +| `limit` | `int` | `100` | At most this many rows in each list of the answer (1..500). | + +| Output field | Type | Meaning | +| --- | --- | --- | +| `compares` | `str` | What the answer compares, in words: the two indexed heads, tip to tip. | +| `head` | `BranchDiffSide \| None` | `namespace`'s side, then `against`'s: each head is the commit pinned for every row below. | +| `base` | `BranchDiffSide \| None` | | +| `divergence` | `BranchDiffDivergence \| None` | The two heads' merge-base and how far each is from it, so a removal can be read as this branch removing a path or the trunk adding it after the fork. | +| `heads_stable` | `bool` | False when either side's indexed head, or an overlap row's, moved while the rows were read; was partway through publishing a commit; holds definition rows another commit's — changed under the read, whatever version their writer stamped… | +| `files_added` | `list[str]` | Paths `namespace` has and `against` lacks, removed paths the other way round, and paths both have with a different blob; each list is sorted and cut at `limit`. | +| `files_removed` | `list[str]` | | +| `files_changed` | `list[str]` | | +| `files_added_total` | `int` | | +| `files_removed_total` | `int` | | +| `files_changed_total` | `int` | | +| `definitions` | `list[BranchDiffDefinition]` | The definitions (tree-sitter tier) on the added, removed and changed paths that one side has and the other lacks or holds with another signature, span length or text, by path then name, cut at `limit`. | +| `definitions_total` | `int` | | +| `definitions_moved` | `int` | Definitions whose only difference is their start line. | +| `definitions_complete` | `bool` | False when more paths differ than the definition read covers; the definitions listed are those of the first paths in order. | +| `truncated` | `bool` | True when any list above was cut at `limit`. | +| `overlaps` | `list[BranchDiffOverlap]` | With `overlaps`: the other readable namespaces of the repository that change a definition `namespace` changes, against the same `against`. | +| `overlaps_skipped` | `list[dict[str, str]]` | Namespaces the overlap read left out, each {namespace, reason}: `not_readable`, `not_indexed` or `over_cap`. | +| `as_of` | `dict[str, Any]` | Provenance and freshness of `namespace`'s index (branch, commit, lag_commits, stale). | +| `against_as_of` | `dict[str, Any]` | The same for `against`'s index. | + ## `code.calibrate` Derive this namespace's calibration from the authored probe corpus and persist it: the code-specific abstention thresholds and the confident-hit cosine at the top of the `retrieval_confidence` scale. diff --git a/docs/reference/status.md b/docs/reference/status.md index 2c165f5b1a..8c3c28d599 100644 --- a/docs/reference/status.md +++ b/docs/reference/status.md @@ -25,7 +25,7 @@ serves is in the [MCP reference](./mcp.md#toolsets). -387 operations, 273 of them experimental. +388 operations, 274 of them experimental. | Group | Stable | Experimental | | --- | --- | --- | @@ -35,7 +35,7 @@ serves is in the [MCP reference](./mcp.md#toolsets). | `audit` | 0 | [`audit.list`](operations/audit.md#auditlist) | | `blacklist` | 1 | [`blacklist.add`](operations/blacklist.md#blacklistadd), [`blacklist.remove`](operations/blacklist.md#blacklistremove), [`blacklist.sweep`](operations/blacklist.md#blacklistsweep) | | `calibration` | 0 | [`calibration.get`](operations/calibration.md#calibrationget) | -| `code` | 28 | [`code.backport_gap`](operations/code.md#codebackport_gap), [`code.backport_gaps`](operations/code.md#codebackport_gaps), [`code.bisect_candidates`](operations/code.md#codebisect_candidates), [`code.blame_range`](operations/code.md#codeblame_range), [`code.callees`](operations/code.md#codecallees), [`code.conventions`](operations/code.md#codeconventions), [`code.coverage_claim`](operations/code.md#codecoverage_claim), [`code.edit_context`](operations/code.md#codeedit_context), [`code.examples`](operations/code.md#codeexamples), [`code.files`](operations/code.md#codefiles), [`code.first_build`](operations/code.md#codefirst_build), [`code.map`](operations/code.md#codemap), [`code.outline`](operations/code.md#codeoutline), [`code.path_guards`](operations/code.md#codepath_guards), [`code.pr_check`](operations/code.md#codepr_check), [`code.read`](operations/code.md#coderead), [`code.reindex`](operations/code.md#codereindex), [`code.repo.set_access`](operations/code.md#codereposet_access), [`code.repo.set_source`](operations/code.md#codereposet_source), [`code.review_brief`](operations/code.md#codereview_brief), [`code.setting_facts`](operations/code.md#codesetting_facts), [`code.symbol_history`](operations/code.md#codesymbol_history), [`code.test_gate`](operations/code.md#codetest_gate), [`code.test_home`](operations/code.md#codetest_home), [`code.tests_for`](operations/code.md#codetests_for), [`code.verify_citations`](operations/code.md#codeverify_citations) | +| `code` | 28 | [`code.backport_gap`](operations/code.md#codebackport_gap), [`code.backport_gaps`](operations/code.md#codebackport_gaps), [`code.bisect_candidates`](operations/code.md#codebisect_candidates), [`code.blame_range`](operations/code.md#codeblame_range), [`code.branch.diff`](operations/code.md#codebranchdiff), [`code.callees`](operations/code.md#codecallees), [`code.conventions`](operations/code.md#codeconventions), [`code.coverage_claim`](operations/code.md#codecoverage_claim), [`code.edit_context`](operations/code.md#codeedit_context), [`code.examples`](operations/code.md#codeexamples), [`code.files`](operations/code.md#codefiles), [`code.first_build`](operations/code.md#codefirst_build), [`code.map`](operations/code.md#codemap), [`code.outline`](operations/code.md#codeoutline), [`code.path_guards`](operations/code.md#codepath_guards), [`code.pr_check`](operations/code.md#codepr_check), [`code.read`](operations/code.md#coderead), [`code.reindex`](operations/code.md#codereindex), [`code.repo.set_access`](operations/code.md#codereposet_access), [`code.repo.set_source`](operations/code.md#codereposet_source), [`code.review_brief`](operations/code.md#codereview_brief), [`code.setting_facts`](operations/code.md#codesetting_facts), [`code.symbol_history`](operations/code.md#codesymbol_history), [`code.test_gate`](operations/code.md#codetest_gate), [`code.test_home`](operations/code.md#codetest_home), [`code.tests_for`](operations/code.md#codetests_for), [`code.verify_citations`](operations/code.md#codeverify_citations) | | `collection` | 0 | [`collection.budget_set`](operations/collection.md#collectionbudget_set), [`collection.create`](operations/collection.md#collectioncreate), [`collection.delete`](operations/collection.md#collectiondelete), [`collection.list`](operations/collection.md#collectionlist), [`collection.move`](operations/collection.md#collectionmove) | | `conflicts` | 2 | [`conflicts.allowlist_list`](operations/conflicts.md#conflictsallowlist_list), [`conflicts.allowlist_remove`](operations/conflicts.md#conflictsallowlist_remove), [`conflicts.propose_revision`](operations/conflicts.md#conflictspropose_revision) | | `connection` | 0 | [`connection.disconnect`](operations/connection.md#connectiondisconnect), [`connection.list`](operations/connection.md#connectionlist) | diff --git a/loom.example.yaml b/loom.example.yaml index 701871ecbc..ba45350e0c 100644 --- a/loom.example.yaml +++ b/loom.example.yaml @@ -1126,6 +1126,25 @@ settings: # many `src/` directories (rule wide_callers_untested). [restart] # code_conventions_wide_caller_dirs: 5 + # --- code.branch.diff --- + + # Files one side's manifest may hold under the path prefix before the call asks for a + # narrower `path_prefix` (the largest indexed repository holds about 40 thousand). + # [restart] + # code_branch_diff_max_manifest_files: 200000 + + # Differing paths whose definitions are read; the rest are counted and the answer says + # `definitions_complete: false`. [restart] + # code_branch_diff_max_definition_paths: 2000 + + # Readable sibling namespaces `overlaps` compares; the rest are named `over_cap`. + # [restart] + # code_branch_diff_max_overlap_namespaces: 16 + + # Seconds each git read of `divergence` (the merge-base and the ahead/behind count) + # may take before the answer is `unknown`. [restart] + # code_branch_diff_divergence_timeout_s: 2.0 + # --- multi-repo and self-service --- # Repositories added from the Repositories page (loom.code_repos) merge with the diff --git a/schemas/loom-settings.schema.json b/schemas/loom-settings.schema.json index acce2a2bb2..6f1549322d 100644 --- a/schemas/loom-settings.schema.json +++ b/schemas/loom-settings.schema.json @@ -846,6 +846,30 @@ "type": "string", "description": "Comma-separated GitHub logins of autonomous agents that author pull requests or issues in the indexed repositories, beyond the generic bots (dependabot, github-actions, …). They are never suggested as owners, their names are not tracker entities, and bisect ignores the lines they sign." }, + "code_branch_diff_divergence_timeout_s": { + "default": 2.0, + "exclusiveMinimum": 0, + "type": "number", + "description": "Seconds each git read of `divergence` (the merge-base and the ahead/behind count) may take before the answer is `unknown`." + }, + "code_branch_diff_max_definition_paths": { + "default": 2000, + "minimum": 1, + "type": "integer", + "description": "Differing paths whose definitions are read; the rest are counted and the answer says `definitions_complete: false`." + }, + "code_branch_diff_max_manifest_files": { + "default": 200000, + "minimum": 1, + "type": "integer", + "description": "Files one side's manifest may hold under the path prefix before the call asks for a narrower `path_prefix` (the largest indexed repository holds about 40 thousand)." + }, + "code_branch_diff_max_overlap_namespaces": { + "default": 16, + "minimum": 1, + "type": "integer", + "description": "Readable sibling namespaces `overlaps` compares; the rest are named `over_cap`." + }, "code_calibration_enabled": { "default": false, "type": "boolean", diff --git a/sdk/go/client.gen.go b/sdk/go/client.gen.go index 58cf76835f..d6c74250ed 100644 --- a/sdk/go/client.gen.go +++ b/sdk/go/client.gen.go @@ -116,6 +116,18 @@ type BlacklistSweepInput = wire.BlacklistSweepInput // BlacklistSweepOutput is the response from blacklist.sweep. type BlacklistSweepOutput = wire.BlacklistSweepOutput +// BranchDiffDefinition is a model used by Loom operations. +type BranchDiffDefinition = wire.BranchDiffDefinition + +// BranchDiffDivergence is a model used by Loom operations. +type BranchDiffDivergence = wire.BranchDiffDivergence + +// BranchDiffOverlap is a model used by Loom operations. +type BranchDiffOverlap = wire.BranchDiffOverlap + +// BranchDiffSide is a model used by Loom operations. +type BranchDiffSide = wire.BranchDiffSide + // BriefCheckout is a model used by Loom operations. type BriefCheckout = wire.BriefCheckout @@ -227,6 +239,12 @@ type CodeBlameRangeInput = wire.CodeBlameRangeInput // CodeBlameRangeOutput is the response from code.blame_range. type CodeBlameRangeOutput = wire.CodeBlameRangeOutput +// CodeBranchDiffInput is the request to code.branch.diff. +type CodeBranchDiffInput = wire.CodeBranchDiffInput + +// CodeBranchDiffOutput is the response from code.branch.diff. +type CodeBranchDiffOutput = wire.CodeBranchDiffOutput + // CodeCalibrateInput is the request to code.calibrate. type CodeCalibrateInput = wire.CodeCalibrateInput @@ -3751,6 +3769,23 @@ func (s CodeService) BlameRange(ctx context.Context, in CodeBlameRangeInput) (*C return callOperation[CodeBlameRangeOutput](s.client, ctx, "code.blame_range", in) } +// BranchDiff calls code.branch.diff. +// Use WithInput to supply additional request fields. +func (s CodeService) BranchDiff(ctx context.Context, against string, opts ...Option[CodeBranchDiffInput]) (*CodeBranchDiffOutput, error) { + in := applyOptions(opts) + in.Against = against + if in.Agent == nil && s.client.identity.Agent != "" { + in.Agent = Ptr(s.client.identity.Agent) + } + if in.Namespace == nil && s.client.identity.Namespace != "" { + in.Namespace = Ptr(s.client.identity.Namespace) + } + if in.Org == nil && s.client.identity.Org != "" { + in.Org = Ptr(s.client.identity.Org) + } + return callOperation[CodeBranchDiffOutput](s.client, ctx, "code.branch.diff", in) +} + // Calibrate calls code.calibrate. // Use WithInput to supply additional request fields. func (s CodeService) Calibrate(ctx context.Context, opts ...Option[CodeCalibrateInput]) (*CodeCalibrateOutput, error) { diff --git a/sdk/go/wire/models.gen.go b/sdk/go/wire/models.gen.go index de8083f52a..b90e0a9dc6 100644 --- a/sdk/go/wire/models.gen.go +++ b/sdk/go/wire/models.gen.go @@ -1,5 +1,5 @@ // Code generated by scripts/codegen/sdk_go_gen.py; DO NOT EDIT. -// Registry model schema SHA-256: 3d28b5ff8c04d8ec257339bb43f11d5200b25670e5bf7dcb5dfd4e242d679a11 +// Registry model schema SHA-256: 91ed9783d8c00ccdebb3528f27d359d87dfb36a982d3cd068a491d84a5552eff // Package wire contains the Go requests and responses for Loom operations. package wire @@ -331,6 +331,46 @@ type BlacklistSweepOutput struct { Error *string `json:"error,omitempty"` } +// BranchDiffDefinition is a model used by Loom operations. +type BranchDiffDefinition struct { + Path string `json:"path"` + QualifiedName string `json:"qualified_name"` + Kind string `json:"kind"` + Change string `json:"change"` + Reasons *[]string `json:"reasons,omitempty"` + StartLine *int64 `json:"start_line,omitempty"` + EndLine *int64 `json:"end_line,omitempty"` + Signature *string `json:"signature,omitempty"` + BaseStartLine *int64 `json:"base_start_line,omitempty"` + BaseEndLine *int64 `json:"base_end_line,omitempty"` + BaseSignature *string `json:"base_signature,omitempty"` +} + +// BranchDiffDivergence is a model used by Loom operations. +type BranchDiffDivergence struct { + State *string `json:"state,omitempty"` + MergeBase *string `json:"merge_base,omitempty"` + Ahead *int64 `json:"ahead,omitempty"` + Behind *int64 `json:"behind,omitempty"` + Reason *string `json:"reason,omitempty"` +} + +// BranchDiffOverlap is a model used by Loom operations. +type BranchDiffOverlap struct { + Namespace string `json:"namespace"` + GitBranch *string `json:"git_branch,omitempty"` + GitHead string `json:"git_head"` + Definitions *[]map[string]json.RawMessage `json:"definitions,omitempty"` + DefinitionsTotal *int64 `json:"definitions_total,omitempty"` +} + +// BranchDiffSide is a model used by Loom operations. +type BranchDiffSide struct { + Namespace string `json:"namespace"` + GitBranch *string `json:"git_branch,omitempty"` + GitHead string `json:"git_head"` +} + // BriefCheckout is a model used by Loom operations. type BriefCheckout struct { Dirty Optional[bool] `json:"dirty,omitempty"` @@ -848,6 +888,47 @@ type CodeBlameRangeOutput struct { TraceRunID *string `json:"trace_run_id,omitempty"` } +// CodeBranchDiffInput is the request to code.branch.diff. +type CodeBranchDiffInput struct { + Org *string `json:"org,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Agent *string `json:"agent,omitempty"` + UserID *string `json:"user_id,omitempty"` + Consumer *string `json:"consumer,omitempty"` + Against string `json:"against"` + PathPrefix *string `json:"path_prefix,omitempty"` + Overlaps *bool `json:"overlaps,omitempty"` + Limit *int64 `json:"limit,omitempty"` +} + +// CodeBranchDiffOutput is the response from code.branch.diff. +type CodeBranchDiffOutput struct { + IgnoredArgs *[]string `json:"ignored_args,omitempty"` + DidYouMean *map[string]string `json:"did_you_mean,omitempty"` + Mirrored *bool `json:"mirrored,omitempty"` + Degraded *[]string `json:"degraded,omitempty"` + Compares *string `json:"compares,omitempty"` + Head Optional[BranchDiffSide] `json:"head,omitempty"` + Base Optional[BranchDiffSide] `json:"base,omitempty"` + Divergence Optional[BranchDiffDivergence] `json:"divergence,omitempty"` + HeadsStable *bool `json:"heads_stable,omitempty"` + FilesAdded *[]string `json:"files_added,omitempty"` + FilesRemoved *[]string `json:"files_removed,omitempty"` + FilesChanged *[]string `json:"files_changed,omitempty"` + FilesAddedTotal *int64 `json:"files_added_total,omitempty"` + FilesRemovedTotal *int64 `json:"files_removed_total,omitempty"` + FilesChangedTotal *int64 `json:"files_changed_total,omitempty"` + Definitions *[]BranchDiffDefinition `json:"definitions,omitempty"` + DefinitionsTotal *int64 `json:"definitions_total,omitempty"` + DefinitionsMoved *int64 `json:"definitions_moved,omitempty"` + DefinitionsComplete *bool `json:"definitions_complete,omitempty"` + Truncated *bool `json:"truncated,omitempty"` + Overlaps *[]BranchDiffOverlap `json:"overlaps,omitempty"` + OverlapsSkipped *[]map[string]string `json:"overlaps_skipped,omitempty"` + AsOf *map[string]json.RawMessage `json:"as_of,omitempty"` + AgainstAsOf *map[string]json.RawMessage `json:"against_as_of,omitempty"` +} + // CodeCalibrateInput is the request to code.calibrate. type CodeCalibrateInput struct { Org *string `json:"org,omitempty"` diff --git a/sdk/python/loom/client.py b/sdk/python/loom/client.py index 2ef9d024b8..602659ffb1 100644 --- a/sdk/python/loom/client.py +++ b/sdk/python/loom/client.py @@ -203,6 +203,14 @@ async def blame_range( "_ops.CodeBlameRangeOutput", await self._agent.call("code.blame_range", body, **options) ) + async def branch_diff( + self, body: _ops.CodeBranchDiffBody | None = None, /, **options: Any + ) -> _ops.CodeBranchDiffOutput: + """`code.branch.diff`.""" + return cast( + "_ops.CodeBranchDiffOutput", await self._agent.call("code.branch.diff", body, **options) + ) + async def calibrate( self, body: _ops.CodeCalibrateBody | None = None, /, **options: Any ) -> _ops.CodeCalibrateOutput: diff --git a/sdk/python/loom/ops.py b/sdk/python/loom/ops.py index 9c02171f48..4dcd147dc6 100644 --- a/sdk/python/loom/ops.py +++ b/sdk/python/loom/ops.py @@ -53,6 +53,7 @@ class OpSpec: "code.backport_gaps", "code.bisect_candidates", "code.blame_range", + "code.branch.diff", "code.calibrate", "code.callees", "code.callers", @@ -443,6 +444,7 @@ class OpSpec: "code.backport_gaps", "code.bisect_candidates", "code.blame_range", + "code.branch.diff", "code.calibrate", "code.callees", "code.callers", @@ -987,6 +989,18 @@ class OpSpec: False, True, ), + "code.branch.diff": OpSpec( + "code.branch.diff", + "CodeBranchDiffInput", + "CodeBranchDiffBody", + "CodeBranchDiffOutput", + True, + "viewer", + "experimental", + 3000, + False, + True, + ), "code.calibrate": OpSpec( "code.calibrate", "CodeCalibrateInput", @@ -6054,6 +6068,97 @@ class CodeBlameRangeOutput(TypedDict, total=False): trace_run_id: NotRequired[str] +class CodeBranchDiffInput(TypedDict, total=False): + "The files, then the definitions, that `namespace` has and `against` lacks or holds" + + org: NotRequired[str] + namespace: NotRequired[str] + agent: NotRequired[str] + user_id: NotRequired[str] + consumer: NotRequired[str] + against: Required[str] + path_prefix: NotRequired[str] + overlaps: NotRequired[bool] + limit: NotRequired[int] + + +class CodeBranchDiffBody(TypedDict, total=False): + "The files, then the definitions, that `namespace` has and `against` lacks or holds" + + org: NotRequired[str] + namespace: NotRequired[str] + agent: NotRequired[str] + user_id: NotRequired[str] + consumer: NotRequired[str] + against: Required[str] + path_prefix: NotRequired[str] + overlaps: NotRequired[bool] + limit: NotRequired[int] + + +class CodeBranchDiffOutput(TypedDict, total=False): + compares: NotRequired[str] + head: NotRequired[Optional["BranchDiffSide"]] + base: NotRequired[Optional["BranchDiffSide"]] + divergence: NotRequired[Optional["BranchDiffDivergence"]] + heads_stable: NotRequired[bool] + files_added: NotRequired[list[str]] + files_removed: NotRequired[list[str]] + files_changed: NotRequired[list[str]] + files_added_total: NotRequired[int] + files_removed_total: NotRequired[int] + files_changed_total: NotRequired[int] + definitions: NotRequired[list["BranchDiffDefinition"]] + definitions_total: NotRequired[int] + definitions_moved: NotRequired[int] + definitions_complete: NotRequired[bool] + truncated: NotRequired[bool] + overlaps: NotRequired[list["BranchDiffOverlap"]] + overlaps_skipped: NotRequired[list[dict[str, str]]] + as_of: NotRequired[dict[str, Any]] + against_as_of: NotRequired[dict[str, Any]] + + +class BranchDiffSide(TypedDict, total=False): + namespace: Required[str] + git_branch: NotRequired[str] + git_head: Required[str] + + +class BranchDiffDivergence(TypedDict, total=False): + "Where the two indexed heads stand in the repository's git mirror." + + state: NotRequired[str] + merge_base: NotRequired[str] + ahead: NotRequired[int] + behind: NotRequired[int] + reason: NotRequired[str] + + +class BranchDiffDefinition(TypedDict, total=False): + path: Required[str] + qualified_name: Required[str] + kind: Required[str] + change: Required[str] + reasons: NotRequired[list[str]] + start_line: NotRequired[int] + end_line: NotRequired[int] + signature: NotRequired[str] + base_start_line: NotRequired[int] + base_end_line: NotRequired[int] + base_signature: NotRequired[str] + + +class BranchDiffOverlap(TypedDict, total=False): + "One other namespace of the repository that changes some of the same definitions." + + namespace: Required[str] + git_branch: NotRequired[str] + git_head: Required[str] + definitions: NotRequired[list[dict[str, Any]]] + definitions_total: NotRequired[int] + + class CodeCalibrateInput(TypedDict, total=False): org: NotRequired[str] namespace: NotRequired[str] diff --git a/sdk/ruby/lib/clickhouse/loom/generated/ops.rb b/sdk/ruby/lib/clickhouse/loom/generated/ops.rb index 260d235de0..418a6a18dc 100644 --- a/sdk/ruby/lib/clickhouse/loom/generated/ops.rb +++ b/sdk/ruby/lib/clickhouse/loom/generated/ops.rb @@ -8,7 +8,7 @@ module Loom # Every served operation: its spec in OPS, and one method per op on the class # of its group (`client.memory.set(...)` is `memory.set`). module Generated - OP_COUNT = 387 + OP_COUNT = 388 # The declared spec of every served op, by name; the HTTP path is /v1/. OPS = { @@ -26,6 +26,7 @@ module Generated "code.backport_gaps" => OpSpec.new("code.backport_gaps", "code", "backport_gaps", true, true, "viewer", "experimental", %w[org namespace agent user_id consumer branch wanted_only days limit].freeze, [].freeze), "code.bisect_candidates" => OpSpec.new("code.bisect_candidates", "code", "bisect_candidates", true, true, "viewer", "experimental", %w[org namespace agent user_id consumer symbols paths patterns issue_number text rerank deadline_ms fix_pr bad_version before after bad_sha good_version widen_to_directories wideners rescan limit marks].freeze, [].freeze), "code.blame_range" => OpSpec.new("code.blame_range", "code", "blame_range", true, true, "viewer", "experimental", %w[org namespace agent user_id consumer path start_line end_line from_version to_version from_sha to_sha limit reviews_per_pr stage mentions].freeze, %w[path start_line end_line].freeze), + "code.branch.diff" => OpSpec.new("code.branch.diff", "code", "branch_diff", true, true, "viewer", "experimental", %w[org namespace agent user_id consumer against path_prefix overlaps limit].freeze, %w[against].freeze), "code.calibrate" => OpSpec.new("code.calibrate", "code", "calibrate", false, false, "admin", "stable", %w[org namespace agent user_id consumer].freeze, [].freeze), "code.callees" => OpSpec.new("code.callees", "code", "callees", true, true, "viewer", "experimental", %w[include_lessons lesson_namespaces pr_files pr_diff pr_head_sha pr_base_sha org namespace agent user_id consumer name symbol_id depth max_nodes min_confidence include_ambiguous candidate_min_confidence pr_number edge_kinds].freeze, [].freeze), "code.callers" => OpSpec.new("code.callers", "code", "callers", true, true, "viewer", "stable", %w[include_lessons lesson_namespaces pr_files pr_diff pr_head_sha pr_base_sha org namespace agent user_id consumer name symbol_id depth max_nodes min_confidence include_ambiguous candidate_min_confidence pr_number edge_kinds].freeze, [].freeze), @@ -507,6 +508,13 @@ def blame_range(body = nil, request_options: nil, **fields) call_op("code.blame_range", body, fields, request_options) end + # `code.branch.diff` (viewer, read-only, experimental). + # The files, then the definitions, that `namespace` has and `against` lacks or holds + # Required: against. + def branch_diff(body = nil, request_options: nil, **fields) + call_op("code.branch.diff", body, fields, request_options) + end + # `code.calibrate` (admin, writes). def calibrate(body = nil, request_options: nil, **fields) call_op("code.calibrate", body, fields, request_options) diff --git a/sdk/rust/src/blocking_operations.rs b/sdk/rust/src/blocking_operations.rs index 79f66646b6..70199edd11 100644 --- a/sdk/rust/src/blocking_operations.rs +++ b/sdk/rust/src/blocking_operations.rs @@ -5019,6 +5019,23 @@ impl crate::blocking::Client { ) -> Result, crate::CallFailure> { self.call("code.blame_range", &request, options) } + /// Call `code.branch.diff`. + pub fn code_branch_diff( + &self, + request: crate::CodeBranchDiffInput, + ) -> Result { + self.code_branch_diff_with_options(request, crate::CallOptions::default()) + .map(|result| result.data) + .map_err(|failure| failure.error) + } + /// Call `code.branch.diff` with per-request options and metadata. + pub fn code_branch_diff_with_options( + &self, + request: crate::CodeBranchDiffInput, + options: crate::CallOptions, + ) -> Result, crate::CallFailure> { + self.call("code.branch.diff", &request, options) + } /// Call `code.setting_facts`. pub fn code_setting_facts( &self, diff --git a/sdk/rust/src/operations.rs b/sdk/rust/src/operations.rs index dd3654c4e4..5c93c6b314 100644 --- a/sdk/rust/src/operations.rs +++ b/sdk/rust/src/operations.rs @@ -5367,6 +5367,24 @@ impl crate::Client { ) -> Result, crate::CallFailure> { self.call("code.blame_range", &request, options).await } + /// Call `code.branch.diff`. + pub async fn code_branch_diff( + &self, + request: crate::CodeBranchDiffInput, + ) -> Result { + self.code_branch_diff_with_options(request, crate::CallOptions::default()) + .await + .map(|result| result.data) + .map_err(|failure| failure.error) + } + /// Call `code.branch.diff` with per-request options and metadata. + pub async fn code_branch_diff_with_options( + &self, + request: crate::CodeBranchDiffInput, + options: crate::CallOptions, + ) -> Result, crate::CallFailure> { + self.call("code.branch.diff", &request, options).await + } /// Call `code.setting_facts`. pub async fn code_setting_facts( &self, diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index 6cdc749749..4567716026 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -1535,6 +1535,13 @@ pub(crate) const OP_POLICIES: &[OperationPolicy] = &[ &["agent", "namespace", "org", "user_id"], &[], ), + ( + "code.branch.diff", + true, + true, + &["agent", "namespace", "org", "user_id"], + &[], + ), ( "code.setting_facts", true, @@ -7571,6 +7578,219 @@ impl CodeBlameRangeInput { } } +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct BranchDiffSide { + pub namespace: String, + #[serde(default = "default_318")] + pub git_branch: String, + pub git_head: String, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct BranchDiffDivergence { + #[serde(default = "default_321")] + pub state: String, + #[serde(default = "default_322")] + pub merge_base: String, + #[serde(default = "default_323")] + pub ahead: Integer, + #[serde(default = "default_324")] + pub behind: Integer, + #[serde(default = "default_325")] + pub reason: String, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct BranchDiffDefinition { + pub path: String, + pub qualified_name: String, + pub kind: String, + pub change: String, + #[serde(default = "default_334")] + pub reasons: Vec, + #[serde(default = "default_335")] + pub start_line: Integer, + #[serde(default = "default_336")] + pub end_line: Integer, + #[serde(default = "default_337")] + pub signature: String, + #[serde(default = "default_338")] + pub base_start_line: Integer, + #[serde(default = "default_339")] + pub base_end_line: Integer, + #[serde(default = "default_340")] + pub base_signature: String, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct BranchDiffOverlap { + pub namespace: String, + #[serde(default = "default_346")] + pub git_branch: String, + pub git_head: String, + #[serde(default = "default_347")] + pub definitions: Vec>, + #[serde(default = "default_348")] + pub definitions_total: Integer, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct CodeBranchDiffOutput { + #[serde(default = "default_317")] + pub compares: String, + #[serde(default = "default_319")] + pub head: Option, + #[serde(default = "default_320")] + pub base: Option, + #[serde(default = "default_326")] + pub divergence: Option, + #[serde(default = "default_327")] + pub heads_stable: bool, + #[serde(default = "default_328")] + pub files_added: Vec, + #[serde(default = "default_329")] + pub files_removed: Vec, + #[serde(default = "default_330")] + pub files_changed: Vec, + #[serde(default = "default_331")] + pub files_added_total: Integer, + #[serde(default = "default_332")] + pub files_removed_total: Integer, + #[serde(default = "default_333")] + pub files_changed_total: Integer, + #[serde(default = "default_341")] + pub definitions: Vec, + #[serde(default = "default_342")] + pub definitions_total: Integer, + #[serde(default = "default_343")] + pub definitions_moved: Integer, + #[serde(default = "default_344")] + pub definitions_complete: bool, + #[serde(default = "default_345")] + pub truncated: bool, + #[serde(default = "default_349")] + pub overlaps: Vec, + #[serde(default = "default_350")] + pub overlaps_skipped: Vec>, + #[serde(default = "default_351")] + pub as_of: std::collections::HashMap, + #[serde(default = "default_352")] + pub against_as_of: std::collections::HashMap, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct CodeBranchDiffInput { + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub org: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub namespace: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub agent: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub user_id: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub consumer: Option, + pub against: String, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub path_prefix: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub overlaps: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub limit: Option, +} +impl CodeBranchDiffInput { + pub fn new(against: impl Into) -> Self { + Self { + org: None, + namespace: None, + agent: None, + user_id: None, + consumer: None, + against: against.into(), + path_prefix: None, + overlaps: None, + limit: None, + } + } + pub fn org(mut self, org: impl Into) -> Self { + self.org = Some(org.into()); + self + } + pub fn namespace(mut self, namespace: impl Into) -> Self { + self.namespace = Some(namespace.into()); + self + } + pub fn agent(mut self, agent: impl Into) -> Self { + self.agent = Some(agent.into()); + self + } + pub fn user_id(mut self, user_id: impl Into) -> Self { + self.user_id = Some(user_id.into()); + self + } + pub fn consumer(mut self, consumer: impl Into) -> Self { + self.consumer = Some(consumer.into()); + self + } + pub fn path_prefix(mut self, path_prefix: impl Into) -> Self { + self.path_prefix = Some(path_prefix.into()); + self + } + pub fn overlaps(mut self, overlaps: bool) -> Self { + self.overlaps = Some(overlaps); + self + } + pub fn limit(mut self, limit: impl Into) -> Self { + self.limit = Some(limit.into()); + self + } + pub async fn send( + self, + client: &crate::Client, + options: crate::CallOptions, + ) -> Result, crate::CallFailure> { + client.call("code.branch.diff", &self, options).await + } +} + #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCalibrateOutput { @@ -7672,9 +7892,9 @@ pub struct CodeEdgeWire { pub line: Integer, pub tier: String, pub confidence: f64, - #[serde(default = "default_319")] + #[serde(default = "default_355")] pub via_override: String, - #[serde(default = "default_320")] + #[serde(default = "default_356")] pub via: String, } @@ -7683,14 +7903,14 @@ pub struct CodeEdgeWire { pub struct CodeCandidateSiteWire { pub path: String, pub line: Integer, - #[serde(default = "default_343")] + #[serde(default = "default_379")] pub caller: String, - #[serde(default = "default_344")] + #[serde(default = "default_380")] pub callee_text: String, pub reason: String, pub confidence: f64, pub disposition: String, - #[serde(default = "default_345")] + #[serde(default = "default_381")] pub candidates: Integer, } @@ -7707,68 +7927,68 @@ pub struct CodeCandidateGroupWire { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCandidateSitesWire { - #[serde(default = "default_337")] + #[serde(default = "default_373")] pub epistemic: String, - #[serde(default = "default_338")] + #[serde(default = "default_374")] pub total: Integer, - #[serde(default = "default_339")] + #[serde(default = "default_375")] pub returned: Integer, - #[serde(default = "default_340")] + #[serde(default = "default_376")] pub truncated: bool, - #[serde(default = "default_341")] + #[serde(default = "default_377")] pub read_capped: bool, - #[serde(default = "default_342")] + #[serde(default = "default_378")] pub by_reason: std::collections::HashMap, - #[serde(default = "default_346")] + #[serde(default = "default_382")] pub groups: Vec, - #[serde(default = "default_347")] + #[serde(default = "default_383")] pub note: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCallersOutput { - #[serde(default = "default_317")] + #[serde(default = "default_353")] pub lessons: Vec>, - #[serde(default = "default_318")] + #[serde(default = "default_354")] pub lessons_left_out: Integer, pub edges: Vec, pub seed_symbols: Vec, - #[serde(default = "default_321")] + #[serde(default = "default_357")] pub overlay: bool, - #[serde(default = "default_322")] + #[serde(default = "default_358")] pub overlay_head_sha: String, - #[serde(default = "default_323")] + #[serde(default = "default_359")] pub overlay_added: Integer, - #[serde(default = "default_324")] + #[serde(default = "default_360")] pub overlay_note: String, - #[serde(default = "default_325")] + #[serde(default = "default_361")] pub resolved_by: String, - #[serde(default = "default_326")] + #[serde(default = "default_362")] pub ambiguous: bool, - #[serde(default = "default_327")] + #[serde(default = "default_363")] pub candidates: Vec, - #[serde(default = "default_328")] + #[serde(default = "default_364")] pub dispatch_seeds: Vec>, - #[serde(default = "default_329")] + #[serde(default = "default_365")] pub note: String, - #[serde(default = "default_330")] + #[serde(default = "default_366")] pub truncated: bool, - #[serde(default = "default_331")] + #[serde(default = "default_367")] pub counts_floor: bool, - #[serde(default = "default_332")] + #[serde(default = "default_368")] pub unresolved_calls: Integer, - #[serde(default = "default_333")] + #[serde(default = "default_369")] pub ambiguous_calls: Integer, - #[serde(default = "default_334")] + #[serde(default = "default_370")] pub epistemic: String, - #[serde(default = "default_335")] + #[serde(default = "default_371")] pub causes: Vec, - #[serde(default = "default_336")] + #[serde(default = "default_372")] pub by_hop_counts: std::collections::HashMap, - #[serde(default = "default_348")] + #[serde(default = "default_384")] pub candidate_sites: Option, - #[serde(default = "default_349")] + #[serde(default = "default_385")] pub trace_run_id: String, } @@ -8296,18 +8516,18 @@ pub enum CodeContextPackOutputSource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeContextPackOutput { - #[serde(default = "default_350")] + #[serde(default = "default_386")] pub lessons: Vec>, - #[serde(default = "default_351")] + #[serde(default = "default_387")] pub lessons_left_out: Integer, pub context: String, pub tokens_used: Integer, pub source: CodeContextPackOutputSource, - #[serde(default = "default_352")] + #[serde(default = "default_388")] pub truncated: bool, - #[serde(default = "default_353")] + #[serde(default = "default_389")] pub merge_commit_sha: String, - #[serde(default = "default_354")] + #[serde(default = "default_390")] pub trace_run_id: String, } @@ -8481,17 +8701,17 @@ impl CodeContextPackInput { #[non_exhaustive] pub struct CodeContextPackRow { pub pr_number: Integer, - #[serde(default = "default_355")] + #[serde(default = "default_391")] pub merge_commit_sha: String, - #[serde(default = "default_356")] + #[serde(default = "default_392")] pub pack_tokens: Integer, - #[serde(default = "default_357")] + #[serde(default = "default_393")] pub created_at: String, - #[serde(default = "default_358")] + #[serde(default = "default_394")] pub title: String, - #[serde(default = "default_359")] + #[serde(default = "default_395")] pub author: String, - #[serde(default = "default_360")] + #[serde(default = "default_396")] pub merged_at: String, } @@ -8499,7 +8719,7 @@ pub struct CodeContextPackRow { #[non_exhaustive] pub struct CodeContextPacksOutput { pub rows: Vec, - #[serde(default = "default_361")] + #[serde(default = "default_397")] pub total: Integer, } @@ -8617,41 +8837,41 @@ impl CodeContextPacksInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeConventionsOutput { - #[serde(default = "default_362")] + #[serde(default = "default_398")] pub pr_number: Integer, - #[serde(default = "default_363")] + #[serde(default = "default_399")] pub source: String, - #[serde(default = "default_364")] + #[serde(default = "default_400")] pub title: String, - #[serde(default = "default_365")] + #[serde(default = "default_401")] pub labels: Vec, - #[serde(default = "default_366")] + #[serde(default = "default_402")] pub category: String, - #[serde(default = "default_367")] + #[serde(default = "default_403")] pub category_source: String, - #[serde(default = "default_368")] + #[serde(default = "default_404")] pub merged_at: String, - #[serde(default = "default_369")] + #[serde(default = "default_405")] pub merge_commit_sha: String, - #[serde(default = "default_370")] + #[serde(default = "default_406")] pub head_sha: String, - #[serde(default = "default_371")] + #[serde(default = "default_407")] pub files_total: Integer, - #[serde(default = "default_372")] + #[serde(default = "default_408")] pub files_in_diff: Integer, - #[serde(default = "default_373")] + #[serde(default = "default_409")] pub diff_bytes: Integer, - #[serde(default = "default_374")] + #[serde(default = "default_410")] pub diff_truncated: bool, - #[serde(default = "default_375")] + #[serde(default = "default_411")] pub rules: Vec>, - #[serde(default = "default_376")] + #[serde(default = "default_412")] pub summary: std::collections::HashMap, - #[serde(default = "default_377")] + #[serde(default = "default_413")] pub control: std::collections::HashMap, - #[serde(default = "default_378")] + #[serde(default = "default_414")] pub notes: Vec, - #[serde(default = "default_379")] + #[serde(default = "default_415")] pub trace_run_id: String, } @@ -8792,29 +9012,29 @@ impl CodeConventionsInput { #[non_exhaustive] pub struct CodeLanguageCoverage { pub lang: String, - #[serde(default = "default_381")] + #[serde(default = "default_417")] pub files: Integer, - #[serde(default = "default_382")] + #[serde(default = "default_418")] pub files_errored: Integer, - #[serde(default = "default_383")] + #[serde(default = "default_419")] pub files_first_at: String, - #[serde(default = "default_384")] + #[serde(default = "default_420")] pub files_last_at: String, - #[serde(default = "default_385")] + #[serde(default = "default_421")] pub chunks: Integer, - #[serde(default = "default_386")] + #[serde(default = "default_422")] pub chunks_embedded: Integer, - #[serde(default = "default_387")] + #[serde(default = "default_423")] pub chunks_described: Integer, - #[serde(default = "default_388")] + #[serde(default = "default_424")] pub chunks_last_at: String, - #[serde(default = "default_389")] + #[serde(default = "default_425")] pub symbols_treesitter: Integer, - #[serde(default = "default_390")] + #[serde(default = "default_426")] pub symbols_treesitter_last_at: String, - #[serde(default = "default_391")] + #[serde(default = "default_427")] pub symbols_scip: Integer, - #[serde(default = "default_392")] + #[serde(default = "default_428")] pub symbols_scip_last_at: String, } @@ -8822,32 +9042,32 @@ pub struct CodeLanguageCoverage { #[non_exhaustive] pub struct CodeTierCoverage { pub tier: String, - #[serde(default = "default_393")] + #[serde(default = "default_429")] pub edges: Integer, - #[serde(default = "default_394")] + #[serde(default = "default_430")] pub edges_last_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCoverageGaps { - #[serde(default = "default_395")] + #[serde(default = "default_431")] pub functions_scanned: Integer, - #[serde(default = "default_396")] + #[serde(default = "default_432")] pub functions_uncalled: Integer, - #[serde(default = "default_397")] + #[serde(default = "default_433")] pub uncalled_share: f64, - #[serde(default = "default_398")] + #[serde(default = "default_434")] pub source_files: Integer, - #[serde(default = "default_399")] + #[serde(default = "default_435")] pub source_files_untested: Integer, - #[serde(default = "default_400")] + #[serde(default = "default_436")] pub untested_share: f64, - #[serde(default = "default_401")] + #[serde(default = "default_437")] pub code_files: Integer, - #[serde(default = "default_402")] + #[serde(default = "default_438")] pub code_files_no_symbols: Integer, - #[serde(default = "default_403")] + #[serde(default = "default_439")] pub no_symbols_share: f64, } @@ -8856,25 +9076,25 @@ pub struct CodeCoverageGaps { pub struct CodeCoverageOutput { pub org: String, pub namespace: String, - #[serde(default = "default_380")] + #[serde(default = "default_416")] pub as_of_commit: String, pub languages: Vec, pub tiers: Vec, - #[serde(default = "default_404")] + #[serde(default = "default_440")] pub gaps: Option, - #[serde(default = "default_405")] + #[serde(default = "default_441")] pub pr_history_from: String, - #[serde(default = "default_406")] + #[serde(default = "default_442")] pub pr_history_to: String, - #[serde(default = "default_407")] + #[serde(default = "default_443")] pub pr_history_last_fetch_at: String, - #[serde(default = "default_408")] + #[serde(default = "default_444")] pub pr_history_enabled: bool, - #[serde(default = "default_409")] + #[serde(default = "default_445")] pub pr_history_auth: String, - #[serde(default = "default_410")] + #[serde(default = "default_446")] pub context_packs_last_at: String, - #[serde(default = "default_411")] + #[serde(default = "default_447")] pub summaries_last_at: String, } @@ -9044,44 +9264,44 @@ impl CodeCoverageUnwatchInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCommitTierCoverage { - #[serde(default = "default_418")] + #[serde(default = "default_454")] pub producer: String, - #[serde(default = "default_419")] + #[serde(default = "default_455")] pub label: String, - #[serde(default = "default_420")] + #[serde(default = "default_456")] pub watermark_key: String, - #[serde(default = "default_421")] + #[serde(default = "default_457")] pub watermark: String, - #[serde(default = "default_422")] + #[serde(default = "default_458")] pub covered: Option, - #[serde(default = "default_423")] + #[serde(default = "default_459")] pub commits_since: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCommitCoverage { - #[serde(default = "default_415")] + #[serde(default = "default_451")] pub commit: String, - #[serde(default = "default_416")] + #[serde(default = "default_452")] pub in_mirror: bool, - #[serde(default = "default_417")] + #[serde(default = "default_453")] pub fast: Option, - #[serde(default = "default_424")] + #[serde(default = "default_460")] pub tiers: Vec, - #[serde(default = "default_425")] + #[serde(default = "default_461")] pub ready: bool, - #[serde(default = "default_426")] + #[serde(default = "default_462")] pub waiting_on: Vec, - #[serde(default = "default_427")] + #[serde(default = "default_463")] pub commits_since: Integer, - #[serde(default = "default_428")] + #[serde(default = "default_464")] pub paths_changed_since: Vec, - #[serde(default = "default_429")] + #[serde(default = "default_465")] pub paths_changed_count: Integer, - #[serde(default = "default_430")] + #[serde(default = "default_466")] pub paths_truncated: bool, - #[serde(default = "default_431")] + #[serde(default = "default_467")] pub paths_changed_overlap: Vec, } @@ -9092,14 +9312,14 @@ pub struct CodeCoverageWatchOutput { pub namespace: String, pub commit: String, pub inbox: String, - #[serde(default = "default_412")] + #[serde(default = "default_448")] pub ready: bool, - #[serde(default = "default_413")] + #[serde(default = "default_449")] pub emitted: bool, - #[serde(default = "default_414")] + #[serde(default = "default_450")] pub delivered_at: Option, pub event_id: String, - #[serde(default = "default_432")] + #[serde(default = "default_468")] pub commit_coverage: Option, } @@ -9183,31 +9403,31 @@ impl CodeCoverageWatchInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCoverageClaimOutput { - #[serde(default = "default_433")] + #[serde(default = "default_469")] pub subject: String, - #[serde(default = "default_434")] + #[serde(default = "default_470")] pub subject_kind: String, - #[serde(default = "default_435")] + #[serde(default = "default_471")] pub verdict: String, - #[serde(default = "default_436")] + #[serde(default = "default_472")] pub tests: Vec>, - #[serde(default = "default_437")] + #[serde(default = "default_473")] pub tests_total: Integer, - #[serde(default = "default_438")] + #[serde(default = "default_474")] pub src_paths: Vec, - #[serde(default = "default_439")] + #[serde(default = "default_475")] pub epistemic: String, - #[serde(default = "default_440")] + #[serde(default = "default_476")] pub strongest_tier: String, - #[serde(default = "default_441")] + #[serde(default = "default_477")] pub search_terms: std::collections::HashMap, - #[serde(default = "default_442")] + #[serde(default = "default_478")] pub resolved_by: String, - #[serde(default = "default_443")] + #[serde(default = "default_479")] pub control: std::collections::HashMap, - #[serde(default = "default_444")] + #[serde(default = "default_480")] pub measured: std::collections::HashMap, - #[serde(default = "default_445")] + #[serde(default = "default_481")] pub trace_run_id: String, } @@ -9336,66 +9556,66 @@ impl CodeCoverageClaimInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeUnit { - #[serde(default = "default_447")] + #[serde(default = "default_483")] pub unit_id: String, pub path: String, - #[serde(default = "default_448")] + #[serde(default = "default_484")] pub start_line: Integer, - #[serde(default = "default_449")] + #[serde(default = "default_485")] pub end_line: Integer, - #[serde(default = "default_450")] + #[serde(default = "default_486")] pub symbol: String, - #[serde(default = "default_451")] + #[serde(default = "default_487")] pub kind: String, - #[serde(default = "default_452")] + #[serde(default = "default_488")] pub signature: String, - #[serde(default = "default_453")] + #[serde(default = "default_489")] pub body: String, - #[serde(default = "default_454")] + #[serde(default = "default_490")] pub elided: bool, - #[serde(default = "default_455")] + #[serde(default = "default_491")] pub body_hash: String, - #[serde(default = "default_456")] + #[serde(default = "default_492")] pub description: String, - #[serde(default = "default_457")] + #[serde(default = "default_493")] pub tier: String, - #[serde(default = "default_458")] + #[serde(default = "default_494")] pub score: f64, - #[serde(default = "default_459")] + #[serde(default = "default_495")] pub recent_prs: Vec>, - #[serde(default = "default_460")] + #[serde(default = "default_496")] pub examples: Vec>, - #[serde(default = "default_461")] + #[serde(default = "default_497")] pub tests: Vec>, - #[serde(default = "default_462")] + #[serde(default = "default_498")] pub test_link_state: String, - #[serde(default = "default_463")] + #[serde(default = "default_499")] pub lessons: Vec>, - #[serde(default = "default_464")] + #[serde(default = "default_500")] pub lessons_unread: bool, - #[serde(default = "default_465")] + #[serde(default = "default_501")] pub churn: Integer, - #[serde(default = "default_466")] + #[serde(default = "default_502")] pub amp: Integer, - #[serde(default = "default_467")] + #[serde(default = "default_503")] pub tested: bool, - #[serde(default = "default_468")] + #[serde(default = "default_504")] pub callees: Vec>, - #[serde(default = "default_469")] + #[serde(default = "default_505")] pub granularity: String, - #[serde(default = "default_470")] + #[serde(default = "default_506")] pub next: String, - #[serde(default = "default_471")] + #[serde(default = "default_507")] pub outline: Vec>, - #[serde(default = "default_472")] + #[serde(default = "default_508")] pub fan_in: Integer, - #[serde(default = "default_473")] + #[serde(default = "default_509")] pub via: String, - #[serde(default = "default_474")] + #[serde(default = "default_510")] pub lexical_rank: Integer, - #[serde(default = "default_475")] + #[serde(default = "default_511")] pub vector_rank: Integer, - #[serde(default = "default_476")] + #[serde(default = "default_512")] pub namespace: String, } @@ -9442,21 +9662,21 @@ pub enum CodeEditContextTargetStatus { pub struct CodeEditContextTarget { pub name: String, pub status: CodeEditContextTargetStatus, - #[serde(default = "default_495")] + #[serde(default = "default_531")] pub definition_indices: Vec, - #[serde(default = "default_496")] + #[serde(default = "default_532")] pub candidates: Vec>, - #[serde(default = "default_497")] + #[serde(default = "default_533")] pub resolved_by: String, - #[serde(default = "default_498")] + #[serde(default = "default_534")] pub presence: Vec>, - #[serde(default = "default_499")] + #[serde(default = "default_535")] pub hierarchy: std::collections::HashMap>>, - #[serde(default = "default_500")] + #[serde(default = "default_536")] pub documented_in: Vec>, - #[serde(default = "default_501")] + #[serde(default = "default_537")] pub trace_run_id: String, - #[serde(default = "default_502")] + #[serde(default = "default_538")] pub picked_by: String, } @@ -9483,48 +9703,48 @@ pub struct CodeEditReadSource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeSymbolOutput { - #[serde(default = "default_446")] + #[serde(default = "default_482")] pub lead: Vec>, pub definitions: Vec, - #[serde(default = "default_477")] + #[serde(default = "default_513")] pub lessons_left_out: Integer, - #[serde(default = "default_478")] + #[serde(default = "default_514")] pub ambiguous: bool, - #[serde(default = "default_479")] + #[serde(default = "default_515")] pub hierarchy: std::collections::HashMap>>, - #[serde(default = "default_480")] + #[serde(default = "default_516")] pub candidates: Vec>, - #[serde(default = "default_481")] + #[serde(default = "default_517")] pub tokens_returned: Integer, - #[serde(default = "default_482")] + #[serde(default = "default_518")] pub trace_run_id: String, - #[serde(default = "default_483")] + #[serde(default = "default_519")] pub uses: Option, - #[serde(default = "default_484")] + #[serde(default = "default_520")] pub uses_truncated: bool, - #[serde(default = "default_485")] + #[serde(default = "default_521")] pub uses_skipped: String, - #[serde(default = "default_486")] + #[serde(default = "default_522")] pub uses_tokens: Integer, - #[serde(default = "default_487")] + #[serde(default = "default_523")] pub picked_by: String, - #[serde(default = "default_488")] + #[serde(default = "default_524")] pub resolved_by: String, - #[serde(default = "default_489")] + #[serde(default = "default_525")] pub documented_in: Vec>, - #[serde(default = "default_490")] + #[serde(default = "default_526")] pub neighbours: Vec>, - #[serde(default = "default_491")] + #[serde(default = "default_527")] pub anchors: Integer, - #[serde(default = "default_492")] + #[serde(default = "default_528")] pub neighbour_tokens: Integer, - #[serde(default = "default_493")] + #[serde(default = "default_529")] pub presence: Vec>, - #[serde(default = "default_494")] + #[serde(default = "default_530")] pub summary: std::collections::HashMap>, - #[serde(default = "default_503")] + #[serde(default = "default_539")] pub edit_targets: Vec, - #[serde(default = "default_504")] + #[serde(default = "default_540")] pub read_sources: Option>, } @@ -9678,30 +9898,30 @@ impl CodeEditContextInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeEnclosingOutput { - #[serde(default = "default_505")] + #[serde(default = "default_541")] pub lessons: Vec>, - #[serde(default = "default_506")] + #[serde(default = "default_542")] pub lessons_left_out: Integer, pub results: Vec>, pub resolved: Integer, pub paths_indexed: Integer, pub paths_total: Integer, pub took_ms: Integer, - #[serde(default = "default_507")] + #[serde(default = "default_543")] pub as_of: std::collections::HashMap, - #[serde(default = "default_508")] + #[serde(default = "default_544")] pub bodies_returned: Integer, - #[serde(default = "default_509")] + #[serde(default = "default_545")] pub bodies_elided: Integer, - #[serde(default = "default_510")] + #[serde(default = "default_546")] pub tokens_returned: Integer, - #[serde(default = "default_511")] + #[serde(default = "default_547")] pub neighbours: Vec>, - #[serde(default = "default_512")] + #[serde(default = "default_548")] pub anchors: Integer, - #[serde(default = "default_513")] + #[serde(default = "default_549")] pub anchors_capped: bool, - #[serde(default = "default_514")] + #[serde(default = "default_550")] pub neighbour_tokens: Integer, } @@ -9857,7 +10077,7 @@ impl CodeEnclosingInput { #[non_exhaustive] pub struct CodeExamplesOutput { pub examples: Vec>, - #[serde(default = "default_515")] + #[serde(default = "default_551")] pub trace_run_id: String, } @@ -9975,19 +10195,19 @@ impl CodeExamplesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeFilesOutput { - #[serde(default = "default_516")] + #[serde(default = "default_552")] pub files: Vec>, - #[serde(default = "default_517")] + #[serde(default = "default_553")] pub total: Integer, - #[serde(default = "default_518")] + #[serde(default = "default_554")] pub truncated: bool, - #[serde(default = "default_519")] + #[serde(default = "default_555")] pub as_of: std::collections::HashMap, - #[serde(default = "default_520")] + #[serde(default = "default_556")] pub not_covered: bool, - #[serde(default = "default_521")] + #[serde(default = "default_557")] pub note: String, - #[serde(default = "default_522")] + #[serde(default = "default_558")] pub trace_run_id: String, } @@ -10116,51 +10336,51 @@ impl CodeFilesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeFirstBuildOutput { - #[serde(default = "default_523")] + #[serde(default = "default_559")] pub verdict: String, - #[serde(default = "default_524")] + #[serde(default = "default_560")] pub causes: Vec, - #[serde(default = "default_525")] + #[serde(default = "default_561")] pub epistemic: String, - #[serde(default = "default_526")] + #[serde(default = "default_562")] pub sha: String, - #[serde(default = "default_527")] + #[serde(default = "default_563")] pub pr_number: Integer, - #[serde(default = "default_528")] + #[serde(default = "default_564")] pub merged_at: String, - #[serde(default = "default_529")] + #[serde(default = "default_565")] pub commit_time: String, - #[serde(default = "default_530")] + #[serde(default = "default_566")] pub ledger_known: bool, - #[serde(default = "default_531")] + #[serde(default = "default_567")] pub mirror_known: bool, - #[serde(default = "default_532")] + #[serde(default = "default_568")] pub first_build: std::collections::HashMap, - #[serde(default = "default_533")] + #[serde(default = "default_569")] pub lag_hours: Option, - #[serde(default = "default_534")] + #[serde(default = "default_570")] pub later_builds: Integer, - #[serde(default = "default_535")] + #[serde(default = "default_571")] pub window_hours: Integer, - #[serde(default = "default_536")] + #[serde(default = "default_572")] pub candidates_checked: Integer, - #[serde(default = "default_537")] + #[serde(default = "default_573")] pub candidates_total: Integer, - #[serde(default = "default_538")] + #[serde(default = "default_574")] pub own_builds: Vec>, - #[serde(default = "default_539")] + #[serde(default = "default_575")] pub containing_branches: Vec, - #[serde(default = "default_540")] + #[serde(default = "default_576")] pub containing_namespaces: Vec, - #[serde(default = "default_541")] + #[serde(default = "default_577")] pub nearest_namespace: String, - #[serde(default = "default_542")] + #[serde(default = "default_578")] pub note: String, - #[serde(default = "default_543")] + #[serde(default = "default_579")] pub tracker_namespace: String, - #[serde(default = "default_544")] + #[serde(default = "default_580")] pub tracker_unavailable: bool, - #[serde(default = "default_545")] + #[serde(default = "default_581")] pub trace_run_id: String, } @@ -10279,19 +10499,19 @@ pub struct GrepDependency { pub struct RelatedGrepEvidence { pub pattern: String, pub matches: Vec>, - #[serde(default = "default_549")] + #[serde(default = "default_585")] pub contexts: Vec>, - #[serde(default = "default_550")] + #[serde(default = "default_586")] pub contexts_partial: bool, - #[serde(default = "default_551")] + #[serde(default = "default_587")] pub definitions: Vec>, - #[serde(default = "default_552")] + #[serde(default = "default_588")] pub definitions_partial: bool, - #[serde(default = "default_553")] + #[serde(default = "default_589")] pub definitions_note: String, - #[serde(default = "default_554")] + #[serde(default = "default_590")] pub truncated: bool, - #[serde(default = "default_555")] + #[serde(default = "default_591")] pub dependencies: Vec, } @@ -10307,71 +10527,71 @@ pub enum CodeGrepOutputFallback { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeGrepOutput { - #[serde(default = "default_546")] + #[serde(default = "default_582")] pub lessons: Vec>, - #[serde(default = "default_547")] + #[serde(default = "default_583")] pub lessons_left_out: Integer, - #[serde(default = "default_548")] + #[serde(default = "default_584")] pub lead: Vec>, pub matches: Vec>, - #[serde(default = "default_556")] + #[serde(default = "default_592")] pub related: Option, - #[serde(default = "default_557")] + #[serde(default = "default_593")] pub contexts: Vec>, - #[serde(default = "default_558")] + #[serde(default = "default_594")] pub contexts_partial: bool, - #[serde(default = "default_559")] + #[serde(default = "default_595")] pub definitions: Vec>, - #[serde(default = "default_560")] + #[serde(default = "default_596")] pub definitions_partial: bool, - #[serde(default = "default_561")] + #[serde(default = "default_597")] pub definitions_note: String, - #[serde(default = "default_562")] + #[serde(default = "default_598")] pub next_cursor: String, - #[serde(default = "default_563")] + #[serde(default = "default_599")] pub has_more: bool, - #[serde(default = "default_564")] + #[serde(default = "default_600")] pub files: Vec>, - #[serde(default = "default_565")] + #[serde(default = "default_601")] pub files_total: Integer, pub chunks_matched: Integer, - #[serde(default = "default_566")] + #[serde(default = "default_602")] pub truncated: bool, - #[serde(default = "default_567")] + #[serde(default = "default_603")] pub coverage_floor: bool, - #[serde(default = "default_568")] + #[serde(default = "default_604")] pub as_of: std::collections::HashMap, - #[serde(default = "default_569")] + #[serde(default = "default_605")] pub not_covered: bool, - #[serde(default = "default_570")] + #[serde(default = "default_606")] pub neighbours: Vec>, - #[serde(default = "default_571")] + #[serde(default = "default_607")] pub anchors: Integer, - #[serde(default = "default_572")] + #[serde(default = "default_608")] pub anchors_capped: bool, - #[serde(default = "default_573")] + #[serde(default = "default_609")] pub neighbour_tokens: Integer, - #[serde(default = "default_574")] + #[serde(default = "default_610")] pub note: String, - #[serde(default = "default_575")] + #[serde(default = "default_611")] pub verdict: String, - #[serde(default = "default_576")] + #[serde(default = "default_612")] pub template: String, - #[serde(default = "default_577")] + #[serde(default = "default_613")] pub error_code: String, - #[serde(default = "default_578")] + #[serde(default = "default_614")] pub coverage: f64, - #[serde(default = "default_579")] + #[serde(default = "default_615")] pub presence: Vec>, - #[serde(default = "default_580")] + #[serde(default = "default_616")] pub summary: std::collections::HashMap>, - #[serde(default = "default_581")] + #[serde(default = "default_617")] pub trace_run_id: String, - #[serde(default = "default_582")] + #[serde(default = "default_618")] pub partial: bool, - #[serde(default = "default_583")] + #[serde(default = "default_619")] pub partial_reason: String, - #[serde(default = "default_584")] + #[serde(default = "default_620")] pub fallback: CodeGrepOutputFallback, } @@ -10774,9 +10994,9 @@ impl CodeGrepInput { pub struct CodeHistoryOutput { pub prs: Vec>, pub paths: Vec, - #[serde(default = "default_585")] + #[serde(default = "default_621")] pub items: Vec>, - #[serde(default = "default_586")] + #[serde(default = "default_622")] pub trace_run_id: String, } @@ -10938,52 +11158,52 @@ impl CodeHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeImpactOutput { - #[serde(default = "default_587")] + #[serde(default = "default_623")] pub lessons: Vec>, - #[serde(default = "default_588")] + #[serde(default = "default_624")] pub lessons_left_out: Integer, pub impacted_symbols: Vec>, pub impacted_tests: Vec>, pub co_change_files: Vec>, - #[serde(default = "default_589")] + #[serde(default = "default_625")] pub blast_radius_score: f64, - #[serde(default = "default_590")] + #[serde(default = "default_626")] pub touched_symbols: Vec>, - #[serde(default = "default_591")] + #[serde(default = "default_627")] pub co_change_missing: Vec>, - #[serde(default = "default_592")] + #[serde(default = "default_628")] pub owners: Vec>, - #[serde(default = "default_593")] + #[serde(default = "default_629")] pub reverts: Vec>, - #[serde(default = "default_594")] + #[serde(default = "default_630")] pub counts_floor: bool, - #[serde(default = "default_595")] + #[serde(default = "default_631")] pub unresolved_calls: Integer, - #[serde(default = "default_596")] + #[serde(default = "default_632")] pub ambiguous_calls: Integer, - #[serde(default = "default_597")] + #[serde(default = "default_633")] pub epistemic: String, - #[serde(default = "default_598")] + #[serde(default = "default_634")] pub causes: Vec, - #[serde(default = "default_599")] + #[serde(default = "default_635")] pub by_hop_counts: std::collections::HashMap, - #[serde(default = "default_600")] + #[serde(default = "default_636")] pub truncated: bool, - #[serde(default = "default_601")] + #[serde(default = "default_637")] pub resolved_by: String, - #[serde(default = "default_602")] + #[serde(default = "default_638")] pub verdict: String, - #[serde(default = "default_603")] + #[serde(default = "default_639")] pub paths_seen: Vec>, - #[serde(default = "default_604")] + #[serde(default = "default_640")] pub overlay: bool, - #[serde(default = "default_605")] + #[serde(default = "default_641")] pub overlay_head_sha: String, - #[serde(default = "default_606")] + #[serde(default = "default_642")] pub overlay_added: Integer, - #[serde(default = "default_607")] + #[serde(default = "default_643")] pub overlay_note: String, - #[serde(default = "default_608")] + #[serde(default = "default_644")] pub trace_run_id: String, } @@ -11262,12 +11482,12 @@ impl CodeImpactInput { #[non_exhaustive] pub struct CodeIndexErrorRow { pub path: String, - #[serde(default = "default_609")] + #[serde(default = "default_645")] pub lang: String, pub error: String, - #[serde(default = "default_610")] + #[serde(default = "default_646")] pub indexed_commit: String, - #[serde(default = "default_611")] + #[serde(default = "default_647")] pub at: String, } @@ -11275,7 +11495,7 @@ pub struct CodeIndexErrorRow { #[non_exhaustive] pub struct CodeIndexErrorsOutput { pub rows: Vec, - #[serde(default = "default_612")] + #[serde(default = "default_648")] pub total: Integer, } @@ -11375,17 +11595,17 @@ pub struct CodeCompilerTier { pub tool: String, pub label: String, pub watermark_key: String, - #[serde(default = "default_622")] + #[serde(default = "default_658")] pub commit: String, - #[serde(default = "default_623")] + #[serde(default = "default_659")] pub lag: Integer, - #[serde(default = "default_624")] + #[serde(default = "default_660")] pub updated_at: String, - #[serde(default = "default_625")] + #[serde(default = "default_661")] pub primary: bool, - #[serde(default = "default_626")] + #[serde(default = "default_662")] pub workers: Vec, - #[serde(default = "default_627")] + #[serde(default = "default_663")] pub note: String, } @@ -11393,42 +11613,42 @@ pub struct CodeCompilerTier { #[non_exhaustive] pub struct CodeTierHealth { pub tier: String, - #[serde(default = "default_629")] + #[serde(default = "default_665")] pub state: String, - #[serde(default = "default_630")] + #[serde(default = "default_666")] pub kind: String, - #[serde(default = "default_631")] + #[serde(default = "default_667")] pub error: String, - #[serde(default = "default_632")] + #[serde(default = "default_668")] pub fix: String, - #[serde(default = "default_633")] + #[serde(default = "default_669")] pub failing_since: String, - #[serde(default = "default_634")] + #[serde(default = "default_670")] pub last_failed_at: String, - #[serde(default = "default_635")] + #[serde(default = "default_671")] pub failed_passes: Integer, - #[serde(default = "default_636")] + #[serde(default = "default_672")] pub last_ok_at: String, - #[serde(default = "default_637")] + #[serde(default = "default_673")] pub lag_commits: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeWorkerStatus { - #[serde(default = "default_653")] + #[serde(default = "default_689")] pub enabled: bool, - #[serde(default = "default_654")] + #[serde(default = "default_690")] pub interval_seconds: Integer, - #[serde(default = "default_655")] + #[serde(default = "default_691")] pub last_run_at: String, - #[serde(default = "default_656")] + #[serde(default = "default_692")] pub last_duration_ms: Integer, - #[serde(default = "default_657")] + #[serde(default = "default_693")] pub consecutive_failures: Integer, - #[serde(default = "default_658")] + #[serde(default = "default_694")] pub total_runs: Integer, - #[serde(default = "default_659")] + #[serde(default = "default_695")] pub last_error: String, } @@ -11437,84 +11657,84 @@ pub struct CodeWorkerStatus { pub struct CodeIndexStatusOutput { pub repo: String, pub branch: String, - #[serde(default = "default_613")] + #[serde(default = "default_649")] pub org: String, pub namespace: String, - #[serde(default = "default_614")] + #[serde(default = "default_650")] pub provider: String, - #[serde(default = "default_615")] + #[serde(default = "default_651")] pub profile: String, - #[serde(default = "default_616")] + #[serde(default = "default_652")] pub compiler_candidates: Vec, - #[serde(default = "default_617")] + #[serde(default = "default_653")] pub quality_warnings: Vec, - #[serde(default = "default_618")] + #[serde(default = "default_654")] pub git_head: String, - #[serde(default = "default_619")] + #[serde(default = "default_655")] pub scip_commit: String, - #[serde(default = "default_620")] + #[serde(default = "default_656")] pub scip_commit_py: String, - #[serde(default = "default_621")] + #[serde(default = "default_657")] pub scip_producer: String, - #[serde(default = "default_628")] + #[serde(default = "default_664")] pub compiler_tiers: Vec, - #[serde(default = "default_638")] + #[serde(default = "default_674")] pub tier_health: Vec, - #[serde(default = "default_639")] + #[serde(default = "default_675")] pub pr_cursor: String, - #[serde(default = "default_640")] + #[serde(default = "default_676")] pub commit_coverage: Option, - #[serde(default = "default_641")] + #[serde(default = "default_677")] pub clone_head: String, - #[serde(default = "default_642")] + #[serde(default = "default_678")] pub clone_fetched_at: String, - #[serde(default = "default_643")] + #[serde(default = "default_679")] pub fetch_overdue: bool, - #[serde(default = "default_644")] + #[serde(default = "default_680")] pub fast_tier_lag: Integer, - #[serde(default = "default_645")] + #[serde(default = "default_681")] pub scip_lag: Integer, - #[serde(default = "default_646")] + #[serde(default = "default_682")] pub scip_py_lag: Integer, - #[serde(default = "default_647")] + #[serde(default = "default_683")] pub last_refresh_at: String, - #[serde(default = "default_648")] + #[serde(default = "default_684")] pub last_refresh_detail: String, - #[serde(default = "default_649")] + #[serde(default = "default_685")] pub org_readable: bool, - #[serde(default = "default_650")] + #[serde(default = "default_686")] pub path_prefixes: Vec, - #[serde(default = "default_651")] + #[serde(default = "default_687")] pub counts: std::collections::HashMap, - #[serde(default = "default_652")] + #[serde(default = "default_688")] pub state: std::collections::HashMap>, - #[serde(default = "default_660")] + #[serde(default = "default_696")] pub workers: std::collections::HashMap, - #[serde(default = "default_661")] + #[serde(default = "default_697")] pub build_commit: String, - #[serde(default = "default_662")] + #[serde(default = "default_698")] pub ops: Vec, - #[serde(default = "default_663")] + #[serde(default = "default_699")] pub request_fields: std::collections::HashMap>, - #[serde(default = "default_664")] + #[serde(default = "default_700")] pub op_maturity: std::collections::HashMap, - #[serde(default = "default_665")] + #[serde(default = "default_701")] pub op_reach: std::collections::HashMap>, - #[serde(default = "default_666")] + #[serde(default = "default_702")] pub op_toolsets: std::collections::HashMap>, - #[serde(default = "default_667")] + #[serde(default = "default_703")] pub symbol_stats_rows: Integer, - #[serde(default = "default_668")] + #[serde(default = "default_704")] pub symbol_stats_at: String, - #[serde(default = "default_669")] + #[serde(default = "default_705")] pub unit_risk_rows: Integer, - #[serde(default = "default_670")] + #[serde(default = "default_706")] pub unit_risk_at: String, - #[serde(default = "default_671")] + #[serde(default = "default_707")] pub chunks_total: Integer, - #[serde(default = "default_672")] + #[serde(default = "default_708")] pub chunks_embedded: Integer, - #[serde(default = "default_673")] + #[serde(default = "default_709")] pub embedding_coverage: f64, } @@ -11638,9 +11858,9 @@ impl CodeIndexStatusInput { pub struct CodeMapOutput { pub map: String, pub tokens_used: Integer, - #[serde(default = "default_674")] + #[serde(default = "default_710")] pub commit_sha: String, - #[serde(default = "default_675")] + #[serde(default = "default_711")] pub trace_run_id: String, } @@ -11911,32 +12131,32 @@ impl CodeOutcomeInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeOutlineOutput { - #[serde(default = "default_676")] + #[serde(default = "default_712")] pub lessons: Vec>, - #[serde(default = "default_677")] + #[serde(default = "default_713")] pub lessons_left_out: Integer, pub path: String, pub entries: Vec>, pub total: Integer, pub returned: Integer, pub elided: Integer, - #[serde(default = "default_678")] + #[serde(default = "default_714")] pub next: String, - #[serde(default = "default_679")] + #[serde(default = "default_715")] pub indexed: bool, - #[serde(default = "default_680")] + #[serde(default = "default_716")] pub verdict: String, - #[serde(default = "default_681")] + #[serde(default = "default_717")] pub tokens_returned: Integer, - #[serde(default = "default_682")] + #[serde(default = "default_718")] pub took_ms: Integer, - #[serde(default = "default_683")] + #[serde(default = "default_719")] pub head: String, - #[serde(default = "default_684")] + #[serde(default = "default_720")] pub head_truncated: bool, - #[serde(default = "default_685")] + #[serde(default = "default_721")] pub as_of: std::collections::HashMap, - #[serde(default = "default_686")] + #[serde(default = "default_722")] pub trace_run_id: String, } @@ -12088,19 +12308,19 @@ pub enum CodePathGuardsOutputEpistemic { #[non_exhaustive] pub struct CodePathGuardsOutput { pub verdict: CodePathGuardsOutputVerdict, - #[serde(default = "default_687")] + #[serde(default = "default_723")] pub causes: Vec, - #[serde(default = "default_688")] + #[serde(default = "default_724")] pub epistemic: CodePathGuardsOutputEpistemic, - #[serde(default = "default_689")] + #[serde(default = "default_725")] pub explanation: String, - #[serde(default = "default_690")] + #[serde(default = "default_726")] pub hops: Vec>, - #[serde(default = "default_691")] + #[serde(default = "default_727")] pub named_at: Vec, - #[serde(default = "default_692")] + #[serde(default = "default_728")] pub visited_symbols: Integer, - #[serde(default = "default_693")] + #[serde(default = "default_729")] pub trace_run_id: String, } @@ -12206,21 +12426,21 @@ impl CodePathGuardsInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodePrCheckOutput { - #[serde(default = "default_694")] + #[serde(default = "default_730")] pub verdict: String, - #[serde(default = "default_695")] + #[serde(default = "default_731")] pub items: Vec>, - #[serde(default = "default_696")] + #[serde(default = "default_732")] pub undecided: bool, - #[serde(default = "default_697")] + #[serde(default = "default_733")] pub epistemic: String, - #[serde(default = "default_698")] + #[serde(default = "default_734")] pub thresholds: std::collections::HashMap, - #[serde(default = "default_699")] + #[serde(default = "default_735")] pub legs: std::collections::HashMap, - #[serde(default = "default_700")] + #[serde(default = "default_736")] pub draft: std::collections::HashMap, - #[serde(default = "default_701")] + #[serde(default = "default_737")] pub trace_run_id: String, } @@ -12409,22 +12629,22 @@ pub struct CodeReadRange { pub start_line: Integer, pub end_line: Integer, pub status: CodeReadRangeStatus, - #[serde(default = "default_704")] + #[serde(default = "default_740")] pub indexed_commit: String, - #[serde(default = "default_705")] + #[serde(default = "default_741")] pub windows: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeReadOutput { - #[serde(default = "default_702")] + #[serde(default = "default_738")] pub lessons: Vec>, - #[serde(default = "default_703")] + #[serde(default = "default_739")] pub lessons_left_out: Integer, pub results: Vec, pub as_of: std::collections::HashMap, - #[serde(default = "default_706")] + #[serde(default = "default_742")] pub trace_run_id: String, } @@ -12667,15 +12887,15 @@ impl CodeReadInput { #[non_exhaustive] pub struct CodeRecentCommitRow { pub commit: String, - #[serde(default = "default_707")] + #[serde(default = "default_743")] pub subject: String, - #[serde(default = "default_708")] + #[serde(default = "default_744")] pub committed_at: String, - #[serde(default = "default_709")] + #[serde(default = "default_745")] pub ingested_at: String, - #[serde(default = "default_710")] + #[serde(default = "default_746")] pub files: Integer, - #[serde(default = "default_711")] + #[serde(default = "default_747")] pub pr_number: Integer, } @@ -12778,11 +12998,11 @@ impl CodeRecentCommitsInput { #[non_exhaustive] pub struct CodeRefreshOutput { pub triggered: bool, - #[serde(default = "default_712")] + #[serde(default = "default_748")] pub already_running: bool, - #[serde(default = "default_713")] + #[serde(default = "default_749")] pub head_before: String, - #[serde(default = "default_714")] + #[serde(default = "default_750")] pub head_after: String, } @@ -12985,22 +13205,22 @@ pub struct CodeRepoAddOutput { pub org: String, pub namespace: String, pub repo: String, - #[serde(default = "default_715")] + #[serde(default = "default_751")] pub remote: String, - #[serde(default = "default_716")] + #[serde(default = "default_752")] pub provider: String, pub branch: String, pub join_policy: String, pub classification: String, - #[serde(default = "default_717")] + #[serde(default = "default_753")] pub index_stage: String, - #[serde(default = "default_718")] + #[serde(default = "default_754")] pub my_role: String, - #[serde(default = "default_719")] + #[serde(default = "default_755")] pub remote_head: String, - #[serde(default = "default_720")] + #[serde(default = "default_756")] pub also: Vec>, - #[serde(default = "default_721")] + #[serde(default = "default_757")] pub skipped: Vec>, } @@ -13228,29 +13448,29 @@ impl CodeRepoAddBranchInput { pub struct CodeRepoRemoteBranchesOutput { pub org: String, pub repo: String, - #[serde(default = "default_722")] + #[serde(default = "default_758")] pub remote: String, - #[serde(default = "default_723")] + #[serde(default = "default_759")] pub provider: String, - #[serde(default = "default_724")] + #[serde(default = "default_760")] pub warnings: Vec, - #[serde(default = "default_725")] + #[serde(default = "default_761")] pub default_branch: String, - #[serde(default = "default_726")] + #[serde(default = "default_762")] pub branches: Vec>, - #[serde(default = "default_727")] + #[serde(default = "default_763")] pub suggested: Vec, - #[serde(default = "default_728")] + #[serde(default = "default_764")] pub indexed: Vec>, - #[serde(default = "default_729")] + #[serde(default = "default_765")] pub cap: Integer, - #[serde(default = "default_730")] + #[serde(default = "default_766")] pub total: Integer, - #[serde(default = "default_731")] + #[serde(default = "default_767")] pub matched: Integer, - #[serde(default = "default_732")] + #[serde(default = "default_768")] pub truncated: bool, - #[serde(default = "default_733")] + #[serde(default = "default_769")] pub query: String, } @@ -13341,11 +13561,11 @@ pub struct CodeRepoRemoveOutput { pub registry_deactivated: bool, pub directory_deactivated: bool, pub purged_tables: Integer, - #[serde(default = "default_734")] + #[serde(default = "default_770")] pub erasure_id: String, - #[serde(default = "default_735")] + #[serde(default = "default_771")] pub mirror_removed: bool, - #[serde(default = "default_736")] + #[serde(default = "default_772")] pub sources_deactivated: Vec, } @@ -13479,14 +13699,14 @@ impl CodeRepoSetAccessInput { pub struct CodeRepoSetSourceOutput { pub org: String, pub namespace: String, - #[serde(default = "default_737")] + #[serde(default = "default_773")] pub tracker_namespaces: Vec, - #[serde(default = "default_738")] + #[serde(default = "default_774")] pub previous_tracker_namespaces: Vec, pub effective_within_s: Integer, - #[serde(default = "default_739")] + #[serde(default = "default_775")] pub not_covering: Vec, - #[serde(default = "default_740")] + #[serde(default = "default_776")] pub warning: String, } @@ -13918,47 +14138,47 @@ pub enum CodeReviewBriefOutputLedger { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeReviewBriefOutput { - #[serde(default = "default_741")] + #[serde(default = "default_777")] pub verdict: CodeReviewBriefOutputVerdict, - #[serde(default = "default_742")] + #[serde(default = "default_778")] pub verdict_causes: Vec, - #[serde(default = "default_743")] + #[serde(default = "default_779")] pub pr_number: Integer, - #[serde(default = "default_744")] + #[serde(default = "default_780")] pub merge_sha: String, - #[serde(default = "default_745")] + #[serde(default = "default_781")] pub source: CodeReviewBriefOutputSource, - #[serde(default = "default_746")] + #[serde(default = "default_782")] pub ledger: CodeReviewBriefOutputLedger, - #[serde(default = "default_747")] + #[serde(default = "default_783")] pub stored: bool, - #[serde(default = "default_748")] + #[serde(default = "default_784")] pub provenance: std::collections::HashMap, - #[serde(default = "default_749")] + #[serde(default = "default_785")] pub overlay: bool, - #[serde(default = "default_750")] + #[serde(default = "default_786")] pub overlay_head_sha: String, - #[serde(default = "default_751")] + #[serde(default = "default_787")] pub overlay_added: Integer, - #[serde(default = "default_752")] + #[serde(default = "default_788")] pub overlay_note: String, - #[serde(default = "default_753")] + #[serde(default = "default_789")] pub tier: String, - #[serde(default = "default_754")] + #[serde(default = "default_790")] pub built_at: String, - #[serde(default = "default_755")] + #[serde(default = "default_791")] pub indexed_commit: String, - #[serde(default = "default_756")] + #[serde(default = "default_792")] pub build_ms: Integer, - #[serde(default = "default_757")] + #[serde(default = "default_793")] pub tokens_used: Integer, - #[serde(default = "default_758")] + #[serde(default = "default_794")] pub token_budget: Integer, - #[serde(default = "default_759")] + #[serde(default = "default_795")] pub decisions: std::collections::HashMap, - #[serde(default = "default_760")] + #[serde(default = "default_796")] pub sections: std::collections::HashMap>, - #[serde(default = "default_761")] + #[serde(default = "default_797")] pub trace_run_id: String, } @@ -14343,11 +14563,11 @@ pub struct CodeScipStatusOutput { pub status: String, pub parts_received: Integer, pub total_parts: Integer, - #[serde(default = "default_762")] + #[serde(default = "default_798")] pub error: String, - #[serde(default = "default_763")] + #[serde(default = "default_799")] pub commit_sha: String, - #[serde(default = "default_764")] + #[serde(default = "default_800")] pub applied_at: String, } @@ -14506,65 +14726,65 @@ pub enum CodeSearchOutputEpistemic { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeSearchOutput { - #[serde(default = "default_765")] + #[serde(default = "default_801")] pub lessons: Vec>, - #[serde(default = "default_766")] + #[serde(default = "default_802")] pub lessons_left_out: Integer, pub results: Vec, pub route: String, - #[serde(default = "default_767")] + #[serde(default = "default_803")] pub next_cursor: String, - #[serde(default = "default_768")] + #[serde(default = "default_804")] pub has_more: bool, - #[serde(default = "default_769")] + #[serde(default = "default_805")] pub history: std::collections::HashMap, - #[serde(default = "default_770")] + #[serde(default = "default_806")] pub abstain: bool, - #[serde(default = "default_771")] + #[serde(default = "default_807")] pub abstain_code: CodeSearchOutputAbstainCode, - #[serde(default = "default_772")] + #[serde(default = "default_808")] pub abstain_reason: String, - #[serde(default = "default_773")] + #[serde(default = "default_809")] pub retrieval_risk: CodeSearchOutputRetrievalRisk, - #[serde(default = "default_774")] + #[serde(default = "default_810")] pub retrieval_confidence: f64, - #[serde(default = "default_775")] + #[serde(default = "default_811")] pub pick_confidence: CodeSearchOutputPickConfidence, - #[serde(default = "default_776")] + #[serde(default = "default_812")] pub pick_cause: String, - #[serde(default = "default_777")] + #[serde(default = "default_813")] pub route_agreement: f64, - #[serde(default = "default_778")] + #[serde(default = "default_814")] pub calibration_explanation: String, - #[serde(default = "default_779")] + #[serde(default = "default_815")] pub tokens_returned: Integer, - #[serde(default = "default_780")] + #[serde(default = "default_816")] pub constrained: bool, - #[serde(default = "default_781")] + #[serde(default = "default_817")] pub matched_files: Integer, - #[serde(default = "default_782")] + #[serde(default = "default_818")] pub as_of: std::collections::HashMap, - #[serde(default = "default_783")] + #[serde(default = "default_819")] pub score_explanation: String, - #[serde(default = "default_784")] + #[serde(default = "default_820")] pub retrieval_work: std::collections::HashMap, - #[serde(default = "default_785")] + #[serde(default = "default_821")] pub trace_run_id: String, - #[serde(default = "default_786")] + #[serde(default = "default_822")] pub top_similarity: f64, - #[serde(default = "default_787")] + #[serde(default = "default_823")] pub tracked: std::collections::HashMap, - #[serde(default = "default_788")] + #[serde(default = "default_824")] pub fanout: std::collections::HashMap, - #[serde(default = "default_789")] + #[serde(default = "default_825")] pub note: String, - #[serde(default = "default_790")] + #[serde(default = "default_826")] pub legs_timed_out: Vec, - #[serde(default = "default_791")] + #[serde(default = "default_827")] pub epistemic: CodeSearchOutputEpistemic, - #[serde(default = "default_792")] + #[serde(default = "default_828")] pub partial: bool, - #[serde(default = "default_793")] + #[serde(default = "default_829")] pub partial_reason: String, } @@ -15082,23 +15302,23 @@ impl CodeSearchInput { #[non_exhaustive] pub struct CodeSettingFactsOutput { pub name: String, - #[serde(default = "default_794")] + #[serde(default = "default_830")] pub verdict: String, - #[serde(default = "default_795")] + #[serde(default = "default_831")] pub causes: Vec, - #[serde(default = "default_796")] + #[serde(default = "default_832")] pub declaration: std::collections::HashMap, - #[serde(default = "default_797")] + #[serde(default = "default_833")] pub tier: String, - #[serde(default = "default_798")] + #[serde(default = "default_834")] pub history: Vec>, - #[serde(default = "default_799")] + #[serde(default = "default_835")] pub randomized_in_ci: std::collections::HashMap, - #[serde(default = "default_800")] + #[serde(default = "default_836")] pub tests_total: Integer, - #[serde(default = "default_801")] + #[serde(default = "default_837")] pub control: std::collections::HashMap, - #[serde(default = "default_802")] + #[serde(default = "default_838")] pub trace_run_id: String, } @@ -15531,31 +15751,31 @@ impl CodeSymbolInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeSymbolHistoryOutput { - #[serde(default = "default_803")] + #[serde(default = "default_839")] pub verdict: String, - #[serde(default = "default_804")] + #[serde(default = "default_840")] pub causes: Vec, - #[serde(default = "default_805")] + #[serde(default = "default_841")] pub epistemic: String, - #[serde(default = "default_806")] + #[serde(default = "default_842")] pub symbol: std::collections::HashMap, - #[serde(default = "default_807")] + #[serde(default = "default_843")] pub ambiguous: bool, - #[serde(default = "default_808")] + #[serde(default = "default_844")] pub candidates: Vec, - #[serde(default = "default_809")] + #[serde(default = "default_845")] pub prs: Vec>, - #[serde(default = "default_810")] + #[serde(default = "default_846")] pub review_comments: Vec>, - #[serde(default = "default_811")] + #[serde(default = "default_847")] pub open_issues_naming: Vec>, - #[serde(default = "default_812")] + #[serde(default = "default_848")] pub summary: std::collections::HashMap, - #[serde(default = "default_813")] + #[serde(default = "default_849")] pub tracker_namespace: String, - #[serde(default = "default_814")] + #[serde(default = "default_850")] pub tracker_unavailable: bool, - #[serde(default = "default_815")] + #[serde(default = "default_851")] pub trace_run_id: String, } @@ -15673,43 +15893,43 @@ impl CodeSymbolHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestGateOutput { - #[serde(default = "default_816")] + #[serde(default = "default_852")] pub tests: Vec>, - #[serde(default = "default_817")] + #[serde(default = "default_853")] pub untested: Vec>, - #[serde(default = "default_818")] + #[serde(default = "default_854")] pub unlinked: Vec>, - #[serde(default = "default_819")] + #[serde(default = "default_855")] pub changed_files: Vec, - #[serde(default = "default_820")] + #[serde(default = "default_856")] pub touched_symbols: Vec>, - #[serde(default = "default_821")] + #[serde(default = "default_857")] pub obligations: bool, - #[serde(default = "default_822")] + #[serde(default = "default_858")] pub tests_total: Integer, - #[serde(default = "default_823")] + #[serde(default = "default_859")] pub tests_unnamed: Integer, - #[serde(default = "default_824")] + #[serde(default = "default_860")] pub untested_total: Integer, - #[serde(default = "default_825")] + #[serde(default = "default_861")] pub unlinked_total: Integer, - #[serde(default = "default_826")] + #[serde(default = "default_862")] pub tests_capped: bool, - #[serde(default = "default_827")] + #[serde(default = "default_863")] pub untested_capped: bool, - #[serde(default = "default_828")] + #[serde(default = "default_864")] pub unlinked_capped: bool, - #[serde(default = "default_829")] + #[serde(default = "default_865")] pub counts_floor: bool, - #[serde(default = "default_830")] + #[serde(default = "default_866")] pub epistemic: String, - #[serde(default = "default_831")] + #[serde(default = "default_867")] pub causes: Vec, - #[serde(default = "default_832")] + #[serde(default = "default_868")] pub by_hop_counts: std::collections::HashMap, - #[serde(default = "default_833")] + #[serde(default = "default_869")] pub at_commit: std::collections::HashMap, - #[serde(default = "default_834")] + #[serde(default = "default_870")] pub trace_run_id: String, } @@ -15849,21 +16069,21 @@ impl CodeTestGateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestHomeOutput { - #[serde(default = "default_835")] + #[serde(default = "default_871")] pub verdict: String, - #[serde(default = "default_836")] + #[serde(default = "default_872")] pub home: String, - #[serde(default = "default_837")] + #[serde(default = "default_873")] pub candidates: Vec>, - #[serde(default = "default_838")] + #[serde(default = "default_874")] pub parts: Vec, - #[serde(default = "default_839")] + #[serde(default = "default_875")] pub src_paths: Vec, - #[serde(default = "default_840")] + #[serde(default = "default_876")] pub next_free_stateless_number: Integer, - #[serde(default = "default_841")] + #[serde(default = "default_877")] pub control: std::collections::HashMap, - #[serde(default = "default_842")] + #[serde(default = "default_878")] pub trace_run_id: String, } @@ -16003,29 +16223,29 @@ impl CodeTestHomeInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestsForOutput { - #[serde(default = "default_843")] + #[serde(default = "default_879")] pub tests: Vec>, - #[serde(default = "default_844")] + #[serde(default = "default_880")] pub total: Integer, - #[serde(default = "default_845")] + #[serde(default = "default_881")] pub truncated: bool, - #[serde(default = "default_846")] + #[serde(default = "default_882")] pub facets: Vec>, - #[serde(default = "default_847")] + #[serde(default = "default_883")] pub verdict: String, - #[serde(default = "default_848")] + #[serde(default = "default_884")] pub abstain: bool, - #[serde(default = "default_849")] + #[serde(default = "default_885")] pub uncovered_kinds: Vec, - #[serde(default = "default_850")] + #[serde(default = "default_886")] pub as_of: std::collections::HashMap, - #[serde(default = "default_851")] + #[serde(default = "default_887")] pub at_commit: std::collections::HashMap, - #[serde(default = "default_852")] + #[serde(default = "default_888")] pub tokens_returned: Integer, - #[serde(default = "default_853")] + #[serde(default = "default_889")] pub took_ms: Integer, - #[serde(default = "default_854")] + #[serde(default = "default_890")] pub trace_run_id: String, } @@ -16142,9 +16362,9 @@ impl CodeTestsForInput { pub struct CodeTraceOutput { pub frames: Vec>, pub definitions: Vec, - #[serde(default = "default_855")] + #[serde(default = "default_891")] pub tokens_returned: Integer, - #[serde(default = "default_856")] + #[serde(default = "default_892")] pub trace_run_id: String, } @@ -16260,16 +16480,16 @@ pub enum CodeVerifyOutputVerdict { #[non_exhaustive] pub struct CodeVerifyOutput { pub verdict: CodeVerifyOutputVerdict, - #[serde(default = "default_857")] + #[serde(default = "default_893")] pub reason: String, pub explanation: String, - #[serde(default = "default_858")] + #[serde(default = "default_894")] pub evidence: Vec>, - #[serde(default = "default_859")] + #[serde(default = "default_895")] pub floors: std::collections::HashMap, - #[serde(default = "default_860")] + #[serde(default = "default_896")] pub index_verdict: String, - #[serde(default = "default_861")] + #[serde(default = "default_897")] pub trace_run_id: String, } @@ -16391,29 +16611,29 @@ impl CodeVerifyInput { #[non_exhaustive] pub struct CodeVerifyCitationsOutput { pub verdict: String, - #[serde(default = "default_862")] + #[serde(default = "default_898")] pub counts: std::collections::HashMap, - #[serde(default = "default_863")] + #[serde(default = "default_899")] pub citations: Vec>, - #[serde(default = "default_864")] + #[serde(default = "default_900")] pub skipped: Vec>, - #[serde(default = "default_865")] + #[serde(default = "default_901")] pub truncated: bool, - #[serde(default = "default_866")] + #[serde(default = "default_902")] pub epistemic: std::collections::HashMap, - #[serde(default = "default_867")] + #[serde(default = "default_903")] pub at_commit: std::collections::HashMap, - #[serde(default = "default_868")] + #[serde(default = "default_904")] pub pr_diff: std::collections::HashMap, - #[serde(default = "default_869")] + #[serde(default = "default_905")] pub namespaces: Vec, - #[serde(default = "default_870")] + #[serde(default = "default_906")] pub took_ms: Integer, - #[serde(default = "default_871")] + #[serde(default = "default_907")] pub as_of: std::collections::HashMap, - #[serde(default = "default_872")] + #[serde(default = "default_908")] pub note: String, - #[serde(default = "default_873")] + #[serde(default = "default_909")] pub trace_run_id: String, } @@ -16672,7 +16892,7 @@ pub struct CollectionCreateOutput { pub namespace: String, pub parent: String, pub created: bool, - #[serde(default = "default_874")] + #[serde(default = "default_910")] pub title: String, } @@ -16770,9 +16990,9 @@ impl CollectionCreateInput { pub struct CollectionDeleteOutput { pub namespace: String, pub deleted: bool, - #[serde(default = "default_875")] + #[serde(default = "default_911")] pub erasure_id: String, - #[serde(default = "default_876")] + #[serde(default = "default_912")] pub erasure_status: String, } @@ -16814,11 +17034,11 @@ pub struct CollectionEntry { pub parent: String, pub personal: bool, pub role: String, - #[serde(default = "default_877")] + #[serde(default = "default_913")] pub description: String, - #[serde(default = "default_878")] + #[serde(default = "default_914")] pub title: String, - #[serde(default = "default_879")] + #[serde(default = "default_915")] pub document_count: Option, } @@ -16826,7 +17046,7 @@ pub struct CollectionEntry { #[non_exhaustive] pub struct CollectionListOutput { pub collections: Vec, - #[serde(default = "default_880")] + #[serde(default = "default_916")] pub next_cursor: Option, } @@ -17168,13 +17388,13 @@ pub struct ConflictRow { #[non_exhaustive] pub struct ConflictsListOutput { pub rows: Vec, - #[serde(default = "default_881")] + #[serde(default = "default_917")] pub next_before_version: Option, - #[serde(default = "default_882")] + #[serde(default = "default_918")] pub total: Option, - #[serde(default = "default_883")] + #[serde(default = "default_919")] pub proposals: Option, - #[serde(default = "default_884")] + #[serde(default = "default_920")] pub keys: Option>, } @@ -17326,7 +17546,7 @@ pub struct ConflictRevisionSuggestion { pub target_local_id: Integer, pub peer_local_ids: Vec, pub rationale: String, - #[serde(default = "default_886")] + #[serde(default = "default_922")] pub apply_operation: String, } @@ -17334,11 +17554,11 @@ pub struct ConflictRevisionSuggestion { #[non_exhaustive] pub struct ConflictsProposeRevisionOutput { pub found: bool, - #[serde(default = "default_885")] + #[serde(default = "default_921")] pub memories: Vec, - #[serde(default = "default_887")] + #[serde(default = "default_923")] pub suggestions: Vec, - #[serde(default = "default_888")] + #[serde(default = "default_924")] pub note: String, } @@ -17418,9 +17638,9 @@ pub struct ConflictsResolveOutput { pub resolved: bool, pub decision: ConflictsResolveOutputDecision, pub affected_memory_ids: Vec, - #[serde(default = "default_889")] + #[serde(default = "default_925")] pub resolved_at: Option, - #[serde(default = "default_890")] + #[serde(default = "default_926")] pub total: Option, } @@ -17577,13 +17797,13 @@ pub enum ConnectionEntryKind { pub struct ConnectionEntry { pub kind: ConnectionEntryKind, pub connected: bool, - #[serde(default = "default_891")] + #[serde(default = "default_927")] pub connect_available: bool, - #[serde(default = "default_892")] + #[serde(default = "default_928")] pub stored: bool, - #[serde(default = "default_893")] + #[serde(default = "default_929")] pub account_email: Option, - #[serde(default = "default_894")] + #[serde(default = "default_930")] pub scopes: Vec, pub connect_url: String, } @@ -17758,23 +17978,23 @@ impl ConsolidationsListInput { pub struct ContextFetchOutput { pub found: bool, pub blob_key: String, - #[serde(default = "default_895")] + #[serde(default = "default_931")] pub content: String, - #[serde(default = "default_896")] + #[serde(default = "default_932")] pub content_type: String, - #[serde(default = "default_897")] + #[serde(default = "default_933")] pub summary: String, - #[serde(default = "default_898")] + #[serde(default = "default_934")] pub total_chars: Integer, - #[serde(default = "default_899")] + #[serde(default = "default_935")] pub total_lines: Integer, - #[serde(default = "default_900")] + #[serde(default = "default_936")] pub offset: Integer, - #[serde(default = "default_901")] + #[serde(default = "default_937")] pub next_offset: Integer, - #[serde(default = "default_902")] + #[serde(default = "default_938")] pub matched_lines: Integer, - #[serde(default = "default_903")] + #[serde(default = "default_939")] pub expires_at: Option, } @@ -18068,9 +18288,9 @@ pub enum ConversationAppendOutputReason { pub struct ConversationAppendOutput { pub msg_id: String, pub ts: String, - #[serde(default = "default_904")] + #[serde(default = "default_940")] pub stored: bool, - #[serde(default = "default_905")] + #[serde(default = "default_941")] pub reason: ConversationAppendOutputReason, } @@ -18219,13 +18439,13 @@ impl ConversationAppendInput { pub struct ConversationCompactOutput { pub compacted: bool, pub messages_summarized: Integer, - #[serde(default = "default_906")] + #[serde(default = "default_942")] pub summary_msg_id: String, - #[serde(default = "default_907")] + #[serde(default = "default_943")] pub tokens_in: Integer, - #[serde(default = "default_908")] + #[serde(default = "default_944")] pub tokens_out: Integer, - #[serde(default = "default_909")] + #[serde(default = "default_945")] pub reason: String, } @@ -18489,7 +18709,7 @@ pub enum ConversationEntryRole { #[non_exhaustive] pub struct ConversationEntry { pub msg_id: String, - #[serde(default = "default_918")] + #[serde(default = "default_954")] pub agent: String, pub role: ConversationEntryRole, pub content: String, @@ -18506,25 +18726,25 @@ pub struct ConversationEntry { pub struct ConversationGetOutput { pub found: bool, pub thread_id: String, - #[serde(default = "default_910")] + #[serde(default = "default_946")] pub title: String, - #[serde(default = "default_911")] + #[serde(default = "default_947")] pub metadata: std::collections::HashMap, - #[serde(default = "default_912")] + #[serde(default = "default_948")] pub run_id: String, - #[serde(default = "default_913")] + #[serde(default = "default_949")] pub user_id: String, - #[serde(default = "default_914")] + #[serde(default = "default_950")] pub agent: String, - #[serde(default = "default_915")] + #[serde(default = "default_951")] pub created_at: Option, - #[serde(default = "default_916")] + #[serde(default = "default_952")] pub updated_at: Option, - #[serde(default = "default_917")] + #[serde(default = "default_953")] pub msg_count: Integer, - #[serde(default = "default_919")] + #[serde(default = "default_955")] pub messages: Vec, - #[serde(default = "default_920")] + #[serde(default = "default_956")] pub next_cursor: Option, } @@ -18638,7 +18858,7 @@ impl ConversationGetInput { #[non_exhaustive] pub struct ConversationListOutput { pub rows: Vec, - #[serde(default = "default_921")] + #[serde(default = "default_957")] pub next_cursor: Option, } @@ -18784,7 +19004,7 @@ pub struct SavedMessageHit { #[non_exhaustive] pub struct ConversationListSavedMessagesOutput { pub rows: Vec, - #[serde(default = "default_922")] + #[serde(default = "default_958")] pub next_cursor: Option, } @@ -18924,7 +19144,7 @@ pub struct ConversationSaveMessageOutput { pub conversation_id: String, pub message_id: String, pub indexed: bool, - #[serde(default = "default_923")] + #[serde(default = "default_959")] pub reason: ConversationSaveMessageOutputReason, pub ts: String, } @@ -19097,7 +19317,7 @@ pub struct ConversationHit { pub role: ConversationHitRole, pub content_excerpt: String, pub ts: String, - #[serde(default = "default_924")] + #[serde(default = "default_960")] pub namespace: String, } @@ -19105,7 +19325,7 @@ pub struct ConversationHit { #[non_exhaustive] pub struct ConversationSearchOutput { pub hits: Vec, - #[serde(default = "default_925")] + #[serde(default = "default_961")] pub namespaces_skipped: Vec, } @@ -19638,7 +19858,7 @@ pub struct ConversationUnsaveMessageOutput { pub conversation_id: String, pub message_id: String, pub found: bool, - #[serde(default = "default_926")] + #[serde(default = "default_962")] pub removed: bool, pub ts: String, } @@ -19711,7 +19931,7 @@ impl ConversationUnsaveMessageInput { pub struct ConversationUpdateOutput { pub updated: bool, pub thread_id: String, - #[serde(default = "default_927")] + #[serde(default = "default_963")] pub updated_at: Option, } @@ -19816,17 +20036,17 @@ impl ConversationUpdateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CostAgentSummaryRow { - #[serde(default = "default_928")] + #[serde(default = "default_964")] pub namespace: Option, - #[serde(default = "default_929")] + #[serde(default = "default_965")] pub agent: Option, - #[serde(default = "default_930")] + #[serde(default = "default_966")] pub day: Option, - #[serde(default = "default_931")] + #[serde(default = "default_967")] pub model: Option, - #[serde(default = "default_932")] + #[serde(default = "default_968")] pub consumer: Option, - #[serde(default = "default_933")] + #[serde(default = "default_969")] pub session_id: Option, pub turns: Integer, pub sessions: Integer, @@ -19975,18 +20195,18 @@ pub enum BudgetStatusOutputCapSource { #[non_exhaustive] pub struct BudgetStatusOutput { pub namespace: String, - #[serde(default = "default_934")] + #[serde(default = "default_970")] pub user_id: Option, #[serde(deserialize_with = "required_nullable")] pub spent_24h_usd: Option, pub cap_usd: f64, pub cap_source: BudgetStatusOutputCapSource, pub over_cap: bool, - #[serde(default = "default_935")] + #[serde(default = "default_971")] pub namespace_over_cap: Option, - #[serde(default = "default_936")] + #[serde(default = "default_972")] pub pct_of_cap: Option, - #[serde(default = "default_937")] + #[serde(default = "default_973")] pub namespaces_with_spend: Integer, } @@ -20059,11 +20279,11 @@ impl BudgetStatusInput { pub struct CostRecordTurnsOutput { pub recorded: Integer, pub priced: Integer, - #[serde(default = "default_938")] + #[serde(default = "default_974")] pub unpriced_models: Vec, - #[serde(default = "default_939")] + #[serde(default = "default_975")] pub cost_usd: f64, - #[serde(default = "default_940")] + #[serde(default = "default_976")] pub turns_dated_ahead: Integer, } @@ -20234,25 +20454,25 @@ impl CostRecordTurnsInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CostSummaryRow { - #[serde(default = "default_941")] + #[serde(default = "default_977")] pub namespace: Option, - #[serde(default = "default_942")] + #[serde(default = "default_978")] pub agent: Option, - #[serde(default = "default_943")] + #[serde(default = "default_979")] pub day: Option, - #[serde(default = "default_944")] + #[serde(default = "default_980")] pub operation: Option, - #[serde(default = "default_945")] + #[serde(default = "default_981")] pub memory_key: Option, - #[serde(default = "default_946")] + #[serde(default = "default_982")] pub user_id: Option, - #[serde(default = "default_947")] + #[serde(default = "default_983")] pub model: Option, - #[serde(default = "default_948")] + #[serde(default = "default_984")] pub traffic_class: Option, - #[serde(default = "default_949")] + #[serde(default = "default_985")] pub instance_label: Option, - #[serde(default = "default_950")] + #[serde(default = "default_986")] pub build_commit: Option, pub ops: Integer, pub errors: Integer, @@ -20262,9 +20482,9 @@ pub struct CostSummaryRow { pub latency_p50_ms: f64, pub latency_p95_ms: f64, pub latency_p99_ms: f64, - #[serde(default = "default_951")] + #[serde(default = "default_987")] pub cache_hits: Integer, - #[serde(default = "default_952")] + #[serde(default = "default_988")] pub cache_saved_usd: f64, } @@ -20275,9 +20495,9 @@ pub struct CostSummaryOutput { pub total_ops: Integer, pub total_errors: Integer, pub total_cost_usd: f64, - #[serde(default = "default_953")] + #[serde(default = "default_989")] pub cache_hits: Integer, - #[serde(default = "default_954")] + #[serde(default = "default_990")] pub cache_saved_usd: f64, } @@ -20464,31 +20684,31 @@ pub enum DecisionRowStage { #[non_exhaustive] pub struct DecisionRow { pub memory_key: String, - #[serde(default = "default_955")] + #[serde(default = "default_991")] pub category: String, - #[serde(default = "default_956")] + #[serde(default = "default_992")] pub scenario: String, - #[serde(default = "default_957")] + #[serde(default = "default_993")] pub reasoning: String, - #[serde(default = "default_958")] + #[serde(default = "default_994")] pub outcome: String, - #[serde(default = "default_959")] + #[serde(default = "default_995")] pub alternatives: Vec, - #[serde(default = "default_960")] + #[serde(default = "default_996")] pub confidence: Option, - #[serde(default = "default_961")] + #[serde(default = "default_997")] pub decision_maker: String, - #[serde(default = "default_962")] + #[serde(default = "default_998")] pub run_id: String, - #[serde(default = "default_963")] + #[serde(default = "default_999")] pub realized_outcome: String, - #[serde(default = "default_964")] + #[serde(default = "default_1000")] pub success: Option, - #[serde(default = "default_965")] + #[serde(default = "default_1001")] pub made_at: String, - #[serde(default = "default_966")] + #[serde(default = "default_1002")] pub stage: DecisionRowStage, - #[serde(default = "default_967")] + #[serde(default = "default_1003")] pub similarity: f64, } @@ -20500,7 +20720,7 @@ pub struct ChainNodeRow { pub relation: String, pub direction: String, pub via: String, - #[serde(default = "default_969")] + #[serde(default = "default_1005")] pub decision: Option, } @@ -20508,7 +20728,7 @@ pub struct ChainNodeRow { #[non_exhaustive] pub struct DecisionChainOutput { pub seed: String, - #[serde(default = "default_968")] + #[serde(default = "default_1004")] pub seed_decision: Option, pub nodes: Vec, } @@ -20593,7 +20813,7 @@ impl DecisionChainInput { pub struct DecisionOutcomeOutput { pub memory_key: String, pub updated: bool, - #[serde(default = "default_970")] + #[serde(default = "default_1006")] pub memories_credited: Integer, } @@ -20671,7 +20891,7 @@ impl DecisionOutcomeInput { #[non_exhaustive] pub struct DecisionPrecedentsOutput { pub precedents: Vec, - #[serde(default = "default_971")] + #[serde(default = "default_1007")] pub embedding_model: String, } @@ -20766,11 +20986,11 @@ impl DecisionPrecedentsInput { pub struct DecisionRecordOutput { pub memory_key: String, pub record_id: String, - #[serde(default = "default_972")] + #[serde(default = "default_1008")] pub superseded_prior: bool, - #[serde(default = "default_973")] + #[serde(default = "default_1009")] pub edges_written: Integer, - #[serde(default = "default_974")] + #[serde(default = "default_1010")] pub next: String, } @@ -21046,7 +21266,7 @@ pub enum ErasureExportOutputScopeType { pub struct ErasureExportSection { pub rows: Vec>, pub count: Integer, - #[serde(default = "default_975")] + #[serde(default = "default_1011")] pub truncated: bool, } @@ -21159,17 +21379,17 @@ pub struct ErasureListRow { pub requester: String, pub status: ErasureListRowStatus, pub requested_at: String, - #[serde(default = "default_976")] + #[serde(default = "default_1012")] pub completed_at: Option, - #[serde(default = "default_977")] + #[serde(default = "default_1013")] pub failure_reason: String, - #[serde(default = "default_978")] + #[serde(default = "default_1014")] pub steps_completed_count: Integer, - #[serde(default = "default_979")] + #[serde(default = "default_1015")] pub reversals_count: Integer, - #[serde(default = "default_980")] + #[serde(default = "default_1016")] pub residue_count: Integer, - #[serde(default = "default_981")] + #[serde(default = "default_1017")] pub verified_at: Option, } @@ -21266,7 +21486,7 @@ pub enum ErasureRequestOutputStatus { pub struct ErasureStepResult { pub step: String, pub rows_affected: Integer, - #[serde(default = "default_982")] + #[serde(default = "default_1018")] pub notes: String, } @@ -21277,21 +21497,21 @@ pub struct ErasureRequestOutput { pub status: ErasureRequestOutputStatus, pub steps: Vec, pub requested_at: String, - #[serde(default = "default_983")] + #[serde(default = "default_1019")] pub completed_at: Option, - #[serde(default = "default_984")] + #[serde(default = "default_1020")] pub residue_count: Integer, - #[serde(default = "default_985")] + #[serde(default = "default_1021")] pub residue: std::collections::HashMap, - #[serde(default = "default_986")] + #[serde(default = "default_1022")] pub verified_at: Option, - #[serde(default = "default_987")] + #[serde(default = "default_1023")] pub census: Option>, - #[serde(default = "default_988")] + #[serde(default = "default_1024")] pub purge: bool, - #[serde(default = "default_989")] + #[serde(default = "default_1025")] pub failure_reason: String, - #[serde(default = "default_990")] + #[serde(default = "default_1026")] pub steps_completed: Vec, } @@ -21403,33 +21623,33 @@ pub enum ErasureStatusOutputStatus { pub struct ErasureStatusOutput { pub found: bool, pub erasure_id: String, - #[serde(default = "default_991")] + #[serde(default = "default_1027")] pub org: Option, - #[serde(default = "default_992")] + #[serde(default = "default_1028")] pub scope_type: Option, - #[serde(default = "default_993")] + #[serde(default = "default_1029")] pub scope_value: Option, - #[serde(default = "default_994")] + #[serde(default = "default_1030")] pub requester: Option, - #[serde(default = "default_995")] + #[serde(default = "default_1031")] pub status: Option, - #[serde(default = "default_996")] + #[serde(default = "default_1032")] pub current_step: Option, - #[serde(default = "default_997")] + #[serde(default = "default_1033")] pub requested_at: Option, - #[serde(default = "default_998")] + #[serde(default = "default_1034")] pub completed_at: Option, - #[serde(default = "default_999")] + #[serde(default = "default_1035")] pub failure_reason: Option, - #[serde(default = "default_1000")] + #[serde(default = "default_1036")] pub residue_count: Integer, - #[serde(default = "default_1001")] + #[serde(default = "default_1037")] pub residue: std::collections::HashMap, - #[serde(default = "default_1002")] + #[serde(default = "default_1038")] pub verified_at: Option, - #[serde(default = "default_1003")] + #[serde(default = "default_1039")] pub census: Option>, - #[serde(default = "default_1004")] + #[serde(default = "default_1040")] pub purge: bool, } @@ -21466,9 +21686,9 @@ pub enum ExtractionPolicyOutputScope { #[non_exhaustive] pub struct NamespacePolicy { pub namespace: String, - #[serde(default = "default_1010")] + #[serde(default = "default_1046")] pub updated_by: String, - #[serde(default = "default_1011")] + #[serde(default = "default_1047")] pub updated_at: Option, } @@ -21477,17 +21697,17 @@ pub struct NamespacePolicy { pub struct ExtractionPolicyOutput { pub org: String, pub scope: ExtractionPolicyOutputScope, - #[serde(default = "default_1005")] + #[serde(default = "default_1041")] pub namespace: String, - #[serde(default = "default_1006")] + #[serde(default = "default_1042")] pub policy: String, - #[serde(default = "default_1007")] + #[serde(default = "default_1043")] pub updated_by: String, - #[serde(default = "default_1008")] + #[serde(default = "default_1044")] pub updated_at: Option, - #[serde(default = "default_1009")] + #[serde(default = "default_1045")] pub effective: String, - #[serde(default = "default_1012")] + #[serde(default = "default_1048")] pub namespace_policies: Vec, } @@ -21721,13 +21941,13 @@ pub struct FactRow { pub object: String, pub co_occur: Integer, pub last_seen: String, - #[serde(default = "default_1013")] + #[serde(default = "default_1049")] pub provenance: String, - #[serde(default = "default_1014")] + #[serde(default = "default_1050")] pub source_keys: Vec, - #[serde(default = "default_1015")] + #[serde(default = "default_1051")] pub sources: Vec, - #[serde(default = "default_1016")] + #[serde(default = "default_1052")] pub stale: bool, } @@ -21735,7 +21955,7 @@ pub struct FactRow { #[non_exhaustive] pub struct FactsListOutput { pub rows: Vec, - #[serde(default = "default_1017")] + #[serde(default = "default_1053")] pub truncated: bool, } @@ -21954,14 +22174,14 @@ impl FactsListInput { pub struct PathEdge { pub entity_a: String, pub entity_b: String, - #[serde(default = "default_1018")] + #[serde(default = "default_1054")] pub relation: String, - #[serde(default = "default_1019")] + #[serde(default = "default_1055")] pub direction: String, pub co_occur: Integer, - #[serde(default = "default_1020")] + #[serde(default = "default_1056")] pub valid_from: Option, - #[serde(default = "default_1021")] + #[serde(default = "default_1057")] pub valid_to: Option, } @@ -22192,23 +22412,23 @@ pub struct TraversalNode { pub hop: Integer, pub cumulative_weight: f64, pub via_co_occur: Integer, - #[serde(default = "default_1023")] + #[serde(default = "default_1059")] pub hub: bool, - #[serde(default = "default_1024")] + #[serde(default = "default_1060")] pub degree: Integer, - #[serde(default = "default_1025")] + #[serde(default = "default_1061")] pub via_relation: String, - #[serde(default = "default_1026")] + #[serde(default = "default_1062")] pub via_direction: String, - #[serde(default = "default_1027")] + #[serde(default = "default_1063")] pub via_provenance: String, - #[serde(default = "default_1028")] + #[serde(default = "default_1064")] pub valid_from: String, - #[serde(default = "default_1029")] + #[serde(default = "default_1065")] pub valid_to: String, - #[serde(default = "default_1030")] + #[serde(default = "default_1066")] pub community_id: Option, - #[serde(default = "default_1031")] + #[serde(default = "default_1067")] pub path: Vec, } @@ -22216,12 +22436,12 @@ pub struct TraversalNode { #[non_exhaustive] pub struct FactsTraverseOutput { pub seed: String, - #[serde(default = "default_1022")] + #[serde(default = "default_1058")] pub seed_community_id: Option, pub nodes: Vec, - #[serde(default = "default_1032")] + #[serde(default = "default_1068")] pub truncated: bool, - #[serde(default = "default_1033")] + #[serde(default = "default_1069")] pub hubs: Vec, } @@ -22430,7 +22650,7 @@ pub struct GrantsApproveOutput { pub subject: String, pub namespace: String, pub decision: GrantsApproveOutputDecision, - #[serde(default = "default_1034")] + #[serde(default = "default_1070")] pub role: Option, pub decided_at: String, } @@ -22709,9 +22929,9 @@ pub struct GrantEntry { #[non_exhaustive] pub struct GrantsListOutput { pub rows: Vec, - #[serde(default = "default_1035")] + #[serde(default = "default_1071")] pub next_cursor: Option, - #[serde(default = "default_1036")] + #[serde(default = "default_1072")] pub truncated: bool, } @@ -22827,12 +23047,12 @@ pub enum PendingForMeEntryRequestedRole { #[non_exhaustive] pub struct PendingForMeEntry { pub namespace: String, - #[serde(default = "default_1037")] + #[serde(default = "default_1073")] pub kind: String, pub subject: String, pub current_role: PendingForMeEntryCurrentRole, pub requested_role: PendingForMeEntryRequestedRole, - #[serde(default = "default_1038")] + #[serde(default = "default_1074")] pub pending_since: Option, } @@ -22891,7 +23111,7 @@ impl GrantsPendingForMeInput { #[non_exhaustive] pub struct GrantsRevokeOutput { pub revoked: bool, - #[serde(default = "default_1039")] + #[serde(default = "default_1075")] pub revoked_at: Option, } @@ -23021,7 +23241,7 @@ impl GrantsShareAgentInput { #[non_exhaustive] pub struct GrantsUnshareAgentOutput { pub revoked: bool, - #[serde(default = "default_1040")] + #[serde(default = "default_1076")] pub revoked_at: Option, } @@ -23081,7 +23301,7 @@ pub enum HelpGetOutputAudience { pub struct HelpOutlineEntry { pub section: String, pub anchor: String, - #[serde(default = "default_1048")] + #[serde(default = "default_1084")] pub heading: String, } @@ -23091,21 +23311,21 @@ pub struct HelpGetOutput { pub available: bool, pub found: bool, pub path: String, - #[serde(default = "default_1041")] + #[serde(default = "default_1077")] pub title: String, - #[serde(default = "default_1042")] + #[serde(default = "default_1078")] pub section: String, - #[serde(default = "default_1043")] + #[serde(default = "default_1079")] pub anchor: String, - #[serde(default = "default_1044")] + #[serde(default = "default_1080")] pub audience: HelpGetOutputAudience, - #[serde(default = "default_1045")] + #[serde(default = "default_1081")] pub text: String, - #[serde(default = "default_1046")] + #[serde(default = "default_1082")] pub truncated: bool, - #[serde(default = "default_1047")] + #[serde(default = "default_1083")] pub next_offset: Integer, - #[serde(default = "default_1049")] + #[serde(default = "default_1085")] pub sections: Vec, } @@ -23250,21 +23470,21 @@ pub struct InboxPayload { pub inbox: String, pub owner_agent: String, pub owner_namespace: String, - #[serde(default = "default_1050")] + #[serde(default = "default_1086")] pub description: String, - #[serde(default = "default_1051")] + #[serde(default = "default_1087")] pub posters: Vec, - #[serde(default = "default_1052")] + #[serde(default = "default_1088")] pub accept_disclosure: Vec, pub default_lease_seconds: Integer, pub max_attempts: Integer, pub max_defers: Integer, pub triage_escalate_after_seconds: Integer, - #[serde(default = "default_1053")] + #[serde(default = "default_1089")] pub webhook_url: String, - #[serde(default = "default_1054")] + #[serde(default = "default_1090")] pub created_by: String, - #[serde(default = "default_1055")] + #[serde(default = "default_1091")] pub owner_subject: String, pub created_at: String, pub updated_at: String, @@ -23374,9 +23594,9 @@ pub struct PolicyPayload { pub poster: String, pub kind: String, pub mode: PolicyPayloadMode, - #[serde(default = "default_1056")] + #[serde(default = "default_1092")] pub require_evidence: Vec, - #[serde(default = "default_1057")] + #[serde(default = "default_1093")] pub set_by: String, pub set_at: String, pub version: Integer, @@ -23446,7 +23666,7 @@ impl InboxPolicyListInput { pub struct InboxPolicySetOutput { #[serde(deserialize_with = "required_nullable")] pub policy: Option, - #[serde(default = "default_1058")] + #[serde(default = "default_1094")] pub removed: bool, } @@ -23575,15 +23795,15 @@ pub struct Principal { pub subject: String, pub label: String, pub kind: PrincipalKind, - #[serde(default = "default_1059")] + #[serde(default = "default_1095")] pub namespaces: Vec, - #[serde(default = "default_1060")] + #[serde(default = "default_1096")] pub roles: Vec, - #[serde(default = "default_1061")] + #[serde(default = "default_1097")] pub last_seen: Option, - #[serde(default = "default_1062")] + #[serde(default = "default_1098")] pub can_already_post: bool, - #[serde(default = "default_1063")] + #[serde(default = "default_1099")] pub listed: bool, } @@ -23945,15 +24165,15 @@ pub struct AnalysisColumn { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InsightsQueryOutput { - #[serde(default = "default_1064")] + #[serde(default = "default_1100")] pub columns: Vec, - #[serde(default = "default_1065")] + #[serde(default = "default_1101")] pub rows: Vec>, - #[serde(default = "default_1066")] + #[serde(default = "default_1102")] pub row_count: Integer, - #[serde(default = "default_1067")] + #[serde(default = "default_1103")] pub truncated: bool, - #[serde(default = "default_1068")] + #[serde(default = "default_1104")] pub sql_digest: String, } @@ -24252,32 +24472,32 @@ pub struct DatasetOut { pub dataset_id: String, pub source_uri: String, pub name: String, - #[serde(default = "default_1069")] + #[serde(default = "default_1105")] pub sheet: String, - #[serde(default = "default_1070")] + #[serde(default = "default_1106")] pub row_start: Integer, - #[serde(default = "default_1071")] + #[serde(default = "default_1107")] pub row_end: Integer, pub revision: Integer, pub snapshot_id: String, pub schema_state: String, pub columns: Vec, - #[serde(default = "default_1072")] + #[serde(default = "default_1108")] pub clarifications: Vec, pub row_count: Integer, - #[serde(default = "default_1073")] + #[serde(default = "default_1109")] pub rejected_rows: Integer, - #[serde(default = "default_1074")] + #[serde(default = "default_1110")] pub rejected: Vec, - #[serde(default = "default_1075")] + #[serde(default = "default_1111")] pub complete: bool, - #[serde(default = "default_1076")] + #[serde(default = "default_1112")] pub approved_by: String, - #[serde(default = "default_1077")] + #[serde(default = "default_1113")] pub approved_at: Option, - #[serde(default = "default_1078")] + #[serde(default = "default_1114")] pub created_at: Option, - #[serde(default = "default_1079")] + #[serde(default = "default_1115")] pub rows: Vec>, } @@ -24285,9 +24505,9 @@ pub struct DatasetOut { #[non_exhaustive] pub struct KnowledgeDatasetApproveOutput { pub found: bool, - #[serde(default = "default_1080")] + #[serde(default = "default_1116")] pub dataset: Option, - #[serde(default = "default_1081")] + #[serde(default = "default_1117")] pub retyped: bool, } @@ -24381,9 +24601,9 @@ impl KnowledgeDatasetApproveInput { #[non_exhaustive] pub struct KnowledgeDatasetGetOutput { pub found: bool, - #[serde(default = "default_1082")] + #[serde(default = "default_1118")] pub revision: Integer, - #[serde(default = "default_1083")] + #[serde(default = "default_1119")] pub datasets: Vec, } @@ -24456,7 +24676,7 @@ impl KnowledgeDatasetGetInput { pub struct KnowledgeDocCluster { pub content_sha256: String, pub doc_count: Integer, - #[serde(default = "default_1084")] + #[serde(default = "default_1120")] pub docs: Vec>, } @@ -24466,16 +24686,16 @@ pub struct KnowledgeChunkCluster { pub content_sha256: String, pub chunk_count: Integer, pub uri_count: Integer, - #[serde(default = "default_1086")] + #[serde(default = "default_1122")] pub samples: Vec>, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeDedupListOutput { - #[serde(default = "default_1085")] + #[serde(default = "default_1121")] pub doc_clusters: Vec, - #[serde(default = "default_1087")] + #[serde(default = "default_1123")] pub chunk_clusters: Vec, } @@ -24552,7 +24772,7 @@ pub struct KnowledgeDedupResolveOutput { pub canonical_uri: String, pub duplicate_uri: String, pub decision: String, - #[serde(default = "default_1088")] + #[serde(default = "default_1124")] pub superseded_uri: String, } @@ -24671,24 +24891,24 @@ impl KnowledgeDeleteInput { #[non_exhaustive] pub struct KnowledgeFormat { pub format: String, - #[serde(default = "default_1089")] + #[serde(default = "default_1125")] pub extensions: Vec, - #[serde(default = "default_1090")] + #[serde(default = "default_1126")] pub media_types: Vec, - #[serde(default = "default_1091")] + #[serde(default = "default_1127")] pub available: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeFormatsOutput { - #[serde(default = "default_1092")] + #[serde(default = "default_1128")] pub formats: Vec, - #[serde(default = "default_1093")] + #[serde(default = "default_1129")] pub max_upload_bytes: Integer, - #[serde(default = "default_1094")] + #[serde(default = "default_1130")] pub refused_extensions: Vec, - #[serde(default = "default_1095")] + #[serde(default = "default_1131")] pub default_format: String, } @@ -24790,7 +25010,7 @@ impl KnowledgeGapsDraftInput { pub struct KnowledgeGap { pub gap_id: String, pub head: String, - #[serde(default = "default_1096")] + #[serde(default = "default_1132")] pub samples: Vec, pub askers: Integer, pub asks: Integer, @@ -24800,13 +25020,13 @@ pub struct KnowledgeGap { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeGapsListOutput { - #[serde(default = "default_1097")] + #[serde(default = "default_1133")] pub gaps: Vec, - #[serde(default = "default_1098")] + #[serde(default = "default_1134")] pub built_at: Option, - #[serde(default = "default_1099")] + #[serde(default = "default_1135")] pub capturing: Option, - #[serde(default = "default_1100")] + #[serde(default = "default_1136")] pub enabled: bool, } @@ -24872,7 +25092,7 @@ pub struct KnowledgeIngestOutput { pub ingestion_id: String, pub state: String, pub source_uri: String, - #[serde(default = "default_1101")] + #[serde(default = "default_1137")] pub namespace: String, } @@ -25091,9 +25311,9 @@ impl KnowledgeIngestInput { #[non_exhaustive] pub struct KnowledgeIngestCancelOutput { pub found: bool, - #[serde(default = "default_1102")] + #[serde(default = "default_1138")] pub state: String, - #[serde(default = "default_1103")] + #[serde(default = "default_1139")] pub cancelled: bool, } @@ -25144,39 +25364,39 @@ impl KnowledgeIngestCancelInput { pub struct KnowledgeIngestStatusOutput { pub found: bool, pub ingestion_id: String, - #[serde(default = "default_1104")] + #[serde(default = "default_1140")] pub source_uri: String, - #[serde(default = "default_1105")] + #[serde(default = "default_1141")] pub state: String, - #[serde(default = "default_1106")] + #[serde(default = "default_1142")] pub stage: String, - #[serde(default = "default_1107")] + #[serde(default = "default_1143")] pub attempts: Integer, - #[serde(default = "default_1108")] + #[serde(default = "default_1144")] pub error_code: String, - #[serde(default = "default_1109")] + #[serde(default = "default_1145")] pub error_message: String, - #[serde(default = "default_1110")] + #[serde(default = "default_1146")] pub format: String, - #[serde(default = "default_1111")] + #[serde(default = "default_1147")] pub coverage: Option>, - #[serde(default = "default_1112")] + #[serde(default = "default_1148")] pub warnings: Vec, - #[serde(default = "default_1113")] + #[serde(default = "default_1149")] pub chunks: Integer, - #[serde(default = "default_1114")] + #[serde(default = "default_1150")] pub revision: Integer, - #[serde(default = "default_1115")] + #[serde(default = "default_1151")] pub expected_revision: Option, - #[serde(default = "default_1116")] + #[serde(default = "default_1152")] pub filename: String, - #[serde(default = "default_1117")] + #[serde(default = "default_1153")] pub retrieval: String, - #[serde(default = "default_1118")] + #[serde(default = "default_1154")] pub cancel_requested: bool, - #[serde(default = "default_1119")] + #[serde(default = "default_1155")] pub created_at: Option, - #[serde(default = "default_1120")] + #[serde(default = "default_1156")] pub updated_at: Option, } @@ -25233,21 +25453,21 @@ pub struct DocumentCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct DocumentTotals { - #[serde(default = "default_1121")] + #[serde(default = "default_1157")] pub live: Option, - #[serde(default = "default_1122")] + #[serde(default = "default_1158")] pub deleted: Option, - #[serde(default = "default_1123")] + #[serde(default = "default_1159")] pub newest_ingested_at: Option, - #[serde(default = "default_1124")] + #[serde(default = "default_1160")] pub by_format: Vec, - #[serde(default = "default_1125")] + #[serde(default = "default_1161")] pub by_source_scheme: Vec, - #[serde(default = "default_1126")] + #[serde(default = "default_1162")] pub earlier_revisions: Option, - #[serde(default = "default_1127")] + #[serde(default = "default_1163")] pub unnumbered: Option, - #[serde(default = "default_1128")] + #[serde(default = "default_1164")] pub retired_versions: Option, } @@ -25262,15 +25482,15 @@ pub struct ChunkModelCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ChunkTotals { - #[serde(default = "default_1129")] + #[serde(default = "default_1165")] pub embedder_model: String, - #[serde(default = "default_1130")] + #[serde(default = "default_1166")] pub live: Option, - #[serde(default = "default_1131")] + #[serde(default = "default_1167")] pub searchable: Option, - #[serde(default = "default_1132")] + #[serde(default = "default_1168")] pub unembedded: Option, - #[serde(default = "default_1133")] + #[serde(default = "default_1169")] pub by_model: Vec, } @@ -25295,9 +25515,9 @@ pub struct DocumentDecisions { #[non_exhaustive] pub struct DecisionTotals { pub definition: String, - #[serde(default = "default_1134")] + #[serde(default = "default_1170")] pub refs: Vec, - #[serde(default = "default_1135")] + #[serde(default = "default_1171")] pub all_documents: Option, } @@ -25312,7 +25532,7 @@ pub struct DocumentChunks { pub min_chars: Integer, pub median_chars: Integer, pub max_chars: Integer, - #[serde(default = "default_1138")] + #[serde(default = "default_1174")] pub models: Vec, } @@ -25362,11 +25582,11 @@ pub struct IngestJob { pub failure_class: IngestJobFailureClass, pub queued_at: String, pub updated_at: String, - #[serde(default = "default_1143")] + #[serde(default = "default_1179")] pub ended_at: Option, - #[serde(default = "default_1144")] + #[serde(default = "default_1180")] pub next_attempt_at: Option, - #[serde(default = "default_1145")] + #[serde(default = "default_1181")] pub stalled: bool, } @@ -25376,11 +25596,11 @@ pub struct SourceJobs { pub source_uri: String, pub jobs: Integer, pub open_jobs: Integer, - #[serde(default = "default_1142")] + #[serde(default = "default_1178")] pub open_ingestion_id: String, pub latest: IngestJob, pub current: IngestJob, - #[serde(default = "default_1146")] + #[serde(default = "default_1182")] pub replaced: bool, } @@ -25393,18 +25613,18 @@ pub struct InspectDocument { pub source_scheme: String, pub version: Integer, pub revision: Integer, - #[serde(default = "default_1136")] + #[serde(default = "default_1172")] pub ingestion_id: String, pub ingested_at: String, - #[serde(default = "default_1137")] + #[serde(default = "default_1173")] pub retired_versions: Option, - #[serde(default = "default_1139")] + #[serde(default = "default_1175")] pub chunks: Option, - #[serde(default = "default_1140")] + #[serde(default = "default_1176")] pub decisions: Option, - #[serde(default = "default_1141")] + #[serde(default = "default_1177")] pub extraction: Option, - #[serde(default = "default_1147")] + #[serde(default = "default_1183")] pub jobs: Option, } @@ -25449,40 +25669,40 @@ pub struct DocumentFinding { pub kind: DocumentFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1150")] + #[serde(default = "default_1186")] pub window_seconds: Option, - #[serde(default = "default_1151")] + #[serde(default = "default_1187")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1152")] + #[serde(default = "default_1188")] pub evidence: Vec, - #[serde(default = "default_1153")] + #[serde(default = "default_1189")] pub exceptions: String, - #[serde(default = "default_1154")] + #[serde(default = "default_1190")] pub uncertainty: String, pub code: String, pub severity: DocumentFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1155")] + #[serde(default = "default_1191")] pub samples: Vec, - #[serde(default = "default_1156")] + #[serde(default = "default_1192")] pub ingested: Integer, - #[serde(default = "default_1157")] + #[serde(default = "default_1193")] pub ingested_samples: Vec, pub detail: String, pub remedy: String, - #[serde(default = "default_1158")] + #[serde(default = "default_1194")] pub refs: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ReportCoverage { - #[serde(default = "default_1160")] + #[serde(default = "default_1196")] pub rules_run: Vec, - #[serde(default = "default_1161")] + #[serde(default = "default_1197")] pub rules_skipped: Vec, pub complete: bool, } @@ -25490,43 +25710,43 @@ pub struct ReportCoverage { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct IngestionTotals { - #[serde(default = "default_1162")] + #[serde(default = "default_1198")] pub sources: Option, - #[serde(default = "default_1163")] + #[serde(default = "default_1199")] pub without_document: Option, - #[serde(default = "default_1164")] + #[serde(default = "default_1200")] pub replaced: Option, - #[serde(default = "default_1165")] + #[serde(default = "default_1201")] pub pending: Option, - #[serde(default = "default_1166")] + #[serde(default = "default_1202")] pub processing: Option, - #[serde(default = "default_1167")] + #[serde(default = "default_1203")] pub stalled: Option, - #[serde(default = "default_1168")] + #[serde(default = "default_1204")] pub ready: Option, - #[serde(default = "default_1169")] + #[serde(default = "default_1205")] pub partial: Option, - #[serde(default = "default_1170")] + #[serde(default = "default_1206")] pub failed: Option, - #[serde(default = "default_1171")] + #[serde(default = "default_1207")] pub cancelled: Option, - #[serde(default = "default_1172")] + #[serde(default = "default_1208")] pub oldest_open_queued_at: Option, pub worker_enabled: bool, - #[serde(default = "default_1173")] + #[serde(default = "default_1209")] pub extractor_configured: Option, - #[serde(default = "default_1174")] + #[serde(default = "default_1210")] pub without_document_listed: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ExtractionTotals { - #[serde(default = "default_1175")] + #[serde(default = "default_1211")] pub documents: Option, - #[serde(default = "default_1176")] + #[serde(default = "default_1212")] pub incomplete: Option, - #[serde(default = "default_1177")] + #[serde(default = "default_1213")] pub lost: Vec, } @@ -25556,31 +25776,31 @@ pub struct IngestFinding { pub kind: IngestFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1178")] + #[serde(default = "default_1214")] pub window_seconds: Option, - #[serde(default = "default_1179")] + #[serde(default = "default_1215")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1180")] + #[serde(default = "default_1216")] pub evidence: Vec, - #[serde(default = "default_1181")] + #[serde(default = "default_1217")] pub exceptions: String, - #[serde(default = "default_1182")] + #[serde(default = "default_1218")] pub uncertainty: String, pub code: String, pub severity: IngestFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1183")] + #[serde(default = "default_1219")] pub samples: Vec, - #[serde(default = "default_1184")] + #[serde(default = "default_1220")] pub ingestion_ids: Vec, - #[serde(default = "default_1185")] + #[serde(default = "default_1221")] pub without_document: Integer, pub detail: String, pub remedy: String, - #[serde(default = "default_1186")] + #[serde(default = "default_1222")] pub refs: Vec, } @@ -25607,20 +25827,20 @@ pub struct KnowledgeInspectOutput { pub documents: DocumentTotals, pub chunks: ChunkTotals, pub decisions: DecisionTotals, - #[serde(default = "default_1148")] + #[serde(default = "default_1184")] pub listed: Vec, - #[serde(default = "default_1149")] + #[serde(default = "default_1185")] pub listed_complete: bool, - #[serde(default = "default_1159")] + #[serde(default = "default_1195")] pub findings: Vec, pub coverage: ReportCoverage, pub ingestions: IngestionTotals, pub extraction: ExtractionTotals, - #[serde(default = "default_1187")] + #[serde(default = "default_1223")] pub ingest_findings: Vec, - #[serde(default = "default_1188")] + #[serde(default = "default_1224")] pub memory_findings: Vec, - #[serde(default = "default_1189")] + #[serde(default = "default_1225")] pub skipped: Vec, } @@ -25767,7 +25987,7 @@ pub struct KnowledgeListEntry { #[non_exhaustive] pub struct KnowledgeListOutput { pub rows: Vec, - #[serde(default = "default_1190")] + #[serde(default = "default_1226")] pub next_cursor: Option, } @@ -25933,9 +26153,9 @@ pub enum KnowledgeMoveResultReason { #[non_exhaustive] pub struct KnowledgeMoveResult { pub source_uri: String, - #[serde(default = "default_1192")] + #[serde(default = "default_1228")] pub moved: bool, - #[serde(default = "default_1193")] + #[serde(default = "default_1229")] pub reason: KnowledgeMoveResultReason, } @@ -25943,9 +26163,9 @@ pub struct KnowledgeMoveResult { #[non_exhaustive] pub struct KnowledgeMoveOutput { pub found: bool, - #[serde(default = "default_1191")] + #[serde(default = "default_1227")] pub to_namespace: String, - #[serde(default = "default_1194")] + #[serde(default = "default_1230")] pub results: Vec, } @@ -26011,17 +26231,17 @@ pub struct OutlineEntry { pub struct KnowledgeOutlineOutput { pub found: bool, pub source_uri: String, - #[serde(default = "default_1195")] + #[serde(default = "default_1231")] pub title: String, - #[serde(default = "default_1196")] + #[serde(default = "default_1232")] pub structured: bool, - #[serde(default = "default_1197")] + #[serde(default = "default_1233")] pub chunk_count: Integer, - #[serde(default = "default_1198")] + #[serde(default = "default_1234")] pub sections: Vec, - #[serde(default = "default_1199")] + #[serde(default = "default_1235")] pub section_content: Option, - #[serde(default = "default_1200")] + #[serde(default = "default_1236")] pub section_chunk_idxs: Vec, } @@ -26128,12 +26348,12 @@ pub struct QueryReceipt { pub struct KnowledgeQueryOutput { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1201")] + #[serde(default = "default_1237")] pub row_ids: Vec>, - #[serde(default = "default_1202")] + #[serde(default = "default_1238")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1203")] + #[serde(default = "default_1239")] pub incomplete: Vec, pub receipt: QueryReceipt, } @@ -26806,9 +27026,9 @@ pub struct QueryHistoryListOutputQueryHistorySource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct QueryHistoryListOutput { - #[serde(default = "default_1204")] + #[serde(default = "default_1240")] pub enabled: bool, - #[serde(default = "default_1205")] + #[serde(default = "default_1241")] pub sources: Vec, } @@ -26939,7 +27159,7 @@ impl QueryHistoryRemoveInput { #[non_exhaustive] pub struct KnowledgeReadsOutput { pub window_days: Integer, - #[serde(default = "default_1206")] + #[serde(default = "default_1242")] pub reads: Vec>, } @@ -27042,15 +27262,15 @@ pub enum KnowledgeRestoreOutputOriginal { #[non_exhaustive] pub struct KnowledgeRestoreOutput { pub restored: bool, - #[serde(default = "default_1207")] + #[serde(default = "default_1243")] pub reason: KnowledgeRestoreOutputReason, - #[serde(default = "default_1208")] + #[serde(default = "default_1244")] pub doc_id: String, - #[serde(default = "default_1209")] + #[serde(default = "default_1245")] pub revision: Option, - #[serde(default = "default_1210")] + #[serde(default = "default_1246")] pub chunks_restored: Integer, - #[serde(default = "default_1211")] + #[serde(default = "default_1247")] pub original: KnowledgeRestoreOutputOriginal, } @@ -27123,35 +27343,35 @@ pub struct KnowledgeSourceCrawlProof { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceProbe { - #[serde(default = "default_1216")] + #[serde(default = "default_1252")] pub documents: Integer, - #[serde(default = "default_1217")] + #[serde(default = "default_1253")] pub more: bool, - #[serde(default = "default_1218")] + #[serde(default = "default_1254")] pub sample: Vec, - #[serde(default = "default_1219")] + #[serde(default = "default_1255")] pub checked: Integer, - #[serde(default = "default_1220")] + #[serde(default = "default_1256")] pub sampled: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceAddOutput { - #[serde(default = "default_1212")] + #[serde(default = "default_1248")] pub crawl_proof: Option, pub name: String, pub kind: String, pub namespace: String, - #[serde(default = "default_1213")] + #[serde(default = "default_1249")] pub items: Vec>, - #[serde(default = "default_1214")] + #[serde(default = "default_1250")] pub include: Vec, - #[serde(default = "default_1215")] + #[serde(default = "default_1251")] pub config: std::collections::HashMap, - #[serde(default = "default_1221")] + #[serde(default = "default_1257")] pub probe: KnowledgeSourceProbe, - #[serde(default = "default_1222")] + #[serde(default = "default_1258")] pub dry_run: bool, } @@ -27368,21 +27588,21 @@ impl KnowledgeSourceAddInput { #[non_exhaustive] pub struct KnowledgeSourceCheckOutput { pub name: String, - #[serde(default = "default_1223")] + #[serde(default = "default_1259")] pub reachable: bool, - #[serde(default = "default_1224")] + #[serde(default = "default_1260")] pub documents: Integer, - #[serde(default = "default_1225")] + #[serde(default = "default_1261")] pub more: bool, - #[serde(default = "default_1226")] + #[serde(default = "default_1262")] pub sample: Vec, - #[serde(default = "default_1227")] + #[serde(default = "default_1263")] pub checked: Integer, - #[serde(default = "default_1228")] + #[serde(default = "default_1264")] pub sampled: bool, - #[serde(default = "default_1229")] + #[serde(default = "default_1265")] pub summary: String, - #[serde(default = "default_1230")] + #[serde(default = "default_1266")] pub checked_at: String, } @@ -27431,37 +27651,37 @@ impl KnowledgeSourceCheckInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceSync { - #[serde(default = "default_1241")] + #[serde(default = "default_1277")] pub requested_at: String, - #[serde(default = "default_1242")] + #[serde(default = "default_1278")] pub last_synced_at: String, - #[serde(default = "default_1243")] + #[serde(default = "default_1279")] pub status: String, - #[serde(default = "default_1244")] + #[serde(default = "default_1280")] pub documents_seen: Integer, - #[serde(default = "default_1245")] + #[serde(default = "default_1281")] pub changed: Integer, - #[serde(default = "default_1246")] + #[serde(default = "default_1282")] pub removed: Integer, - #[serde(default = "default_1247")] + #[serde(default = "default_1283")] pub unconverted: Integer, - #[serde(default = "default_1248")] + #[serde(default = "default_1284")] pub unconverted_reasons: std::collections::HashMap, - #[serde(default = "default_1249")] + #[serde(default = "default_1285")] pub skipped: Integer, - #[serde(default = "default_1250")] + #[serde(default = "default_1286")] pub error: String, - #[serde(default = "default_1251")] + #[serde(default = "default_1287")] pub pending_extract: Integer, - #[serde(default = "default_1252")] + #[serde(default = "default_1288")] pub last_extracted_at: String, - #[serde(default = "default_1253")] + #[serde(default = "default_1289")] pub extracted: Integer, - #[serde(default = "default_1254")] + #[serde(default = "default_1290")] pub flagged_pinned: Integer, - #[serde(default = "default_1255")] + #[serde(default = "default_1291")] pub unextracted: Integer, - #[serde(default = "default_1256")] + #[serde(default = "default_1292")] pub extract_error: String, } @@ -27469,11 +27689,11 @@ pub struct KnowledgeSourceSync { #[non_exhaustive] pub struct KnowledgeSourceDocument { pub source_uri: String, - #[serde(default = "default_1258")] + #[serde(default = "default_1294")] pub title: String, - #[serde(default = "default_1259")] + #[serde(default = "default_1295")] pub source_revision: String, - #[serde(default = "default_1260")] + #[serde(default = "default_1296")] pub ingested_at: String, } @@ -27482,29 +27702,29 @@ pub struct KnowledgeSourceDocument { pub struct KnowledgeSourceInspectOutput { pub name: String, pub kind: String, - #[serde(default = "default_1231")] + #[serde(default = "default_1267")] pub credential_mode: String, - #[serde(default = "default_1232")] + #[serde(default = "default_1268")] pub owned_by_caller: bool, - #[serde(default = "default_1233")] + #[serde(default = "default_1269")] pub access: String, - #[serde(default = "default_1234")] + #[serde(default = "default_1270")] pub crawl_options: std::collections::HashMap, - #[serde(default = "default_1235")] + #[serde(default = "default_1271")] pub owner_subject: String, - #[serde(default = "default_1236")] + #[serde(default = "default_1272")] pub items: Vec>, - #[serde(default = "default_1237")] + #[serde(default = "default_1273")] pub include: Vec, - #[serde(default = "default_1238")] + #[serde(default = "default_1274")] pub config: std::collections::HashMap, - #[serde(default = "default_1239")] + #[serde(default = "default_1275")] pub created_by: String, - #[serde(default = "default_1240")] + #[serde(default = "default_1276")] pub created_at: String, - #[serde(default = "default_1257")] + #[serde(default = "default_1293")] pub sync: KnowledgeSourceSync, - #[serde(default = "default_1261")] + #[serde(default = "default_1297")] pub documents: Vec, } @@ -27557,40 +27777,40 @@ impl KnowledgeSourceInspectInput { pub struct KnowledgeSourceEntry { pub name: String, pub kind: String, - #[serde(default = "default_1262")] + #[serde(default = "default_1298")] pub credential_mode: String, - #[serde(default = "default_1263")] + #[serde(default = "default_1299")] pub owned_by_caller: bool, - #[serde(default = "default_1264")] + #[serde(default = "default_1300")] pub access: String, - #[serde(default = "default_1265")] + #[serde(default = "default_1301")] pub crawl_options: std::collections::HashMap, - #[serde(default = "default_1266")] + #[serde(default = "default_1302")] pub owner_subject: String, - #[serde(default = "default_1267")] + #[serde(default = "default_1303")] pub items: Vec>, - #[serde(default = "default_1268")] + #[serde(default = "default_1304")] pub include: Vec, - #[serde(default = "default_1269")] + #[serde(default = "default_1305")] pub config: std::collections::HashMap, - #[serde(default = "default_1270")] + #[serde(default = "default_1306")] pub created_by: String, - #[serde(default = "default_1271")] + #[serde(default = "default_1307")] pub created_at: String, - #[serde(default = "default_1272")] + #[serde(default = "default_1308")] pub sync: KnowledgeSourceSync, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceListOutput { - #[serde(default = "default_1273")] + #[serde(default = "default_1309")] pub sources: Vec, - #[serde(default = "default_1274")] + #[serde(default = "default_1310")] pub enabled: bool, - #[serde(default = "default_1275")] + #[serde(default = "default_1311")] pub accepts_sources: bool, - #[serde(default = "default_1276")] + #[serde(default = "default_1312")] pub self_service: bool, } @@ -27685,7 +27905,7 @@ impl std::fmt::Debug for KnowledgeSourceLiveDocument { #[non_exhaustive] pub struct KnowledgeSourceLiveOutput { pub status: KnowledgeSourceLiveOutputStatus, - #[serde(default = "default_1277")] + #[serde(default = "default_1313")] pub document: Option, } impl std::fmt::Debug for KnowledgeSourceLiveOutput { @@ -27753,18 +27973,18 @@ impl KnowledgeSourceLiveInput { #[non_exhaustive] pub struct KnowledgeSourceParsedLink { pub link: String, - #[serde(default = "default_1278")] + #[serde(default = "default_1314")] pub kind: String, - #[serde(default = "default_1279")] + #[serde(default = "default_1315")] pub item: std::collections::HashMap, - #[serde(default = "default_1280")] + #[serde(default = "default_1316")] pub unreadable: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceParseLinksOutput { - #[serde(default = "default_1281")] + #[serde(default = "default_1317")] pub links: Vec, } @@ -27815,25 +28035,25 @@ impl KnowledgeSourceParseLinksInput { #[derive(Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct PushStatusOutput { - #[serde(default = "default_1282")] + #[serde(default = "default_1318")] pub enabled: bool, - #[serde(default = "default_1283")] + #[serde(default = "default_1319")] pub status: String, - #[serde(default = "default_1284")] + #[serde(default = "default_1320")] pub provider: String, - #[serde(default = "default_1285")] + #[serde(default = "default_1321")] pub generation: String, - #[serde(default = "default_1286")] + #[serde(default = "default_1322")] pub callback_url: String, - #[serde(default = "default_1287")] + #[serde(default = "default_1323")] pub provider_id: String, - #[serde(default = "default_1288")] + #[serde(default = "default_1324")] pub challenge_fingerprint: String, - #[serde(default = "default_1289")] + #[serde(default = "default_1325")] pub verification_token: String, - #[serde(default = "default_1290")] + #[serde(default = "default_1326")] pub channels: Integer, - #[serde(default = "default_1291")] + #[serde(default = "default_1327")] pub expires_at: f64, } impl std::fmt::Debug for PushStatusOutput { @@ -28078,7 +28298,7 @@ impl PushStatusInput { #[non_exhaustive] pub struct KnowledgeSourceRemoveOutput { pub name: String, - #[serde(default = "default_1292")] + #[serde(default = "default_1328")] pub documents_pending: Integer, } @@ -28140,12 +28360,12 @@ impl KnowledgeSourceRemoveInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceRotateOutput { - #[serde(default = "default_1293")] + #[serde(default = "default_1329")] pub crawl_proof: Option, pub name: String, - #[serde(default = "default_1294")] + #[serde(default = "default_1330")] pub probe: KnowledgeSourceProbe, - #[serde(default = "default_1295")] + #[serde(default = "default_1331")] pub rotated_at: String, } @@ -28197,7 +28417,7 @@ impl KnowledgeSourceRotateInput { #[non_exhaustive] pub struct KnowledgeSourceSyncNowOutput { pub name: String, - #[serde(default = "default_1296")] + #[serde(default = "default_1332")] pub enabled: bool, } @@ -28259,20 +28479,20 @@ impl KnowledgeSourceSyncNowInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceUpdateOutput { - #[serde(default = "default_1297")] + #[serde(default = "default_1333")] pub crawl_proof: Option, pub name: String, - #[serde(default = "default_1298")] + #[serde(default = "default_1334")] pub items: Vec>, - #[serde(default = "default_1299")] + #[serde(default = "default_1335")] pub include: Vec, - #[serde(default = "default_1300")] + #[serde(default = "default_1336")] pub config: std::collections::HashMap, - #[serde(default = "default_1301")] + #[serde(default = "default_1337")] pub added: Vec>, - #[serde(default = "default_1302")] + #[serde(default = "default_1338")] pub removed: Vec>, - #[serde(default = "default_1303")] + #[serde(default = "default_1339")] pub probe: KnowledgeSourceProbe, } @@ -28415,7 +28635,7 @@ pub enum WorkerApproveOutputStatus { #[non_exhaustive] pub struct WorkerApproveOutput { pub status: WorkerApproveOutputStatus, - #[serde(default = "default_1304")] + #[serde(default = "default_1340")] pub approval_generation: Option, } @@ -28515,9 +28735,9 @@ pub enum WorkerEnrollOutputStatus { #[non_exhaustive] pub struct WorkerEnrollOutput { pub status: WorkerEnrollOutputStatus, - #[serde(default = "default_1305")] + #[serde(default = "default_1341")] pub connection_id: Option, - #[serde(default = "default_1306")] + #[serde(default = "default_1342")] pub connection_generation: Option, } @@ -28606,19 +28826,19 @@ pub enum ReaderPolicy { #[non_exhaustive] pub struct WorkerPreviewOutput { pub status: WorkerPreviewOutputStatus, - #[serde(default = "default_1307")] + #[serde(default = "default_1343")] pub reader_policy: Option, - #[serde(default = "default_1308")] + #[serde(default = "default_1344")] pub stores_copy: Option, - #[serde(default = "default_1309")] + #[serde(default = "default_1345")] pub disclosure: Option, - #[serde(default = "default_1310")] + #[serde(default = "default_1346")] pub selected: Option, - #[serde(default = "default_1311")] + #[serde(default = "default_1347")] pub fingerprint: Option, - #[serde(default = "default_1312")] + #[serde(default = "default_1348")] pub evidence: Option, - #[serde(default = "default_1313")] + #[serde(default = "default_1349")] pub expires_at: Option, } @@ -28790,9 +29010,9 @@ pub struct WorkerProfileCursor { #[non_exhaustive] pub struct WorkerProfilesOutput { pub status: WorkerProfilesOutputStatus, - #[serde(default = "default_1314")] + #[serde(default = "default_1350")] pub profiles: Vec, - #[serde(default = "default_1315")] + #[serde(default = "default_1351")] pub next_page: Option, } @@ -28905,9 +29125,9 @@ pub enum WorkerRegisterOutputStatus { #[non_exhaustive] pub struct WorkerRegisterOutput { pub status: WorkerRegisterOutputStatus, - #[serde(default = "default_1316")] + #[serde(default = "default_1352")] pub source_id: Option, - #[serde(default = "default_1317")] + #[serde(default = "default_1353")] pub name: Option, } @@ -29024,9 +29244,9 @@ impl WorkerRegisterInput { pub struct CitedChunk { pub source_uri: String, pub chunk_idx: Integer, - #[serde(default = "default_1319")] + #[serde(default = "default_1355")] pub revision: Integer, - #[serde(default = "default_1320")] + #[serde(default = "default_1356")] pub locator: Option>, } @@ -29035,12 +29255,12 @@ pub struct CitedChunk { pub struct SynthesizeCalculation { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1327")] + #[serde(default = "default_1363")] pub row_ids: Vec>, - #[serde(default = "default_1328")] + #[serde(default = "default_1364")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1329")] + #[serde(default = "default_1365")] pub incomplete: Vec, pub receipt: QueryReceipt, pub citation: String, @@ -29054,23 +29274,23 @@ pub struct KnowledgeSynthesizeOutput { pub chunks_read: Integer, pub documents: Integer, pub reduce_rounds: Integer, - #[serde(default = "default_1318")] + #[serde(default = "default_1354")] pub citations: Vec, - #[serde(default = "default_1321")] + #[serde(default = "default_1357")] pub cited_chunks: Vec, - #[serde(default = "default_1322")] + #[serde(default = "default_1358")] pub unsupported_citations: Vec, - #[serde(default = "default_1323")] + #[serde(default = "default_1359")] pub truncated: bool, - #[serde(default = "default_1324")] + #[serde(default = "default_1360")] pub abstain: bool, - #[serde(default = "default_1325")] + #[serde(default = "default_1361")] pub abstain_reason: String, - #[serde(default = "default_1326")] + #[serde(default = "default_1362")] pub clarification: String, - #[serde(default = "default_1330")] + #[serde(default = "default_1366")] pub calculations: Vec, - #[serde(default = "default_1331")] + #[serde(default = "default_1367")] pub model: String, } @@ -29186,13 +29406,13 @@ impl KnowledgeSynthesizeInput { #[non_exhaustive] pub struct KnowledgeUpdateMetadataOutput { pub updated: bool, - #[serde(default = "default_1332")] + #[serde(default = "default_1368")] pub title: String, - #[serde(default = "default_1333")] + #[serde(default = "default_1369")] pub description: String, - #[serde(default = "default_1334")] + #[serde(default = "default_1370")] pub tags: Vec, - #[serde(default = "default_1335")] + #[serde(default = "default_1371")] pub chunks_reindexed: Integer, } @@ -29304,13 +29524,13 @@ pub struct KnowledgeUpsertOutput { pub chunks_superseded: Integer, pub embedding_model: String, pub embedding_dim: Integer, - #[serde(default = "default_1336")] + #[serde(default = "default_1372")] pub duplicate_of_uri: String, - #[serde(default = "default_1337")] + #[serde(default = "default_1373")] pub duplicate_chunk_count: Integer, - #[serde(default = "default_1338")] + #[serde(default = "default_1374")] pub namespace: String, - #[serde(default = "default_1339")] + #[serde(default = "default_1375")] pub source_uri: String, } @@ -29495,26 +29715,26 @@ pub struct LearningEntry { pub memory_type: String, pub proposed_value: Value, pub supporter_count: Integer, - #[serde(default = "default_1340")] + #[serde(default = "default_1376")] pub supporter_sessions: Integer, - #[serde(default = "default_1341")] + #[serde(default = "default_1377")] pub supporter_writers: Integer, pub confidence_avg: f64, pub supporters: Vec, pub rationale: String, - #[serde(default = "default_1342")] + #[serde(default = "default_1378")] pub source_kind: String, - #[serde(default = "default_1343")] + #[serde(default = "default_1379")] pub source_resource_id: String, - #[serde(default = "default_1344")] + #[serde(default = "default_1380")] pub agent: String, pub status: LearningEntryStatus, pub proposed_at: String, - #[serde(default = "default_1345")] + #[serde(default = "default_1381")] pub decided_at: Option, - #[serde(default = "default_1346")] + #[serde(default = "default_1382")] pub decided_by: String, - #[serde(default = "default_1347")] + #[serde(default = "default_1383")] pub decision_reason: String, } @@ -29717,11 +29937,11 @@ pub enum LearningsReviewOutputNewStatus { pub struct LearningsReviewOutput { pub candidate_id: String, pub new_status: LearningsReviewOutputNewStatus, - #[serde(default = "default_1348")] + #[serde(default = "default_1384")] pub promoted_to_shared: bool, - #[serde(default = "default_1349")] + #[serde(default = "default_1385")] pub promoted_to_knowledge: bool, - #[serde(default = "default_1350")] + #[serde(default = "default_1386")] pub knowledge_source_uri: String, pub decided_at: String, } @@ -29925,7 +30145,7 @@ impl MemoryAgentsListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct AggregateRow { - #[serde(default = "default_1351")] + #[serde(default = "default_1387")] pub group: std::collections::HashMap, pub metric: f64, } @@ -29933,9 +30153,9 @@ pub struct AggregateRow { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAggregateOutput { - #[serde(default = "default_1352")] + #[serde(default = "default_1388")] pub rows: Vec, - #[serde(default = "default_1353")] + #[serde(default = "default_1389")] pub sql_executed: String, } @@ -30103,15 +30323,15 @@ impl MemoryAggregateInput { pub struct BulkSetResult { pub memory_key: String, pub version: Integer, - #[serde(default = "default_1354")] + #[serde(default = "default_1390")] pub memory_id: String, - #[serde(default = "default_1355")] + #[serde(default = "default_1391")] pub conflict_verdict: String, - #[serde(default = "default_1356")] + #[serde(default = "default_1392")] pub peers: Vec, - #[serde(default = "default_1357")] + #[serde(default = "default_1393")] pub next: String, - #[serde(default = "default_1358")] + #[serde(default = "default_1394")] pub pinned_blocker_id: String, } @@ -30119,29 +30339,29 @@ pub struct BulkSetResult { #[non_exhaustive] pub struct MemoryBulkSetOutput { pub written: Vec, - #[serde(default = "default_1359")] + #[serde(default = "default_1395")] pub skipped_pinned: Vec, - #[serde(default = "default_1360")] + #[serde(default = "default_1396")] pub skipped_locked: Vec, - #[serde(default = "default_1361")] + #[serde(default = "default_1397")] pub skipped_blacklisted: Vec, - #[serde(default = "default_1362")] + #[serde(default = "default_1398")] pub merged: Vec, - #[serde(default = "default_1363")] + #[serde(default = "default_1399")] pub value_updates_linked: Integer, - #[serde(default = "default_1364")] + #[serde(default = "default_1400")] pub rejected_pinned: Vec, - #[serde(default = "default_1365")] + #[serde(default = "default_1401")] pub duplicates: Vec, - #[serde(default = "default_1366")] + #[serde(default = "default_1402")] pub conflicted: Vec, - #[serde(default = "default_1367")] + #[serde(default = "default_1403")] pub unchecked: Integer, - #[serde(default = "default_1368")] + #[serde(default = "default_1404")] pub retyped: Vec, - #[serde(default = "default_1369")] + #[serde(default = "default_1405")] pub identity_duplicates: std::collections::HashMap, - #[serde(default = "default_1370")] + #[serde(default = "default_1406")] pub stage_ms: std::collections::HashMap, } @@ -30291,18 +30511,18 @@ pub enum ApplyRowStatus { #[non_exhaustive] pub struct ApplyRow { pub memory_key: String, - #[serde(default = "default_1378")] + #[serde(default = "default_1414")] pub memory_id: String, - #[serde(default = "default_1379")] + #[serde(default = "default_1415")] pub agent: String, - #[serde(default = "default_1380")] + #[serde(default = "default_1416")] pub user_id: String, - #[serde(default = "default_1381")] + #[serde(default = "default_1417")] pub session_id: String, pub status: ApplyRowStatus, - #[serde(default = "default_1382")] + #[serde(default = "default_1418")] pub version: Option, - #[serde(default = "default_1383")] + #[serde(default = "default_1419")] pub detail: String, } @@ -30312,21 +30532,21 @@ pub struct MemoryApplyOutput { pub action: String, pub dry_run: bool, pub target: String, - #[serde(default = "default_1371")] + #[serde(default = "default_1407")] pub matched: Integer, - #[serde(default = "default_1372")] + #[serde(default = "default_1408")] pub applied: Integer, - #[serde(default = "default_1373")] + #[serde(default = "default_1409")] pub would_apply: Integer, - #[serde(default = "default_1374")] + #[serde(default = "default_1410")] pub refused: Integer, - #[serde(default = "default_1375")] + #[serde(default = "default_1411")] pub noop: Integer, - #[serde(default = "default_1376")] + #[serde(default = "default_1412")] pub failed: Integer, - #[serde(default = "default_1377")] + #[serde(default = "default_1413")] pub truncated: bool, - #[serde(default = "default_1384")] + #[serde(default = "default_1420")] pub rows: Vec, } @@ -31060,137 +31280,137 @@ pub enum MemoryAskOutputDeepFirst { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAskOutput { - #[serde(default = "default_1385")] + #[serde(default = "default_1421")] pub answer: String, - #[serde(default = "default_1386")] + #[serde(default = "default_1422")] pub source: MemoryAskOutputSource, - #[serde(default = "default_1387")] + #[serde(default = "default_1423")] pub abstain: bool, - #[serde(default = "default_1388")] + #[serde(default = "default_1424")] pub abstain_reason: String, - #[serde(default = "default_1389")] + #[serde(default = "default_1425")] pub memory_keys: Vec, - #[serde(default = "default_1390")] + #[serde(default = "default_1426")] pub results: Vec, - #[serde(default = "default_1391")] + #[serde(default = "default_1427")] pub cited_sessions: Vec, - #[serde(default = "default_1392")] + #[serde(default = "default_1428")] pub next: String, - #[serde(default = "default_1393")] + #[serde(default = "default_1429")] pub synth_model: String, - #[serde(default = "default_1394")] + #[serde(default = "default_1430")] pub route_tier: MemoryAskOutputRouteTier, - #[serde(default = "default_1395")] + #[serde(default = "default_1431")] pub route_reason: String, - #[serde(default = "default_1396")] + #[serde(default = "default_1432")] pub llm_cache_hits: Integer, - #[serde(default = "default_1397")] + #[serde(default = "default_1433")] pub llm_cache_misses: Integer, - #[serde(default = "default_1398")] + #[serde(default = "default_1434")] pub llm_cache: bool, - #[serde(default = "default_1399")] + #[serde(default = "default_1435")] pub llm_cache_saved_usd: f64, - #[serde(default = "default_1400")] + #[serde(default = "default_1436")] pub temporal_consistency: Option, - #[serde(default = "default_1401")] + #[serde(default = "default_1437")] pub citation_concentration: Option, - #[serde(default = "default_1402")] + #[serde(default = "default_1438")] pub escalated: bool, - #[serde(default = "default_1403")] + #[serde(default = "default_1439")] pub gate_mode: String, - #[serde(default = "default_1404")] + #[serde(default = "default_1440")] pub gate_kept: Integer, - #[serde(default = "default_1405")] + #[serde(default = "default_1441")] pub gate_dropped: Integer, - #[serde(default = "default_1406")] + #[serde(default = "default_1442")] pub pending_extraction: Integer, - #[serde(default = "default_1407")] + #[serde(default = "default_1443")] pub pending_evidence: Integer, - #[serde(default = "default_1408")] + #[serde(default = "default_1444")] pub retrieval_query: String, - #[serde(default = "default_1409")] + #[serde(default = "default_1445")] pub facets: Vec, - #[serde(default = "default_1410")] + #[serde(default = "default_1446")] pub facet_memories_added: Integer, - #[serde(default = "default_1411")] + #[serde(default = "default_1447")] pub consistency: MemoryAskOutputConsistency, - #[serde(default = "default_1412")] + #[serde(default = "default_1448")] pub consistency_score: f64, - #[serde(default = "default_1413")] + #[serde(default = "default_1449")] pub consistency_note: String, - #[serde(default = "default_1414")] + #[serde(default = "default_1450")] pub identifier_chase_hops: Integer, - #[serde(default = "default_1415")] + #[serde(default = "default_1451")] pub identifier_chase_added: Integer, - #[serde(default = "default_1416")] + #[serde(default = "default_1452")] pub premise_conflict: String, - #[serde(default = "default_1417")] + #[serde(default = "default_1453")] pub premise_note: String, - #[serde(default = "default_1418")] + #[serde(default = "default_1454")] pub premise_verdict: String, - #[serde(default = "default_1419")] + #[serde(default = "default_1455")] pub attribution_note: String, - #[serde(default = "default_1420")] + #[serde(default = "default_1456")] pub depth: MemoryAskOutputDepth, - #[serde(default = "default_1421")] + #[serde(default = "default_1457")] pub deep_fired: bool, - #[serde(default = "default_1422")] + #[serde(default = "default_1458")] pub decomposed: Vec, - #[serde(default = "default_1423")] + #[serde(default = "default_1459")] pub decomposed_parts: Integer, - #[serde(default = "default_1424")] + #[serde(default = "default_1460")] pub superseded_dropped: Integer, - #[serde(default = "default_1425")] + #[serde(default = "default_1461")] pub stale_sentences_masked: Integer, - #[serde(default = "default_1426")] + #[serde(default = "default_1462")] pub entity_followed: Vec, - #[serde(default = "default_1427")] + #[serde(default = "default_1463")] pub when_evidence_turns: Integer, - #[serde(default = "default_1428")] + #[serde(default = "default_1464")] pub decompose_failed: Integer, - #[serde(default = "default_1429")] + #[serde(default = "default_1465")] pub pool_k: Integer, - #[serde(default = "default_1430")] + #[serde(default = "default_1466")] pub grounding: MemoryAskOutputGrounding, - #[serde(default = "default_1431")] + #[serde(default = "default_1467")] pub deep_reason: String, - #[serde(default = "default_1432")] + #[serde(default = "default_1468")] pub deep_keys: Vec, - #[serde(default = "default_1433")] + #[serde(default = "default_1469")] pub deep_chars: Integer, - #[serde(default = "default_1434")] + #[serde(default = "default_1470")] pub code_hits: Integer, - #[serde(default = "default_1435")] + #[serde(default = "default_1471")] pub pool_facts: Integer, - #[serde(default = "default_1436")] + #[serde(default = "default_1472")] pub pool_chunks: Integer, - #[serde(default = "default_1437")] + #[serde(default = "default_1473")] pub prompt_blocks: std::collections::HashMap, - #[serde(default = "default_1438")] + #[serde(default = "default_1474")] pub deep_selector: MemoryAskOutputDeepSelector, - #[serde(default = "default_1439")] + #[serde(default = "default_1475")] pub deep_first: MemoryAskOutputDeepFirst, - #[serde(default = "default_1440")] + #[serde(default = "default_1476")] pub synth_calls: Integer, - #[serde(default = "default_1441")] + #[serde(default = "default_1477")] pub synth_input_tokens: Integer, - #[serde(default = "default_1442")] + #[serde(default = "default_1478")] pub synth_cached_input_tokens: Integer, - #[serde(default = "default_1443")] + #[serde(default = "default_1479")] pub synth_cache_write_tokens: Integer, - #[serde(default = "default_1444")] + #[serde(default = "default_1480")] pub synth_cost_usd: f64, - #[serde(default = "default_1445")] + #[serde(default = "default_1481")] pub context_tokens_est: Integer, - #[serde(default = "default_1446")] + #[serde(default = "default_1482")] pub context_trimmed: Integer, - #[serde(default = "default_1447")] + #[serde(default = "default_1483")] pub summary_hits: Integer, - #[serde(default = "default_1448")] + #[serde(default = "default_1484")] pub knowledge_hits: Integer, - #[serde(default = "default_1449")] + #[serde(default = "default_1485")] pub timeline_rows: Integer, - #[serde(default = "default_1450")] + #[serde(default = "default_1486")] pub count_recomputed: bool, } @@ -32145,36 +32365,36 @@ pub struct MemoryAutoRetirement { pub reason: String, pub memory_id: String, pub memory_key: String, - #[serde(default = "default_1451")] + #[serde(default = "default_1487")] pub agent: String, - #[serde(default = "default_1452")] + #[serde(default = "default_1488")] pub user_id: String, - #[serde(default = "default_1453")] + #[serde(default = "default_1489")] pub session_id: String, - #[serde(default = "default_1454")] + #[serde(default = "default_1490")] pub superseded_by: String, - #[serde(default = "default_1455")] + #[serde(default = "default_1491")] pub superseded_by_key: String, - #[serde(default = "default_1456")] + #[serde(default = "default_1492")] pub label: String, - #[serde(default = "default_1457")] + #[serde(default = "default_1493")] pub unconfirmed: bool, - #[serde(default = "default_1458")] + #[serde(default = "default_1494")] pub judge_verdict: String, - #[serde(default = "default_1459")] + #[serde(default = "default_1495")] pub judge_confidence: Option, - #[serde(default = "default_1460")] + #[serde(default = "default_1496")] pub judge_model: String, - #[serde(default = "default_1461")] + #[serde(default = "default_1497")] pub judge_prompt_version: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAutoRetirementsOutput { - #[serde(default = "default_1462")] + #[serde(default = "default_1498")] pub rows: Vec, - #[serde(default = "default_1463")] + #[serde(default = "default_1499")] pub next_cursor: Option, } @@ -32268,9 +32488,9 @@ impl MemoryAutoRetirementsInput { #[non_exhaustive] pub struct BacklinkVersion { pub version: Integer, - #[serde(default = "default_1465")] + #[serde(default = "default_1501")] pub status: String, - #[serde(default = "default_1466")] + #[serde(default = "default_1502")] pub created_at: String, } @@ -32278,7 +32498,7 @@ pub struct BacklinkVersion { #[non_exhaustive] pub struct BacklinkDigest { pub session_id: String, - #[serde(default = "default_1468")] + #[serde(default = "default_1504")] pub date: String, } @@ -32286,9 +32506,9 @@ pub struct BacklinkDigest { #[non_exhaustive] pub struct BacklinkEdge { pub memory_key: String, - #[serde(default = "default_1470")] + #[serde(default = "default_1506")] pub relation: String, - #[serde(default = "default_1471")] + #[serde(default = "default_1507")] pub created_at: String, } @@ -32296,7 +32516,7 @@ pub struct BacklinkEdge { #[non_exhaustive] pub struct BacklinkRelated { pub memory_key: String, - #[serde(default = "default_1475")] + #[serde(default = "default_1511")] pub shared_entities: Vec, } @@ -32304,19 +32524,19 @@ pub struct BacklinkRelated { #[non_exhaustive] pub struct MemoryBacklinksOutput { pub memory_key: String, - #[serde(default = "default_1464")] + #[serde(default = "default_1500")] pub found: bool, - #[serde(default = "default_1467")] + #[serde(default = "default_1503")] pub versions: Vec, - #[serde(default = "default_1469")] + #[serde(default = "default_1505")] pub digests: Vec, - #[serde(default = "default_1472")] + #[serde(default = "default_1508")] pub links_in: Vec, - #[serde(default = "default_1473")] + #[serde(default = "default_1509")] pub links_out: Vec, - #[serde(default = "default_1474")] + #[serde(default = "default_1510")] pub evidence_count: Integer, - #[serde(default = "default_1476")] + #[serde(default = "default_1512")] pub related: Vec, } @@ -32421,36 +32641,36 @@ impl MemoryBacklinksInput { #[non_exhaustive] pub struct BriefEvidence { pub memory_key: String, - #[serde(default = "default_1481")] + #[serde(default = "default_1517")] pub source: String, - #[serde(default = "default_1482")] + #[serde(default = "default_1518")] pub source_class: String, - #[serde(default = "default_1483")] + #[serde(default = "default_1519")] pub verified: bool, - #[serde(default = "default_1484")] + #[serde(default = "default_1520")] pub when: String, - #[serde(default = "default_1485")] + #[serde(default = "default_1521")] pub session_id: String, - #[serde(default = "default_1486")] + #[serde(default = "default_1522")] pub excerpt: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBriefOutput { - #[serde(default = "default_1477")] + #[serde(default = "default_1513")] pub query: String, - #[serde(default = "default_1478")] + #[serde(default = "default_1514")] pub answer: String, - #[serde(default = "default_1479")] + #[serde(default = "default_1515")] pub abstained: bool, - #[serde(default = "default_1480")] + #[serde(default = "default_1516")] pub grounding: String, - #[serde(default = "default_1487")] + #[serde(default = "default_1523")] pub evidence: Vec, - #[serde(default = "default_1488")] + #[serde(default = "default_1524")] pub unknowns: Vec, - #[serde(default = "default_1489")] + #[serde(default = "default_1525")] pub next_reads: Vec, } @@ -32864,9 +33084,9 @@ pub struct MemoryBulkGetOutputMemoryGetOutput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBulkGetOutput { - #[serde(default = "default_1490")] + #[serde(default = "default_1526")] pub results: std::collections::HashMap, - #[serde(default = "default_1491")] + #[serde(default = "default_1527")] pub missing: Vec, } @@ -33379,7 +33599,7 @@ pub struct MemoryClearOutput { pub cleared_at: String, pub rows_affected: std::collections::HashMap, pub total: Integer, - #[serde(default = "default_1492")] + #[serde(default = "default_1528")] pub locked_skipped: Integer, } @@ -33467,21 +33687,21 @@ pub struct MemoryConsolidateResult { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryConsolidateOutput { - #[serde(default = "default_1493")] + #[serde(default = "default_1529")] pub consolidated: Vec, - #[serde(default = "default_1494")] + #[serde(default = "default_1530")] pub examined: Integer, - #[serde(default = "default_1495")] + #[serde(default = "default_1531")] pub clusters_found: Integer, - #[serde(default = "default_1496")] + #[serde(default = "default_1532")] pub clusters_failed: Integer, - #[serde(default = "default_1497")] + #[serde(default = "default_1533")] pub clusters_refused_lossy: Integer, - #[serde(default = "default_1498")] + #[serde(default = "default_1534")] pub skipped_in_flight: Integer, - #[serde(default = "default_1499")] + #[serde(default = "default_1535")] pub tokens_in: Integer, - #[serde(default = "default_1500")] + #[serde(default = "default_1536")] pub tokens_out: Integer, } @@ -33622,7 +33842,7 @@ impl MemoryConsolidateInput { #[non_exhaustive] pub struct MemoryCopyToOutput { pub copied: bool, - #[serde(default = "default_1501")] + #[serde(default = "default_1537")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, @@ -33733,11 +33953,11 @@ impl MemoryCopyToInput { #[non_exhaustive] pub struct MemoryCrossPromoteOutput { pub promoted: bool, - #[serde(default = "default_1502")] + #[serde(default = "default_1538")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, - #[serde(default = "default_1503")] + #[serde(default = "default_1539")] pub cross_promoted_from_memory_id: String, } @@ -33820,23 +34040,23 @@ pub struct DedupCollapsePair { #[non_exhaustive] pub struct MemoryDedupCollapseOutput { pub namespace: String, - #[serde(default = "default_1504")] + #[serde(default = "default_1540")] pub prefix: String, - #[serde(default = "default_1505")] + #[serde(default = "default_1541")] pub dry_run: bool, - #[serde(default = "default_1506")] + #[serde(default = "default_1542")] pub pairs: Integer, - #[serde(default = "default_1507")] + #[serde(default = "default_1543")] pub canonical_live: Integer, - #[serde(default = "default_1508")] + #[serde(default = "default_1544")] pub orphans: Integer, - #[serde(default = "default_1509")] + #[serde(default = "default_1545")] pub mirror_stale: Integer, - #[serde(default = "default_1510")] + #[serde(default = "default_1546")] pub restamped: Integer, - #[serde(default = "default_1511")] + #[serde(default = "default_1547")] pub truncated: bool, - #[serde(default = "default_1512")] + #[serde(default = "default_1548")] pub sample: Vec, } @@ -33935,7 +34155,7 @@ pub struct DedupDuplicate { pub memory_id: String, pub memory_key: String, pub agent: String, - #[serde(default = "default_1515")] + #[serde(default = "default_1551")] pub created_at: Option, } @@ -33943,12 +34163,12 @@ pub struct DedupDuplicate { #[non_exhaustive] pub struct DedupCluster { pub canonical_id: String, - #[serde(default = "default_1513")] + #[serde(default = "default_1549")] pub canonical_key: String, - #[serde(default = "default_1514")] + #[serde(default = "default_1550")] pub canonical_agent: String, pub dup_count: Integer, - #[serde(default = "default_1516")] + #[serde(default = "default_1552")] pub duplicates: Vec, } @@ -34020,11 +34240,11 @@ pub struct MemoryDedupResolveOutput { pub canonical_key: String, pub duplicate_key: String, pub decision: String, - #[serde(default = "default_1517")] + #[serde(default = "default_1553")] pub canonical_tombstoned: bool, - #[serde(default = "default_1518")] + #[serde(default = "default_1554")] pub duplicate_tombstoned: bool, - #[serde(default = "default_1519")] + #[serde(default = "default_1555")] pub ignored_args: Vec, } @@ -34162,17 +34382,17 @@ pub struct LostName { pub struct DefinitionEntry { pub memory_key: String, pub promoted_at: String, - #[serde(default = "default_1520")] + #[serde(default = "default_1556")] pub capped: bool, - #[serde(default = "default_1521")] + #[serde(default = "default_1557")] pub term: Option, - #[serde(default = "default_1522")] + #[serde(default = "default_1558")] pub aliases: Vec, - #[serde(default = "default_1523")] + #[serde(default = "default_1559")] pub verdict: Option, - #[serde(default = "default_1524")] + #[serde(default = "default_1560")] pub lapse_reason: Option, - #[serde(default = "default_1525")] + #[serde(default = "default_1561")] pub lost: Vec, } @@ -34233,15 +34453,15 @@ impl MemoryDefinitionsListInput { #[non_exhaustive] pub struct MemoryDeleteVersionOutput { pub tombstoned: bool, - #[serde(default = "default_1526")] + #[serde(default = "default_1562")] pub version: Integer, - #[serde(default = "default_1527")] + #[serde(default = "default_1563")] pub found: bool, - #[serde(default = "default_1528")] + #[serde(default = "default_1564")] pub reason: String, - #[serde(default = "default_1529")] + #[serde(default = "default_1565")] pub dependents_tombstoned: Integer, - #[serde(default = "default_1530")] + #[serde(default = "default_1566")] pub dependents_downgraded: Integer, } @@ -34368,21 +34588,21 @@ pub struct DemonstrationRow { pub struct MemoryDemonstrateOutput { pub query: String, pub demonstrations: Vec, - #[serde(default = "default_1531")] + #[serde(default = "default_1567")] pub votes: std::collections::HashMap, - #[serde(default = "default_1532")] + #[serde(default = "default_1568")] pub predicted_label: String, - #[serde(default = "default_1533")] + #[serde(default = "default_1569")] pub margin: f64, - #[serde(default = "default_1534")] + #[serde(default = "default_1570")] pub abstain: bool, - #[serde(default = "default_1535")] + #[serde(default = "default_1571")] pub abstain_reason: String, - #[serde(default = "default_1536")] + #[serde(default = "default_1572")] pub few_shot_block: String, - #[serde(default = "default_1537")] + #[serde(default = "default_1573")] pub examined: Integer, - #[serde(default = "default_1538")] + #[serde(default = "default_1574")] pub labelled: Integer, } @@ -34522,7 +34742,7 @@ impl MemoryDemonstrateInput { pub struct MemoryDemoteOutput { pub demoted: bool, pub was_reversible: bool, - #[serde(default = "default_1539")] + #[serde(default = "default_1575")] pub tombstoned_at: Option, } @@ -34584,15 +34804,15 @@ impl MemoryDemoteInput { pub struct DigestRow { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1540")] + #[serde(default = "default_1576")] pub key_facts: Vec, - #[serde(default = "default_1541")] + #[serde(default = "default_1577")] pub derived_from: Vec, - #[serde(default = "default_1542")] + #[serde(default = "default_1578")] pub valid_at: Option, - #[serde(default = "default_1543")] + #[serde(default = "default_1579")] pub created_at: Option, - #[serde(default = "default_1544")] + #[serde(default = "default_1580")] pub version: Integer, } @@ -34600,7 +34820,7 @@ pub struct DigestRow { #[non_exhaustive] pub struct MemoryDigestsOutput { pub rows: Vec, - #[serde(default = "default_1545")] + #[serde(default = "default_1581")] pub truncated: bool, } @@ -34725,17 +34945,17 @@ pub struct MemoryEvidenceItem { pub evidence_id: String, pub support_type: String, pub scope: MemoryEvidenceItemScope, - #[serde(default = "default_1549")] + #[serde(default = "default_1585")] pub role: String, - #[serde(default = "default_1550")] + #[serde(default = "default_1586")] pub observed_at: Option, - #[serde(default = "default_1551")] + #[serde(default = "default_1587")] pub content: String, - #[serde(default = "default_1552")] + #[serde(default = "default_1588")] pub char_start: Integer, - #[serde(default = "default_1553")] + #[serde(default = "default_1589")] pub char_end: Integer, - #[serde(default = "default_1554")] + #[serde(default = "default_1590")] pub span: String, } @@ -34743,23 +34963,23 @@ pub struct MemoryEvidenceItem { #[non_exhaustive] pub struct MemoryEvidenceOutput { pub found: bool, - #[serde(default = "default_1546")] + #[serde(default = "default_1582")] pub memory_key: String, - #[serde(default = "default_1547")] + #[serde(default = "default_1583")] pub memory_id: String, - #[serde(default = "default_1548")] + #[serde(default = "default_1584")] pub value: String, - #[serde(default = "default_1555")] + #[serde(default = "default_1591")] pub items: Vec, - #[serde(default = "default_1556")] + #[serde(default = "default_1592")] pub truncated: bool, - #[serde(default = "default_1557")] + #[serde(default = "default_1593")] pub cited: Integer, - #[serde(default = "default_1558")] + #[serde(default = "default_1594")] pub lexical: Integer, - #[serde(default = "default_1559")] + #[serde(default = "default_1595")] pub window: Integer, - #[serde(default = "default_1560")] + #[serde(default = "default_1596")] pub derived: Integer, } @@ -34864,26 +35084,26 @@ impl MemoryEvidenceInput { #[non_exhaustive] pub struct EvidenceChunk { pub session_id: String, - #[serde(default = "default_1561")] + #[serde(default = "default_1597")] pub chunk_index: Integer, pub content: String, - #[serde(default = "default_1562")] + #[serde(default = "default_1598")] pub content_sha256: String, - #[serde(default = "default_1563")] + #[serde(default = "default_1599")] pub agent: String, - #[serde(default = "default_1564")] + #[serde(default = "default_1600")] pub user_id: String, - #[serde(default = "default_1565")] + #[serde(default = "default_1601")] pub parent_memory_key: String, - #[serde(default = "default_1566")] + #[serde(default = "default_1602")] pub memory_keys: Vec, - #[serde(default = "default_1567")] + #[serde(default = "default_1603")] pub line_start: Integer, - #[serde(default = "default_1568")] + #[serde(default = "default_1604")] pub line_end: Integer, - #[serde(default = "default_1569")] + #[serde(default = "default_1605")] pub created_at: String, - #[serde(default = "default_1570")] + #[serde(default = "default_1606")] pub source_url: String, } @@ -34892,17 +35112,17 @@ pub struct EvidenceChunk { pub struct EvidenceDigest { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1572")] + #[serde(default = "default_1608")] pub agent: String, - #[serde(default = "default_1573")] + #[serde(default = "default_1609")] pub user_id: String, - #[serde(default = "default_1574")] + #[serde(default = "default_1610")] pub key_facts: Vec, - #[serde(default = "default_1575")] + #[serde(default = "default_1611")] pub derived_from: Vec, - #[serde(default = "default_1576")] + #[serde(default = "default_1612")] pub valid_at: String, - #[serde(default = "default_1577")] + #[serde(default = "default_1613")] pub created_at: String, } @@ -34912,28 +35132,28 @@ pub struct EvidenceEdge { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1579")] + #[serde(default = "default_1615")] pub confidence: f64, - #[serde(default = "default_1580")] + #[serde(default = "default_1616")] pub explanation: String, - #[serde(default = "default_1581")] + #[serde(default = "default_1617")] pub created_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExportEvidenceOutput { - #[serde(default = "default_1571")] + #[serde(default = "default_1607")] pub chunks: Vec, - #[serde(default = "default_1578")] + #[serde(default = "default_1614")] pub digests: Vec, - #[serde(default = "default_1582")] + #[serde(default = "default_1618")] pub edges: Vec, - #[serde(default = "default_1583")] + #[serde(default = "default_1619")] pub has_more: bool, - #[serde(default = "default_1584")] + #[serde(default = "default_1620")] pub next_cursor: String, - #[serde(default = "default_1585")] + #[serde(default = "default_1621")] pub held_high: Integer, } @@ -35126,15 +35346,15 @@ impl ExposureSummaryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionRetryMineOutput { - #[serde(default = "default_1586")] + #[serde(default = "default_1622")] pub requeued: Vec, - #[serde(default = "default_1587")] + #[serde(default = "default_1623")] pub not_failed: Vec, - #[serde(default = "default_1588")] + #[serde(default = "default_1624")] pub model_calls_off: Vec, - #[serde(default = "default_1589")] + #[serde(default = "default_1625")] pub expired: Vec, - #[serde(default = "default_1590")] + #[serde(default = "default_1626")] pub unknown: Vec, } @@ -35195,20 +35415,20 @@ pub struct ExtractionQueueRow { pub content_chars: Integer, pub written: Integer, pub last_error: String, - #[serde(default = "default_1591")] + #[serde(default = "default_1627")] pub enqueued_at: Option, - #[serde(default = "default_1592")] + #[serde(default = "default_1628")] pub updated_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusOutput { - #[serde(default = "default_1593")] + #[serde(default = "default_1629")] pub batches: Vec, - #[serde(default = "default_1594")] + #[serde(default = "default_1630")] pub pending: Integer, - #[serde(default = "default_1595")] + #[serde(default = "default_1631")] pub failed: Integer, } @@ -35356,13 +35576,13 @@ impl MemoryExtractionStatusInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusMineOutput { - #[serde(default = "default_1596")] + #[serde(default = "default_1632")] pub batches: Vec, - #[serde(default = "default_1597")] + #[serde(default = "default_1633")] pub unknown: Vec, - #[serde(default = "default_1598")] + #[serde(default = "default_1634")] pub pending: Integer, - #[serde(default = "default_1599")] + #[serde(default = "default_1635")] pub failed: Integer, } @@ -35483,39 +35703,39 @@ pub struct MemoryForFileHit { pub memory_key: String, pub memory_type: String, pub value: String, - #[serde(default = "default_1600")] + #[serde(default = "default_1636")] pub value_truncated: bool, - #[serde(default = "default_1601")] + #[serde(default = "default_1637")] pub tags: Vec, - #[serde(default = "default_1602")] + #[serde(default = "default_1638")] pub confidence: f64, - #[serde(default = "default_1603")] + #[serde(default = "default_1639")] pub pinned: bool, - #[serde(default = "default_1604")] + #[serde(default = "default_1640")] pub status: String, - #[serde(default = "default_1605")] + #[serde(default = "default_1641")] pub agent: String, - #[serde(default = "default_1606")] + #[serde(default = "default_1642")] pub updated_at: Option, - #[serde(default = "default_1607")] + #[serde(default = "default_1643")] pub namespace: String, - #[serde(default = "default_1608")] + #[serde(default = "default_1644")] pub actor: String, - #[serde(default = "default_1609")] + #[serde(default = "default_1645")] pub supersedes_key: String, - #[serde(default = "default_1610")] + #[serde(default = "default_1646")] pub supersedes: String, - #[serde(default = "default_1611")] + #[serde(default = "default_1647")] pub supersedes_kind: MemoryForFileHitSupersedesKind, - #[serde(default = "default_1612")] + #[serde(default = "default_1648")] pub matched_files: Vec, - #[serde(default = "default_1613")] + #[serde(default = "default_1649")] pub source_resource_id: String, - #[serde(default = "default_1614")] + #[serde(default = "default_1650")] pub verification: MemoryForFileHitVerification, - #[serde(default = "default_1615")] + #[serde(default = "default_1651")] pub code_state: MemoryForFileHitCodeState, - #[serde(default = "default_1616")] + #[serde(default = "default_1652")] pub code_moved: Vec, } @@ -35525,7 +35745,7 @@ pub struct MemoryForFilePrintedRow { pub namespace: String, pub memory_key: String, pub line: String, - #[serde(default = "default_1620")] + #[serde(default = "default_1656")] pub binding: bool, } @@ -35535,13 +35755,13 @@ pub struct MemoryForFileOutput { pub path: String, pub total: Integer, pub hits: Vec, - #[serde(default = "default_1617")] + #[serde(default = "default_1653")] pub rendered: String, - #[serde(default = "default_1618")] + #[serde(default = "default_1654")] pub tokens_estimate: Integer, - #[serde(default = "default_1619")] + #[serde(default = "default_1655")] pub truncated: bool, - #[serde(default = "default_1621")] + #[serde(default = "default_1657")] pub printed: Vec, } @@ -35649,61 +35869,61 @@ impl MemoryForFileInput { #[non_exhaustive] pub struct MemoryGetByIdOutput { pub found: bool, - #[serde(default = "default_1622")] + #[serde(default = "default_1658")] pub memory_id: String, - #[serde(default = "default_1623")] + #[serde(default = "default_1659")] pub namespace: String, - #[serde(default = "default_1624")] + #[serde(default = "default_1660")] pub agent: String, - #[serde(default = "default_1625")] + #[serde(default = "default_1661")] pub user_id: String, - #[serde(default = "default_1626")] + #[serde(default = "default_1662")] pub session_id: String, - #[serde(default = "default_1627")] + #[serde(default = "default_1663")] pub memory_key: String, - #[serde(default = "default_1628")] + #[serde(default = "default_1664")] pub memory_type: Option, - #[serde(default = "default_1629")] + #[serde(default = "default_1665")] pub value: Value, - #[serde(default = "default_1630")] + #[serde(default = "default_1666")] pub confidence: Option, - #[serde(default = "default_1631")] + #[serde(default = "default_1667")] pub version: Option, - #[serde(default = "default_1632")] + #[serde(default = "default_1668")] pub created_at: Option, - #[serde(default = "default_1633")] + #[serde(default = "default_1669")] pub expires_at: Option, - #[serde(default = "default_1634")] + #[serde(default = "default_1670")] pub valid_at: Option, - #[serde(default = "default_1635")] + #[serde(default = "default_1671")] pub valid_to: Option, - #[serde(default = "default_1636")] + #[serde(default = "default_1672")] pub pinned: bool, - #[serde(default = "default_1637")] + #[serde(default = "default_1673")] pub content_sha256: String, - #[serde(default = "default_1638")] + #[serde(default = "default_1674")] pub verified_by: String, - #[serde(default = "default_1639")] + #[serde(default = "default_1675")] pub verified_at: Option, - #[serde(default = "default_1640")] + #[serde(default = "default_1676")] pub verification: String, - #[serde(default = "default_1641")] + #[serde(default = "default_1677")] pub sensitivity: String, - #[serde(default = "default_1642")] + #[serde(default = "default_1678")] pub actor: String, - #[serde(default = "default_1643")] + #[serde(default = "default_1679")] pub source_class: String, - #[serde(default = "default_1644")] + #[serde(default = "default_1680")] pub lock_mode: String, - #[serde(default = "default_1645")] + #[serde(default = "default_1681")] pub lock_reason: String, - #[serde(default = "default_1646")] + #[serde(default = "default_1682")] pub lock_until: Option, - #[serde(default = "default_1647")] + #[serde(default = "default_1683")] pub locked_by: String, - #[serde(default = "default_1648")] + #[serde(default = "default_1684")] pub on_expire: String, - #[serde(default = "default_1649")] + #[serde(default = "default_1685")] pub expire_reason: String, } @@ -35779,41 +35999,41 @@ pub struct MemoryHealthTopRow { pub memory_type: String, pub recall_count: Integer, pub used_count: Integer, - #[serde(default = "default_1652")] + #[serde(default = "default_1688")] pub harm_count: Integer, - #[serde(default = "default_1653")] + #[serde(default = "default_1689")] pub last_recalled_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthStaleness { - #[serde(default = "default_1655")] + #[serde(default = "default_1691")] pub by_age: std::collections::HashMap, - #[serde(default = "default_1656")] + #[serde(default = "default_1692")] pub with_validity_end: Integer, - #[serde(default = "default_1657")] + #[serde(default = "default_1693")] pub with_validity_end_share: f64, - #[serde(default = "default_1658")] + #[serde(default = "default_1694")] pub with_expiry: Integer, - #[serde(default = "default_1659")] + #[serde(default = "default_1695")] pub expiring_7d: Integer, - #[serde(default = "default_1660")] + #[serde(default = "default_1696")] pub pinned: Integer, - #[serde(default = "default_1661")] + #[serde(default = "default_1697")] pub days_since_reinforced_p50: Integer, - #[serde(default = "default_1662")] + #[serde(default = "default_1698")] pub days_since_reinforced_p90: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthFootprint { - #[serde(default = "default_1664")] + #[serde(default = "default_1700")] pub value_chars: Integer, - #[serde(default = "default_1665")] + #[serde(default = "default_1701")] pub value_tokens_est: Integer, - #[serde(default = "default_1666")] + #[serde(default = "default_1702")] pub tokens_per_row_est: f64, } @@ -35823,19 +36043,19 @@ pub struct MemoryHealthOutput { pub live: Integer, pub recalled_ever: Integer, pub used_ever: Integer, - #[serde(default = "default_1650")] + #[serde(default = "default_1686")] pub harmed_ever: Integer, pub silent: Integer, pub silent_older: Integer, pub silent_share: f64, pub silent_after_days: Integer, - #[serde(default = "default_1651")] + #[serde(default = "default_1687")] pub by_type: Vec, - #[serde(default = "default_1654")] + #[serde(default = "default_1690")] pub top_recalled: Vec, - #[serde(default = "default_1663")] + #[serde(default = "default_1699")] pub staleness: MemoryHealthStaleness, - #[serde(default = "default_1667")] + #[serde(default = "default_1703")] pub footprint: MemoryHealthFootprint, } @@ -35955,51 +36175,51 @@ impl MemoryHealthInput { pub struct MemoryHistoryRow { pub memory_id: String, pub version: Integer, - #[serde(default = "default_1668")] + #[serde(default = "default_1704")] pub version_text: String, - #[serde(default = "default_1669")] + #[serde(default = "default_1705")] pub value: Value, pub confidence: f64, - #[serde(default = "default_1670")] + #[serde(default = "default_1706")] pub source_trace: String, - #[serde(default = "default_1671")] + #[serde(default = "default_1707")] pub pinned: bool, pub created_at: String, - #[serde(default = "default_1672")] + #[serde(default = "default_1708")] pub expires_at: Option, - #[serde(default = "default_1673")] + #[serde(default = "default_1709")] pub tombstoned_at: Option, - #[serde(default = "default_1674")] + #[serde(default = "default_1710")] pub redacted_at: Option, - #[serde(default = "default_1675")] + #[serde(default = "default_1711")] pub redaction_reason: String, - #[serde(default = "default_1676")] + #[serde(default = "default_1712")] pub content_sha256: String, - #[serde(default = "default_1677")] + #[serde(default = "default_1713")] pub actor: String, - #[serde(default = "default_1678")] + #[serde(default = "default_1714")] pub source_class: String, - #[serde(default = "default_1679")] + #[serde(default = "default_1715")] pub agent: String, - #[serde(default = "default_1680")] + #[serde(default = "default_1716")] pub written_at: Option, - #[serde(default = "default_1681")] + #[serde(default = "default_1717")] pub status: String, - #[serde(default = "default_1682")] + #[serde(default = "default_1718")] pub conflict_with: Vec, - #[serde(default = "default_1683")] + #[serde(default = "default_1719")] pub tags: Vec, - #[serde(default = "default_1684")] + #[serde(default = "default_1720")] pub verified_at: Option, - #[serde(default = "default_1685")] + #[serde(default = "default_1721")] pub verified_by: String, - #[serde(default = "default_1686")] + #[serde(default = "default_1722")] pub verified_sha256: String, - #[serde(default = "default_1687")] + #[serde(default = "default_1723")] pub lock_mode: String, - #[serde(default = "default_1688")] + #[serde(default = "default_1724")] pub lock_reason: String, - #[serde(default = "default_1689")] + #[serde(default = "default_1725")] pub lock_until: Option, } @@ -36109,13 +36329,13 @@ impl MemoryHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportTotals { - #[serde(default = "default_1690")] + #[serde(default = "default_1726")] pub written: Integer, - #[serde(default = "default_1691")] + #[serde(default = "default_1727")] pub held: Integer, - #[serde(default = "default_1692")] + #[serde(default = "default_1728")] pub skipped: Integer, - #[serde(default = "default_1693")] + #[serde(default = "default_1729")] pub refused: Integer, } @@ -36198,11 +36418,11 @@ pub struct MemoryImportResult { pub index: Integer, pub key: String, pub outcome: MemoryImportResultOutcome, - #[serde(default = "default_1694")] + #[serde(default = "default_1730")] pub reason: MemoryImportResultReason, - #[serde(default = "default_1695")] + #[serde(default = "default_1731")] pub held_by: String, - #[serde(default = "default_1696")] + #[serde(default = "default_1732")] pub note: MemoryImportResultNote, } @@ -36211,7 +36431,7 @@ pub struct MemoryImportResult { pub struct MemoryImportOutput { pub totals: MemoryImportTotals, pub results: Vec, - #[serde(default = "default_1697")] + #[serde(default = "default_1733")] pub dry_run: bool, } @@ -36404,9 +36624,9 @@ pub struct MemoryImportCuratedRow { pub section_heading: String, pub bytes_written: Integer, pub verdict: String, - #[serde(default = "default_1698")] + #[serde(default = "default_1734")] pub rejection_reason: String, - #[serde(default = "default_1699")] + #[serde(default = "default_1735")] pub pinned_blocker_id: Option, } @@ -36498,21 +36718,21 @@ impl MemoryImportCuratedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportEvidenceOutput { - #[serde(default = "default_1700")] + #[serde(default = "default_1736")] pub chunks_written: Integer, - #[serde(default = "default_1701")] + #[serde(default = "default_1737")] pub links_written: Integer, - #[serde(default = "default_1702")] + #[serde(default = "default_1738")] pub digests_written: Integer, - #[serde(default = "default_1703")] + #[serde(default = "default_1739")] pub embedding_model: String, - #[serde(default = "default_1704")] + #[serde(default = "default_1740")] pub embedding_dim: Integer, - #[serde(default = "default_1705")] + #[serde(default = "default_1741")] pub edited: Vec, - #[serde(default = "default_1706")] + #[serde(default = "default_1742")] pub skipped: Integer, - #[serde(default = "default_1707")] + #[serde(default = "default_1743")] pub unchecked: Integer, } @@ -36849,7 +37069,7 @@ pub struct InspectRow { pub memory_key: String, pub memory_id: String, pub version: Integer, - #[serde(default = "default_1717")] + #[serde(default = "default_1753")] pub content_sha256: String, pub memory_type: String, pub status: String, @@ -36860,9 +37080,9 @@ pub struct InspectRow { pub actor: String, pub updated_at: String, pub sensitivity: String, - #[serde(default = "default_1718")] + #[serde(default = "default_1754")] pub versions: Integer, - #[serde(default = "default_1719")] + #[serde(default = "default_1755")] pub excerpt: String, } @@ -36870,27 +37090,27 @@ pub struct InspectRow { #[non_exhaustive] pub struct InspectView { pub definition: String, - #[serde(default = "default_1708")] + #[serde(default = "default_1744")] pub refs: Vec, - #[serde(default = "default_1709")] + #[serde(default = "default_1745")] pub live_rows: Integer, - #[serde(default = "default_1710")] + #[serde(default = "default_1746")] pub by_type: Vec, - #[serde(default = "default_1711")] + #[serde(default = "default_1747")] pub by_status: Vec, - #[serde(default = "default_1712")] + #[serde(default = "default_1748")] pub by_source_class: Vec, - #[serde(default = "default_1713")] + #[serde(default = "default_1749")] pub top_tags: Vec, - #[serde(default = "default_1714")] + #[serde(default = "default_1750")] pub categories: Vec, - #[serde(default = "default_1715")] + #[serde(default = "default_1751")] pub first_updated_at: Option, - #[serde(default = "default_1716")] + #[serde(default = "default_1752")] pub last_updated_at: Option, - #[serde(default = "default_1720")] + #[serde(default = "default_1756")] pub newest: Vec, - #[serde(default = "default_1721")] + #[serde(default = "default_1757")] pub complete: bool, } @@ -36906,32 +37126,32 @@ pub struct InspectCall { #[non_exhaustive] pub struct InspectActivity { pub window_seconds: Integer, - #[serde(default = "default_1722")] + #[serde(default = "default_1758")] pub calls: Vec, - #[serde(default = "default_1723")] + #[serde(default = "default_1759")] pub first_at: Option, - #[serde(default = "default_1724")] + #[serde(default = "default_1760")] pub last_at: Option, - #[serde(default = "default_1725")] + #[serde(default = "default_1761")] pub gap: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InspectSettings { - #[serde(default = "default_1726")] + #[serde(default = "default_1762")] pub guide_revision: Integer, - #[serde(default = "default_1727")] + #[serde(default = "default_1763")] pub guide_summary: String, - #[serde(default = "default_1728")] + #[serde(default = "default_1764")] pub categories_registered: Integer, - #[serde(default = "default_1729")] + #[serde(default = "default_1765")] pub extraction_policy: Option, - #[serde(default = "default_1730")] + #[serde(default = "default_1766")] pub extraction_policy_unavailable: String, - #[serde(default = "default_1731")] + #[serde(default = "default_1767")] pub extraction_instructions: String, - #[serde(default = "default_1732")] + #[serde(default = "default_1768")] pub extraction_instructions_refs: Vec, } @@ -36947,7 +37167,7 @@ pub struct MemoryInspectOutput { pub others: InspectView, pub activity: InspectActivity, pub settings: InspectSettings, - #[serde(default = "default_1733")] + #[serde(default = "default_1769")] pub skipped: Vec, } @@ -37041,7 +37261,7 @@ pub struct MemoryKeyRef { #[non_exhaustive] pub struct MemoryKeysOutput { pub keys: Vec, - #[serde(default = "default_1734")] + #[serde(default = "default_1770")] pub truncated: bool, } @@ -37144,9 +37364,9 @@ pub struct LineageCandidate { pub decided_at: String, pub decided_by: String, pub match_confidence: LineageCandidateMatchConfidence, - #[serde(default = "default_1743")] + #[serde(default = "default_1779")] pub seeded_from_thread_id: String, - #[serde(default = "default_1744")] + #[serde(default = "default_1780")] pub seeded_from_msg_id: String, } @@ -37164,25 +37384,25 @@ pub struct LineageAuditEvent { pub struct MemoryLineageOutput { pub found: bool, pub memory_key: String, - #[serde(default = "default_1735")] + #[serde(default = "default_1771")] pub promotion_event: String, - #[serde(default = "default_1736")] + #[serde(default = "default_1772")] pub promoted_by: String, - #[serde(default = "default_1737")] + #[serde(default = "default_1773")] pub promoted_at: Option, - #[serde(default = "default_1738")] + #[serde(default = "default_1774")] pub rationale: String, - #[serde(default = "default_1739")] + #[serde(default = "default_1775")] pub source_trace: String, - #[serde(default = "default_1740")] + #[serde(default = "default_1776")] pub source_resource_id: String, - #[serde(default = "default_1741")] + #[serde(default = "default_1777")] pub mechanism: MemoryLineageOutputMechanism, - #[serde(default = "default_1742")] + #[serde(default = "default_1778")] pub supporters: Vec, - #[serde(default = "default_1745")] + #[serde(default = "default_1781")] pub candidate: Option, - #[serde(default = "default_1746")] + #[serde(default = "default_1782")] pub audit_chain: Vec, } @@ -37311,11 +37531,11 @@ pub struct MemoryLinkOutput { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1747")] + #[serde(default = "default_1783")] pub confidence: f64, - #[serde(default = "default_1748")] + #[serde(default = "default_1784")] pub conflict_opened: bool, - #[serde(default = "default_1749")] + #[serde(default = "default_1785")] pub relation_defaulted: bool, } @@ -37629,17 +37849,17 @@ pub struct MemoryListEntry { pub struct MemoryListOutput { pub entries: Vec, pub truncated: bool, - #[serde(default = "default_1750")] + #[serde(default = "default_1786")] pub total: Integer, - #[serde(default = "default_1751")] + #[serde(default = "default_1787")] pub today: Integer, - #[serde(default = "default_1752")] + #[serde(default = "default_1788")] pub namespace_version: String, - #[serde(default = "default_1753")] + #[serde(default = "default_1789")] pub unchanged: bool, - #[serde(default = "default_1754")] + #[serde(default = "default_1790")] pub hidden: Integer, - #[serde(default = "default_1755")] + #[serde(default = "default_1791")] pub hidden_hint: String, } @@ -38025,19 +38245,19 @@ impl MemoryListInput { #[non_exhaustive] pub struct MemoryLockOutput { pub locked: bool, - #[serde(default = "default_1756")] + #[serde(default = "default_1792")] pub reason: String, - #[serde(default = "default_1757")] + #[serde(default = "default_1793")] pub memory_id: String, - #[serde(default = "default_1758")] + #[serde(default = "default_1794")] pub version: Option, - #[serde(default = "default_1759")] + #[serde(default = "default_1795")] pub lock_mode: String, - #[serde(default = "default_1760")] + #[serde(default = "default_1796")] pub lock_until: Option, - #[serde(default = "default_1761")] + #[serde(default = "default_1797")] pub locked_by: String, - #[serde(default = "default_1762")] + #[serde(default = "default_1798")] pub previous_mode: String, } @@ -38196,21 +38416,21 @@ pub struct MemoryMoveOutput { pub from_key: String, pub to_key: String, pub redirected: bool, - #[serde(default = "default_1763")] + #[serde(default = "default_1799")] pub memory_id: String, - #[serde(default = "default_1764")] + #[serde(default = "default_1800")] pub version: Integer, - #[serde(default = "default_1765")] + #[serde(default = "default_1801")] pub content_sha256: String, - #[serde(default = "default_1766")] + #[serde(default = "default_1802")] pub advisories: Vec, - #[serde(default = "default_1767")] + #[serde(default = "default_1803")] pub dry_run: bool, - #[serde(default = "default_1768")] + #[serde(default = "default_1804")] pub memory_type: String, - #[serde(default = "default_1769")] + #[serde(default = "default_1805")] pub value_preview: String, - #[serde(default = "default_1770")] + #[serde(default = "default_1806")] pub sensitivity: String, } @@ -38422,7 +38642,7 @@ impl MemoryMoveInput { pub struct MemoryOutcomeOutput { pub recorded: bool, pub evidence_count_after: Integer, - #[serde(default = "default_1771")] + #[serde(default = "default_1807")] pub quarantined: bool, } @@ -38665,13 +38885,13 @@ impl MemoryOutcomeRunInput { #[non_exhaustive] pub struct OutlineSession { pub session_id: String, - #[serde(default = "default_1773")] + #[serde(default = "default_1809")] pub date: String, - #[serde(default = "default_1774")] + #[serde(default = "default_1810")] pub headline: String, - #[serde(default = "default_1775")] + #[serde(default = "default_1811")] pub key_facts: Integer, - #[serde(default = "default_1776")] + #[serde(default = "default_1812")] pub rows: Integer, } @@ -38679,7 +38899,7 @@ pub struct OutlineSession { #[non_exhaustive] pub struct OutlineHub { pub entity: String, - #[serde(default = "default_1779")] + #[serde(default = "default_1815")] pub degree: Integer, } @@ -38687,28 +38907,28 @@ pub struct OutlineHub { #[non_exhaustive] pub struct OutlineCommunity { pub community_id: Integer, - #[serde(default = "default_1781")] + #[serde(default = "default_1817")] pub label: String, - #[serde(default = "default_1782")] + #[serde(default = "default_1818")] pub size: Integer, - #[serde(default = "default_1783")] + #[serde(default = "default_1819")] pub computed_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryOutlineOutput { - #[serde(default = "default_1772")] + #[serde(default = "default_1808")] pub rows_by_type: std::collections::HashMap, - #[serde(default = "default_1777")] + #[serde(default = "default_1813")] pub sessions: Vec, - #[serde(default = "default_1778")] + #[serde(default = "default_1814")] pub sessions_total: Integer, - #[serde(default = "default_1780")] + #[serde(default = "default_1816")] pub hubs: Vec, - #[serde(default = "default_1784")] + #[serde(default = "default_1820")] pub communities: Vec, - #[serde(default = "default_1785")] + #[serde(default = "default_1821")] pub profile_chars: Integer, } @@ -38860,7 +39080,7 @@ pub struct OwnerUsageRow { pub recalls: Integer, pub used: Integer, pub harm: Integer, - #[serde(default = "default_1786")] + #[serde(default = "default_1822")] pub last_recalled: Option, } @@ -39347,7 +39567,7 @@ pub struct MemoryPromoteOutput { pub shared_memory_key: String, pub promotion_event: String, pub reversible_until: String, - #[serde(default = "default_1787")] + #[serde(default = "default_1823")] pub ignored_args: Vec, } @@ -39516,18 +39736,18 @@ impl MemoryPromoteInput { pub struct MemoryProposalDecision { pub memory_key: String, pub decided: bool, - #[serde(default = "default_1789")] + #[serde(default = "default_1825")] pub status: String, - #[serde(default = "default_1790")] + #[serde(default = "default_1826")] pub reason: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalDecideOutput { - #[serde(default = "default_1788")] + #[serde(default = "default_1824")] pub decided: Integer, - #[serde(default = "default_1791")] + #[serde(default = "default_1827")] pub results: Vec, } @@ -39628,35 +39848,35 @@ pub enum MemoryProposalReady { pub struct MemoryProposal { pub memory_key: String, pub memory_id: String, - #[serde(default = "default_1792")] + #[serde(default = "default_1828")] pub content_sha256: String, - #[serde(default = "default_1793")] + #[serde(default = "default_1829")] pub agent: String, - #[serde(default = "default_1794")] + #[serde(default = "default_1830")] pub actor: String, - #[serde(default = "default_1795")] + #[serde(default = "default_1831")] pub memory_type: String, - #[serde(default = "default_1796")] + #[serde(default = "default_1832")] pub value_preview: String, - #[serde(default = "default_1797")] + #[serde(default = "default_1833")] pub sensitivity: String, - #[serde(default = "default_1798")] + #[serde(default = "default_1834")] pub tags: Vec, - #[serde(default = "default_1799")] + #[serde(default = "default_1835")] pub created_at: String, - #[serde(default = "default_1800")] + #[serde(default = "default_1836")] pub graded_passes: Integer, - #[serde(default = "default_1801")] + #[serde(default = "default_1837")] pub graded_fails: Integer, - #[serde(default = "default_1802")] + #[serde(default = "default_1838")] pub last_graded_at: String, - #[serde(default = "default_1803")] + #[serde(default = "default_1839")] pub used_count: Integer, - #[serde(default = "default_1804")] + #[serde(default = "default_1840")] pub harm_count: Integer, - #[serde(default = "default_1805")] + #[serde(default = "default_1841")] pub ready: MemoryProposalReady, - #[serde(default = "default_1806")] + #[serde(default = "default_1842")] pub conflict_with: Vec, } @@ -39672,24 +39892,24 @@ pub enum ProposalPolicyMode { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProposalPolicy { - #[serde(default = "default_1809")] + #[serde(default = "default_1845")] pub mode: ProposalPolicyMode, - #[serde(default = "default_1810")] + #[serde(default = "default_1846")] pub min_passes: Integer, - #[serde(default = "default_1811")] + #[serde(default = "default_1847")] pub max_fails: Integer, - #[serde(default = "default_1812")] + #[serde(default = "default_1848")] pub reject_after_fails: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalsOutput { - #[serde(default = "default_1807")] + #[serde(default = "default_1843")] pub proposals: Vec, - #[serde(default = "default_1808")] + #[serde(default = "default_1844")] pub total: Integer, - #[serde(default = "default_1813")] + #[serde(default = "default_1849")] pub policy: ProposalPolicy, } @@ -39818,19 +40038,19 @@ impl MemoryProposalsInput { pub struct MemoryProvenanceLink { pub direction: String, pub memory_key: String, - #[serde(default = "default_1827")] + #[serde(default = "default_1863")] pub relation: String, - #[serde(default = "default_1828")] + #[serde(default = "default_1864")] pub label: String, - #[serde(default = "default_1829")] + #[serde(default = "default_1865")] pub explanation: String, - #[serde(default = "default_1830")] + #[serde(default = "default_1866")] pub evidence: Vec, - #[serde(default = "default_1831")] + #[serde(default = "default_1867")] pub confidence: f64, - #[serde(default = "default_1832")] + #[serde(default = "default_1868")] pub author: String, - #[serde(default = "default_1833")] + #[serde(default = "default_1869")] pub run_id: String, } @@ -39838,33 +40058,33 @@ pub struct MemoryProvenanceLink { #[non_exhaustive] pub struct MemoryProvenanceOutput { pub found: bool, - #[serde(default = "default_1814")] + #[serde(default = "default_1850")] pub source_trace: String, - #[serde(default = "default_1815")] + #[serde(default = "default_1851")] pub source_kind: String, - #[serde(default = "default_1816")] + #[serde(default = "default_1852")] pub actor: String, - #[serde(default = "default_1817")] + #[serde(default = "default_1853")] pub source_class: String, - #[serde(default = "default_1818")] + #[serde(default = "default_1854")] pub source_label: String, - #[serde(default = "default_1819")] + #[serde(default = "default_1855")] pub thread_id: String, - #[serde(default = "default_1820")] + #[serde(default = "default_1856")] pub thread_exists: bool, - #[serde(default = "default_1821")] + #[serde(default = "default_1857")] pub thread_title: String, - #[serde(default = "default_1822")] + #[serde(default = "default_1858")] pub agent: String, - #[serde(default = "default_1823")] + #[serde(default = "default_1859")] pub session_id: String, - #[serde(default = "default_1824")] + #[serde(default = "default_1860")] pub run_id: String, - #[serde(default = "default_1825")] + #[serde(default = "default_1861")] pub written_at: String, - #[serde(default = "default_1826")] + #[serde(default = "default_1862")] pub source_resource_id: String, - #[serde(default = "default_1834")] + #[serde(default = "default_1870")] pub links: Vec, } @@ -39959,17 +40179,17 @@ impl MemoryProvenanceInput { pub struct RecallTurn { pub evidence_id: String, pub session_id: String, - #[serde(default = "default_1835")] + #[serde(default = "default_1871")] pub role: String, - #[serde(default = "default_1836")] + #[serde(default = "default_1872")] pub actor: String, - #[serde(default = "default_1837")] + #[serde(default = "default_1873")] pub observed_at: String, - #[serde(default = "default_1838")] + #[serde(default = "default_1874")] pub content: String, - #[serde(default = "default_1839")] + #[serde(default = "default_1875")] pub truncated: bool, - #[serde(default = "default_1840")] + #[serde(default = "default_1876")] pub matched_tokens: Integer, } @@ -39986,21 +40206,21 @@ pub enum MemoryRecallOutputOrder { #[non_exhaustive] pub struct MemoryRecallOutput { pub turns: Vec, - #[serde(default = "default_1841")] + #[serde(default = "default_1877")] pub total_matched: Integer, - #[serde(default = "default_1842")] + #[serde(default = "default_1878")] pub returned: Integer, - #[serde(default = "default_1843")] + #[serde(default = "default_1879")] pub has_more: bool, - #[serde(default = "default_1844")] + #[serde(default = "default_1880")] pub next_cursor: String, - #[serde(default = "default_1845")] + #[serde(default = "default_1881")] pub next_offset: Integer, - #[serde(default = "default_1846")] + #[serde(default = "default_1882")] pub order: MemoryRecallOutputOrder, - #[serde(default = "default_1847")] + #[serde(default = "default_1883")] pub query_tokens: Vec, - #[serde(default = "default_1848")] + #[serde(default = "default_1884")] pub tokens_returned: Integer, } @@ -40282,19 +40502,19 @@ pub struct MemoryRecordConflictRow { pub schema_name: String, pub memory_key: String, pub field_name: String, - #[serde(default = "default_1849")] + #[serde(default = "default_1885")] pub prior_value: Value, - #[serde(default = "default_1850")] + #[serde(default = "default_1886")] pub incoming_value: Value, pub prior_record_id: String, pub incoming_record_id: String, - #[serde(default = "default_1851")] + #[serde(default = "default_1887")] pub prior_memory_id: String, - #[serde(default = "default_1852")] + #[serde(default = "default_1888")] pub incoming_memory_id: String, - #[serde(default = "default_1853")] + #[serde(default = "default_1889")] pub detected_at: Option, - #[serde(default = "default_1854")] + #[serde(default = "default_1890")] pub resolved_at: Option, } @@ -40302,7 +40522,7 @@ pub struct MemoryRecordConflictRow { #[non_exhaustive] pub struct MemoryRecordConflictsOutput { pub rows: Vec, - #[serde(default = "default_1855")] + #[serde(default = "default_1891")] pub truncated: bool, } @@ -40412,19 +40632,19 @@ pub enum MemoryRecordRowStatus { #[non_exhaustive] pub struct MemoryRecordRow { pub record_id: String, - #[serde(default = "default_1856")] + #[serde(default = "default_1892")] pub memory_key: String, - #[serde(default = "default_1857")] + #[serde(default = "default_1893")] pub memory_id: String, - #[serde(default = "default_1858")] + #[serde(default = "default_1894")] pub record: std::collections::HashMap, - #[serde(default = "default_1859")] + #[serde(default = "default_1895")] pub field_states: std::collections::HashMap, - #[serde(default = "default_1860")] + #[serde(default = "default_1896")] pub status: MemoryRecordRowStatus, - #[serde(default = "default_1861")] + #[serde(default = "default_1897")] pub valid_at: Option, - #[serde(default = "default_1862")] + #[serde(default = "default_1898")] pub valid_to: Option, } @@ -40491,7 +40711,7 @@ impl MemoryRecordHistoryInput { #[non_exhaustive] pub struct MemoryRecordQueryOutput { pub rows: Vec, - #[serde(default = "default_1863")] + #[serde(default = "default_1899")] pub truncated: bool, } @@ -40715,15 +40935,15 @@ pub enum MemoryRecordWriteOutputKeySource { pub struct MemoryRecordWriteOutput { pub record_id: String, pub field_count: Integer, - #[serde(default = "default_1864")] + #[serde(default = "default_1900")] pub memory_key: String, - #[serde(default = "default_1865")] + #[serde(default = "default_1901")] pub key_source: MemoryRecordWriteOutputKeySource, - #[serde(default = "default_1866")] + #[serde(default = "default_1902")] pub fold: std::collections::HashMap, - #[serde(default = "default_1867")] + #[serde(default = "default_1903")] pub superseded_record_id: String, - #[serde(default = "default_1868")] + #[serde(default = "default_1904")] pub conflicts: Integer, } @@ -40966,13 +41186,13 @@ impl MemoryRecordWriteInput { #[non_exhaustive] pub struct MemoryRedactOutput { pub redacted: bool, - #[serde(default = "default_1869")] + #[serde(default = "default_1905")] pub refused_head: bool, - #[serde(default = "default_1870")] + #[serde(default = "default_1906")] pub redacted_at: Option, - #[serde(default = "default_1871")] + #[serde(default = "default_1907")] pub cache_rows_deleted: Integer, - #[serde(default = "default_1872")] + #[serde(default = "default_1908")] pub precedent_rows_deleted: Integer, } @@ -41132,7 +41352,7 @@ impl MemoryReindexInput { #[non_exhaustive] pub struct MemoryRejectOutput { pub rejected: bool, - #[serde(default = "default_1873")] + #[serde(default = "default_1909")] pub rejected_at: Option, } @@ -41248,7 +41468,7 @@ pub struct MemoryRelatedHit { pub struct MemoryRelatedOutput { pub results: Vec, pub source_entities: Vec, - #[serde(default = "default_1874")] + #[serde(default = "default_1910")] pub reason: String, } @@ -41363,13 +41583,13 @@ impl MemoryRelatedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryResolveOrphanDuplicatesOutput { - #[serde(default = "default_1875")] + #[serde(default = "default_1911")] pub candidates: Integer, - #[serde(default = "default_1876")] + #[serde(default = "default_1912")] pub reactivated: Integer, - #[serde(default = "default_1877")] + #[serde(default = "default_1913")] pub dry_run: bool, - #[serde(default = "default_1878")] + #[serde(default = "default_1914")] pub memory_ids: Vec, } @@ -41446,15 +41666,15 @@ impl MemoryResolveOrphanDuplicatesInput { #[non_exhaustive] pub struct MemoryRestoreOutput { pub restored: bool, - #[serde(default = "default_1879")] + #[serde(default = "default_1915")] pub memory_id: Option, - #[serde(default = "default_1880")] + #[serde(default = "default_1916")] pub version: Option, - #[serde(default = "default_1881")] + #[serde(default = "default_1917")] pub expired: bool, - #[serde(default = "default_1882")] + #[serde(default = "default_1918")] pub redacted: bool, - #[serde(default = "default_1883")] + #[serde(default = "default_1919")] pub from_status: String, } @@ -41574,13 +41794,13 @@ pub struct SearchTraceHit { pub content_excerpt: String, pub distance: f64, pub similarity: f64, - #[serde(default = "default_1884")] + #[serde(default = "default_1920")] pub entity_boost: f64, pub rank_score: f64, pub rank: Integer, - #[serde(default = "default_1885")] + #[serde(default = "default_1921")] pub source: String, - #[serde(default = "default_1886")] + #[serde(default = "default_1922")] pub parent_memory_key: String, } @@ -41590,11 +41810,11 @@ pub struct MemorySearchTraceOutput { pub results: Vec, pub embedding_model: String, pub entity_filter: Vec, - #[serde(default = "default_1887")] + #[serde(default = "default_1923")] pub query_spellings: std::collections::HashMap, - #[serde(default = "default_1888")] + #[serde(default = "default_1924")] pub query_spellings_skipped: bool, - #[serde(default = "default_1889")] + #[serde(default = "default_1925")] pub stale_dropped: Integer, } @@ -42797,7 +43017,7 @@ pub struct SearchTraceLogRow { pub embedding_model: String, pub latency_ms: Integer, pub run_id: String, - #[serde(default = "default_1890")] + #[serde(default = "default_1926")] pub operation: String, } @@ -42906,71 +43126,71 @@ pub struct RefusedFact { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySetFromMessagesOutput { - #[serde(default = "default_1891")] + #[serde(default = "default_1927")] pub written: Vec, - #[serde(default = "default_1892")] + #[serde(default = "default_1928")] pub refused: Vec, - #[serde(default = "default_1893")] + #[serde(default = "default_1929")] pub tokens_in: Integer, - #[serde(default = "default_1894")] + #[serde(default = "default_1930")] pub tokens_out: Integer, - #[serde(default = "default_1895")] + #[serde(default = "default_1931")] pub llm_provider: String, - #[serde(default = "default_1896")] + #[serde(default = "default_1932")] pub llm_model: String, - #[serde(default = "default_1897")] + #[serde(default = "default_1933")] pub segments: Integer, - #[serde(default = "default_1898")] + #[serde(default = "default_1934")] pub foresight: Integer, - #[serde(default = "default_1899")] + #[serde(default = "default_1935")] pub forgotten: Integer, - #[serde(default = "default_1900")] + #[serde(default = "default_1936")] pub forgotten_keys: Vec, - #[serde(default = "default_1901")] + #[serde(default = "default_1937")] pub forget_requests: Integer, - #[serde(default = "default_1902")] + #[serde(default = "default_1938")] pub about_other: Integer, - #[serde(default = "default_1903")] + #[serde(default = "default_1939")] pub premise_facts: Integer, - #[serde(default = "default_1904")] + #[serde(default = "default_1940")] pub learning_candidates: Integer, - #[serde(default = "default_1905")] + #[serde(default = "default_1941")] pub ignored_args: Vec, - #[serde(default = "default_1906")] + #[serde(default = "default_1942")] pub segmenter: String, - #[serde(default = "default_1907")] + #[serde(default = "default_1943")] pub cached_tokens_in: Integer, - #[serde(default = "default_1908")] + #[serde(default = "default_1944")] pub ontology_warnings: Vec, - #[serde(default = "default_1909")] + #[serde(default = "default_1945")] pub evidence_ids: Vec, - #[serde(default = "default_1910")] + #[serde(default = "default_1946")] pub belief_source_links: Integer, - #[serde(default = "default_1911")] + #[serde(default = "default_1947")] pub pipeline_errors: Vec, - #[serde(default = "default_1912")] + #[serde(default = "default_1948")] pub value_updates_linked: Integer, - #[serde(default = "default_1913")] + #[serde(default = "default_1949")] pub stubbed_fields: Vec, - #[serde(default = "default_1914")] + #[serde(default = "default_1950")] pub degraded: Vec, - #[serde(default = "default_1915")] + #[serde(default = "default_1951")] pub deferred: bool, - #[serde(default = "default_1916")] + #[serde(default = "default_1952")] pub queue_id: String, - #[serde(default = "default_1917")] + #[serde(default = "default_1953")] pub deferred_by: String, - #[serde(default = "default_1918")] + #[serde(default = "default_1954")] pub stage_ms: std::collections::HashMap, - #[serde(default = "default_1919")] + #[serde(default = "default_1955")] pub observation_date_source: String, - #[serde(default = "default_1920")] + #[serde(default = "default_1956")] pub under_operator_policy: bool, - #[serde(default = "default_1921")] + #[serde(default = "default_1957")] pub extract_prompt_keys: Vec, - #[serde(default = "default_1922")] + #[serde(default = "default_1958")] pub llm_cache_hits: Integer, - #[serde(default = "default_1923")] + #[serde(default = "default_1959")] pub llm_cache_misses: Integer, } @@ -43425,22 +43645,22 @@ pub enum StackEntrySection { #[non_exhaustive] pub struct StackEntry { pub section: StackEntrySection, - #[serde(default = "default_1924")] + #[serde(default = "default_1960")] pub memory_key: String, - #[serde(default = "default_1925")] + #[serde(default = "default_1961")] pub memory_type: String, - #[serde(default = "default_1926")] + #[serde(default = "default_1962")] pub value: String, pub tokens: Integer, - #[serde(default = "default_1927")] + #[serde(default = "default_1963")] pub pinned: bool, - #[serde(default = "default_1928")] + #[serde(default = "default_1964")] pub recall_count: Integer, - #[serde(default = "default_1929")] + #[serde(default = "default_1965")] pub last_recalled_at: Option, - #[serde(default = "default_1930")] + #[serde(default = "default_1966")] pub actor: String, - #[serde(default = "default_1931")] + #[serde(default = "default_1967")] pub namespace: String, } @@ -43625,14 +43845,14 @@ impl MemoryStackInput { pub struct MemoryStatus { pub memory_id: String, pub status: String, - #[serde(default = "default_1932")] + #[serde(default = "default_1968")] pub superseded_by: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryStatusesOutput { - #[serde(default = "default_1933")] + #[serde(default = "default_1969")] pub rows: Vec, } @@ -43681,23 +43901,23 @@ impl MemoryStatusesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySweepExpiredOutput { - #[serde(default = "default_1934")] + #[serde(default = "default_1970")] pub scanned: Integer, - #[serde(default = "default_1935")] + #[serde(default = "default_1971")] pub tombstoned: Integer, - #[serde(default = "default_1936")] + #[serde(default = "default_1972")] pub demoted: Integer, - #[serde(default = "default_1937")] + #[serde(default = "default_1973")] pub anonymized: Integer, - #[serde(default = "default_1938")] + #[serde(default = "default_1974")] pub locked_skipped: Integer, - #[serde(default = "default_1939")] + #[serde(default = "default_1975")] pub moved_skipped: Integer, - #[serde(default = "default_1940")] + #[serde(default = "default_1976")] pub dry_run: bool, - #[serde(default = "default_1941")] + #[serde(default = "default_1977")] pub sample: Vec>, - #[serde(default = "default_1942")] + #[serde(default = "default_1978")] pub failures: Vec, } @@ -43774,10 +43994,10 @@ pub struct MemoryTimelineEntry { pub memory_key: String, pub memory_type: String, pub content_excerpt: String, - #[serde(default = "default_1943")] + #[serde(default = "default_1979")] pub valid_at: Option, pub created_at: String, - #[serde(default = "default_1944")] + #[serde(default = "default_1980")] pub namespace: String, } @@ -43785,7 +44005,7 @@ pub struct MemoryTimelineEntry { #[non_exhaustive] pub struct MemoryTimelineOutput { pub events: Vec, - #[serde(default = "default_1945")] + #[serde(default = "default_1981")] pub total_matching: Integer, } @@ -43977,9 +44197,9 @@ impl MemoryTimelineInput { pub struct MemoryTouchResult { pub memory_key: String, pub touched: bool, - #[serde(default = "default_1948")] + #[serde(default = "default_1984")] pub version: Option, - #[serde(default = "default_1949")] + #[serde(default = "default_1985")] pub expires_at: Option, } @@ -43987,13 +44207,13 @@ pub struct MemoryTouchResult { #[non_exhaustive] pub struct MemoryTouchOutput { pub touched: bool, - #[serde(default = "default_1946")] + #[serde(default = "default_1982")] pub version: Option, - #[serde(default = "default_1947")] + #[serde(default = "default_1983")] pub expires_at: Option, - #[serde(default = "default_1950")] + #[serde(default = "default_1986")] pub results: Vec, - #[serde(default = "default_1951")] + #[serde(default = "default_1987")] pub touched_count: Integer, } @@ -44173,15 +44393,15 @@ impl MemoryTouchInput { #[non_exhaustive] pub struct MemoryUnlockOutput { pub unlocked: bool, - #[serde(default = "default_1952")] + #[serde(default = "default_1988")] pub reason: String, - #[serde(default = "default_1953")] + #[serde(default = "default_1989")] pub memory_id: String, - #[serde(default = "default_1954")] + #[serde(default = "default_1990")] pub version: Option, - #[serde(default = "default_1955")] + #[serde(default = "default_1991")] pub previous_mode: String, - #[serde(default = "default_1956")] + #[serde(default = "default_1992")] pub unlocked_by: String, } @@ -44286,11 +44506,11 @@ impl MemoryUnlockInput { #[non_exhaustive] pub struct MemoryUnpinOutput { pub unpinned: bool, - #[serde(default = "default_1957")] + #[serde(default = "default_1993")] pub reason: String, - #[serde(default = "default_1958")] + #[serde(default = "default_1994")] pub memory_id: String, - #[serde(default = "default_1959")] + #[serde(default = "default_1995")] pub version: Option, } @@ -44384,15 +44604,15 @@ impl MemoryUnpinInput { #[non_exhaustive] pub struct MemoryUpdateCandidate { pub memory_id: String, - #[serde(default = "default_1965")] + #[serde(default = "default_2001")] pub agent: String, - #[serde(default = "default_1966")] + #[serde(default = "default_2002")] pub user_id: String, - #[serde(default = "default_1967")] + #[serde(default = "default_2003")] pub session_id: String, - #[serde(default = "default_1968")] + #[serde(default = "default_2004")] pub version: Integer, - #[serde(default = "default_1969")] + #[serde(default = "default_2005")] pub status: String, } @@ -44400,23 +44620,23 @@ pub struct MemoryUpdateCandidate { #[non_exhaustive] pub struct MemoryUpdateOutput { pub updated: bool, - #[serde(default = "default_1960")] + #[serde(default = "default_1996")] pub memory_id: String, - #[serde(default = "default_1961")] + #[serde(default = "default_1997")] pub memory_key: String, - #[serde(default = "default_1962")] + #[serde(default = "default_1998")] pub new_version: Integer, - #[serde(default = "default_1963")] + #[serde(default = "default_1999")] pub content_sha256: String, - #[serde(default = "default_1964")] + #[serde(default = "default_2000")] pub reason: String, - #[serde(default = "default_1970")] + #[serde(default = "default_2006")] pub candidates: Vec, - #[serde(default = "default_1971")] + #[serde(default = "default_2007")] pub conflict_verdict: String, - #[serde(default = "default_1972")] + #[serde(default = "default_2008")] pub conflict_peers: Integer, - #[serde(default = "default_1973")] + #[serde(default = "default_2009")] pub duplicate_of: String, } @@ -44625,15 +44845,15 @@ impl MemoryUpdateInput { #[non_exhaustive] pub struct MemoryUpdateByIdOutput { pub updated: bool, - #[serde(default = "default_1974")] + #[serde(default = "default_2010")] pub new_version: Integer, - #[serde(default = "default_1975")] + #[serde(default = "default_2011")] pub content_sha256: String, - #[serde(default = "default_1976")] + #[serde(default = "default_2012")] pub conflict_verdict: String, - #[serde(default = "default_1977")] + #[serde(default = "default_2013")] pub conflict_peers: Integer, - #[serde(default = "default_1978")] + #[serde(default = "default_2014")] pub duplicate_of: String, } @@ -44761,23 +44981,23 @@ impl MemoryUpdateByIdInput { #[non_exhaustive] pub struct MemoryVerifyOutput { pub found: bool, - #[serde(default = "default_1979")] + #[serde(default = "default_2015")] pub changed: bool, - #[serde(default = "default_1980")] + #[serde(default = "default_2016")] pub memory_id: String, - #[serde(default = "default_1981")] + #[serde(default = "default_2017")] pub memory_key: String, - #[serde(default = "default_1982")] + #[serde(default = "default_2018")] pub namespace: String, - #[serde(default = "default_1983")] + #[serde(default = "default_2019")] pub verified_by: String, - #[serde(default = "default_1984")] + #[serde(default = "default_2020")] pub verified_at: Option, - #[serde(default = "default_1985")] + #[serde(default = "default_2021")] pub verification: String, - #[serde(default = "default_1986")] + #[serde(default = "default_2022")] pub version: Integer, - #[serde(default = "default_1987")] + #[serde(default = "default_2023")] pub content_sha256: String, } @@ -44982,13 +45202,13 @@ pub struct SchemaFieldOutput { #[serde(rename = "type")] pub r#type: String, pub required: bool, - #[serde(default = "default_1990")] + #[serde(default = "default_2026")] pub identity: bool, - #[serde(default = "default_1991")] + #[serde(default = "default_2027")] pub enum_values: Vec, - #[serde(default = "default_1992")] + #[serde(default = "default_2028")] pub constraints: std::collections::HashMap, - #[serde(default = "default_1993")] + #[serde(default = "default_2029")] pub description: String, } @@ -44997,11 +45217,11 @@ pub struct SchemaFieldOutput { pub struct MemorySchemaSummary { pub schema_id: String, pub name: String, - #[serde(default = "default_1988")] + #[serde(default = "default_2024")] pub description: String, - #[serde(default = "default_1989")] + #[serde(default = "default_2025")] pub status: String, - #[serde(default = "default_1994")] + #[serde(default = "default_2030")] pub fields: Vec, } @@ -45416,13 +45636,13 @@ impl MemorySchemaRegisterInput { #[non_exhaustive] pub struct MentorPlane { pub plane: String, - #[serde(default = "default_1996")] + #[serde(default = "default_2032")] pub calls: Integer, - #[serde(default = "default_1997")] + #[serde(default = "default_2033")] pub available: Option, - #[serde(default = "default_1998")] + #[serde(default = "default_2034")] pub when: String, - #[serde(default = "default_1999")] + #[serde(default = "default_2035")] pub mentored: bool, } @@ -45432,11 +45652,11 @@ pub struct MentorHint { pub code: String, pub severity: String, pub text: String, - #[serde(default = "default_2001")] + #[serde(default = "default_2037")] pub ops: Vec, - #[serde(default = "default_2002")] + #[serde(default = "default_2038")] pub evidence: std::collections::HashMap, - #[serde(default = "default_2003")] + #[serde(default = "default_2039")] pub plane: Option, } @@ -45444,9 +45664,9 @@ pub struct MentorHint { #[non_exhaustive] pub struct MentorAdoption { pub code: String, - #[serde(default = "default_2005")] + #[serde(default = "default_2041")] pub shown_sessions: Integer, - #[serde(default = "default_2006")] + #[serde(default = "default_2042")] pub followed_sessions: Integer, } @@ -45482,7 +45702,7 @@ pub enum UsageRungSource { #[non_exhaustive] pub struct UsageRung { pub rung: UsageRungRung, - #[serde(default = "default_2008")] + #[serde(default = "default_2044")] pub count: Option, pub source: UsageRungSource, pub meaning: String, @@ -45497,27 +45717,27 @@ pub struct MentorBriefOutput { pub window_seconds: Integer, pub computed_at: String, pub sessions: Integer, - #[serde(default = "default_1995")] + #[serde(default = "default_2031")] pub usage: std::collections::HashMap, - #[serde(default = "default_2000")] + #[serde(default = "default_2036")] pub planes: Vec, - #[serde(default = "default_2004")] + #[serde(default = "default_2040")] pub hints: Vec, - #[serde(default = "default_2007")] + #[serde(default = "default_2043")] pub adoption: Vec, - #[serde(default = "default_2009")] + #[serde(default = "default_2045")] pub usage_evidence: Vec, - #[serde(default = "default_2010")] + #[serde(default = "default_2046")] pub ledger_from: Option, - #[serde(default = "default_2011")] + #[serde(default = "default_2047")] pub ledger_retention_days: Option, - #[serde(default = "default_2012")] + #[serde(default = "default_2048")] pub agents: Vec, - #[serde(default = "default_2013")] + #[serde(default = "default_2049")] pub agent_defaulted: bool, - #[serde(default = "default_2014")] + #[serde(default = "default_2050")] pub skipped: Vec, - #[serde(default = "default_2015")] + #[serde(default = "default_2051")] pub healthy: bool, } @@ -45666,33 +45886,33 @@ impl MentorGuideInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct NamespaceAuditSummary { - #[serde(default = "default_2016")] + #[serde(default = "default_2052")] pub live_rows: Integer, - #[serde(default = "default_2017")] + #[serde(default = "default_2053")] pub live_bytes: Integer, - #[serde(default = "default_2018")] + #[serde(default = "default_2054")] pub excerpt_bytes: Integer, - #[serde(default = "default_2019")] + #[serde(default = "default_2055")] pub version_rows: Integer, - #[serde(default = "default_2020")] + #[serde(default = "default_2056")] pub version_bytes: Integer, - #[serde(default = "default_2021")] + #[serde(default = "default_2057")] pub unembedded_rows: Integer, - #[serde(default = "default_2022")] + #[serde(default = "default_2058")] pub gets: Integer, - #[serde(default = "default_2023")] + #[serde(default = "default_2059")] pub searches: Integer, - #[serde(default = "default_2024")] + #[serde(default = "default_2060")] pub sets: Integer, - #[serde(default = "default_2025")] + #[serde(default = "default_2061")] pub get_search_ratio: f64, - #[serde(default = "default_2026")] + #[serde(default = "default_2062")] pub inspector_calls: Integer, - #[serde(default = "default_2027")] + #[serde(default = "default_2063")] pub typed_gets: Integer, - #[serde(default = "default_2028")] + #[serde(default = "default_2064")] pub written_in_window: Integer, - #[serde(default = "default_2029")] + #[serde(default = "default_2065")] pub ledger_calls: Integer, } @@ -45724,25 +45944,25 @@ pub struct NamespaceAuditFinding { pub kind: NamespaceAuditFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2030")] + #[serde(default = "default_2066")] pub window_seconds: Option, - #[serde(default = "default_2031")] + #[serde(default = "default_2067")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2032")] + #[serde(default = "default_2068")] pub evidence: Vec, - #[serde(default = "default_2033")] + #[serde(default = "default_2069")] pub exceptions: String, - #[serde(default = "default_2034")] + #[serde(default = "default_2070")] pub uncertainty: String, pub code: String, pub severity: NamespaceAuditFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_2035")] + #[serde(default = "default_2071")] pub bytes: Integer, - #[serde(default = "default_2036")] + #[serde(default = "default_2072")] pub samples: Vec>, pub detail: String, pub remedy: String, @@ -45757,7 +45977,7 @@ pub struct NamespaceAuditOutput { pub window_seconds: Integer, pub summary: NamespaceAuditSummary, pub findings: Vec, - #[serde(default = "default_2037")] + #[serde(default = "default_2073")] pub skipped: Vec, pub coverage: ReportCoverage, pub healthy: bool, @@ -45848,29 +46068,29 @@ pub enum BrowseEntryMyStatus { #[non_exhaustive] pub struct BrowseEntry { pub namespace: String, - #[serde(default = "default_2038")] + #[serde(default = "default_2074")] pub kind: String, pub description: String, pub owner_email: String, pub member_count: Integer, - #[serde(default = "default_2039")] + #[serde(default = "default_2075")] pub requires_approval: bool, pub created_at: String, - #[serde(default = "default_2040")] + #[serde(default = "default_2076")] pub join_policy: String, - #[serde(default = "default_2041")] + #[serde(default = "default_2077")] pub visibility: String, - #[serde(default = "default_2042")] + #[serde(default = "default_2078")] pub my_status: BrowseEntryMyStatus, - #[serde(default = "default_2043")] + #[serde(default = "default_2079")] pub my_role: String, - #[serde(default = "default_2044")] + #[serde(default = "default_2080")] pub repo: String, - #[serde(default = "default_2045")] + #[serde(default = "default_2081")] pub branch: String, - #[serde(default = "default_2046")] + #[serde(default = "default_2082")] pub guide_revision: Integer, - #[serde(default = "default_2047")] + #[serde(default = "default_2083")] pub guide_summary: String, } @@ -45974,9 +46194,9 @@ pub enum NamespaceCancelRequestOutputClearedRole { pub struct NamespaceCancelRequestOutput { pub cancelled: bool, pub namespace: String, - #[serde(default = "default_2048")] + #[serde(default = "default_2084")] pub cleared_role: Option, - #[serde(default = "default_2049")] + #[serde(default = "default_2085")] pub cancelled_at: Option, } @@ -46048,7 +46268,7 @@ pub struct NamespaceDeleteOutput { pub deleted: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2050")] + #[serde(default = "default_2086")] pub sources_retired: Vec, } @@ -46117,67 +46337,67 @@ pub enum NamespaceGetOutputClassification { pub struct NamespaceGetOutput { pub found: bool, pub namespace: String, - #[serde(default = "default_2051")] + #[serde(default = "default_2087")] pub kind: Option, - #[serde(default = "default_2052")] + #[serde(default = "default_2088")] pub owner_email: Option, - #[serde(default = "default_2053")] + #[serde(default = "default_2089")] pub description: Option, - #[serde(default = "default_2054")] + #[serde(default = "default_2090")] pub tags: Option>, - #[serde(default = "default_2055")] + #[serde(default = "default_2091")] pub active: Option, - #[serde(default = "default_2056")] + #[serde(default = "default_2092")] pub conversation_logging_enabled: Option, - #[serde(default = "default_2057")] + #[serde(default = "default_2093")] pub capture_generation_io: Option, - #[serde(default = "default_2058")] + #[serde(default = "default_2094")] pub coverage_sweep: Option, - #[serde(default = "default_2059")] + #[serde(default = "default_2095")] pub consolidation_enabled: Option, - #[serde(default = "default_2060")] + #[serde(default = "default_2096")] pub daily_cost_cap_usd: Option, - #[serde(default = "default_2061")] + #[serde(default = "default_2097")] pub daily_user_cost_cap_usd: Option, - #[serde(default = "default_2062")] + #[serde(default = "default_2098")] pub budget_alert_inbox: Option, - #[serde(default = "default_2063")] + #[serde(default = "default_2099")] pub conflict_threshold: Option, - #[serde(default = "default_2064")] + #[serde(default = "default_2100")] pub retention_days: Option, - #[serde(default = "default_2065")] + #[serde(default = "default_2101")] pub warm_days: Option, - #[serde(default = "default_2066")] + #[serde(default = "default_2102")] pub visibility: Option, - #[serde(default = "default_2067")] + #[serde(default = "default_2103")] pub requires_approval: Option, - #[serde(default = "default_2068")] + #[serde(default = "default_2104")] pub join_policy: Option, - #[serde(default = "default_2069")] + #[serde(default = "default_2105")] pub effective_join_policy: Option, - #[serde(default = "default_2070")] + #[serde(default = "default_2106")] pub retrieval_defaults: Option>, - #[serde(default = "default_2071")] + #[serde(default = "default_2107")] pub rerank_endpoint: Option, - #[serde(default = "default_2072")] + #[serde(default = "default_2108")] pub classify_endpoint: Option, - #[serde(default = "default_2073")] + #[serde(default = "default_2109")] pub default_conflict_policy: Option, - #[serde(default = "default_2074")] + #[serde(default = "default_2110")] pub proposal_policy: Option, - #[serde(default = "default_2075")] + #[serde(default = "default_2111")] pub code_change_policy: Option, - #[serde(default = "default_2076")] + #[serde(default = "default_2112")] pub tag_registry: Option>>, - #[serde(default = "default_2077")] + #[serde(default = "default_2113")] pub classification: Option, - #[serde(default = "default_2078")] + #[serde(default = "default_2114")] pub guide_revision: Option, - #[serde(default = "default_2079")] + #[serde(default = "default_2115")] pub guide_summary: Option, - #[serde(default = "default_2080")] + #[serde(default = "default_2116")] pub created_at: Option, - #[serde(default = "default_2081")] + #[serde(default = "default_2117")] pub updated_at: Option, } @@ -46230,17 +46450,17 @@ impl NamespaceGetInput { #[non_exhaustive] pub struct NamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2082")] + #[serde(default = "default_2118")] pub revision: Integer, - #[serde(default = "default_2083")] + #[serde(default = "default_2119")] pub content: String, - #[serde(default = "default_2084")] + #[serde(default = "default_2120")] pub summary: String, - #[serde(default = "default_2085")] + #[serde(default = "default_2121")] pub note: String, - #[serde(default = "default_2086")] + #[serde(default = "default_2122")] pub updated_by: String, - #[serde(default = "default_2087")] + #[serde(default = "default_2123")] pub updated_at: Option, } @@ -46377,17 +46597,17 @@ impl NamespaceGuideHistoryInput { #[non_exhaustive] pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2089")] + #[serde(default = "default_2125")] pub revision: Integer, - #[serde(default = "default_2090")] + #[serde(default = "default_2126")] pub content: String, - #[serde(default = "default_2091")] + #[serde(default = "default_2127")] pub summary: String, - #[serde(default = "default_2092")] + #[serde(default = "default_2128")] pub note: String, - #[serde(default = "default_2093")] + #[serde(default = "default_2129")] pub updated_by: String, - #[serde(default = "default_2094")] + #[serde(default = "default_2130")] pub updated_at: Option, } @@ -46395,10 +46615,10 @@ pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { #[non_exhaustive] pub struct NamespaceGuideSetOutput { pub written: bool, - #[serde(default = "default_2088")] + #[serde(default = "default_2124")] pub conflict: bool, pub revision: Integer, - #[serde(default = "default_2095")] + #[serde(default = "default_2131")] pub current: Option, } @@ -46519,7 +46739,7 @@ pub struct InventorySection { #[serde(deserialize_with = "required_nullable")] pub latest_at: Option, pub complete: bool, - #[serde(default = "default_2096")] + #[serde(default = "default_2132")] pub reason: String, } @@ -46549,10 +46769,10 @@ pub struct InventoryPopulation { pub population: InventoryPopulationPopulation, #[serde(deserialize_with = "required_nullable")] pub total: Option, - #[serde(default = "default_2097")] + #[serde(default = "default_2133")] pub top: Vec, pub complete: bool, - #[serde(default = "default_2098")] + #[serde(default = "default_2134")] pub reason: String, } @@ -46718,11 +46938,11 @@ pub struct NamespaceJoinOutput { pub joined: bool, pub namespace: String, pub role: NamespaceJoinOutputRole, - #[serde(default = "default_2099")] + #[serde(default = "default_2135")] pub status: String, - #[serde(default = "default_2100")] + #[serde(default = "default_2136")] pub requested_role: Option, - #[serde(default = "default_2101")] + #[serde(default = "default_2137")] pub pending_admins: Vec, pub joined_at: String, } @@ -46814,7 +47034,7 @@ impl NamespaceJoinInput { pub struct NamespaceLeaveOutput { pub left: bool, pub namespace: String, - #[serde(default = "default_2102")] + #[serde(default = "default_2138")] pub left_at: Option, } @@ -46891,27 +47111,27 @@ pub enum NamespaceEntryVisibility { #[non_exhaustive] pub struct NamespaceEntry { pub namespace: String, - #[serde(default = "default_2103")] + #[serde(default = "default_2139")] pub kind: String, pub owner_email: String, pub description: String, pub tags: Vec, pub active: bool, - #[serde(default = "default_2104")] + #[serde(default = "default_2140")] pub consolidation_enabled: bool, - #[serde(default = "default_2105")] + #[serde(default = "default_2141")] pub daily_cost_cap_usd: f64, - #[serde(default = "default_2106")] + #[serde(default = "default_2142")] pub daily_user_cost_cap_usd: f64, - #[serde(default = "default_2107")] + #[serde(default = "default_2143")] pub budget_alert_inbox: String, - #[serde(default = "default_2108")] + #[serde(default = "default_2144")] pub conflict_threshold: Option, - #[serde(default = "default_2109")] + #[serde(default = "default_2145")] pub retention_days: Integer, - #[serde(default = "default_2110")] + #[serde(default = "default_2146")] pub warm_days: Integer, - #[serde(default = "default_2111")] + #[serde(default = "default_2147")] pub visibility: NamespaceEntryVisibility, pub created_at: String, pub updated_at: String, @@ -47066,27 +47286,27 @@ pub enum MineEntryVisibility { pub struct MineEntry { pub namespace: String, pub role: String, - #[serde(default = "default_2112")] + #[serde(default = "default_2148")] pub status: String, - #[serde(default = "default_2113")] + #[serde(default = "default_2149")] pub pending_role: Option, - #[serde(default = "default_2114")] + #[serde(default = "default_2150")] pub pending_since: Option, - #[serde(default = "default_2115")] + #[serde(default = "default_2151")] pub pending_admins: Vec, - #[serde(default = "default_2116")] + #[serde(default = "default_2152")] pub visibility: MineEntryVisibility, - #[serde(default = "default_2117")] + #[serde(default = "default_2153")] pub kind: String, - #[serde(default = "default_2118")] + #[serde(default = "default_2154")] pub title: String, - #[serde(default = "default_2119")] + #[serde(default = "default_2155")] pub description: String, - #[serde(default = "default_2120")] + #[serde(default = "default_2156")] pub joined_at: Option, - #[serde(default = "default_2121")] + #[serde(default = "default_2157")] pub is_new: bool, - #[serde(default = "default_2122")] + #[serde(default = "default_2158")] pub inherited: bool, } @@ -47152,7 +47372,7 @@ pub struct OntologyEntry { pub name: String, pub status: String, pub description: String, - #[serde(default = "default_2123")] + #[serde(default = "default_2159")] pub cardinality: String, pub created_by: String, pub updated_at: String, @@ -47345,7 +47565,7 @@ pub struct NamespaceRegisterOutput { pub registered: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2124")] + #[serde(default = "default_2160")] pub visibility: NamespaceRegisterOutputVisibility, } @@ -48425,7 +48645,7 @@ impl NamespaceRegisterOntologyInput { #[non_exhaustive] pub struct NamespaceRestoreOutput { pub restored: bool, - #[serde(default = "default_2125")] + #[serde(default = "default_2161")] pub publication_pending: bool, pub target_namespace: String, pub snapshot_id: String, @@ -49312,15 +49532,15 @@ pub struct NamespaceRollbackOutput { pub version_at: Integer, pub reinstate: Integer, pub remove: Integer, - #[serde(default = "default_2126")] + #[serde(default = "default_2162")] pub skipped_no_head: Integer, - #[serde(default = "default_2127")] + #[serde(default = "default_2163")] pub skipped_already_gone: Integer, - #[serde(default = "default_2128")] + #[serde(default = "default_2164")] pub truncated: bool, - #[serde(default = "default_2129")] + #[serde(default = "default_2165")] pub sample: Vec>, - #[serde(default = "default_2130")] + #[serde(default = "default_2166")] pub applied_at: Option, } @@ -49499,101 +49719,101 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub confidence: f64, pub source_trace: String, pub pinned: bool, - #[serde(default = "default_2131")] + #[serde(default = "default_2167")] pub expires_at: Option, - #[serde(default = "default_2132")] + #[serde(default = "default_2168")] pub entities: Vec, - #[serde(default = "default_2133")] + #[serde(default = "default_2169")] pub version: Integer, - #[serde(default = "default_2134")] + #[serde(default = "default_2170")] pub content_sha256: String, - #[serde(default = "default_2135")] + #[serde(default = "default_2171")] pub actor: String, - #[serde(default = "default_2136")] + #[serde(default = "default_2172")] pub source_class: String, - #[serde(default = "default_2137")] + #[serde(default = "default_2173")] pub source_resource_id: String, - #[serde(default = "default_2138")] + #[serde(default = "default_2174")] pub verified_by: String, - #[serde(default = "default_2139")] + #[serde(default = "default_2175")] pub verified_at: Option, - #[serde(default = "default_2140")] + #[serde(default = "default_2176")] pub verified_sha256: String, - #[serde(default = "default_2141")] + #[serde(default = "default_2177")] pub grounding: String, - #[serde(default = "default_2142")] + #[serde(default = "default_2178")] pub evidence: String, - #[serde(default = "default_2143")] + #[serde(default = "default_2179")] pub tags: Vec, - #[serde(default = "default_2144")] + #[serde(default = "default_2180")] pub valid_at: Option, - #[serde(default = "default_2145")] + #[serde(default = "default_2181")] pub valid_to: Option, - #[serde(default = "default_2146")] + #[serde(default = "default_2182")] pub created_at: Option, - #[serde(default = "default_2147")] + #[serde(default = "default_2183")] pub updated_at: Option, - #[serde(default = "default_2148")] + #[serde(default = "default_2184")] pub value_json: String, - #[serde(default = "default_2149")] + #[serde(default = "default_2185")] pub status: NamespaceSnapshotOutputSnapshotMemoryRowStatus, - #[serde(default = "default_2150")] + #[serde(default = "default_2186")] pub requires_review: Option, - #[serde(default = "default_2151")] + #[serde(default = "default_2187")] pub conflict_with: Vec, - #[serde(default = "default_2152")] + #[serde(default = "default_2188")] pub duplicate_of: String, - #[serde(default = "default_2153")] + #[serde(default = "default_2189")] pub evidence_count: Integer, - #[serde(default = "default_2154")] + #[serde(default = "default_2190")] pub recall_count: Integer, - #[serde(default = "default_2155")] + #[serde(default = "default_2191")] pub last_recalled_at: Option, - #[serde(default = "default_2156")] + #[serde(default = "default_2192")] pub cross_promoted_from_memory_id: String, - #[serde(default = "default_2157")] + #[serde(default = "default_2193")] pub cross_promoted_from_namespace: String, - #[serde(default = "default_2158")] + #[serde(default = "default_2194")] pub superseded_by: String, - #[serde(default = "default_2159")] + #[serde(default = "default_2195")] pub rejection_reason: String, - #[serde(default = "default_2160")] + #[serde(default = "default_2196")] pub temporal_anchor: Option, - #[serde(default = "default_2161")] + #[serde(default = "default_2197")] pub temporal_confidence: f64, - #[serde(default = "default_2162")] + #[serde(default = "default_2198")] pub invalid_at: Option, - #[serde(default = "default_2163")] + #[serde(default = "default_2199")] pub char_limit: Option, - #[serde(default = "default_2164")] + #[serde(default = "default_2200")] pub reinforcement_count: Integer, - #[serde(default = "default_2165")] + #[serde(default = "default_2201")] pub last_reinforced_at: Option, - #[serde(default = "default_2166")] + #[serde(default = "default_2202")] pub mentioned_at: Option, - #[serde(default = "default_2167")] + #[serde(default = "default_2203")] pub sensitivity: String, - #[serde(default = "default_2168")] + #[serde(default = "default_2204")] pub redacted_at: Option, - #[serde(default = "default_2169")] + #[serde(default = "default_2205")] pub redaction_reason: String, - #[serde(default = "default_2170")] + #[serde(default = "default_2206")] pub lock_mode: String, - #[serde(default = "default_2171")] + #[serde(default = "default_2207")] pub lock_reason: String, - #[serde(default = "default_2172")] + #[serde(default = "default_2208")] pub lock_until: Option, - #[serde(default = "default_2173")] + #[serde(default = "default_2209")] pub locked_by: String, - #[serde(default = "default_2174")] + #[serde(default = "default_2210")] pub locked_at: Option, - #[serde(default = "default_2175")] + #[serde(default = "default_2211")] pub on_expire: String, - #[serde(default = "default_2176")] + #[serde(default = "default_2212")] pub expire_reason: String, - #[serde(default = "default_2177")] + #[serde(default = "default_2213")] pub files: Vec, - #[serde(default = "default_2178")] + #[serde(default = "default_2214")] pub concepts: Vec, } @@ -49602,11 +49822,11 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub struct NamespaceSnapshotOutputSnapshotTypeRow { pub memory_type: String, pub retention_days: Integer, - #[serde(default = "default_2179")] + #[serde(default = "default_2215")] pub dedup_threshold: Option, - #[serde(default = "default_2180")] + #[serde(default = "default_2216")] pub hot_quota: Integer, - #[serde(default = "default_2181")] + #[serde(default = "default_2217")] pub conflict_policy: String, } @@ -49821,7 +50041,7 @@ pub struct TaxonomyCommunity { pub community_id: Integer, pub label: String, pub size: Integer, - #[serde(default = "default_2182")] + #[serde(default = "default_2218")] pub top_entities: Vec, } @@ -49832,9 +50052,9 @@ pub struct NamespaceTaxonomyOutput { pub entities: Vec, pub memory_count: Integer, pub memory_types: Vec, - #[serde(default = "default_2183")] + #[serde(default = "default_2219")] pub communities: Vec, - #[serde(default = "default_2184")] + #[serde(default = "default_2220")] pub communities_computed_at: String, } @@ -49934,15 +50154,15 @@ pub enum TuneProposalTarget { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TuneEvidence { - #[serde(default = "default_2186")] + #[serde(default = "default_2222")] pub finding_codes: Vec, - #[serde(default = "default_2187")] + #[serde(default = "default_2223")] pub supporting_count: Integer, - #[serde(default = "default_2188")] + #[serde(default = "default_2224")] pub supporting: Vec, - #[serde(default = "default_2189")] + #[serde(default = "default_2225")] pub counter_count: Option, - #[serde(default = "default_2190")] + #[serde(default = "default_2226")] pub documents: Vec, } @@ -49968,10 +50188,10 @@ pub enum TuneApplyVia { #[non_exhaustive] pub struct TuneApply { pub op: String, - #[serde(default = "default_2194")] + #[serde(default = "default_2230")] pub via: TuneApplyVia, pub args: std::collections::HashMap, - #[serde(default = "default_2195")] + #[serde(default = "default_2231")] pub args_complete: bool, pub required_role: String, pub guard: String, @@ -49990,7 +50210,7 @@ pub struct ChunkStats { pub sections: Integer, pub sections_cut: Integer, pub max_input_tokens: Integer, - #[serde(default = "default_2197")] + #[serde(default = "default_2233")] pub over_input_limit: Option, } @@ -50010,25 +50230,25 @@ pub struct TuneProposal { pub title: String, pub rationale: String, pub current: String, - #[serde(default = "default_2185")] + #[serde(default = "default_2221")] pub current_revision: Option, pub proposed: String, pub evidence: TuneEvidence, - #[serde(default = "default_2191")] + #[serde(default = "default_2227")] pub affected_agents: Vec, - #[serde(default = "default_2192")] + #[serde(default = "default_2228")] pub affected_agents_total: Option, - #[serde(default = "default_2193")] + #[serde(default = "default_2229")] pub effect: TuneProposalEffect, pub historical: String, pub apply: TuneApply, - #[serde(default = "default_2196")] + #[serde(default = "default_2232")] pub apply_also: Vec, - #[serde(default = "default_2198")] + #[serde(default = "default_2234")] pub preview: Option, - #[serde(default = "default_2199")] + #[serde(default = "default_2235")] pub limits: String, - #[serde(default = "default_2200")] + #[serde(default = "default_2236")] pub refs: Vec, } @@ -50036,13 +50256,13 @@ pub struct TuneProposal { #[non_exhaustive] pub struct ChunkingSample { pub cap: Integer, - #[serde(default = "default_2206")] + #[serde(default = "default_2242")] pub population: Option, pub documents: Integer, pub unread: Integer, pub load_cap: Integer, pub embedder_model: String, - #[serde(default = "default_2207")] + #[serde(default = "default_2243")] pub input_token_limit: Option, pub current: ChunkStats, } @@ -50053,21 +50273,21 @@ pub struct NamespaceTuneOutput { pub org: String, pub namespace: String, pub computed_at: String, - #[serde(default = "default_2201")] + #[serde(default = "default_2237")] pub proposals: Vec, - #[serde(default = "default_2202")] + #[serde(default = "default_2238")] pub guide_revision: Option, - #[serde(default = "default_2203")] + #[serde(default = "default_2239")] pub categories_registered: Option, - #[serde(default = "default_2204")] + #[serde(default = "default_2240")] pub extraction_policy: Option, - #[serde(default = "default_2205")] + #[serde(default = "default_2241")] pub extraction_policy_unavailable: String, - #[serde(default = "default_2208")] + #[serde(default = "default_2244")] pub chunking: Option, - #[serde(default = "default_2209")] + #[serde(default = "default_2245")] pub skipped: Vec, - #[serde(default = "default_2210")] + #[serde(default = "default_2246")] pub model_used: bool, } @@ -50188,25 +50408,25 @@ pub struct NamespaceValidateFinding { pub kind: NamespaceValidateFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2211")] + #[serde(default = "default_2247")] pub window_seconds: Option, - #[serde(default = "default_2212")] + #[serde(default = "default_2248")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2213")] + #[serde(default = "default_2249")] pub evidence: Vec, - #[serde(default = "default_2214")] + #[serde(default = "default_2250")] pub exceptions: String, - #[serde(default = "default_2215")] + #[serde(default = "default_2251")] pub uncertainty: String, pub check: String, pub severity: NamespaceValidateFindingSeverity, pub count: Integer, - #[serde(default = "default_2216")] + #[serde(default = "default_2252")] pub samples: Vec>, pub detail: String, - #[serde(default = "default_2217")] + #[serde(default = "default_2253")] pub totals: std::collections::HashMap, } @@ -50220,9 +50440,9 @@ pub struct NamespaceValidateOutput { pub warnings: Integer, pub infos: Integer, pub findings: Vec, - #[serde(default = "default_2218")] + #[serde(default = "default_2254")] pub skipped: Vec, - #[serde(default = "default_2219")] + #[serde(default = "default_2255")] pub keys_scoped: Integer, pub coverage: ReportCoverage, pub checked_at: String, @@ -50342,9 +50562,9 @@ impl NamespaceValidateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ObserveCrystallizeOutput { - #[serde(default = "default_2220")] + #[serde(default = "default_2256")] pub enqueued: Integer, - #[serde(default = "default_2221")] + #[serde(default = "default_2257")] pub session_id: String, } @@ -50441,23 +50661,23 @@ impl ObserveCrystallizeInput { #[non_exhaustive] pub struct ObserveRecordOutput { pub memory_key: String, - #[serde(default = "default_2222")] + #[serde(default = "default_2258")] pub memory_id: String, - #[serde(default = "default_2223")] + #[serde(default = "default_2259")] pub kind: String, - #[serde(default = "default_2224")] + #[serde(default = "default_2260")] pub tags: Vec, - #[serde(default = "default_2225")] + #[serde(default = "default_2261")] pub file_paths: Vec, - #[serde(default = "default_2226")] + #[serde(default = "default_2262")] pub content_sha256: String, - #[serde(default = "default_2227")] + #[serde(default = "default_2263")] pub tool_name: String, - #[serde(default = "default_2228")] + #[serde(default = "default_2264")] pub has_error: bool, - #[serde(default = "default_2229")] + #[serde(default = "default_2265")] pub narrative_chars: Integer, - #[serde(default = "default_2230")] + #[serde(default = "default_2266")] pub skipped_reason: String, } @@ -50688,7 +50908,7 @@ pub struct OpsIncident { pub subject: String, pub severity: OpsIncidentSeverity, pub detail: String, - #[serde(default = "default_2231")] + #[serde(default = "default_2267")] pub age_s: Option, } @@ -50707,7 +50927,7 @@ pub enum OpsIncidentsOutputRequests { #[non_exhaustive] pub struct OpsIncidentsOutput { pub status: OpsIncidentsOutputStatus, - #[serde(default = "default_2232")] + #[serde(default = "default_2268")] pub incidents: Vec, pub window_minutes: Integer, pub requests: OpsIncidentsOutputRequests, @@ -50751,26 +50971,26 @@ pub struct ProjectionFailureRow { pub failure_id: String, pub org: String, pub namespace: String, - #[serde(default = "default_2233")] + #[serde(default = "default_2269")] pub agent: String, pub projection: String, - #[serde(default = "default_2234")] + #[serde(default = "default_2270")] pub source_operation: String, - #[serde(default = "default_2235")] + #[serde(default = "default_2271")] pub source_resource_id: String, - #[serde(default = "default_2236")] + #[serde(default = "default_2272")] pub memory_keys: Vec, - #[serde(default = "default_2237")] + #[serde(default = "default_2273")] pub error_type: String, - #[serde(default = "default_2238")] + #[serde(default = "default_2274")] pub error_message: String, - #[serde(default = "default_2239")] + #[serde(default = "default_2275")] pub payload: std::collections::HashMap, - #[serde(default = "default_2240")] + #[serde(default = "default_2276")] pub status: String, - #[serde(default = "default_2241")] + #[serde(default = "default_2277")] pub created_at: Option, - #[serde(default = "default_2242")] + #[serde(default = "default_2278")] pub resolved_at: Option, } @@ -50924,22 +51144,22 @@ pub struct ProjectionFailureRetryRow { pub projection: String, pub retried: bool, pub resolved: bool, - #[serde(default = "default_2243")] + #[serde(default = "default_2279")] pub abandoned: bool, - #[serde(default = "default_2244")] + #[serde(default = "default_2280")] pub reason: String, - #[serde(default = "default_2245")] + #[serde(default = "default_2281")] pub error: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProjectionFailureRetryOutput { - #[serde(default = "default_2246")] + #[serde(default = "default_2282")] pub results: Vec, pub retried: Integer, pub resolved: Integer, - #[serde(default = "default_2247")] + #[serde(default = "default_2283")] pub abandoned: Integer, } @@ -51021,15 +51241,15 @@ impl ProjectionFailureRetryInput { pub struct OrgModelCallsOutput { pub org: String, pub enabled: bool, - #[serde(default = "default_2248")] + #[serde(default = "default_2284")] pub reason: String, - #[serde(default = "default_2249")] + #[serde(default = "default_2285")] pub updated_by: String, - #[serde(default = "default_2250")] + #[serde(default = "default_2286")] pub updated_at: Option, - #[serde(default = "default_2251")] + #[serde(default = "default_2287")] pub locked: bool, - #[serde(default = "default_2252")] + #[serde(default = "default_2288")] pub locked_by: String, } @@ -51368,7 +51588,7 @@ impl PolicyDecisionsInput { #[non_exhaustive] pub struct PolicyDeleteOutput { pub removed: bool, - #[serde(default = "default_2253")] + #[serde(default = "default_2289")] pub widening: bool, } @@ -51434,12 +51654,12 @@ pub struct PolicyRuleOut { pub condition: std::collections::HashMap, pub description: String, pub enabled: bool, - #[serde(default = "default_2254")] + #[serde(default = "default_2290")] pub mode: String, pub created_by: String, - #[serde(default = "default_2255")] + #[serde(default = "default_2291")] pub created_at: Option, - #[serde(default = "default_2256")] + #[serde(default = "default_2292")] pub updated_at: Option, } @@ -51511,9 +51731,9 @@ impl PolicyListInput { pub struct PolicySetOutput { pub rule: PolicyRuleOut, pub leaf_count: Integer, - #[serde(default = "default_2257")] + #[serde(default = "default_2293")] pub widening: bool, - #[serde(default = "default_2258")] + #[serde(default = "default_2294")] pub change: Vec, } @@ -51783,37 +52003,37 @@ pub struct ProcedureEvolveOutput { pub revision: Integer, pub changed: bool, pub template: bool, - #[serde(default = "default_2259")] + #[serde(default = "default_2295")] pub folded_runs: Integer, - #[serde(default = "default_2260")] + #[serde(default = "default_2296")] pub gate: ProcedureEvolveOutputGate, - #[serde(default = "default_2261")] + #[serde(default = "default_2297")] pub gate_mode: String, - #[serde(default = "default_2262")] + #[serde(default = "default_2298")] pub gate_llr: f64, - #[serde(default = "default_2263")] + #[serde(default = "default_2299")] pub gate_before: std::collections::HashMap, - #[serde(default = "default_2264")] + #[serde(default = "default_2300")] pub gate_after: std::collections::HashMap, - #[serde(default = "default_2265")] + #[serde(default = "default_2301")] pub gate_cost_before: std::collections::HashMap, - #[serde(default = "default_2266")] + #[serde(default = "default_2302")] pub gate_cost_after: std::collections::HashMap, - #[serde(default = "default_2267")] + #[serde(default = "default_2303")] pub gate_reason: String, - #[serde(default = "default_2268")] + #[serde(default = "default_2304")] pub dead_end_steps: Vec, - #[serde(default = "default_2269")] + #[serde(default = "default_2305")] pub fail_prone_steps: Vec, - #[serde(default = "default_2270")] + #[serde(default = "default_2306")] pub fail_prone_transitions: Vec, - #[serde(default = "default_2271")] + #[serde(default = "default_2307")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2272")] + #[serde(default = "default_2308")] pub strikes: Integer, - #[serde(default = "default_2273")] + #[serde(default = "default_2309")] pub quarantined: bool, - #[serde(default = "default_2274")] + #[serde(default = "default_2310")] pub retention: std::collections::HashMap, } @@ -52036,9 +52256,9 @@ pub struct ProcedureForkOutput { pub memory_key: String, pub version: Integer, pub name: String, - #[serde(default = "default_2275")] + #[serde(default = "default_2311")] pub steps: Vec, - #[serde(default = "default_2276")] + #[serde(default = "default_2312")] pub forked_from: std::collections::HashMap, } @@ -52298,32 +52518,32 @@ pub enum ProcedureLocateOutputStatus { #[non_exhaustive] pub struct ProcedureLocateOutput { pub memory_key: String, - #[serde(default = "default_2277")] + #[serde(default = "default_2313")] pub name: String, - #[serde(default = "default_2278")] + #[serde(default = "default_2314")] pub status: ProcedureLocateOutputStatus, pub matched: bool, - #[serde(default = "default_2279")] + #[serde(default = "default_2315")] pub active: Option>, - #[serde(default = "default_2280")] + #[serde(default = "default_2316")] pub hops: Vec>>, - #[serde(default = "default_2281")] + #[serde(default = "default_2317")] pub entry_nodes: Vec, - #[serde(default = "default_2282")] + #[serde(default = "default_2318")] pub dominant_next: Vec, - #[serde(default = "default_2283")] + #[serde(default = "default_2319")] pub revisits: std::collections::HashMap, - #[serde(default = "default_2284")] + #[serde(default = "default_2320")] pub looping: bool, - #[serde(default = "default_2285")] + #[serde(default = "default_2321")] pub exits: Vec, - #[serde(default = "default_2286")] + #[serde(default = "default_2322")] pub failure_notes: Vec>, - #[serde(default = "default_2287")] + #[serde(default = "default_2323")] pub rendered: String, - #[serde(default = "default_2288")] + #[serde(default = "default_2324")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2289")] + #[serde(default = "default_2325")] pub for_agent: std::collections::HashMap, } @@ -52478,43 +52698,43 @@ pub struct ProcedureMatch { pub name: String, pub situation: String, pub steps: Vec, - #[serde(default = "default_2290")] + #[serde(default = "default_2326")] pub tags: Vec, - #[serde(default = "default_2291")] + #[serde(default = "default_2327")] pub metadata: std::collections::HashMap, pub similarity: f64, pub memory_key: String, pub namespace: String, - #[serde(default = "default_2292")] + #[serde(default = "default_2328")] pub graph: Option>, - #[serde(default = "default_2293")] + #[serde(default = "default_2329")] pub template: bool, - #[serde(default = "default_2294")] + #[serde(default = "default_2330")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2295")] + #[serde(default = "default_2331")] pub status: ProcedureMatchStatus, - #[serde(default = "default_2296")] + #[serde(default = "default_2332")] pub quarantined: Option>, - #[serde(default = "default_2297")] + #[serde(default = "default_2333")] pub fail_prone_steps: Vec, - #[serde(default = "default_2298")] + #[serde(default = "default_2334")] pub revision: Integer, - #[serde(default = "default_2299")] + #[serde(default = "default_2335")] pub rejected_revisions: Vec>, - #[serde(default = "default_2300")] + #[serde(default = "default_2336")] pub tool_overlap: f64, - #[serde(default = "default_2301")] + #[serde(default = "default_2337")] pub score: f64, - #[serde(default = "default_2302")] + #[serde(default = "default_2338")] pub utility: f64, - #[serde(default = "default_2303")] + #[serde(default = "default_2339")] pub goal_similarity: Option, - #[serde(default = "default_2304")] + #[serde(default = "default_2340")] pub for_agent: std::collections::HashMap, - #[serde(default = "default_2305")] + #[serde(default = "default_2341")] pub run_stats_by_agent: std::collections::HashMap>, - #[serde(default = "default_2306")] + #[serde(default = "default_2342")] pub actor: String, } @@ -52522,11 +52742,11 @@ pub struct ProcedureMatch { #[non_exhaustive] pub struct ProcedureMatchOutput { pub matches: Vec, - #[serde(default = "default_2307")] + #[serde(default = "default_2343")] pub matched: Integer, - #[serde(default = "default_2308")] + #[serde(default = "default_2344")] pub procedure_key: String, - #[serde(default = "default_2309")] + #[serde(default = "default_2345")] pub score: f64, } @@ -52918,9 +53138,9 @@ pub struct ProcedureReviseOutput { pub revision: Integer, pub prior_revision: Integer, pub digest: String, - #[serde(default = "default_2310")] + #[serde(default = "default_2346")] pub steps: Vec, - #[serde(default = "default_2311")] + #[serde(default = "default_2347")] pub outcome: ProcedureReviseOutputOutcome, } @@ -53032,14 +53252,14 @@ pub struct ProfileActivityEntry { pub agent: String, pub last_activated_at: String, pub event_count: Integer, - #[serde(default = "default_2312")] + #[serde(default = "default_2348")] pub operations: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProfileActivityOutput { - #[serde(default = "default_2313")] + #[serde(default = "default_2349")] pub entries: Vec, } @@ -53147,17 +53367,17 @@ impl ProfileActivityInput { #[non_exhaustive] pub struct ProfileMutationOutput { pub version: Integer, - #[serde(default = "default_2314")] + #[serde(default = "default_2350")] pub memory_id: String, - #[serde(default = "default_2315")] + #[serde(default = "default_2351")] pub content_sha256: String, - #[serde(default = "default_2316")] + #[serde(default = "default_2352")] pub namespace: String, - #[serde(default = "default_2317")] + #[serde(default = "default_2353")] pub label: String, - #[serde(default = "default_2318")] + #[serde(default = "default_2354")] pub char_limit: Option, - #[serde(default = "default_2319")] + #[serde(default = "default_2355")] pub value_length: Integer, } @@ -53266,7 +53486,7 @@ pub struct ProfileRenderOutput { pub rendered: String, pub section_count: Integer, pub total_chars: Integer, - #[serde(default = "default_2320")] + #[serde(default = "default_2356")] pub labels: Vec, } @@ -53651,17 +53871,17 @@ pub enum ProfileStructuredOutputStatus { #[non_exhaustive] pub struct ProfileStructuredOutput { pub status: ProfileStructuredOutputStatus, - #[serde(default = "default_2321")] + #[serde(default = "default_2357")] pub profile: std::collections::HashMap, - #[serde(default = "default_2322")] + #[serde(default = "default_2358")] pub built_at: Option, - #[serde(default = "default_2323")] + #[serde(default = "default_2359")] pub memory_id: String, - #[serde(default = "default_2324")] + #[serde(default = "default_2360")] pub version: Integer, - #[serde(default = "default_2325")] + #[serde(default = "default_2361")] pub version_text: String, - #[serde(default = "default_2326")] + #[serde(default = "default_2362")] pub schema_sha256: String, } @@ -53778,13 +53998,13 @@ impl ProfileStructuredInput { #[non_exhaustive] pub struct ProfileSchemaOutput { pub found: bool, - #[serde(default = "default_2327")] + #[serde(default = "default_2363")] pub json_schema: std::collections::HashMap, - #[serde(default = "default_2328")] + #[serde(default = "default_2364")] pub schema_sha256: String, - #[serde(default = "default_2329")] + #[serde(default = "default_2365")] pub updated_by: String, - #[serde(default = "default_2330")] + #[serde(default = "default_2366")] pub updated_at: Option, } @@ -53937,10 +54157,10 @@ pub enum RunBeginOutputStatus { #[non_exhaustive] pub struct RunBeginOutput { pub run_id: String, - #[serde(default = "default_2331")] + #[serde(default = "default_2367")] pub status: RunBeginOutputStatus, pub started_at: String, - #[serde(default = "default_2332")] + #[serde(default = "default_2368")] pub next: String, } @@ -54148,31 +54368,31 @@ pub struct RunCompleteOutput { pub run_id: String, pub status: RunCompleteOutputStatus, pub duration_ms: Integer, - #[serde(default = "default_2333")] + #[serde(default = "default_2369")] pub used_applied: Integer, - #[serde(default = "default_2334")] + #[serde(default = "default_2370")] pub undelivered: Integer, - #[serde(default = "default_2335")] + #[serde(default = "default_2371")] pub evidence_applied: Integer, - #[serde(default = "default_2336")] + #[serde(default = "default_2372")] pub harm_applied: Integer, - #[serde(default = "default_2337")] + #[serde(default = "default_2373")] pub memories_written: Vec, - #[serde(default = "default_2338")] + #[serde(default = "default_2374")] pub recalled: Integer, - #[serde(default = "default_2339")] + #[serde(default = "default_2375")] pub observations: Integer, - #[serde(default = "default_2340")] + #[serde(default = "default_2376")] pub procedure_runs_recorded: Integer, - #[serde(default = "default_2341")] + #[serde(default = "default_2377")] pub reflection_key: String, - #[serde(default = "default_2342")] + #[serde(default = "default_2378")] pub retain: String, - #[serde(default = "default_2343")] + #[serde(default = "default_2379")] pub retained: Integer, - #[serde(default = "default_2344")] + #[serde(default = "default_2380")] pub demoted: Integer, - #[serde(default = "default_2345")] + #[serde(default = "default_2381")] pub expiring: Integer, } @@ -54713,25 +54933,25 @@ pub enum RunGetOutputOverBudgetItem { #[non_exhaustive] pub struct RunGetOutput { pub found: bool, - #[serde(default = "default_2346")] + #[serde(default = "default_2382")] pub run: Option, - #[serde(default = "default_2347")] + #[serde(default = "default_2383")] pub recalled: Integer, - #[serde(default = "default_2348")] + #[serde(default = "default_2384")] pub recalled_keys: Vec, - #[serde(default = "default_2349")] + #[serde(default = "default_2385")] pub memories_written: Vec, - #[serde(default = "default_2350")] + #[serde(default = "default_2386")] pub observations: Integer, - #[serde(default = "default_2351")] + #[serde(default = "default_2387")] pub turns: Integer, - #[serde(default = "default_2352")] + #[serde(default = "default_2388")] pub unpriced_turns: Integer, - #[serde(default = "default_2353")] + #[serde(default = "default_2389")] pub cost_usd: f64, - #[serde(default = "default_2354")] + #[serde(default = "default_2390")] pub elapsed_seconds: Integer, - #[serde(default = "default_2355")] + #[serde(default = "default_2391")] pub over_budget: Vec, } @@ -54798,17 +55018,17 @@ pub struct RunGradeProposal { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunGradeOutput { - #[serde(default = "default_2356")] + #[serde(default = "default_2392")] pub graded: Integer, - #[serde(default = "default_2357")] + #[serde(default = "default_2393")] pub run_ids: Vec, - #[serde(default = "default_2358")] + #[serde(default = "default_2394")] pub skipped_active: Integer, - #[serde(default = "default_2359")] + #[serde(default = "default_2395")] pub unchanged: Integer, - #[serde(default = "default_2360")] + #[serde(default = "default_2396")] pub memories_counted: Integer, - #[serde(default = "default_2361")] + #[serde(default = "default_2397")] pub proposals_decided: Vec, } @@ -54923,7 +55143,7 @@ impl RunGradeInput { #[non_exhaustive] pub struct RunListOutput { pub runs: Vec, - #[serde(default = "default_2362")] + #[serde(default = "default_2398")] pub total: Option, } @@ -55147,19 +55367,19 @@ impl RunListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunRetractCreditOutput { - #[serde(default = "default_2363")] + #[serde(default = "default_2399")] pub run_id: String, - #[serde(default = "default_2364")] + #[serde(default = "default_2400")] pub used_retracted: Integer, - #[serde(default = "default_2365")] + #[serde(default = "default_2401")] pub evidence_retracted: Integer, - #[serde(default = "default_2366")] + #[serde(default = "default_2402")] pub harm_retracted: Integer, - #[serde(default = "default_2367")] + #[serde(default = "default_2403")] pub events_written: Integer, - #[serde(default = "default_2368")] + #[serde(default = "default_2404")] pub more: bool, - #[serde(default = "default_2369")] + #[serde(default = "default_2405")] pub dry_run: bool, } @@ -55316,39 +55536,39 @@ pub struct LiveSearchHit { pub title: String, pub url: String, pub provider: LiveSearchHitProvider, - #[serde(default = "default_2372")] + #[serde(default = "default_2408")] pub content: String, - #[serde(default = "default_2373")] + #[serde(default = "default_2409")] pub live: LiveSearchHitLive, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct LiveSearchResults { - #[serde(default = "default_2371")] + #[serde(default = "default_2407")] pub live: LiveSearchResultsLive, - #[serde(default = "default_2374")] + #[serde(default = "default_2410")] pub results: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SearchOutput { - #[serde(default = "default_2370")] + #[serde(default = "default_2406")] pub tracker: Option>, - #[serde(default = "default_2375")] + #[serde(default = "default_2411")] pub live: Option, - #[serde(default = "default_2376")] + #[serde(default = "default_2412")] pub memory: std::collections::HashMap, - #[serde(default = "default_2377")] + #[serde(default = "default_2413")] pub knowledge: std::collections::HashMap, - #[serde(default = "default_2378")] + #[serde(default = "default_2414")] pub profile: std::collections::HashMap, - #[serde(default = "default_2379")] + #[serde(default = "default_2415")] pub conversations: std::collections::HashMap, - #[serde(default = "default_2380")] + #[serde(default = "default_2416")] pub withheld: Option>, - #[serde(default = "default_2381")] + #[serde(default = "default_2417")] pub namespaces_skipped: Vec, } @@ -55552,7 +55772,7 @@ impl SearchInput { pub struct SessionBriefDeleteOutput { pub deleted: bool, pub brief_key: String, - #[serde(default = "default_2382")] + #[serde(default = "default_2418")] pub revision: Integer, } @@ -55645,67 +55865,67 @@ impl SessionBriefDeleteInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDecision { - #[serde(default = "default_2391")] + #[serde(default = "default_2427")] pub what: String, - #[serde(default = "default_2392")] + #[serde(default = "default_2428")] pub why: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDeadEnd { - #[serde(default = "default_2394")] + #[serde(default = "default_2430")] pub tried: String, - #[serde(default = "default_2395")] + #[serde(default = "default_2431")] pub why_not: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDone { - #[serde(default = "default_2397")] + #[serde(default = "default_2433")] pub what: String, - #[serde(rename = "ref", default = "default_2398")] + #[serde(rename = "ref", default = "default_2434")] pub r#ref: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefFile { - #[serde(default = "default_2402")] + #[serde(default = "default_2438")] pub path: String, - #[serde(default = "default_2403")] + #[serde(default = "default_2439")] pub role: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefSections { - #[serde(default = "default_2388")] + #[serde(default = "default_2424")] pub goal: String, - #[serde(default = "default_2389")] + #[serde(default = "default_2425")] pub status: String, - #[serde(default = "default_2390")] + #[serde(default = "default_2426")] pub verification: String, - #[serde(default = "default_2393")] + #[serde(default = "default_2429")] pub decisions: Vec, - #[serde(default = "default_2396")] + #[serde(default = "default_2432")] pub dead_ends: Vec, - #[serde(default = "default_2399")] + #[serde(default = "default_2435")] pub done: Vec, - #[serde(default = "default_2400")] + #[serde(default = "default_2436")] pub open_questions: Vec, - #[serde(default = "default_2401")] + #[serde(default = "default_2437")] pub next_steps: Vec, - #[serde(default = "default_2404")] + #[serde(default = "default_2440")] pub files: Vec, - #[serde(default = "default_2405")] + #[serde(default = "default_2441")] pub constraints: Vec, - #[serde(default = "default_2406")] + #[serde(default = "default_2442")] pub pointers: Vec, - #[serde(default = "default_2407")] + #[serde(default = "default_2443")] pub client_summary: String, - #[serde(default = "default_2408")] + #[serde(default = "default_2444")] pub client_summary_at: String, } @@ -55713,45 +55933,45 @@ pub struct BriefSections { #[non_exhaustive] pub struct SessionBriefGetOutput { pub found: bool, - #[serde(default = "default_2383")] + #[serde(default = "default_2419")] pub brief_key: String, - #[serde(default = "default_2384")] + #[serde(default = "default_2420")] pub revision: Integer, - #[serde(default = "default_2385")] + #[serde(default = "default_2421")] pub snapshot_id: String, - #[serde(default = "default_2386")] + #[serde(default = "default_2422")] pub snapshot_key: String, - #[serde(default = "default_2387")] + #[serde(default = "default_2423")] pub rendered: String, - #[serde(default = "default_2409")] + #[serde(default = "default_2445")] pub sections: Option, - #[serde(default = "default_2410")] + #[serde(default = "default_2446")] pub project: String, - #[serde(default = "default_2411")] + #[serde(default = "default_2447")] pub branch: String, - #[serde(default = "default_2412")] + #[serde(default = "default_2448")] pub head_sha: String, - #[serde(default = "default_2413")] + #[serde(default = "default_2449")] pub author: String, - #[serde(default = "default_2414")] + #[serde(default = "default_2450")] pub trigger: String, - #[serde(default = "default_2415")] + #[serde(default = "default_2451")] pub actor: String, - #[serde(default = "default_2416")] + #[serde(default = "default_2452")] pub source_sessions: Vec, - #[serde(default = "default_2417")] + #[serde(default = "default_2453")] pub updated_at: Option, - #[serde(default = "default_2418")] + #[serde(default = "default_2454")] pub age_seconds: Integer, - #[serde(default = "default_2419")] + #[serde(default = "default_2455")] pub revisions: Integer, - #[serde(default = "default_2420")] + #[serde(default = "default_2456")] pub events_total: Integer, - #[serde(default = "default_2421")] + #[serde(default = "default_2457")] pub source_chars: Integer, - #[serde(default = "default_2422")] + #[serde(default = "default_2458")] pub brief_chars: Integer, - #[serde(default = "default_2423")] + #[serde(default = "default_2459")] pub deleted: bool, } @@ -55926,34 +56146,34 @@ impl SessionBriefGetInput { pub struct SessionBriefSummary { pub brief_key: String, pub revision: Integer, - #[serde(default = "default_2424")] + #[serde(default = "default_2460")] pub project: String, - #[serde(default = "default_2425")] + #[serde(default = "default_2461")] pub branch: String, - #[serde(default = "default_2426")] + #[serde(default = "default_2462")] pub agent: String, - #[serde(default = "default_2427")] + #[serde(default = "default_2463")] pub goal: String, - #[serde(default = "default_2428")] + #[serde(default = "default_2464")] pub status: String, - #[serde(default = "default_2429")] + #[serde(default = "default_2465")] pub author: String, - #[serde(default = "default_2430")] + #[serde(default = "default_2466")] pub actor: String, - #[serde(default = "default_2431")] + #[serde(default = "default_2467")] pub updated_at: Option, - #[serde(default = "default_2432")] + #[serde(default = "default_2468")] pub age_seconds: Integer, - #[serde(default = "default_2433")] + #[serde(default = "default_2469")] pub brief_chars: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefListOutput { - #[serde(default = "default_2434")] + #[serde(default = "default_2470")] pub briefs: Vec, - #[serde(default = "default_2435")] + #[serde(default = "default_2471")] pub rendered: String, } @@ -56093,25 +56313,25 @@ impl SessionBriefListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefStats { - #[serde(default = "default_2439")] + #[serde(default = "default_2475")] pub events_in: Integer, - #[serde(default = "default_2440")] + #[serde(default = "default_2476")] pub windows: Integer, - #[serde(default = "default_2441")] + #[serde(default = "default_2477")] pub events_total: Integer, - #[serde(default = "default_2442")] + #[serde(default = "default_2478")] pub source_chars: Integer, - #[serde(default = "default_2443")] + #[serde(default = "default_2479")] pub brief_chars: Integer, - #[serde(default = "default_2444")] + #[serde(default = "default_2480")] pub compression_ratio: f64, - #[serde(default = "default_2445")] + #[serde(default = "default_2481")] pub dropped_ungrounded: Integer, - #[serde(default = "default_2446")] + #[serde(default = "default_2482")] pub tokens_in: Integer, - #[serde(default = "default_2447")] + #[serde(default = "default_2483")] pub tokens_out: Integer, - #[serde(default = "default_2448")] + #[serde(default = "default_2484")] pub llm_model: String, } @@ -56121,13 +56341,13 @@ pub struct SessionBriefSaveOutput { pub brief_key: String, pub revision: Integer, pub changed: bool, - #[serde(default = "default_2436")] + #[serde(default = "default_2472")] pub author: String, - #[serde(default = "default_2437")] + #[serde(default = "default_2473")] pub reason: String, - #[serde(default = "default_2438")] + #[serde(default = "default_2474")] pub rendered: String, - #[serde(default = "default_2449")] + #[serde(default = "default_2485")] pub stats: SessionBriefStats, } @@ -56872,39 +57092,39 @@ pub struct TaskPayload { pub priority: Integer, pub disclosure: TaskPayloadDisclosure, pub status: TaskPayloadStatus, - #[serde(default = "default_2450")] + #[serde(default = "default_2486")] pub reason: String, - #[serde(default = "default_2451")] + #[serde(default = "default_2487")] pub blocked_on: String, - #[serde(default = "default_2452")] + #[serde(default = "default_2488")] pub not_before: Option, - #[serde(default = "default_2453")] + #[serde(default = "default_2489")] pub resume_at: Option, - #[serde(default = "default_2454")] + #[serde(default = "default_2490")] pub deadline: Option, - #[serde(default = "default_2455")] + #[serde(default = "default_2491")] pub defer_count: Integer, pub title: String, - #[serde(default = "default_2456")] + #[serde(default = "default_2492")] pub brief: std::collections::HashMap, pub from_agent: String, - #[serde(default = "default_2457")] + #[serde(default = "default_2493")] pub from_subject: String, - #[serde(default = "default_2458")] + #[serde(default = "default_2494")] pub origin: String, - #[serde(default = "default_2459")] + #[serde(default = "default_2495")] pub parent_task_id: Option, - #[serde(default = "default_2460")] + #[serde(default = "default_2496")] pub owner: String, - #[serde(default = "default_2461")] + #[serde(default = "default_2497")] pub attempt: Integer, - #[serde(default = "default_2462")] + #[serde(default = "default_2498")] pub fence: Integer, - #[serde(default = "default_2463")] + #[serde(default = "default_2499")] pub lease_until: Option, - #[serde(default = "default_2464")] + #[serde(default = "default_2500")] pub outcome: std::collections::HashMap, - #[serde(default = "default_2465")] + #[serde(default = "default_2501")] pub last_actor: String, pub created_at: String, pub updated_at: String, @@ -56915,7 +57135,7 @@ pub struct TaskPayload { #[non_exhaustive] pub struct TaskOutput { pub task: TaskPayload, - #[serde(default = "default_2466")] + #[serde(default = "default_2502")] pub seq: Integer, } @@ -57316,10 +57536,10 @@ impl TaskCompleteInput { pub struct InboxCount { pub inbox: String, pub status: String, - #[serde(default = "default_2467")] + #[serde(default = "default_2503")] pub blocked_on: String, pub n: Integer, - #[serde(default = "default_2468")] + #[serde(default = "default_2504")] pub oldest: Option, } @@ -57406,7 +57626,7 @@ pub struct TaskCreateOutput { pub task: TaskPayload, pub created: bool, pub seq: Integer, - #[serde(default = "default_2469")] + #[serde(default = "default_2505")] pub next: String, } @@ -57745,7 +57965,7 @@ impl TaskFailInput { #[non_exhaustive] pub struct TaskGetOutput { pub found: bool, - #[serde(default = "default_2470")] + #[serde(default = "default_2506")] pub task: Option, } @@ -57879,23 +58099,23 @@ pub struct TaskEventPayload { pub task_id: String, pub inbox: String, pub event: String, - #[serde(default = "default_2471")] + #[serde(default = "default_2507")] pub from_status: String, - #[serde(default = "default_2472")] + #[serde(default = "default_2508")] pub to_status: String, - #[serde(default = "default_2473")] + #[serde(default = "default_2509")] pub actor: String, - #[serde(default = "default_2474")] + #[serde(default = "default_2510")] pub agent: String, - #[serde(default = "default_2475")] + #[serde(default = "default_2511")] pub fence: Integer, - #[serde(default = "default_2476")] + #[serde(default = "default_2512")] pub version: Integer, - #[serde(default = "default_2477")] + #[serde(default = "default_2513")] pub reason: String, - #[serde(default = "default_2478")] + #[serde(default = "default_2514")] pub patch: std::collections::HashMap, - #[serde(default = "default_2479")] + #[serde(default = "default_2515")] pub note: String, pub ts: String, } @@ -58235,7 +58455,7 @@ pub struct TaskPullOutput { pub tasks: Vec, pub waited_ms: Integer, pub backend: String, - #[serde(default = "default_2480")] + #[serde(default = "default_2516")] pub note: String, } @@ -58631,7 +58851,7 @@ impl TaskUnblockInput { pub struct TaskUpdateOutput { pub task: TaskPayload, pub seq: Integer, - #[serde(default = "default_2481")] + #[serde(default = "default_2517")] pub conflict: bool, } @@ -58994,19 +59214,19 @@ impl TaskReasonInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerAnswerOutput { - #[serde(default = "default_2482")] + #[serde(default = "default_2518")] pub intent: String, - #[serde(default = "default_2483")] + #[serde(default = "default_2519")] pub anchors: std::collections::HashMap, - #[serde(default = "default_2484")] + #[serde(default = "default_2520")] pub sections: Vec>, - #[serde(default = "default_2485")] + #[serde(default = "default_2521")] pub searched: Vec, - #[serde(default = "default_2486")] + #[serde(default = "default_2522")] pub lines: Vec, - #[serde(default = "default_2487")] + #[serde(default = "default_2523")] pub restricted: bool, - #[serde(default = "default_2488")] + #[serde(default = "default_2524")] pub verdict: String, } @@ -59102,17 +59322,17 @@ impl TrackerAnswerInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerBindingOutput { - #[serde(default = "default_2489")] + #[serde(default = "default_2525")] pub tracker_namespace: String, - #[serde(default = "default_2490")] + #[serde(default = "default_2526")] pub tracker_namespaces: Vec, - #[serde(default = "default_2491")] + #[serde(default = "default_2527")] pub restricted: bool, - #[serde(default = "default_2492")] + #[serde(default = "default_2528")] pub kind: String, - #[serde(default = "default_2493")] + #[serde(default = "default_2529")] pub authorized: bool, - #[serde(default = "default_2494")] + #[serde(default = "default_2530")] pub templates: Vec, } @@ -59165,13 +59385,13 @@ impl TrackerBindingInput { #[non_exhaustive] pub struct TrackerComponentOutput { pub component: String, - #[serde(default = "default_2495")] + #[serde(default = "default_2531")] pub risk: std::collections::HashMap, - #[serde(default = "default_2496")] + #[serde(default = "default_2532")] pub open_issues: Vec>, - #[serde(default = "default_2497")] + #[serde(default = "default_2533")] pub known: bool, - #[serde(default = "default_2498")] + #[serde(default = "default_2534")] pub tracker_unavailable: bool, } @@ -59232,9 +59452,9 @@ impl TrackerComponentInput { #[non_exhaustive] pub struct TrackerContractOutput { pub database: String, - #[serde(default = "default_2499")] + #[serde(default = "default_2535")] pub tables: Vec>, - #[serde(default = "default_2500")] + #[serde(default = "default_2536")] pub templates: std::collections::HashMap, } @@ -59287,66 +59507,66 @@ impl TrackerContractInput { #[non_exhaustive] pub struct TrackerLegStatus { pub name: String, - #[serde(default = "default_2511")] + #[serde(default = "default_2547")] pub status: String, - #[serde(default = "default_2512")] + #[serde(default = "default_2548")] pub reason: String, - #[serde(default = "default_2513")] + #[serde(default = "default_2549")] pub message: String, - #[serde(default = "default_2514")] + #[serde(default = "default_2550")] pub retried: bool, - #[serde(default = "default_2515")] + #[serde(default = "default_2551")] pub ms: Integer, - #[serde(default = "default_2516")] + #[serde(default = "default_2552")] pub cause: String, - #[serde(default = "default_2517")] + #[serde(default = "default_2553")] pub namespace: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerDuplicateCheckOutput { - #[serde(default = "default_2501")] + #[serde(default = "default_2537")] pub verdict: String, - #[serde(default = "default_2502")] + #[serde(default = "default_2538")] pub items: Vec>, - #[serde(default = "default_2503")] + #[serde(default = "default_2539")] pub undecided: bool, - #[serde(default = "default_2504")] + #[serde(default = "default_2540")] pub epistemic: String, - #[serde(default = "default_2505")] + #[serde(default = "default_2541")] pub thresholds: std::collections::HashMap, - #[serde(default = "default_2506")] + #[serde(default = "default_2542")] pub judge: std::collections::HashMap, - #[serde(default = "default_2507")] + #[serde(default = "default_2543")] pub fit_at: String, - #[serde(default = "default_2508")] + #[serde(default = "default_2544")] pub fit: std::collections::HashMap, - #[serde(default = "default_2509")] + #[serde(default = "default_2545")] pub query: std::collections::HashMap, - #[serde(default = "default_2510")] + #[serde(default = "default_2546")] pub legs: std::collections::HashMap, - #[serde(default = "default_2518")] + #[serde(default = "default_2554")] pub leg_status: Vec, - #[serde(default = "default_2519")] + #[serde(default = "default_2555")] pub tracker_unavailable: bool, - #[serde(default = "default_2520")] + #[serde(default = "default_2556")] pub namespaces: Vec, - #[serde(default = "default_2521")] + #[serde(default = "default_2557")] pub by_namespace: std::collections::HashMap>, - #[serde(default = "default_2522")] + #[serde(default = "default_2558")] pub closest: Vec>, - #[serde(default = "default_2523")] + #[serde(default = "default_2559")] pub needs: Vec>, - #[serde(default = "default_2524")] + #[serde(default = "default_2560")] pub closest_note: String, - #[serde(default = "default_2525")] + #[serde(default = "default_2561")] pub nearest: Vec>, - #[serde(default = "default_2526")] + #[serde(default = "default_2562")] pub rerank: std::collections::HashMap, - #[serde(default = "default_2527")] + #[serde(default = "default_2563")] pub answer: String, - #[serde(default = "default_2528")] + #[serde(default = "default_2564")] pub related_prs: Vec>, } @@ -59553,17 +59773,17 @@ impl TrackerDuplicateCheckInput { #[non_exhaustive] pub struct TrackerFlakyOutput { pub test_name: String, - #[serde(default = "default_2529")] + #[serde(default = "default_2565")] pub known_flaky: bool, - #[serde(default = "default_2530")] + #[serde(default = "default_2566")] pub open_issues: Integer, - #[serde(default = "default_2531")] + #[serde(default = "default_2567")] pub issues: Vec>, - #[serde(default = "default_2532")] + #[serde(default = "default_2568")] pub verdict: String, - #[serde(default = "default_2533")] + #[serde(default = "default_2569")] pub tracker_unavailable: bool, - #[serde(default = "default_2534")] + #[serde(default = "default_2570")] pub signal: Option>, } @@ -59646,9 +59866,9 @@ impl TrackerFlakyInput { #[non_exhaustive] pub struct TrackerItemOutput { pub items: Vec>, - #[serde(default = "default_2535")] + #[serde(default = "default_2571")] pub unknown: Vec, - #[serde(default = "default_2536")] + #[serde(default = "default_2572")] pub tracker_unavailable: bool, } @@ -59697,19 +59917,19 @@ impl TrackerItemInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerLinksOutput { - #[serde(default = "default_2537")] + #[serde(default = "default_2573")] pub subject: std::collections::HashMap, - #[serde(default = "default_2538")] + #[serde(default = "default_2574")] pub verdict: String, - #[serde(default = "default_2539")] + #[serde(default = "default_2575")] pub items: Vec>, - #[serde(default = "default_2540")] + #[serde(default = "default_2576")] pub epistemic: String, - #[serde(default = "default_2541")] + #[serde(default = "default_2577")] pub record: std::collections::HashMap, - #[serde(default = "default_2542")] + #[serde(default = "default_2578")] pub computed_at: String, - #[serde(default = "default_2543")] + #[serde(default = "default_2579")] pub tracker_unavailable: bool, } @@ -59807,11 +60027,11 @@ impl TrackerLinksInput { pub struct TrackerReleaseOutput { pub version: String, pub blockers: Vec>, - #[serde(default = "default_2544")] + #[serde(default = "default_2580")] pub active_blockers: Integer, - #[serde(default = "default_2545")] + #[serde(default = "default_2581")] pub health: std::collections::HashMap, - #[serde(default = "default_2546")] + #[serde(default = "default_2582")] pub tracker_unavailable: bool, } @@ -59860,17 +60080,17 @@ impl TrackerReleaseInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSimilarOutput { - #[serde(default = "default_2547")] + #[serde(default = "default_2583")] pub items: Vec>, - #[serde(default = "default_2548")] + #[serde(default = "default_2584")] pub query: std::collections::HashMap, - #[serde(default = "default_2549")] + #[serde(default = "default_2585")] pub legs: std::collections::HashMap, - #[serde(default = "default_2550")] + #[serde(default = "default_2586")] pub epistemic: String, - #[serde(default = "default_2551")] + #[serde(default = "default_2587")] pub tracker_unavailable: bool, - #[serde(default = "default_2552")] + #[serde(default = "default_2588")] pub namespaces: Vec, } @@ -59991,19 +60211,19 @@ pub struct TrackerSourceAddOutput { pub name: String, pub host: String, pub database: String, - #[serde(default = "default_2553")] + #[serde(default = "default_2589")] pub namespaces: Vec>, - #[serde(default = "default_2554")] + #[serde(default = "default_2590")] pub contract: std::collections::HashMap, - #[serde(default = "default_2555")] + #[serde(default = "default_2591")] pub roles: Vec, - #[serde(default = "default_2556")] + #[serde(default = "default_2592")] pub my_role: String, - #[serde(default = "default_2557")] + #[serde(default = "default_2593")] pub dry_run: bool, - #[serde(default = "default_2558")] + #[serde(default = "default_2594")] pub written: bool, - #[serde(default = "default_2559")] + #[serde(default = "default_2595")] pub view_templates: std::collections::HashMap, } @@ -60166,13 +60386,13 @@ impl TrackerSourceAddInput { #[non_exhaustive] pub struct TrackerSourceCheckOutput { pub name: String, - #[serde(default = "default_2560")] + #[serde(default = "default_2596")] pub database: String, - #[serde(default = "default_2561")] + #[serde(default = "default_2597")] pub reachable: bool, - #[serde(default = "default_2562")] + #[serde(default = "default_2598")] pub contract: std::collections::HashMap, - #[serde(default = "default_2563")] + #[serde(default = "default_2599")] pub view_templates: std::collections::HashMap, } @@ -60212,11 +60432,11 @@ impl TrackerSourceCheckInput { pub struct TrackerSourceInspectOutput { pub host: String, pub database: String, - #[serde(default = "default_2564")] + #[serde(default = "default_2600")] pub tables: Vec>, - #[serde(default = "default_2565")] + #[serde(default = "default_2601")] pub roles: Vec, - #[serde(default = "default_2566")] + #[serde(default = "default_2602")] pub proposal: std::collections::HashMap, } @@ -60345,9 +60565,9 @@ impl TrackerSourceInspectInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSourceListOutput { - #[serde(default = "default_2567")] + #[serde(default = "default_2603")] pub sources: Vec>, - #[serde(default = "default_2568")] + #[serde(default = "default_2604")] pub self_service: bool, } @@ -60400,9 +60620,9 @@ impl TrackerSourceListInput { #[non_exhaustive] pub struct TrackerSourceRemoveOutput { pub name: String, - #[serde(default = "default_2569")] + #[serde(default = "default_2605")] pub deactivated: bool, - #[serde(default = "default_2570")] + #[serde(default = "default_2606")] pub namespaces_retired: Vec, } @@ -60443,9 +60663,9 @@ impl TrackerSourceRemoveInput { #[non_exhaustive] pub struct TrackerSourceRotateOutput { pub name: String, - #[serde(default = "default_2571")] + #[serde(default = "default_2607")] pub contract: std::collections::HashMap, - #[serde(default = "default_2572")] + #[serde(default = "default_2608")] pub rotated_at: String, } @@ -60492,11 +60712,11 @@ impl TrackerSourceRotateInput { #[non_exhaustive] pub struct TrackerSourceSetMappingOutput { pub name: String, - #[serde(default = "default_2573")] + #[serde(default = "default_2609")] pub contract: std::collections::HashMap, - #[serde(default = "default_2574")] + #[serde(default = "default_2610")] pub dry_run: bool, - #[serde(default = "default_2575")] + #[serde(default = "default_2611")] pub written: bool, } @@ -60563,45 +60783,45 @@ impl TrackerSourceSetMappingInput { #[non_exhaustive] pub struct TrackerTestSignalOutput { pub test_name: String, - #[serde(default = "default_2576")] + #[serde(default = "default_2612")] pub verdict: String, - #[serde(default = "default_2577")] + #[serde(default = "default_2613")] pub why: Vec, - #[serde(default = "default_2578")] + #[serde(default = "default_2614")] pub lower_bound: f64, - #[serde(default = "default_2579")] + #[serde(default = "default_2615")] pub window_days: Integer, - #[serde(default = "default_2580")] + #[serde(default = "default_2616")] pub since: String, - #[serde(default = "default_2581")] + #[serde(default = "default_2617")] pub features: std::collections::HashMap, - #[serde(default = "default_2582")] + #[serde(default = "default_2618")] pub infra: std::collections::HashMap, - #[serde(default = "default_2583")] + #[serde(default = "default_2619")] pub churn: std::collections::HashMap, - #[serde(default = "default_2584")] + #[serde(default = "default_2620")] pub thresholds: std::collections::HashMap, - #[serde(default = "default_2585")] + #[serde(default = "default_2621")] pub source: String, - #[serde(default = "default_2586")] + #[serde(default = "default_2622")] pub timings_ms: std::collections::HashMap, - #[serde(default = "default_2587")] + #[serde(default = "default_2623")] pub tracker_unavailable: bool, - #[serde(default = "default_2588")] + #[serde(default = "default_2624")] pub rollup: std::collections::HashMap, - #[serde(default = "default_2589")] + #[serde(default = "default_2625")] pub streak: std::collections::HashMap, - #[serde(default = "default_2590")] + #[serde(default = "default_2626")] pub smells: std::collections::HashMap, - #[serde(default = "default_2591")] + #[serde(default = "default_2627")] pub prior: std::collections::HashMap, - #[serde(default = "default_2592")] + #[serde(default = "default_2628")] pub unavailable_reason: String, - #[serde(default = "default_2593")] + #[serde(default = "default_2629")] pub candidates: Vec>, - #[serde(default = "default_2594")] + #[serde(default = "default_2630")] pub candidate_matches: Integer, - #[serde(default = "default_2595")] + #[serde(default = "default_2631")] pub resolved_from: String, } @@ -60705,9 +60925,9 @@ impl TrackerTestSignalInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct UiVitalsOutput { - #[serde(default = "default_2596")] + #[serde(default = "default_2632")] pub recorded: bool, - #[serde(default = "default_2597")] + #[serde(default = "default_2633")] pub route: String, } @@ -60891,7 +61111,7 @@ pub struct WebhookDelivery { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookDeliveriesOutput { - #[serde(default = "default_2598")] + #[serde(default = "default_2634")] pub deliveries: Vec, } @@ -61013,14 +61233,14 @@ pub struct WebhookInfo { pub secret_ref: String, pub events: Vec, pub created_at: String, - #[serde(default = "default_2599")] + #[serde(default = "default_2635")] pub secret_present: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookListOutput { - #[serde(default = "default_2600")] + #[serde(default = "default_2636")] pub webhooks: Vec, } @@ -61202,7 +61422,7 @@ pub struct WorkingMemoryMutationOutput { pub version: Integer, pub char_limit: Integer, pub value_length: Integer, - #[serde(default = "default_2601")] + #[serde(default = "default_2637")] pub fill_ratio: f64, } @@ -61426,15 +61646,15 @@ impl WorkingMemoryDeleteInput { pub struct WorkingMemoryGetOutput { pub found: bool, pub block_key: String, - #[serde(default = "default_2602")] + #[serde(default = "default_2638")] pub content: String, - #[serde(default = "default_2603")] + #[serde(default = "default_2639")] pub char_limit: Integer, - #[serde(default = "default_2604")] + #[serde(default = "default_2640")] pub version: Integer, - #[serde(default = "default_2605")] + #[serde(default = "default_2641")] pub updated_at: Option, - #[serde(default = "default_2606")] + #[serde(default = "default_2642")] pub fill_ratio: f64, } @@ -61545,7 +61765,7 @@ pub struct WorkingMemoryBlock { pub content: String, pub char_limit: Integer, pub version: Integer, - #[serde(default = "default_2607")] + #[serde(default = "default_2643")] pub updated_at: Option, } @@ -61553,7 +61773,7 @@ pub struct WorkingMemoryBlock { #[non_exhaustive] pub struct WorkingMemoryRenderOutput { pub rendered: String, - #[serde(default = "default_2608")] + #[serde(default = "default_2644")] pub blocks: Vec, pub block_count: Integer, pub total_chars: Integer, @@ -62871,6895 +63091,7003 @@ fn default_315() -> bool { fn default_316() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_317() -> Vec> { +fn default_317() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_318() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_319() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_320() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_321() -> String { + serde_json::from_str("\"unknown\"").expect("schema default") +} +fn default_322() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_323() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_324() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_325() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_326() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_327() -> bool { + serde_json::from_str("true").expect("schema default") +} +fn default_328() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_329() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_330() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_331() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_332() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_333() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_334() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_318() -> Integer { +fn default_335() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_319() -> String { +fn default_336() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_337() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_320() -> String { +fn default_338() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_339() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_340() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_321() -> bool { +fn default_341() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_342() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_343() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_344() -> bool { + serde_json::from_str("true").expect("schema default") +} +fn default_345() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_322() -> String { +fn default_346() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_323() -> Integer { +fn default_347() -> Vec> { + serde_json::from_str("[]").expect("schema default") +} +fn default_348() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_324() -> String { +fn default_349() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_350() -> Vec> { + serde_json::from_str("[]").expect("schema default") +} +fn default_351() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") +} +fn default_352() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") +} +fn default_353() -> Vec> { + serde_json::from_str("[]").expect("schema default") +} +fn default_354() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_355() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_325() -> String { +fn default_356() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_357() -> bool { + serde_json::from_str("false").expect("schema default") +} +fn default_358() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_359() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_360() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_326() -> bool { +fn default_361() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_362() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_327() -> Vec { +fn default_363() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_328() -> Vec> { +fn default_364() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_329() -> String { +fn default_365() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_330() -> bool { +fn default_366() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_331() -> bool { +fn default_367() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_332() -> Integer { +fn default_368() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_333() -> Integer { +fn default_369() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_334() -> String { +fn default_370() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_335() -> Vec { +fn default_371() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_336() -> std::collections::HashMap { +fn default_372() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_337() -> String { +fn default_373() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_338() -> Integer { +fn default_374() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_339() -> Integer { +fn default_375() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_340() -> bool { +fn default_376() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_341() -> bool { +fn default_377() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_342() -> std::collections::HashMap { +fn default_378() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_343() -> String { +fn default_379() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_344() -> String { +fn default_380() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_345() -> Integer { +fn default_381() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_346() -> Vec { +fn default_382() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_347() -> String { +fn default_383() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_348() -> Option { +fn default_384() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_349() -> String { +fn default_385() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_350() -> Vec> { +fn default_386() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_351() -> Integer { +fn default_387() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_352() -> bool { +fn default_388() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_353() -> String { +fn default_389() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_354() -> String { +fn default_390() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_355() -> String { +fn default_391() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_356() -> Integer { +fn default_392() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_357() -> String { +fn default_393() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_358() -> String { +fn default_394() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_359() -> String { +fn default_395() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_360() -> String { +fn default_396() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_361() -> Integer { +fn default_397() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_362() -> Integer { +fn default_398() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_363() -> String { +fn default_399() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_364() -> String { +fn default_400() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_365() -> Vec { +fn default_401() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_366() -> String { +fn default_402() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_367() -> String { +fn default_403() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_368() -> String { +fn default_404() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_369() -> String { +fn default_405() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_370() -> String { +fn default_406() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_371() -> Integer { +fn default_407() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_372() -> Integer { +fn default_408() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_373() -> Integer { +fn default_409() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_374() -> bool { +fn default_410() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_375() -> Vec> { +fn default_411() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_376() -> std::collections::HashMap { +fn default_412() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_377() -> std::collections::HashMap { +fn default_413() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_378() -> Vec { +fn default_414() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_379() -> String { +fn default_415() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_380() -> String { +fn default_416() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_381() -> Integer { +fn default_417() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_382() -> Integer { +fn default_418() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_383() -> String { +fn default_419() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_384() -> String { +fn default_420() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_385() -> Integer { +fn default_421() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_386() -> Integer { +fn default_422() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_387() -> Integer { +fn default_423() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_388() -> String { +fn default_424() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_389() -> Integer { +fn default_425() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_390() -> String { +fn default_426() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_391() -> Integer { +fn default_427() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_392() -> String { +fn default_428() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_393() -> Integer { +fn default_429() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_394() -> String { +fn default_430() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_395() -> Integer { +fn default_431() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_396() -> Integer { +fn default_432() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_397() -> f64 { +fn default_433() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_398() -> Integer { +fn default_434() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_399() -> Integer { +fn default_435() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_400() -> f64 { +fn default_436() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_401() -> Integer { +fn default_437() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_402() -> Integer { +fn default_438() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_403() -> f64 { +fn default_439() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_404() -> Option { +fn default_440() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_405() -> String { +fn default_441() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_406() -> String { +fn default_442() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_407() -> String { +fn default_443() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_408() -> bool { +fn default_444() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_409() -> String { +fn default_445() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_410() -> String { +fn default_446() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_411() -> String { +fn default_447() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_412() -> bool { +fn default_448() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_413() -> bool { +fn default_449() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_414() -> Option { +fn default_450() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_415() -> String { +fn default_451() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_416() -> bool { +fn default_452() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_417() -> Option { +fn default_453() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_418() -> String { +fn default_454() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_419() -> String { +fn default_455() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_420() -> String { +fn default_456() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_421() -> String { +fn default_457() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_422() -> Option { +fn default_458() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_423() -> Integer { +fn default_459() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_424() -> Vec { +fn default_460() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_425() -> bool { +fn default_461() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_426() -> Vec { +fn default_462() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_427() -> Integer { +fn default_463() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_428() -> Vec { +fn default_464() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_429() -> Integer { +fn default_465() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_430() -> bool { +fn default_466() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_431() -> Vec { +fn default_467() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_432() -> Option { +fn default_468() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_433() -> String { +fn default_469() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_434() -> String { +fn default_470() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_435() -> String { +fn default_471() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_436() -> Vec> { +fn default_472() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_437() -> Integer { +fn default_473() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_438() -> Vec { +fn default_474() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_439() -> String { +fn default_475() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_440() -> String { +fn default_476() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_441() -> std::collections::HashMap { +fn default_477() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_442() -> String { +fn default_478() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_443() -> std::collections::HashMap { +fn default_479() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_444() -> std::collections::HashMap { +fn default_480() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_445() -> String { +fn default_481() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_446() -> Vec> { +fn default_482() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_447() -> String { +fn default_483() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_448() -> Integer { +fn default_484() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_449() -> Integer { +fn default_485() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_450() -> String { +fn default_486() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_451() -> String { +fn default_487() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_452() -> String { +fn default_488() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_453() -> String { +fn default_489() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_454() -> bool { +fn default_490() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_455() -> String { +fn default_491() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_456() -> String { +fn default_492() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_457() -> String { +fn default_493() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_458() -> f64 { +fn default_494() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_459() -> Vec> { +fn default_495() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_460() -> Vec> { +fn default_496() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_461() -> Vec> { +fn default_497() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_462() -> String { +fn default_498() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_463() -> Vec> { +fn default_499() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_464() -> bool { +fn default_500() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_465() -> Integer { +fn default_501() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_466() -> Integer { +fn default_502() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_467() -> bool { +fn default_503() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_468() -> Vec> { +fn default_504() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_469() -> String { +fn default_505() -> String { serde_json::from_str("\"unit\"").expect("schema default") } -fn default_470() -> String { +fn default_506() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_471() -> Vec> { +fn default_507() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_472() -> Integer { +fn default_508() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_473() -> String { +fn default_509() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_474() -> Integer { +fn default_510() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_475() -> Integer { +fn default_511() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_476() -> String { +fn default_512() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_477() -> Integer { +fn default_513() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_478() -> bool { +fn default_514() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_479() -> std::collections::HashMap>> +fn default_515() -> std::collections::HashMap>> { serde_json::from_str("{}").expect("schema default") } -fn default_480() -> Vec> { +fn default_516() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_481() -> Integer { +fn default_517() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_482() -> String { +fn default_518() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_483() -> Option { +fn default_519() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_484() -> bool { +fn default_520() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_485() -> String { +fn default_521() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_486() -> Integer { +fn default_522() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_487() -> String { +fn default_523() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_488() -> String { +fn default_524() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_489() -> Vec> { +fn default_525() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_490() -> Vec> { +fn default_526() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_491() -> Integer { +fn default_527() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_492() -> Integer { +fn default_528() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_493() -> Vec> { +fn default_529() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_494() -> std::collections::HashMap> { +fn default_530() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_495() -> Vec { +fn default_531() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_496() -> Vec> { +fn default_532() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_497() -> String { +fn default_533() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_498() -> Vec> { +fn default_534() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_499() -> std::collections::HashMap>> +fn default_535() -> std::collections::HashMap>> { serde_json::from_str("{}").expect("schema default") } -fn default_500() -> Vec> { +fn default_536() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_501() -> String { +fn default_537() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_502() -> String { +fn default_538() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_503() -> Vec { +fn default_539() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_504() -> Option> { +fn default_540() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_505() -> Vec> { +fn default_541() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_506() -> Integer { +fn default_542() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_507() -> std::collections::HashMap { +fn default_543() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_508() -> Integer { +fn default_544() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_509() -> Integer { +fn default_545() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_510() -> Integer { +fn default_546() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_511() -> Vec> { +fn default_547() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_512() -> Integer { +fn default_548() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_513() -> bool { +fn default_549() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_514() -> Integer { +fn default_550() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_515() -> String { +fn default_551() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_516() -> Vec> { +fn default_552() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_517() -> Integer { +fn default_553() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_518() -> bool { +fn default_554() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_519() -> std::collections::HashMap { +fn default_555() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_520() -> bool { +fn default_556() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_521() -> String { +fn default_557() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_522() -> String { +fn default_558() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_523() -> String { +fn default_559() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_524() -> Vec { +fn default_560() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_525() -> String { +fn default_561() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_526() -> String { +fn default_562() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_527() -> Integer { +fn default_563() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_528() -> String { +fn default_564() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_529() -> String { +fn default_565() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_530() -> bool { +fn default_566() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_531() -> bool { +fn default_567() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_532() -> std::collections::HashMap { +fn default_568() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_533() -> Option { +fn default_569() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_534() -> Integer { +fn default_570() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_535() -> Integer { +fn default_571() -> Integer { serde_json::from_str("72").expect("schema default") } -fn default_536() -> Integer { +fn default_572() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_537() -> Integer { +fn default_573() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_538() -> Vec> { +fn default_574() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_539() -> Vec { +fn default_575() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_540() -> Vec { +fn default_576() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_541() -> String { +fn default_577() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_542() -> String { +fn default_578() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_543() -> String { +fn default_579() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_544() -> bool { +fn default_580() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_545() -> String { +fn default_581() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_546() -> Vec> { +fn default_582() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_547() -> Integer { +fn default_583() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_548() -> Vec> { +fn default_584() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_549() -> Vec> { +fn default_585() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_550() -> bool { +fn default_586() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_551() -> Vec> { +fn default_587() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_552() -> bool { +fn default_588() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_553() -> String { +fn default_589() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_554() -> bool { +fn default_590() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_555() -> Vec { +fn default_591() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_556() -> Option { +fn default_592() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_557() -> Vec> { +fn default_593() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_558() -> bool { +fn default_594() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_559() -> Vec> { +fn default_595() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_560() -> bool { +fn default_596() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_561() -> String { +fn default_597() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_562() -> String { +fn default_598() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_563() -> bool { +fn default_599() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_564() -> Vec> { +fn default_600() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_565() -> Integer { +fn default_601() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_566() -> bool { +fn default_602() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_567() -> bool { +fn default_603() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_568() -> std::collections::HashMap { +fn default_604() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_569() -> bool { +fn default_605() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_570() -> Vec> { +fn default_606() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_571() -> Integer { +fn default_607() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_572() -> bool { +fn default_608() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_573() -> Integer { +fn default_609() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_574() -> String { +fn default_610() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_575() -> String { +fn default_611() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_576() -> String { +fn default_612() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_577() -> String { +fn default_613() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_578() -> f64 { +fn default_614() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_579() -> Vec> { +fn default_615() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_580() -> std::collections::HashMap> { +fn default_616() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_581() -> String { +fn default_617() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_582() -> bool { +fn default_618() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_583() -> String { +fn default_619() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_584() -> CodeGrepOutputFallback { +fn default_620() -> CodeGrepOutputFallback { serde_json::from_str("\"\"").expect("schema default") } -fn default_585() -> Vec> { +fn default_621() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_586() -> String { +fn default_622() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_587() -> Vec> { +fn default_623() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_588() -> Integer { +fn default_624() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_589() -> f64 { +fn default_625() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_590() -> Vec> { +fn default_626() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_591() -> Vec> { +fn default_627() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_592() -> Vec> { +fn default_628() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_593() -> Vec> { +fn default_629() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_594() -> bool { +fn default_630() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_595() -> Integer { +fn default_631() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_596() -> Integer { +fn default_632() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_597() -> String { +fn default_633() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_598() -> Vec { +fn default_634() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_599() -> std::collections::HashMap { +fn default_635() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_600() -> bool { +fn default_636() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_601() -> String { +fn default_637() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_602() -> String { +fn default_638() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_603() -> Vec> { +fn default_639() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_604() -> bool { +fn default_640() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_605() -> String { +fn default_641() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_606() -> Integer { +fn default_642() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_607() -> String { +fn default_643() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_608() -> String { +fn default_644() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_609() -> String { +fn default_645() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_610() -> String { +fn default_646() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_611() -> String { +fn default_647() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_612() -> Integer { +fn default_648() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_613() -> String { +fn default_649() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_614() -> String { +fn default_650() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_615() -> String { +fn default_651() -> String { serde_json::from_str("\"generic\"").expect("schema default") } -fn default_616() -> Vec { +fn default_652() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_617() -> Vec { +fn default_653() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_618() -> String { +fn default_654() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_619() -> String { +fn default_655() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_620() -> String { +fn default_656() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_621() -> String { +fn default_657() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_622() -> String { +fn default_658() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_623() -> Integer { +fn default_659() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_624() -> String { +fn default_660() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_625() -> bool { +fn default_661() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_626() -> Vec { +fn default_662() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_627() -> String { +fn default_663() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_628() -> Vec { +fn default_664() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_629() -> String { +fn default_665() -> String { serde_json::from_str("\"ok\"").expect("schema default") } -fn default_630() -> String { +fn default_666() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_631() -> String { +fn default_667() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_632() -> String { +fn default_668() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_633() -> String { +fn default_669() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_634() -> String { +fn default_670() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_635() -> Integer { +fn default_671() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_636() -> String { +fn default_672() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_637() -> Integer { +fn default_673() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_638() -> Vec { +fn default_674() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_639() -> String { +fn default_675() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_640() -> Option { +fn default_676() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_641() -> String { +fn default_677() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_642() -> String { +fn default_678() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_643() -> bool { +fn default_679() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_644() -> Integer { +fn default_680() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_645() -> Integer { +fn default_681() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_646() -> Integer { +fn default_682() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_647() -> String { +fn default_683() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_648() -> String { +fn default_684() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_649() -> bool { +fn default_685() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_650() -> Vec { +fn default_686() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_651() -> std::collections::HashMap { +fn default_687() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_652() -> std::collections::HashMap> { +fn default_688() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_653() -> bool { +fn default_689() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_654() -> Integer { +fn default_690() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_655() -> String { +fn default_691() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_656() -> Integer { +fn default_692() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_657() -> Integer { +fn default_693() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_658() -> Integer { +fn default_694() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_659() -> String { +fn default_695() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_660() -> std::collections::HashMap { +fn default_696() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_661() -> String { +fn default_697() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_662() -> Vec { +fn default_698() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_663() -> std::collections::HashMap> { +fn default_699() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_664() -> std::collections::HashMap { +fn default_700() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_665() -> std::collections::HashMap> { +fn default_701() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_666() -> std::collections::HashMap> { +fn default_702() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_667() -> Integer { +fn default_703() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_668() -> String { +fn default_704() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_669() -> Integer { +fn default_705() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_670() -> String { +fn default_706() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_671() -> Integer { +fn default_707() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_672() -> Integer { +fn default_708() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_673() -> f64 { +fn default_709() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_674() -> String { +fn default_710() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_675() -> String { +fn default_711() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_676() -> Vec> { +fn default_712() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_677() -> Integer { +fn default_713() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_678() -> String { +fn default_714() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_679() -> bool { +fn default_715() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_680() -> String { +fn default_716() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_681() -> Integer { +fn default_717() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_682() -> Integer { +fn default_718() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_683() -> String { +fn default_719() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_684() -> bool { +fn default_720() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_685() -> std::collections::HashMap { +fn default_721() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_686() -> String { +fn default_722() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_687() -> Vec { +fn default_723() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_688() -> CodePathGuardsOutputEpistemic { +fn default_724() -> CodePathGuardsOutputEpistemic { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_689() -> String { +fn default_725() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_690() -> Vec> { +fn default_726() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_691() -> Vec { +fn default_727() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_692() -> Integer { +fn default_728() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_693() -> String { +fn default_729() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_694() -> String { +fn default_730() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_695() -> Vec> { +fn default_731() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_696() -> bool { +fn default_732() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_697() -> String { +fn default_733() -> String { serde_json::from_str("\"heuristic\"").expect("schema default") } -fn default_698() -> std::collections::HashMap { +fn default_734() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_699() -> std::collections::HashMap { +fn default_735() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_700() -> std::collections::HashMap { +fn default_736() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_701() -> String { +fn default_737() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_702() -> Vec> { +fn default_738() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_703() -> Integer { +fn default_739() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_704() -> String { +fn default_740() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_705() -> Vec { +fn default_741() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_706() -> String { +fn default_742() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_707() -> String { +fn default_743() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_708() -> String { +fn default_744() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_709() -> String { +fn default_745() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_710() -> Integer { +fn default_746() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_711() -> Integer { +fn default_747() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_712() -> bool { +fn default_748() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_713() -> String { +fn default_749() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_714() -> String { +fn default_750() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_715() -> String { +fn default_751() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_716() -> String { +fn default_752() -> String { serde_json::from_str("\"git\"").expect("schema default") } -fn default_717() -> String { +fn default_753() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_718() -> String { +fn default_754() -> String { serde_json::from_str("\"admin\"").expect("schema default") } -fn default_719() -> String { +fn default_755() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_720() -> Vec> { +fn default_756() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_721() -> Vec> { +fn default_757() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_722() -> String { +fn default_758() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_723() -> String { +fn default_759() -> String { serde_json::from_str("\"git\"").expect("schema default") } -fn default_724() -> Vec { +fn default_760() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_725() -> String { +fn default_761() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_726() -> Vec> { +fn default_762() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_727() -> Vec { +fn default_763() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_728() -> Vec> { +fn default_764() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_729() -> Integer { +fn default_765() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_730() -> Integer { +fn default_766() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_731() -> Integer { +fn default_767() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_732() -> bool { +fn default_768() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_733() -> String { +fn default_769() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_734() -> String { +fn default_770() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_735() -> bool { +fn default_771() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_736() -> Vec { +fn default_772() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_737() -> Vec { +fn default_773() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_738() -> Vec { +fn default_774() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_739() -> Vec { +fn default_775() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_740() -> String { +fn default_776() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_741() -> CodeReviewBriefOutputVerdict { +fn default_777() -> CodeReviewBriefOutputVerdict { serde_json::from_str("\"\"").expect("schema default") } -fn default_742() -> Vec { +fn default_778() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_743() -> Integer { +fn default_779() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_744() -> String { +fn default_780() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_745() -> CodeReviewBriefOutputSource { +fn default_781() -> CodeReviewBriefOutputSource { serde_json::from_str("\"missing\"").expect("schema default") } -fn default_746() -> CodeReviewBriefOutputLedger { +fn default_782() -> CodeReviewBriefOutputLedger { serde_json::from_str("\"\"").expect("schema default") } -fn default_747() -> bool { +fn default_783() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_748() -> std::collections::HashMap { +fn default_784() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_749() -> bool { +fn default_785() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_750() -> String { +fn default_786() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_751() -> Integer { +fn default_787() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_752() -> String { +fn default_788() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_753() -> String { +fn default_789() -> String { serde_json::from_str("\"standard\"").expect("schema default") } -fn default_754() -> String { +fn default_790() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_755() -> String { +fn default_791() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_756() -> Integer { +fn default_792() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_757() -> Integer { +fn default_793() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_758() -> Integer { +fn default_794() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_759() -> std::collections::HashMap { +fn default_795() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_760() -> std::collections::HashMap> { +fn default_796() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_761() -> String { +fn default_797() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_762() -> String { +fn default_798() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_763() -> String { +fn default_799() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_764() -> String { +fn default_800() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_765() -> Vec> { +fn default_801() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_766() -> Integer { +fn default_802() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_767() -> String { +fn default_803() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_768() -> bool { +fn default_804() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_769() -> std::collections::HashMap { +fn default_805() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_770() -> bool { +fn default_806() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_771() -> CodeSearchOutputAbstainCode { +fn default_807() -> CodeSearchOutputAbstainCode { serde_json::from_str("\"\"").expect("schema default") } -fn default_772() -> String { +fn default_808() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_773() -> CodeSearchOutputRetrievalRisk { +fn default_809() -> CodeSearchOutputRetrievalRisk { serde_json::from_str("\"low\"").expect("schema default") } -fn default_774() -> f64 { +fn default_810() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_775() -> CodeSearchOutputPickConfidence { +fn default_811() -> CodeSearchOutputPickConfidence { serde_json::from_str("\"\"").expect("schema default") } -fn default_776() -> String { +fn default_812() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_777() -> f64 { +fn default_813() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_778() -> String { +fn default_814() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_779() -> Integer { +fn default_815() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_780() -> bool { +fn default_816() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_781() -> Integer { +fn default_817() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_782() -> std::collections::HashMap { +fn default_818() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_783() -> String { +fn default_819() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_784() -> std::collections::HashMap { +fn default_820() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_785() -> String { +fn default_821() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_786() -> f64 { +fn default_822() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_787() -> std::collections::HashMap { +fn default_823() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_788() -> std::collections::HashMap { +fn default_824() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_789() -> String { +fn default_825() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_790() -> Vec { +fn default_826() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_791() -> CodeSearchOutputEpistemic { +fn default_827() -> CodeSearchOutputEpistemic { serde_json::from_str("\"\"").expect("schema default") } -fn default_792() -> bool { +fn default_828() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_793() -> String { +fn default_829() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_794() -> String { +fn default_830() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_795() -> Vec { +fn default_831() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_796() -> std::collections::HashMap { +fn default_832() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_797() -> String { +fn default_833() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_798() -> Vec> { +fn default_834() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_799() -> std::collections::HashMap { +fn default_835() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_800() -> Integer { +fn default_836() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_801() -> std::collections::HashMap { +fn default_837() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_802() -> String { +fn default_838() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_803() -> String { +fn default_839() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_804() -> Vec { +fn default_840() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_805() -> String { +fn default_841() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_806() -> std::collections::HashMap { +fn default_842() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_807() -> bool { +fn default_843() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_808() -> Vec { +fn default_844() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_809() -> Vec> { +fn default_845() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_810() -> Vec> { +fn default_846() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_811() -> Vec> { +fn default_847() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_812() -> std::collections::HashMap { +fn default_848() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_813() -> String { +fn default_849() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_814() -> bool { +fn default_850() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_815() -> String { +fn default_851() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_816() -> Vec> { +fn default_852() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_817() -> Vec> { +fn default_853() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_818() -> Vec> { +fn default_854() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_819() -> Vec { +fn default_855() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_820() -> Vec> { +fn default_856() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_821() -> bool { +fn default_857() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_822() -> Integer { +fn default_858() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_823() -> Integer { +fn default_859() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_824() -> Integer { +fn default_860() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_825() -> Integer { +fn default_861() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_826() -> bool { +fn default_862() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_827() -> bool { +fn default_863() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_828() -> bool { +fn default_864() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_829() -> bool { +fn default_865() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_830() -> String { +fn default_866() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_831() -> Vec { +fn default_867() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_832() -> std::collections::HashMap { +fn default_868() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_833() -> std::collections::HashMap { +fn default_869() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_834() -> String { +fn default_870() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_835() -> String { +fn default_871() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_836() -> String { +fn default_872() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_837() -> Vec> { +fn default_873() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_838() -> Vec { +fn default_874() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_839() -> Vec { +fn default_875() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_840() -> Integer { +fn default_876() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_841() -> std::collections::HashMap { +fn default_877() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_842() -> String { +fn default_878() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_843() -> Vec> { +fn default_879() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_844() -> Integer { +fn default_880() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_845() -> bool { +fn default_881() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_846() -> Vec> { +fn default_882() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_847() -> String { +fn default_883() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_848() -> bool { +fn default_884() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_849() -> Vec { +fn default_885() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_850() -> std::collections::HashMap { +fn default_886() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_851() -> std::collections::HashMap { +fn default_887() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_852() -> Integer { +fn default_888() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_853() -> Integer { +fn default_889() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_854() -> String { +fn default_890() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_855() -> Integer { +fn default_891() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_856() -> String { +fn default_892() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_857() -> String { +fn default_893() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_858() -> Vec> { +fn default_894() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_859() -> std::collections::HashMap { +fn default_895() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_860() -> String { +fn default_896() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_861() -> String { +fn default_897() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_862() -> std::collections::HashMap { +fn default_898() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_863() -> Vec> { +fn default_899() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_864() -> Vec> { +fn default_900() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_865() -> bool { +fn default_901() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_866() -> std::collections::HashMap { +fn default_902() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_867() -> std::collections::HashMap { +fn default_903() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_868() -> std::collections::HashMap { +fn default_904() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_869() -> Vec { +fn default_905() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_870() -> Integer { +fn default_906() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_871() -> std::collections::HashMap { +fn default_907() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_872() -> String { +fn default_908() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_873() -> String { +fn default_909() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_874() -> String { +fn default_910() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_875() -> String { +fn default_911() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_876() -> String { +fn default_912() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_877() -> String { +fn default_913() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_878() -> String { +fn default_914() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_879() -> Option { +fn default_915() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_880() -> Option { +fn default_916() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_881() -> Option { +fn default_917() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_882() -> Option { +fn default_918() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_883() -> Option { +fn default_919() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_884() -> Option> { +fn default_920() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_885() -> Vec { +fn default_921() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_886() -> String { +fn default_922() -> String { serde_json::from_str("\"conflicts.resolve\"").expect("schema default") } -fn default_887() -> Vec { +fn default_923() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_888() -> String { +fn default_924() -> String { serde_json::from_str("\"No changes were applied.\"").expect("schema default") } -fn default_889() -> Option { +fn default_925() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_890() -> Option { +fn default_926() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_891() -> bool { +fn default_927() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_892() -> bool { +fn default_928() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_893() -> Option { +fn default_929() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_894() -> Vec { +fn default_930() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_895() -> String { +fn default_931() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_896() -> String { +fn default_932() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_897() -> String { +fn default_933() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_898() -> Integer { +fn default_934() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_899() -> Integer { +fn default_935() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_900() -> Integer { +fn default_936() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_901() -> Integer { +fn default_937() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_902() -> Integer { +fn default_938() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_903() -> Option { +fn default_939() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_904() -> bool { +fn default_940() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_905() -> ConversationAppendOutputReason { +fn default_941() -> ConversationAppendOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_906() -> String { +fn default_942() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_907() -> Integer { +fn default_943() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_908() -> Integer { +fn default_944() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_909() -> String { +fn default_945() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_910() -> String { +fn default_946() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_911() -> std::collections::HashMap { +fn default_947() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_912() -> String { +fn default_948() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_913() -> String { +fn default_949() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_914() -> String { +fn default_950() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_915() -> Option { +fn default_951() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_916() -> Option { +fn default_952() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_917() -> Integer { +fn default_953() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_918() -> String { +fn default_954() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_919() -> Vec { +fn default_955() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_920() -> Option { +fn default_956() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_921() -> Option { +fn default_957() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_922() -> Option { +fn default_958() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_923() -> ConversationSaveMessageOutputReason { +fn default_959() -> ConversationSaveMessageOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_924() -> String { +fn default_960() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_925() -> Vec { +fn default_961() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_926() -> bool { +fn default_962() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_927() -> Option { +fn default_963() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_928() -> Option { +fn default_964() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_929() -> Option { +fn default_965() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_930() -> Option { +fn default_966() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_931() -> Option { +fn default_967() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_932() -> Option { +fn default_968() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_933() -> Option { +fn default_969() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_934() -> Option { +fn default_970() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_935() -> Option { +fn default_971() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_936() -> Option { +fn default_972() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_937() -> Integer { +fn default_973() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_938() -> Vec { +fn default_974() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_939() -> f64 { +fn default_975() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_940() -> Integer { +fn default_976() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_941() -> Option { +fn default_977() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_942() -> Option { +fn default_978() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_943() -> Option { +fn default_979() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_944() -> Option { +fn default_980() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_945() -> Option { +fn default_981() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_946() -> Option { +fn default_982() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_947() -> Option { +fn default_983() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_948() -> Option { +fn default_984() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_949() -> Option { +fn default_985() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_950() -> Option { +fn default_986() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_951() -> Integer { +fn default_987() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_952() -> f64 { +fn default_988() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_953() -> Integer { +fn default_989() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_954() -> f64 { +fn default_990() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_955() -> String { +fn default_991() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_956() -> String { +fn default_992() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_957() -> String { +fn default_993() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_958() -> String { +fn default_994() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_959() -> Vec { +fn default_995() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_960() -> Option { +fn default_996() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_961() -> String { +fn default_997() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_962() -> String { +fn default_998() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_963() -> String { +fn default_999() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_964() -> Option { +fn default_1000() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_965() -> String { +fn default_1001() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_966() -> DecisionRowStage { +fn default_1002() -> DecisionRowStage { serde_json::from_str("\"decided\"").expect("schema default") } -fn default_967() -> f64 { +fn default_1003() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_968() -> Option { +fn default_1004() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_969() -> Option { +fn default_1005() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_970() -> Integer { +fn default_1006() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_971() -> String { +fn default_1007() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_972() -> bool { +fn default_1008() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_973() -> Integer { +fn default_1009() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_974() -> String { +fn default_1010() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_975() -> bool { +fn default_1011() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_976() -> Option { +fn default_1012() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_977() -> String { +fn default_1013() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_978() -> Integer { +fn default_1014() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_979() -> Integer { +fn default_1015() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_980() -> Integer { +fn default_1016() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_981() -> Option { +fn default_1017() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_982() -> String { +fn default_1018() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_983() -> Option { +fn default_1019() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_984() -> Integer { +fn default_1020() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_985() -> std::collections::HashMap { +fn default_1021() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_986() -> Option { +fn default_1022() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_987() -> Option> { +fn default_1023() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_988() -> bool { +fn default_1024() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_989() -> String { +fn default_1025() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_990() -> Vec { +fn default_1026() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_991() -> Option { +fn default_1027() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_992() -> Option { +fn default_1028() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_993() -> Option { +fn default_1029() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_994() -> Option { +fn default_1030() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_995() -> Option { +fn default_1031() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_996() -> Option { +fn default_1032() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_997() -> Option { +fn default_1033() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_998() -> Option { +fn default_1034() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_999() -> Option { +fn default_1035() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1000() -> Integer { +fn default_1036() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1001() -> std::collections::HashMap { +fn default_1037() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1002() -> Option { +fn default_1038() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1003() -> Option> { +fn default_1039() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1004() -> bool { +fn default_1040() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1005() -> String { +fn default_1041() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1006() -> String { +fn default_1042() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1007() -> String { +fn default_1043() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1008() -> Option { +fn default_1044() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1009() -> String { +fn default_1045() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1010() -> String { +fn default_1046() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1011() -> Option { +fn default_1047() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1012() -> Vec { +fn default_1048() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1013() -> String { +fn default_1049() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1014() -> Vec { +fn default_1050() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1015() -> Vec { +fn default_1051() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1016() -> bool { +fn default_1052() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1017() -> bool { +fn default_1053() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1018() -> String { +fn default_1054() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1019() -> String { +fn default_1055() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1020() -> Option { +fn default_1056() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1021() -> Option { +fn default_1057() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1022() -> Option { +fn default_1058() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1023() -> bool { +fn default_1059() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1024() -> Integer { +fn default_1060() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1025() -> String { +fn default_1061() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1026() -> String { +fn default_1062() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1027() -> String { +fn default_1063() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1028() -> String { +fn default_1064() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1029() -> String { +fn default_1065() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1030() -> Option { +fn default_1066() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1031() -> Vec { +fn default_1067() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1032() -> bool { +fn default_1068() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1033() -> Vec { +fn default_1069() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1034() -> Option { +fn default_1070() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1035() -> Option { +fn default_1071() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1036() -> bool { +fn default_1072() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1037() -> String { +fn default_1073() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_1038() -> Option { +fn default_1074() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1039() -> Option { +fn default_1075() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1040() -> Option { +fn default_1076() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1041() -> String { +fn default_1077() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1042() -> String { +fn default_1078() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1043() -> String { +fn default_1079() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1044() -> HelpGetOutputAudience { +fn default_1080() -> HelpGetOutputAudience { serde_json::from_str("\"user\"").expect("schema default") } -fn default_1045() -> String { +fn default_1081() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1046() -> bool { +fn default_1082() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1047() -> Integer { +fn default_1083() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1048() -> String { +fn default_1084() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1049() -> Vec { +fn default_1085() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1050() -> String { +fn default_1086() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1051() -> Vec { +fn default_1087() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1052() -> Vec { +fn default_1088() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1053() -> String { +fn default_1089() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1054() -> String { +fn default_1090() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1055() -> String { +fn default_1091() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1056() -> Vec { +fn default_1092() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1057() -> String { +fn default_1093() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1058() -> bool { +fn default_1094() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1059() -> Vec { +fn default_1095() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1060() -> Vec { +fn default_1096() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1061() -> Option { +fn default_1097() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1062() -> bool { +fn default_1098() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1063() -> bool { +fn default_1099() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1064() -> Vec { +fn default_1100() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1065() -> Vec> { +fn default_1101() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1066() -> Integer { +fn default_1102() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1067() -> bool { +fn default_1103() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1068() -> String { +fn default_1104() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1069() -> String { +fn default_1105() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1070() -> Integer { +fn default_1106() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1071() -> Integer { +fn default_1107() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1072() -> Vec { +fn default_1108() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1073() -> Integer { +fn default_1109() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1074() -> Vec { +fn default_1110() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1075() -> bool { +fn default_1111() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1076() -> String { +fn default_1112() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1077() -> Option { +fn default_1113() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1078() -> Option { +fn default_1114() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1079() -> Vec> { +fn default_1115() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1080() -> Option { +fn default_1116() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1081() -> bool { +fn default_1117() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1082() -> Integer { +fn default_1118() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1083() -> Vec { +fn default_1119() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1084() -> Vec> { +fn default_1120() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1085() -> Vec { +fn default_1121() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1086() -> Vec> { +fn default_1122() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1087() -> Vec { +fn default_1123() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1088() -> String { +fn default_1124() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1089() -> Vec { +fn default_1125() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1090() -> Vec { +fn default_1126() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1091() -> Option { +fn default_1127() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1092() -> Vec { +fn default_1128() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1093() -> Integer { +fn default_1129() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1094() -> Vec { +fn default_1130() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1095() -> String { +fn default_1131() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1096() -> Vec { +fn default_1132() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1097() -> Vec { +fn default_1133() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1098() -> Option { +fn default_1134() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1099() -> Option { +fn default_1135() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1100() -> bool { +fn default_1136() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1101() -> String { +fn default_1137() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1102() -> String { +fn default_1138() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1103() -> bool { +fn default_1139() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1104() -> String { +fn default_1140() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1105() -> String { +fn default_1141() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1106() -> String { +fn default_1142() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1107() -> Integer { +fn default_1143() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1108() -> String { +fn default_1144() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1109() -> String { +fn default_1145() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1110() -> String { +fn default_1146() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1111() -> Option> { +fn default_1147() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1112() -> Vec { +fn default_1148() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1113() -> Integer { +fn default_1149() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1114() -> Integer { +fn default_1150() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1115() -> Option { +fn default_1151() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1116() -> String { +fn default_1152() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1117() -> String { +fn default_1153() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1118() -> bool { +fn default_1154() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1119() -> Option { +fn default_1155() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1120() -> Option { +fn default_1156() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1121() -> Option { +fn default_1157() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1122() -> Option { +fn default_1158() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1123() -> Option { +fn default_1159() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1124() -> Vec { +fn default_1160() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1125() -> Vec { +fn default_1161() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1126() -> Option { +fn default_1162() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1127() -> Option { +fn default_1163() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1128() -> Option { +fn default_1164() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1129() -> String { +fn default_1165() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1130() -> Option { +fn default_1166() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1131() -> Option { +fn default_1167() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1132() -> Option { +fn default_1168() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1133() -> Vec { +fn default_1169() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1134() -> Vec { +fn default_1170() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1135() -> Option { +fn default_1171() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1136() -> String { +fn default_1172() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1137() -> Option { +fn default_1173() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1138() -> Vec { +fn default_1174() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1139() -> Option { +fn default_1175() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1140() -> Option { +fn default_1176() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1141() -> Option { +fn default_1177() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1142() -> String { +fn default_1178() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1143() -> Option { +fn default_1179() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1144() -> Option { +fn default_1180() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1145() -> bool { +fn default_1181() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1146() -> bool { +fn default_1182() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1147() -> Option { +fn default_1183() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1148() -> Vec { +fn default_1184() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1149() -> bool { +fn default_1185() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1150() -> Option { +fn default_1186() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1151() -> Option { +fn default_1187() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1152() -> Vec { +fn default_1188() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1153() -> String { +fn default_1189() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1154() -> String { +fn default_1190() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1155() -> Vec { +fn default_1191() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1156() -> Integer { +fn default_1192() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1157() -> Vec { +fn default_1193() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1158() -> Vec { +fn default_1194() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1159() -> Vec { +fn default_1195() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1160() -> Vec { +fn default_1196() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1161() -> Vec { +fn default_1197() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1162() -> Option { +fn default_1198() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1163() -> Option { +fn default_1199() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1164() -> Option { +fn default_1200() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1165() -> Option { +fn default_1201() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1166() -> Option { +fn default_1202() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1167() -> Option { +fn default_1203() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1168() -> Option { +fn default_1204() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1169() -> Option { +fn default_1205() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1170() -> Option { +fn default_1206() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1171() -> Option { +fn default_1207() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1172() -> Option { +fn default_1208() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1173() -> Option { +fn default_1209() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1174() -> Vec { +fn default_1210() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1175() -> Option { +fn default_1211() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1176() -> Option { +fn default_1212() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1177() -> Vec { +fn default_1213() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1178() -> Option { +fn default_1214() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1179() -> Option { +fn default_1215() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1180() -> Vec { +fn default_1216() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1181() -> String { +fn default_1217() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1182() -> String { +fn default_1218() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1183() -> Vec { +fn default_1219() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1184() -> Vec { +fn default_1220() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1185() -> Integer { +fn default_1221() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1186() -> Vec { +fn default_1222() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1187() -> Vec { +fn default_1223() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1188() -> Vec { +fn default_1224() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1189() -> Vec { +fn default_1225() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1190() -> Option { +fn default_1226() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1191() -> String { +fn default_1227() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1192() -> bool { +fn default_1228() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1193() -> KnowledgeMoveResultReason { +fn default_1229() -> KnowledgeMoveResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1194() -> Vec { +fn default_1230() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1195() -> String { +fn default_1231() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1196() -> bool { +fn default_1232() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1197() -> Integer { +fn default_1233() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1198() -> Vec { +fn default_1234() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1199() -> Option { +fn default_1235() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1200() -> Vec { +fn default_1236() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1201() -> Vec> { +fn default_1237() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1202() -> bool { +fn default_1238() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1203() -> Vec { +fn default_1239() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1204() -> bool { +fn default_1240() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1205() -> Vec { +fn default_1241() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1206() -> Vec> { +fn default_1242() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1207() -> KnowledgeRestoreOutputReason { +fn default_1243() -> KnowledgeRestoreOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1208() -> String { +fn default_1244() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1209() -> Option { +fn default_1245() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1210() -> Integer { +fn default_1246() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1211() -> KnowledgeRestoreOutputOriginal { +fn default_1247() -> KnowledgeRestoreOutputOriginal { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1212() -> Option { +fn default_1248() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1213() -> Vec> { +fn default_1249() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1214() -> Vec { +fn default_1250() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1215() -> std::collections::HashMap { +fn default_1251() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1216() -> Integer { +fn default_1252() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1217() -> bool { +fn default_1253() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1218() -> Vec { +fn default_1254() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1219() -> Integer { +fn default_1255() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1220() -> bool { +fn default_1256() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1221() -> KnowledgeSourceProbe { +fn default_1257() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1222() -> bool { +fn default_1258() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1223() -> bool { +fn default_1259() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1224() -> Integer { +fn default_1260() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1225() -> bool { +fn default_1261() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1226() -> Vec { +fn default_1262() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1227() -> Integer { +fn default_1263() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1228() -> bool { +fn default_1264() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1229() -> String { +fn default_1265() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1230() -> String { +fn default_1266() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1231() -> String { +fn default_1267() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1232() -> bool { +fn default_1268() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1233() -> String { +fn default_1269() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1234() -> std::collections::HashMap { +fn default_1270() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1235() -> String { +fn default_1271() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1236() -> Vec> { +fn default_1272() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1237() -> Vec { +fn default_1273() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1238() -> std::collections::HashMap { +fn default_1274() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1239() -> String { +fn default_1275() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1240() -> String { +fn default_1276() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1241() -> String { +fn default_1277() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1242() -> String { +fn default_1278() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1243() -> String { +fn default_1279() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1244() -> Integer { +fn default_1280() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1245() -> Integer { +fn default_1281() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1246() -> Integer { +fn default_1282() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1247() -> Integer { +fn default_1283() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1248() -> std::collections::HashMap { +fn default_1284() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1249() -> Integer { +fn default_1285() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1250() -> String { +fn default_1286() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1251() -> Integer { +fn default_1287() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1252() -> String { +fn default_1288() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1253() -> Integer { +fn default_1289() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1254() -> Integer { +fn default_1290() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1255() -> Integer { +fn default_1291() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1256() -> String { +fn default_1292() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1257() -> KnowledgeSourceSync { +fn default_1293() -> KnowledgeSourceSync { serde_json::from_str("{\"requested_at\":\"\",\"last_synced_at\":\"\",\"status\":\"\",\"documents_seen\":0,\"changed\":0,\"removed\":0,\"unconverted\":0,\"unconverted_reasons\":{},\"skipped\":0,\"error\":\"\",\"pending_extract\":0,\"last_extracted_at\":\"\",\"extracted\":0,\"flagged_pinned\":0,\"unextracted\":0,\"extract_error\":\"\"}").expect("schema default") } -fn default_1258() -> String { +fn default_1294() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1259() -> String { +fn default_1295() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1260() -> String { +fn default_1296() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1261() -> Vec { +fn default_1297() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1262() -> String { +fn default_1298() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1263() -> bool { +fn default_1299() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1264() -> String { +fn default_1300() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1265() -> std::collections::HashMap { +fn default_1301() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1266() -> String { +fn default_1302() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1267() -> Vec> { +fn default_1303() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1268() -> Vec { +fn default_1304() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1269() -> std::collections::HashMap { +fn default_1305() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1270() -> String { +fn default_1306() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1271() -> String { +fn default_1307() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1272() -> KnowledgeSourceSync { +fn default_1308() -> KnowledgeSourceSync { serde_json::from_str("{\"requested_at\":\"\",\"last_synced_at\":\"\",\"status\":\"\",\"documents_seen\":0,\"changed\":0,\"removed\":0,\"unconverted\":0,\"unconverted_reasons\":{},\"skipped\":0,\"error\":\"\",\"pending_extract\":0,\"last_extracted_at\":\"\",\"extracted\":0,\"flagged_pinned\":0,\"unextracted\":0,\"extract_error\":\"\"}").expect("schema default") } -fn default_1273() -> Vec { +fn default_1309() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1274() -> bool { +fn default_1310() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1275() -> bool { +fn default_1311() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1276() -> bool { +fn default_1312() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1277() -> Option { +fn default_1313() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1278() -> String { +fn default_1314() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1279() -> std::collections::HashMap { +fn default_1315() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1280() -> String { +fn default_1316() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1281() -> Vec { +fn default_1317() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1282() -> bool { +fn default_1318() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1283() -> String { +fn default_1319() -> String { serde_json::from_str("\"disabled\"").expect("schema default") } -fn default_1284() -> String { +fn default_1320() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1285() -> String { +fn default_1321() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1286() -> String { +fn default_1322() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1287() -> String { +fn default_1323() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1288() -> String { +fn default_1324() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1289() -> String { +fn default_1325() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1290() -> Integer { +fn default_1326() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1291() -> f64 { +fn default_1327() -> f64 { serde_json::from_str("0").expect("schema default") } -fn default_1292() -> Integer { +fn default_1328() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1293() -> Option { +fn default_1329() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1294() -> KnowledgeSourceProbe { +fn default_1330() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1295() -> String { +fn default_1331() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1296() -> bool { +fn default_1332() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1297() -> Option { +fn default_1333() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1298() -> Vec> { +fn default_1334() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1299() -> Vec { +fn default_1335() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1300() -> std::collections::HashMap { +fn default_1336() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1301() -> Vec> { +fn default_1337() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1302() -> Vec> { +fn default_1338() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1303() -> KnowledgeSourceProbe { +fn default_1339() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1304() -> Option { +fn default_1340() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1305() -> Option { +fn default_1341() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1306() -> Option { +fn default_1342() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1307() -> Option { +fn default_1343() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1308() -> Option { +fn default_1344() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1309() -> Option { +fn default_1345() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1310() -> Option { +fn default_1346() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1311() -> Option { +fn default_1347() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1312() -> Option { +fn default_1348() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1313() -> Option { +fn default_1349() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1314() -> Vec { +fn default_1350() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1315() -> Option { +fn default_1351() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1316() -> Option { +fn default_1352() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1317() -> Option { +fn default_1353() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1318() -> Vec { +fn default_1354() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1319() -> Integer { +fn default_1355() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1320() -> Option> { +fn default_1356() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1321() -> Vec { +fn default_1357() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1322() -> Vec { +fn default_1358() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1323() -> bool { +fn default_1359() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1324() -> bool { +fn default_1360() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1325() -> String { +fn default_1361() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1326() -> String { +fn default_1362() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1327() -> Vec> { +fn default_1363() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1328() -> bool { +fn default_1364() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1329() -> Vec { +fn default_1365() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1330() -> Vec { +fn default_1366() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1331() -> String { +fn default_1367() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1332() -> String { +fn default_1368() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1333() -> String { +fn default_1369() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1334() -> Vec { +fn default_1370() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1335() -> Integer { +fn default_1371() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1336() -> String { +fn default_1372() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1337() -> Integer { +fn default_1373() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1338() -> String { +fn default_1374() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1339() -> String { +fn default_1375() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1340() -> Integer { +fn default_1376() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1341() -> Integer { +fn default_1377() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1342() -> String { +fn default_1378() -> String { serde_json::from_str("\"memory_supporters\"").expect("schema default") } -fn default_1343() -> String { +fn default_1379() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1344() -> String { +fn default_1380() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1345() -> Option { +fn default_1381() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1346() -> String { +fn default_1382() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1347() -> String { +fn default_1383() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1348() -> bool { +fn default_1384() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1349() -> bool { +fn default_1385() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1350() -> String { +fn default_1386() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1351() -> std::collections::HashMap { +fn default_1387() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1352() -> Vec { +fn default_1388() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1353() -> String { +fn default_1389() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1354() -> String { +fn default_1390() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1355() -> String { +fn default_1391() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1356() -> Vec { +fn default_1392() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1357() -> String { +fn default_1393() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1358() -> String { +fn default_1394() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1359() -> Vec { +fn default_1395() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1360() -> Vec { +fn default_1396() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1361() -> Vec { +fn default_1397() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1362() -> Vec { +fn default_1398() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1363() -> Integer { +fn default_1399() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1364() -> Vec { +fn default_1400() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1365() -> Vec { +fn default_1401() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1366() -> Vec { +fn default_1402() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1367() -> Integer { +fn default_1403() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1368() -> Vec { +fn default_1404() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1369() -> std::collections::HashMap { +fn default_1405() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1370() -> std::collections::HashMap { +fn default_1406() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1371() -> Integer { +fn default_1407() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1372() -> Integer { +fn default_1408() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1373() -> Integer { +fn default_1409() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1374() -> Integer { +fn default_1410() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1375() -> Integer { +fn default_1411() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1376() -> Integer { +fn default_1412() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1377() -> bool { +fn default_1413() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1378() -> String { +fn default_1414() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1379() -> String { +fn default_1415() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1380() -> String { +fn default_1416() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1381() -> String { +fn default_1417() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1382() -> Option { +fn default_1418() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1383() -> String { +fn default_1419() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1384() -> Vec { +fn default_1420() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1385() -> String { +fn default_1421() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1386() -> MemoryAskOutputSource { +fn default_1422() -> MemoryAskOutputSource { serde_json::from_str("\"synthesized\"").expect("schema default") } -fn default_1387() -> bool { +fn default_1423() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1388() -> String { +fn default_1424() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1389() -> Vec { +fn default_1425() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1390() -> Vec { +fn default_1426() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1391() -> Vec { +fn default_1427() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1392() -> String { +fn default_1428() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1393() -> String { +fn default_1429() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1394() -> MemoryAskOutputRouteTier { +fn default_1430() -> MemoryAskOutputRouteTier { serde_json::from_str("\"\"").expect("schema default") } -fn default_1395() -> String { +fn default_1431() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1396() -> Integer { +fn default_1432() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1397() -> Integer { +fn default_1433() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1398() -> bool { +fn default_1434() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1399() -> f64 { +fn default_1435() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1400() -> Option { +fn default_1436() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1401() -> Option { +fn default_1437() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1402() -> bool { +fn default_1438() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1403() -> String { +fn default_1439() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1404() -> Integer { +fn default_1440() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1405() -> Integer { +fn default_1441() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1406() -> Integer { +fn default_1442() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1407() -> Integer { +fn default_1443() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1408() -> String { +fn default_1444() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1409() -> Vec { +fn default_1445() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1410() -> Integer { +fn default_1446() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1411() -> MemoryAskOutputConsistency { +fn default_1447() -> MemoryAskOutputConsistency { serde_json::from_str("\"\"").expect("schema default") } -fn default_1412() -> f64 { +fn default_1448() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1413() -> String { +fn default_1449() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1414() -> Integer { +fn default_1450() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1415() -> Integer { +fn default_1451() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1416() -> String { +fn default_1452() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1417() -> String { +fn default_1453() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1418() -> String { +fn default_1454() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1419() -> String { +fn default_1455() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1420() -> MemoryAskOutputDepth { +fn default_1456() -> MemoryAskOutputDepth { serde_json::from_str("\"\"").expect("schema default") } -fn default_1421() -> bool { +fn default_1457() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1422() -> Vec { +fn default_1458() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1423() -> Integer { +fn default_1459() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1424() -> Integer { +fn default_1460() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1425() -> Integer { +fn default_1461() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1426() -> Vec { +fn default_1462() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1427() -> Integer { +fn default_1463() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1428() -> Integer { +fn default_1464() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1429() -> Integer { +fn default_1465() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1430() -> MemoryAskOutputGrounding { +fn default_1466() -> MemoryAskOutputGrounding { serde_json::from_str("\"\"").expect("schema default") } -fn default_1431() -> String { +fn default_1467() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1432() -> Vec { +fn default_1468() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1433() -> Integer { +fn default_1469() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1434() -> Integer { +fn default_1470() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1435() -> Integer { +fn default_1471() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1436() -> Integer { +fn default_1472() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1437() -> std::collections::HashMap { +fn default_1473() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1438() -> MemoryAskOutputDeepSelector { +fn default_1474() -> MemoryAskOutputDeepSelector { serde_json::from_str("\"\"").expect("schema default") } -fn default_1439() -> MemoryAskOutputDeepFirst { +fn default_1475() -> MemoryAskOutputDeepFirst { serde_json::from_str("\"\"").expect("schema default") } -fn default_1440() -> Integer { +fn default_1476() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1441() -> Integer { +fn default_1477() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1442() -> Integer { +fn default_1478() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1443() -> Integer { +fn default_1479() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1444() -> f64 { +fn default_1480() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1445() -> Integer { +fn default_1481() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1446() -> Integer { +fn default_1482() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1447() -> Integer { +fn default_1483() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1448() -> Integer { +fn default_1484() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1449() -> Integer { +fn default_1485() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1450() -> bool { +fn default_1486() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1451() -> String { +fn default_1487() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1452() -> String { +fn default_1488() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1453() -> String { +fn default_1489() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1454() -> String { +fn default_1490() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1455() -> String { +fn default_1491() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1456() -> String { +fn default_1492() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1457() -> bool { +fn default_1493() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1458() -> String { +fn default_1494() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1459() -> Option { +fn default_1495() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1460() -> String { +fn default_1496() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1461() -> String { +fn default_1497() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1462() -> Vec { +fn default_1498() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1463() -> Option { +fn default_1499() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1464() -> bool { +fn default_1500() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1465() -> String { +fn default_1501() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1466() -> String { +fn default_1502() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1467() -> Vec { +fn default_1503() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1468() -> String { +fn default_1504() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1469() -> Vec { +fn default_1505() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1470() -> String { +fn default_1506() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1471() -> String { +fn default_1507() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1472() -> Vec { +fn default_1508() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1473() -> Vec { +fn default_1509() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1474() -> Integer { +fn default_1510() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1475() -> Vec { +fn default_1511() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1476() -> Vec { +fn default_1512() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1477() -> String { +fn default_1513() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1478() -> String { +fn default_1514() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1479() -> bool { +fn default_1515() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1480() -> String { +fn default_1516() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1481() -> String { +fn default_1517() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1482() -> String { +fn default_1518() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1483() -> bool { +fn default_1519() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1484() -> String { +fn default_1520() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1485() -> String { +fn default_1521() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1486() -> String { +fn default_1522() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1487() -> Vec { +fn default_1523() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1488() -> Vec { +fn default_1524() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1489() -> Vec { +fn default_1525() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1490() -> std::collections::HashMap { +fn default_1526() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1491() -> Vec { +fn default_1527() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1492() -> Integer { +fn default_1528() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1493() -> Vec { +fn default_1529() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1494() -> Integer { +fn default_1530() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1495() -> Integer { +fn default_1531() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1496() -> Integer { +fn default_1532() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1497() -> Integer { +fn default_1533() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1498() -> Integer { +fn default_1534() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1499() -> Integer { +fn default_1535() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1500() -> Integer { +fn default_1536() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1501() -> String { +fn default_1537() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1502() -> String { +fn default_1538() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1503() -> String { +fn default_1539() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1504() -> String { +fn default_1540() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1505() -> bool { +fn default_1541() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1506() -> Integer { +fn default_1542() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1507() -> Integer { +fn default_1543() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1508() -> Integer { +fn default_1544() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1509() -> Integer { +fn default_1545() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1510() -> Integer { +fn default_1546() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1511() -> bool { +fn default_1547() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1512() -> Vec { +fn default_1548() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1513() -> String { +fn default_1549() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1514() -> String { +fn default_1550() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1515() -> Option { +fn default_1551() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1516() -> Vec { +fn default_1552() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1517() -> bool { +fn default_1553() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1518() -> bool { +fn default_1554() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1519() -> Vec { +fn default_1555() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1520() -> bool { +fn default_1556() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1521() -> Option { +fn default_1557() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1522() -> Vec { +fn default_1558() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1523() -> Option { +fn default_1559() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1524() -> Option { +fn default_1560() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1525() -> Vec { +fn default_1561() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1526() -> Integer { +fn default_1562() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1527() -> bool { +fn default_1563() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1528() -> String { +fn default_1564() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1529() -> Integer { +fn default_1565() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1530() -> Integer { +fn default_1566() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1531() -> std::collections::HashMap { +fn default_1567() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1532() -> String { +fn default_1568() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1533() -> f64 { +fn default_1569() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1534() -> bool { +fn default_1570() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1535() -> String { +fn default_1571() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1536() -> String { +fn default_1572() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1537() -> Integer { +fn default_1573() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1538() -> Integer { +fn default_1574() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1539() -> Option { +fn default_1575() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1540() -> Vec { +fn default_1576() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1541() -> Vec { +fn default_1577() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1542() -> Option { +fn default_1578() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1543() -> Option { +fn default_1579() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1544() -> Integer { +fn default_1580() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1545() -> bool { +fn default_1581() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1546() -> String { +fn default_1582() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1547() -> String { +fn default_1583() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1548() -> String { +fn default_1584() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1549() -> String { +fn default_1585() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1550() -> Option { +fn default_1586() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1551() -> String { +fn default_1587() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1552() -> Integer { +fn default_1588() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1553() -> Integer { +fn default_1589() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1554() -> String { +fn default_1590() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1555() -> Vec { +fn default_1591() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1556() -> bool { +fn default_1592() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1557() -> Integer { +fn default_1593() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1558() -> Integer { +fn default_1594() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1559() -> Integer { +fn default_1595() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1560() -> Integer { +fn default_1596() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1561() -> Integer { +fn default_1597() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1562() -> String { +fn default_1598() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1563() -> String { +fn default_1599() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1564() -> String { +fn default_1600() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1565() -> String { +fn default_1601() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1566() -> Vec { +fn default_1602() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1567() -> Integer { +fn default_1603() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1568() -> Integer { +fn default_1604() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1569() -> String { +fn default_1605() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1570() -> String { +fn default_1606() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1571() -> Vec { +fn default_1607() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1572() -> String { +fn default_1608() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1573() -> String { +fn default_1609() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1574() -> Vec { +fn default_1610() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1575() -> Vec { +fn default_1611() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1576() -> String { +fn default_1612() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1577() -> String { +fn default_1613() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1578() -> Vec { +fn default_1614() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1579() -> f64 { +fn default_1615() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1580() -> String { +fn default_1616() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1581() -> String { +fn default_1617() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1582() -> Vec { +fn default_1618() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1583() -> bool { +fn default_1619() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1584() -> String { +fn default_1620() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1585() -> Integer { +fn default_1621() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1586() -> Vec { +fn default_1622() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1587() -> Vec { +fn default_1623() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1588() -> Vec { +fn default_1624() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1589() -> Vec { +fn default_1625() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1590() -> Vec { +fn default_1626() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1591() -> Option { +fn default_1627() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1592() -> Option { +fn default_1628() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1593() -> Vec { +fn default_1629() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1594() -> Integer { +fn default_1630() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1595() -> Integer { +fn default_1631() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1596() -> Vec { +fn default_1632() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1597() -> Vec { +fn default_1633() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1598() -> Integer { +fn default_1634() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1599() -> Integer { +fn default_1635() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1600() -> bool { +fn default_1636() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1601() -> Vec { +fn default_1637() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1602() -> f64 { +fn default_1638() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1603() -> bool { +fn default_1639() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1604() -> String { +fn default_1640() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1605() -> String { +fn default_1641() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1606() -> Option { +fn default_1642() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1607() -> String { +fn default_1643() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1608() -> String { +fn default_1644() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1609() -> String { +fn default_1645() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1610() -> String { +fn default_1646() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1611() -> MemoryForFileHitSupersedesKind { +fn default_1647() -> MemoryForFileHitSupersedesKind { serde_json::from_str("\"\"").expect("schema default") } -fn default_1612() -> Vec { +fn default_1648() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1613() -> String { +fn default_1649() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1614() -> MemoryForFileHitVerification { +fn default_1650() -> MemoryForFileHitVerification { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1615() -> MemoryForFileHitCodeState { +fn default_1651() -> MemoryForFileHitCodeState { serde_json::from_str("\"\"").expect("schema default") } -fn default_1616() -> Vec { +fn default_1652() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1617() -> String { +fn default_1653() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1618() -> Integer { +fn default_1654() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1619() -> bool { +fn default_1655() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1620() -> bool { +fn default_1656() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1621() -> Vec { +fn default_1657() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1622() -> String { +fn default_1658() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1623() -> String { +fn default_1659() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1624() -> String { +fn default_1660() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1625() -> String { +fn default_1661() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1626() -> String { +fn default_1662() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1627() -> String { +fn default_1663() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1628() -> Option { +fn default_1664() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1629() -> Value { +fn default_1665() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1630() -> Option { +fn default_1666() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1631() -> Option { +fn default_1667() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1632() -> Option { +fn default_1668() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1633() -> Option { +fn default_1669() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1634() -> Option { +fn default_1670() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1635() -> Option { +fn default_1671() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1636() -> bool { +fn default_1672() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1637() -> String { +fn default_1673() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1638() -> String { +fn default_1674() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1639() -> Option { +fn default_1675() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1640() -> String { +fn default_1676() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1641() -> String { +fn default_1677() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1642() -> String { +fn default_1678() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1643() -> String { +fn default_1679() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1644() -> String { +fn default_1680() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1645() -> String { +fn default_1681() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1646() -> Option { +fn default_1682() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1647() -> String { +fn default_1683() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1648() -> String { +fn default_1684() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1649() -> String { +fn default_1685() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1650() -> Integer { +fn default_1686() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1651() -> Vec { +fn default_1687() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1652() -> Integer { +fn default_1688() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1653() -> Option { +fn default_1689() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1654() -> Vec { +fn default_1690() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1655() -> std::collections::HashMap { +fn default_1691() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1656() -> Integer { +fn default_1692() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1657() -> f64 { +fn default_1693() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1658() -> Integer { +fn default_1694() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1659() -> Integer { +fn default_1695() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1660() -> Integer { +fn default_1696() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1661() -> Integer { +fn default_1697() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1662() -> Integer { +fn default_1698() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1663() -> MemoryHealthStaleness { +fn default_1699() -> MemoryHealthStaleness { serde_json::from_str("{\"by_age\":{},\"with_validity_end\":0,\"with_validity_end_share\":0.0,\"with_expiry\":0,\"expiring_7d\":0,\"pinned\":0,\"days_since_reinforced_p50\":0,\"days_since_reinforced_p90\":0}").expect("schema default") } -fn default_1664() -> Integer { +fn default_1700() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1665() -> Integer { +fn default_1701() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1666() -> f64 { +fn default_1702() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1667() -> MemoryHealthFootprint { +fn default_1703() -> MemoryHealthFootprint { serde_json::from_str("{\"value_chars\":0,\"value_tokens_est\":0,\"tokens_per_row_est\":0.0}") .expect("schema default") } -fn default_1668() -> String { +fn default_1704() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1669() -> Value { +fn default_1705() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1670() -> String { +fn default_1706() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1671() -> bool { +fn default_1707() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1672() -> Option { +fn default_1708() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1673() -> Option { +fn default_1709() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1674() -> Option { +fn default_1710() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1675() -> String { +fn default_1711() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1676() -> String { +fn default_1712() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1677() -> String { +fn default_1713() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1678() -> String { +fn default_1714() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1679() -> String { +fn default_1715() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1680() -> Option { +fn default_1716() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1681() -> String { +fn default_1717() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1682() -> Vec { +fn default_1718() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1683() -> Vec { +fn default_1719() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1684() -> Option { +fn default_1720() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1685() -> String { +fn default_1721() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1686() -> String { +fn default_1722() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1687() -> String { +fn default_1723() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1688() -> String { +fn default_1724() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1689() -> Option { +fn default_1725() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1690() -> Integer { +fn default_1726() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1691() -> Integer { +fn default_1727() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1692() -> Integer { +fn default_1728() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1693() -> Integer { +fn default_1729() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1694() -> MemoryImportResultReason { +fn default_1730() -> MemoryImportResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1695() -> String { +fn default_1731() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1696() -> MemoryImportResultNote { +fn default_1732() -> MemoryImportResultNote { serde_json::from_str("\"\"").expect("schema default") } -fn default_1697() -> bool { +fn default_1733() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1698() -> String { +fn default_1734() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1699() -> Option { +fn default_1735() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1700() -> Integer { +fn default_1736() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1701() -> Integer { +fn default_1737() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1702() -> Integer { +fn default_1738() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1703() -> String { +fn default_1739() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1704() -> Integer { +fn default_1740() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1705() -> Vec { +fn default_1741() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1706() -> Integer { +fn default_1742() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1707() -> Integer { +fn default_1743() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1708() -> Vec { +fn default_1744() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1709() -> Integer { +fn default_1745() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1710() -> Vec { +fn default_1746() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1711() -> Vec { +fn default_1747() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1712() -> Vec { +fn default_1748() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1713() -> Vec { +fn default_1749() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1714() -> Vec { +fn default_1750() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1715() -> Option { +fn default_1751() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1716() -> Option { +fn default_1752() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1717() -> String { +fn default_1753() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1718() -> Integer { +fn default_1754() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1719() -> String { +fn default_1755() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1720() -> Vec { +fn default_1756() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1721() -> bool { +fn default_1757() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1722() -> Vec { +fn default_1758() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1723() -> Option { +fn default_1759() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1724() -> Option { +fn default_1760() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1725() -> String { +fn default_1761() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1726() -> Integer { +fn default_1762() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1727() -> String { +fn default_1763() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1728() -> Integer { +fn default_1764() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1729() -> Option { +fn default_1765() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1730() -> String { +fn default_1766() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1731() -> String { +fn default_1767() -> String { serde_json::from_str("\"Each request that extracts memories from messages may send extraction instructions; no user, agent or session setting stores them.\"").expect("schema default") } -fn default_1732() -> Vec { +fn default_1768() -> Vec { serde_json::from_str("[\"memory.set_from_messages\",\"extraction_instructions\"]") .expect("schema default") } -fn default_1733() -> Vec { +fn default_1769() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1734() -> bool { +fn default_1770() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1735() -> String { +fn default_1771() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1736() -> String { +fn default_1772() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1737() -> Option { +fn default_1773() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1738() -> String { +fn default_1774() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1739() -> String { +fn default_1775() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1740() -> String { +fn default_1776() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1741() -> MemoryLineageOutputMechanism { +fn default_1777() -> MemoryLineageOutputMechanism { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_1742() -> Vec { +fn default_1778() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1743() -> String { +fn default_1779() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1744() -> String { +fn default_1780() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1745() -> Option { +fn default_1781() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1746() -> Vec { +fn default_1782() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1747() -> f64 { +fn default_1783() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1748() -> bool { +fn default_1784() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1749() -> bool { +fn default_1785() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1750() -> Integer { +fn default_1786() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1751() -> Integer { +fn default_1787() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1752() -> String { +fn default_1788() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1753() -> bool { +fn default_1789() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1754() -> Integer { +fn default_1790() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1755() -> String { +fn default_1791() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1756() -> String { +fn default_1792() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1757() -> String { +fn default_1793() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1758() -> Option { +fn default_1794() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1759() -> String { +fn default_1795() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1760() -> Option { +fn default_1796() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1761() -> String { +fn default_1797() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1762() -> String { +fn default_1798() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1763() -> String { +fn default_1799() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1764() -> Integer { +fn default_1800() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1765() -> String { +fn default_1801() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1766() -> Vec { +fn default_1802() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1767() -> bool { +fn default_1803() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1768() -> String { +fn default_1804() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1769() -> String { +fn default_1805() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1770() -> String { +fn default_1806() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1771() -> bool { +fn default_1807() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1772() -> std::collections::HashMap { +fn default_1808() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1773() -> String { +fn default_1809() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1774() -> String { +fn default_1810() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1775() -> Integer { +fn default_1811() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1776() -> Integer { +fn default_1812() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1777() -> Vec { +fn default_1813() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1778() -> Integer { +fn default_1814() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1779() -> Integer { +fn default_1815() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1780() -> Vec { +fn default_1816() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1781() -> String { +fn default_1817() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1782() -> Integer { +fn default_1818() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1783() -> String { +fn default_1819() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1784() -> Vec { +fn default_1820() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1785() -> Integer { +fn default_1821() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1786() -> Option { +fn default_1822() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1787() -> Vec { +fn default_1823() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1788() -> Integer { +fn default_1824() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1789() -> String { +fn default_1825() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1790() -> String { +fn default_1826() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1791() -> Vec { +fn default_1827() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1792() -> String { +fn default_1828() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1793() -> String { +fn default_1829() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1794() -> String { +fn default_1830() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1795() -> String { +fn default_1831() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1796() -> String { +fn default_1832() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1797() -> String { +fn default_1833() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1798() -> Vec { +fn default_1834() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1799() -> String { +fn default_1835() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1800() -> Integer { +fn default_1836() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1801() -> Integer { +fn default_1837() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1802() -> String { +fn default_1838() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1803() -> Integer { +fn default_1839() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1804() -> Integer { +fn default_1840() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1805() -> MemoryProposalReady { +fn default_1841() -> MemoryProposalReady { serde_json::from_str("\"\"").expect("schema default") } -fn default_1806() -> Vec { +fn default_1842() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1807() -> Vec { +fn default_1843() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1808() -> Integer { +fn default_1844() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1809() -> ProposalPolicyMode { +fn default_1845() -> ProposalPolicyMode { serde_json::from_str("\"manual\"").expect("schema default") } -fn default_1810() -> Integer { +fn default_1846() -> Integer { serde_json::from_str("2").expect("schema default") } -fn default_1811() -> Integer { +fn default_1847() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1812() -> Integer { +fn default_1848() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1813() -> ProposalPolicy { +fn default_1849() -> ProposalPolicy { serde_json::from_str( "{\"mode\":\"manual\",\"min_passes\":2,\"max_fails\":0,\"reject_after_fails\":0}", ) .expect("schema default") } -fn default_1814() -> String { +fn default_1850() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1815() -> String { +fn default_1851() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1816() -> String { +fn default_1852() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1817() -> String { +fn default_1853() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1818() -> String { +fn default_1854() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1819() -> String { +fn default_1855() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1820() -> bool { +fn default_1856() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1821() -> String { +fn default_1857() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1822() -> String { +fn default_1858() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1823() -> String { +fn default_1859() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1824() -> String { +fn default_1860() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1825() -> String { +fn default_1861() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1826() -> String { +fn default_1862() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1827() -> String { +fn default_1863() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1828() -> String { +fn default_1864() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1829() -> String { +fn default_1865() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1830() -> Vec { +fn default_1866() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1831() -> f64 { +fn default_1867() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1832() -> String { +fn default_1868() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1833() -> String { +fn default_1869() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1834() -> Vec { +fn default_1870() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1835() -> String { +fn default_1871() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1836() -> String { +fn default_1872() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1837() -> String { +fn default_1873() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1838() -> String { +fn default_1874() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1839() -> bool { +fn default_1875() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1840() -> Integer { +fn default_1876() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1841() -> Integer { +fn default_1877() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1842() -> Integer { +fn default_1878() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1843() -> bool { +fn default_1879() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1844() -> String { +fn default_1880() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1845() -> Integer { +fn default_1881() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_1846() -> MemoryRecallOutputOrder { +fn default_1882() -> MemoryRecallOutputOrder { serde_json::from_str("\"recent\"").expect("schema default") } -fn default_1847() -> Vec { +fn default_1883() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1848() -> Integer { +fn default_1884() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1849() -> Value { +fn default_1885() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1850() -> Value { +fn default_1886() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1851() -> String { +fn default_1887() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1852() -> String { +fn default_1888() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1853() -> Option { +fn default_1889() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1854() -> Option { +fn default_1890() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1855() -> bool { +fn default_1891() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1856() -> String { +fn default_1892() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1857() -> String { +fn default_1893() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1858() -> std::collections::HashMap { +fn default_1894() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1859() -> std::collections::HashMap { +fn default_1895() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1860() -> MemoryRecordRowStatus { +fn default_1896() -> MemoryRecordRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1861() -> Option { +fn default_1897() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1862() -> Option { +fn default_1898() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1863() -> bool { +fn default_1899() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1864() -> String { +fn default_1900() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1865() -> MemoryRecordWriteOutputKeySource { +fn default_1901() -> MemoryRecordWriteOutputKeySource { serde_json::from_str("\"anonymous\"").expect("schema default") } -fn default_1866() -> std::collections::HashMap { +fn default_1902() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1867() -> String { +fn default_1903() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1868() -> Integer { +fn default_1904() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1869() -> bool { +fn default_1905() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1870() -> Option { +fn default_1906() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1871() -> Integer { +fn default_1907() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1872() -> Integer { +fn default_1908() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1873() -> Option { +fn default_1909() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1874() -> String { +fn default_1910() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1875() -> Integer { +fn default_1911() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1876() -> Integer { +fn default_1912() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1877() -> bool { +fn default_1913() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1878() -> Vec { +fn default_1914() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1879() -> Option { +fn default_1915() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1880() -> Option { +fn default_1916() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1881() -> bool { +fn default_1917() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1882() -> bool { +fn default_1918() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1883() -> String { +fn default_1919() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1884() -> f64 { +fn default_1920() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1885() -> String { +fn default_1921() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1886() -> String { +fn default_1922() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1887() -> std::collections::HashMap { +fn default_1923() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1888() -> bool { +fn default_1924() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1889() -> Integer { +fn default_1925() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1890() -> String { +fn default_1926() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1891() -> Vec { +fn default_1927() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1892() -> Vec { +fn default_1928() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1893() -> Integer { +fn default_1929() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1894() -> Integer { +fn default_1930() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1895() -> String { +fn default_1931() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1896() -> String { +fn default_1932() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1897() -> Integer { +fn default_1933() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_1898() -> Integer { +fn default_1934() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1899() -> Integer { +fn default_1935() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1900() -> Vec { +fn default_1936() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1901() -> Integer { +fn default_1937() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1902() -> Integer { +fn default_1938() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1903() -> Integer { +fn default_1939() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1904() -> Integer { +fn default_1940() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1905() -> Vec { +fn default_1941() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1906() -> String { +fn default_1942() -> String { serde_json::from_str("\"whole\"").expect("schema default") } -fn default_1907() -> Integer { +fn default_1943() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1908() -> Vec { +fn default_1944() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1909() -> Vec { +fn default_1945() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1910() -> Integer { +fn default_1946() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1911() -> Vec { +fn default_1947() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1912() -> Integer { +fn default_1948() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1913() -> Vec { +fn default_1949() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1914() -> Vec { +fn default_1950() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1915() -> bool { +fn default_1951() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1916() -> String { +fn default_1952() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1917() -> String { +fn default_1953() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1918() -> std::collections::HashMap { +fn default_1954() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1919() -> String { +fn default_1955() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1920() -> bool { +fn default_1956() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1921() -> Vec { +fn default_1957() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1922() -> Integer { +fn default_1958() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1923() -> Integer { +fn default_1959() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1924() -> String { +fn default_1960() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1925() -> String { +fn default_1961() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1926() -> String { +fn default_1962() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1927() -> bool { +fn default_1963() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1928() -> Integer { +fn default_1964() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1929() -> Option { +fn default_1965() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1930() -> String { +fn default_1966() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1931() -> String { +fn default_1967() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1932() -> String { +fn default_1968() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1933() -> Vec { +fn default_1969() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1934() -> Integer { +fn default_1970() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1935() -> Integer { +fn default_1971() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1936() -> Integer { +fn default_1972() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1937() -> Integer { +fn default_1973() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1938() -> Integer { +fn default_1974() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1939() -> Integer { +fn default_1975() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1940() -> bool { +fn default_1976() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1941() -> Vec> { +fn default_1977() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1942() -> Vec { +fn default_1978() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1943() -> Option { +fn default_1979() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1944() -> String { +fn default_1980() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1945() -> Integer { +fn default_1981() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1946() -> Option { +fn default_1982() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1947() -> Option { +fn default_1983() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1948() -> Option { +fn default_1984() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1949() -> Option { +fn default_1985() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1950() -> Vec { +fn default_1986() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1951() -> Integer { +fn default_1987() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1952() -> String { +fn default_1988() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1953() -> String { +fn default_1989() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1954() -> Option { +fn default_1990() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1955() -> String { +fn default_1991() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1956() -> String { +fn default_1992() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1957() -> String { +fn default_1993() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1958() -> String { +fn default_1994() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1959() -> Option { +fn default_1995() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1960() -> String { +fn default_1996() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1961() -> String { +fn default_1997() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1962() -> Integer { +fn default_1998() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1963() -> String { +fn default_1999() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1964() -> String { +fn default_2000() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1965() -> String { +fn default_2001() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1966() -> String { +fn default_2002() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1967() -> String { +fn default_2003() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1968() -> Integer { +fn default_2004() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1969() -> String { +fn default_2005() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1970() -> Vec { +fn default_2006() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1971() -> String { +fn default_2007() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1972() -> Integer { +fn default_2008() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1973() -> String { +fn default_2009() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1974() -> Integer { +fn default_2010() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1975() -> String { +fn default_2011() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1976() -> String { +fn default_2012() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1977() -> Integer { +fn default_2013() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1978() -> String { +fn default_2014() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1979() -> bool { +fn default_2015() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1980() -> String { +fn default_2016() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1981() -> String { +fn default_2017() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1982() -> String { +fn default_2018() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1983() -> String { +fn default_2019() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1984() -> Option { +fn default_2020() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1985() -> String { +fn default_2021() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1986() -> Integer { +fn default_2022() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1987() -> String { +fn default_2023() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1988() -> String { +fn default_2024() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1989() -> String { +fn default_2025() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1990() -> bool { +fn default_2026() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1991() -> Vec { +fn default_2027() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1992() -> std::collections::HashMap { +fn default_2028() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1993() -> String { +fn default_2029() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1994() -> Vec { +fn default_2030() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1995() -> std::collections::HashMap { +fn default_2031() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1996() -> Integer { +fn default_2032() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1997() -> Option { +fn default_2033() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1998() -> String { +fn default_2034() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1999() -> bool { +fn default_2035() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2000() -> Vec { +fn default_2036() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2001() -> Vec { +fn default_2037() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2002() -> std::collections::HashMap { +fn default_2038() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2003() -> Option { +fn default_2039() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2004() -> Vec { +fn default_2040() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2005() -> Integer { +fn default_2041() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2006() -> Integer { +fn default_2042() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2007() -> Vec { +fn default_2043() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2008() -> Option { +fn default_2044() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2009() -> Vec { +fn default_2045() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2010() -> Option { +fn default_2046() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2011() -> Option { +fn default_2047() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2012() -> Vec { +fn default_2048() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2013() -> bool { +fn default_2049() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2014() -> Vec { +fn default_2050() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2015() -> bool { +fn default_2051() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2016() -> Integer { +fn default_2052() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2017() -> Integer { +fn default_2053() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2018() -> Integer { +fn default_2054() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2019() -> Integer { +fn default_2055() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2020() -> Integer { +fn default_2056() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2021() -> Integer { +fn default_2057() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2022() -> Integer { +fn default_2058() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2023() -> Integer { +fn default_2059() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2024() -> Integer { +fn default_2060() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2025() -> f64 { +fn default_2061() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2026() -> Integer { +fn default_2062() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2027() -> Integer { +fn default_2063() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2028() -> Integer { +fn default_2064() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2029() -> Integer { +fn default_2065() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2030() -> Option { +fn default_2066() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2031() -> Option { +fn default_2067() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2032() -> Vec { +fn default_2068() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2033() -> String { +fn default_2069() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2034() -> String { +fn default_2070() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2035() -> Integer { +fn default_2071() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2036() -> Vec> { +fn default_2072() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2037() -> Vec { +fn default_2073() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2038() -> String { +fn default_2074() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2039() -> bool { +fn default_2075() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2040() -> String { +fn default_2076() -> String { serde_json::from_str("\"approval\"").expect("schema default") } -fn default_2041() -> String { +fn default_2077() -> String { serde_json::from_str("\"public\"").expect("schema default") } -fn default_2042() -> BrowseEntryMyStatus { +fn default_2078() -> BrowseEntryMyStatus { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2043() -> String { +fn default_2079() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2044() -> String { +fn default_2080() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2045() -> String { +fn default_2081() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2046() -> Integer { +fn default_2082() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2047() -> String { +fn default_2083() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2048() -> Option { +fn default_2084() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2049() -> Option { +fn default_2085() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2050() -> Vec { +fn default_2086() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2051() -> Option { +fn default_2087() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2052() -> Option { +fn default_2088() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2053() -> Option { +fn default_2089() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2054() -> Option> { +fn default_2090() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2055() -> Option { +fn default_2091() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2056() -> Option { +fn default_2092() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2057() -> Option { +fn default_2093() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2058() -> Option { +fn default_2094() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2059() -> Option { +fn default_2095() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2060() -> Option { +fn default_2096() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2061() -> Option { +fn default_2097() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2062() -> Option { +fn default_2098() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2063() -> Option { +fn default_2099() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2064() -> Option { +fn default_2100() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2065() -> Option { +fn default_2101() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2066() -> Option { +fn default_2102() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2067() -> Option { +fn default_2103() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2068() -> Option { +fn default_2104() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2069() -> Option { +fn default_2105() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2070() -> Option> { +fn default_2106() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2071() -> Option { +fn default_2107() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2072() -> Option { +fn default_2108() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2073() -> Option { +fn default_2109() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2074() -> Option { +fn default_2110() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2075() -> Option { +fn default_2111() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2076() -> Option>> { +fn default_2112() -> Option>> { serde_json::from_str("null").expect("schema default") } -fn default_2077() -> Option { +fn default_2113() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2078() -> Option { +fn default_2114() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2079() -> Option { +fn default_2115() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2080() -> Option { +fn default_2116() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2081() -> Option { +fn default_2117() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2082() -> Integer { +fn default_2118() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2083() -> String { +fn default_2119() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2084() -> String { +fn default_2120() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2085() -> String { +fn default_2121() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2086() -> String { +fn default_2122() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2087() -> Option { +fn default_2123() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2088() -> bool { +fn default_2124() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2089() -> Integer { +fn default_2125() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2090() -> String { +fn default_2126() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2091() -> String { +fn default_2127() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2092() -> String { +fn default_2128() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2093() -> String { +fn default_2129() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2094() -> Option { +fn default_2130() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2095() -> Option { +fn default_2131() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2096() -> String { +fn default_2132() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2097() -> Vec { +fn default_2133() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2098() -> String { +fn default_2134() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2099() -> String { +fn default_2135() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2100() -> Option { +fn default_2136() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2101() -> Vec { +fn default_2137() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2102() -> Option { +fn default_2138() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2103() -> String { +fn default_2139() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2104() -> bool { +fn default_2140() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2105() -> f64 { +fn default_2141() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2106() -> f64 { +fn default_2142() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2107() -> String { +fn default_2143() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2108() -> Option { +fn default_2144() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2109() -> Integer { +fn default_2145() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2110() -> Integer { +fn default_2146() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2111() -> NamespaceEntryVisibility { +fn default_2147() -> NamespaceEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2112() -> String { +fn default_2148() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2113() -> Option { +fn default_2149() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2114() -> Option { +fn default_2150() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2115() -> Vec { +fn default_2151() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2116() -> MineEntryVisibility { +fn default_2152() -> MineEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2117() -> String { +fn default_2153() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2118() -> String { +fn default_2154() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2119() -> String { +fn default_2155() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2120() -> Option { +fn default_2156() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2121() -> bool { +fn default_2157() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2122() -> bool { +fn default_2158() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2123() -> String { +fn default_2159() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2124() -> NamespaceRegisterOutputVisibility { +fn default_2160() -> NamespaceRegisterOutputVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2125() -> bool { +fn default_2161() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2126() -> Integer { +fn default_2162() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2127() -> Integer { +fn default_2163() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2128() -> bool { +fn default_2164() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2129() -> Vec> { +fn default_2165() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2130() -> Option { +fn default_2166() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2131() -> Option { +fn default_2167() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2132() -> Vec { +fn default_2168() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2133() -> Integer { +fn default_2169() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2134() -> String { +fn default_2170() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2135() -> String { +fn default_2171() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2136() -> String { +fn default_2172() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2137() -> String { +fn default_2173() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2138() -> String { +fn default_2174() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2139() -> Option { +fn default_2175() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2140() -> String { +fn default_2176() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2141() -> String { +fn default_2177() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2142() -> String { +fn default_2178() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2143() -> Vec { +fn default_2179() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2144() -> Option { +fn default_2180() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2145() -> Option { +fn default_2181() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2146() -> Option { +fn default_2182() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2147() -> Option { +fn default_2183() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2148() -> String { +fn default_2184() -> String { serde_json::from_str("\"{}\"").expect("schema default") } -fn default_2149() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { +fn default_2185() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2150() -> Option { +fn default_2186() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2151() -> Vec { +fn default_2187() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2152() -> String { +fn default_2188() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2153() -> Integer { +fn default_2189() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2154() -> Integer { +fn default_2190() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2155() -> Option { +fn default_2191() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2156() -> String { +fn default_2192() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2157() -> String { +fn default_2193() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2158() -> String { +fn default_2194() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2159() -> String { +fn default_2195() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2160() -> Option { +fn default_2196() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2161() -> f64 { +fn default_2197() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2162() -> Option { +fn default_2198() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2163() -> Option { +fn default_2199() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2164() -> Integer { +fn default_2200() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2165() -> Option { +fn default_2201() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2166() -> Option { +fn default_2202() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2167() -> String { +fn default_2203() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2168() -> Option { +fn default_2204() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2169() -> String { +fn default_2205() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2170() -> String { +fn default_2206() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2171() -> String { +fn default_2207() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2172() -> Option { +fn default_2208() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2173() -> String { +fn default_2209() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2174() -> Option { +fn default_2210() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2175() -> String { +fn default_2211() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2176() -> String { +fn default_2212() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2177() -> Vec { +fn default_2213() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2178() -> Vec { +fn default_2214() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2179() -> Option { +fn default_2215() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2180() -> Integer { +fn default_2216() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2181() -> String { +fn default_2217() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2182() -> Vec { +fn default_2218() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2183() -> Vec { +fn default_2219() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2184() -> String { +fn default_2220() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2185() -> Option { +fn default_2221() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2186() -> Vec { +fn default_2222() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2187() -> Integer { +fn default_2223() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2188() -> Vec { +fn default_2224() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2189() -> Option { +fn default_2225() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2190() -> Vec { +fn default_2226() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2191() -> Vec { +fn default_2227() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2192() -> Option { +fn default_2228() -> Option { serde_json::from_str("0").expect("schema default") } -fn default_2193() -> TuneProposalEffect { +fn default_2229() -> TuneProposalEffect { serde_json::from_str("\"future\"").expect("schema default") } -fn default_2194() -> TuneApplyVia { +fn default_2230() -> TuneApplyVia { serde_json::from_str("\"op\"").expect("schema default") } -fn default_2195() -> bool { +fn default_2231() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2196() -> Vec { +fn default_2232() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2197() -> Option { +fn default_2233() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2198() -> Option { +fn default_2234() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2199() -> String { +fn default_2235() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2200() -> Vec { +fn default_2236() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2201() -> Vec { +fn default_2237() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2202() -> Option { +fn default_2238() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2203() -> Option { +fn default_2239() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2204() -> Option { +fn default_2240() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2205() -> String { +fn default_2241() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2206() -> Option { +fn default_2242() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2207() -> Option { +fn default_2243() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2208() -> Option { +fn default_2244() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2209() -> Vec { +fn default_2245() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2210() -> bool { +fn default_2246() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2211() -> Option { +fn default_2247() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2212() -> Option { +fn default_2248() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2213() -> Vec { +fn default_2249() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2214() -> String { +fn default_2250() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2215() -> String { +fn default_2251() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2216() -> Vec> { +fn default_2252() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2217() -> std::collections::HashMap { +fn default_2253() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2218() -> Vec { +fn default_2254() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2219() -> Integer { +fn default_2255() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2220() -> Integer { +fn default_2256() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2221() -> String { +fn default_2257() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2222() -> String { +fn default_2258() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2223() -> String { +fn default_2259() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2224() -> Vec { +fn default_2260() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2225() -> Vec { +fn default_2261() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2226() -> String { +fn default_2262() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2227() -> String { +fn default_2263() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2228() -> bool { +fn default_2264() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2229() -> Integer { +fn default_2265() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2230() -> String { +fn default_2266() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2231() -> Option { +fn default_2267() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2232() -> Vec { +fn default_2268() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2233() -> String { +fn default_2269() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2234() -> String { +fn default_2270() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2235() -> String { +fn default_2271() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2236() -> Vec { +fn default_2272() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2237() -> String { +fn default_2273() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2238() -> String { +fn default_2274() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2239() -> std::collections::HashMap { +fn default_2275() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2240() -> String { +fn default_2276() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2241() -> Option { +fn default_2277() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2242() -> Option { +fn default_2278() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2243() -> bool { +fn default_2279() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2244() -> String { +fn default_2280() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2245() -> String { +fn default_2281() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2246() -> Vec { +fn default_2282() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2247() -> Integer { +fn default_2283() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2248() -> String { +fn default_2284() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2249() -> String { +fn default_2285() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2250() -> Option { +fn default_2286() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2251() -> bool { +fn default_2287() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2252() -> String { +fn default_2288() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2253() -> bool { +fn default_2289() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2254() -> String { +fn default_2290() -> String { serde_json::from_str("\"inherit\"").expect("schema default") } -fn default_2255() -> Option { +fn default_2291() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2256() -> Option { +fn default_2292() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2257() -> bool { +fn default_2293() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2258() -> Vec { +fn default_2294() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2259() -> Integer { +fn default_2295() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2260() -> ProcedureEvolveOutputGate { +fn default_2296() -> ProcedureEvolveOutputGate { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2261() -> String { +fn default_2297() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2262() -> f64 { +fn default_2298() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2263() -> std::collections::HashMap { +fn default_2299() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2264() -> std::collections::HashMap { +fn default_2300() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2265() -> std::collections::HashMap { +fn default_2301() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2266() -> std::collections::HashMap { +fn default_2302() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2267() -> String { +fn default_2303() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2268() -> Vec { +fn default_2304() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2269() -> Vec { +fn default_2305() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2270() -> Vec { +fn default_2306() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2271() -> std::collections::HashMap { +fn default_2307() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2272() -> Integer { +fn default_2308() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2273() -> bool { +fn default_2309() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2274() -> std::collections::HashMap { +fn default_2310() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2275() -> Vec { +fn default_2311() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2276() -> std::collections::HashMap { +fn default_2312() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2277() -> String { +fn default_2313() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2278() -> ProcedureLocateOutputStatus { +fn default_2314() -> ProcedureLocateOutputStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2279() -> Option> { +fn default_2315() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2280() -> Vec>> { +fn default_2316() -> Vec>> { serde_json::from_str("[]").expect("schema default") } -fn default_2281() -> Vec { +fn default_2317() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2282() -> Vec { +fn default_2318() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2283() -> std::collections::HashMap { +fn default_2319() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2284() -> bool { +fn default_2320() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2285() -> Vec { +fn default_2321() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2286() -> Vec> { +fn default_2322() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2287() -> String { +fn default_2323() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2288() -> std::collections::HashMap { +fn default_2324() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2289() -> std::collections::HashMap { +fn default_2325() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2290() -> Vec { +fn default_2326() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2291() -> std::collections::HashMap { +fn default_2327() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2292() -> Option> { +fn default_2328() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2293() -> bool { +fn default_2329() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2294() -> std::collections::HashMap { +fn default_2330() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2295() -> ProcedureMatchStatus { +fn default_2331() -> ProcedureMatchStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2296() -> Option> { +fn default_2332() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2297() -> Vec { +fn default_2333() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2298() -> Integer { +fn default_2334() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2299() -> Vec> { +fn default_2335() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2300() -> f64 { +fn default_2336() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2301() -> f64 { +fn default_2337() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2302() -> f64 { +fn default_2338() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2303() -> Option { +fn default_2339() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2304() -> std::collections::HashMap { +fn default_2340() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2305() -> std::collections::HashMap> { +fn default_2341() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2306() -> String { +fn default_2342() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2307() -> Integer { +fn default_2343() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2308() -> String { +fn default_2344() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2309() -> f64 { +fn default_2345() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2310() -> Vec { +fn default_2346() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2311() -> ProcedureReviseOutputOutcome { +fn default_2347() -> ProcedureReviseOutputOutcome { serde_json::from_str("\"opened\"").expect("schema default") } -fn default_2312() -> Vec { +fn default_2348() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2313() -> Vec { +fn default_2349() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2314() -> String { +fn default_2350() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2315() -> String { +fn default_2351() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2316() -> String { +fn default_2352() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2317() -> String { +fn default_2353() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2318() -> Option { +fn default_2354() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2319() -> Integer { +fn default_2355() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2320() -> Vec { +fn default_2356() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2321() -> std::collections::HashMap { +fn default_2357() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2322() -> Option { +fn default_2358() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2323() -> String { +fn default_2359() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2324() -> Integer { +fn default_2360() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2325() -> String { +fn default_2361() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2326() -> String { +fn default_2362() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2327() -> std::collections::HashMap { +fn default_2363() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2328() -> String { +fn default_2364() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2329() -> String { +fn default_2365() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2330() -> Option { +fn default_2366() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2331() -> RunBeginOutputStatus { +fn default_2367() -> RunBeginOutputStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2332() -> String { +fn default_2368() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2333() -> Integer { +fn default_2369() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2334() -> Integer { +fn default_2370() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2335() -> Integer { +fn default_2371() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2336() -> Integer { +fn default_2372() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2337() -> Vec { +fn default_2373() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2338() -> Integer { +fn default_2374() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2339() -> Integer { +fn default_2375() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2340() -> Integer { +fn default_2376() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2341() -> String { +fn default_2377() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2342() -> String { +fn default_2378() -> String { serde_json::from_str("\"keep\"").expect("schema default") } -fn default_2343() -> Integer { +fn default_2379() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2344() -> Integer { +fn default_2380() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2345() -> Integer { +fn default_2381() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2346() -> Option { +fn default_2382() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2347() -> Integer { +fn default_2383() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2348() -> Vec { +fn default_2384() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2349() -> Vec { +fn default_2385() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2350() -> Integer { +fn default_2386() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2351() -> Integer { +fn default_2387() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2352() -> Integer { +fn default_2388() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2353() -> f64 { +fn default_2389() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2354() -> Integer { +fn default_2390() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2355() -> Vec { +fn default_2391() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2356() -> Integer { +fn default_2392() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2357() -> Vec { +fn default_2393() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2358() -> Integer { +fn default_2394() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2359() -> Integer { +fn default_2395() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2360() -> Integer { +fn default_2396() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2361() -> Vec { +fn default_2397() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2362() -> Option { +fn default_2398() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2363() -> String { +fn default_2399() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2364() -> Integer { +fn default_2400() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2365() -> Integer { +fn default_2401() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2366() -> Integer { +fn default_2402() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2367() -> Integer { +fn default_2403() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2368() -> bool { +fn default_2404() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2369() -> bool { +fn default_2405() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2370() -> Option> { +fn default_2406() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2371() -> LiveSearchResultsLive { +fn default_2407() -> LiveSearchResultsLive { serde_json::from_str("true").expect("schema default") } -fn default_2372() -> String { +fn default_2408() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2373() -> LiveSearchHitLive { +fn default_2409() -> LiveSearchHitLive { serde_json::from_str("true").expect("schema default") } -fn default_2374() -> Vec { +fn default_2410() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2375() -> Option { +fn default_2411() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2376() -> std::collections::HashMap { +fn default_2412() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2377() -> std::collections::HashMap { +fn default_2413() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2378() -> std::collections::HashMap { +fn default_2414() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2379() -> std::collections::HashMap { +fn default_2415() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2380() -> Option> { +fn default_2416() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2381() -> Vec { +fn default_2417() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2382() -> Integer { +fn default_2418() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2383() -> String { +fn default_2419() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2384() -> Integer { +fn default_2420() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2385() -> String { +fn default_2421() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2386() -> String { +fn default_2422() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2387() -> String { +fn default_2423() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2388() -> String { +fn default_2424() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2389() -> String { +fn default_2425() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2390() -> String { +fn default_2426() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2391() -> String { +fn default_2427() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2392() -> String { +fn default_2428() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2393() -> Vec { +fn default_2429() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2394() -> String { +fn default_2430() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2395() -> String { +fn default_2431() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2396() -> Vec { +fn default_2432() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2397() -> String { +fn default_2433() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2398() -> String { +fn default_2434() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2399() -> Vec { +fn default_2435() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2400() -> Vec { +fn default_2436() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2401() -> Vec { +fn default_2437() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2402() -> String { +fn default_2438() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2403() -> String { +fn default_2439() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2404() -> Vec { +fn default_2440() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2405() -> Vec { +fn default_2441() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2406() -> Vec { +fn default_2442() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2407() -> String { +fn default_2443() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2408() -> String { +fn default_2444() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2409() -> Option { +fn default_2445() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2410() -> String { +fn default_2446() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2411() -> String { +fn default_2447() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2412() -> String { +fn default_2448() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2413() -> String { +fn default_2449() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2414() -> String { +fn default_2450() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2415() -> String { +fn default_2451() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2416() -> Vec { +fn default_2452() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2417() -> Option { +fn default_2453() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2418() -> Integer { +fn default_2454() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2419() -> Integer { +fn default_2455() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2420() -> Integer { +fn default_2456() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2421() -> Integer { +fn default_2457() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2422() -> Integer { +fn default_2458() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2423() -> bool { +fn default_2459() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2424() -> String { +fn default_2460() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2425() -> String { +fn default_2461() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2426() -> String { +fn default_2462() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2427() -> String { +fn default_2463() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2428() -> String { +fn default_2464() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2429() -> String { +fn default_2465() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2430() -> String { +fn default_2466() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2431() -> Option { +fn default_2467() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2432() -> Integer { +fn default_2468() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2433() -> Integer { +fn default_2469() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2434() -> Vec { +fn default_2470() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2435() -> String { +fn default_2471() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2436() -> String { +fn default_2472() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2437() -> String { +fn default_2473() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2438() -> String { +fn default_2474() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2439() -> Integer { +fn default_2475() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2440() -> Integer { +fn default_2476() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2441() -> Integer { +fn default_2477() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2442() -> Integer { +fn default_2478() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2443() -> Integer { +fn default_2479() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2444() -> f64 { +fn default_2480() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2445() -> Integer { +fn default_2481() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2446() -> Integer { +fn default_2482() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2447() -> Integer { +fn default_2483() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2448() -> String { +fn default_2484() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2449() -> SessionBriefStats { +fn default_2485() -> SessionBriefStats { serde_json::from_str("{\"events_in\":0,\"windows\":0,\"events_total\":0,\"source_chars\":0,\"brief_chars\":0,\"compression_ratio\":0.0,\"dropped_ungrounded\":0,\"tokens_in\":0,\"tokens_out\":0,\"llm_model\":\"\"}").expect("schema default") } -fn default_2450() -> String { +fn default_2486() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2451() -> String { +fn default_2487() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2452() -> Option { +fn default_2488() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2453() -> Option { +fn default_2489() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2454() -> Option { +fn default_2490() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2455() -> Integer { +fn default_2491() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2456() -> std::collections::HashMap { +fn default_2492() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2457() -> String { +fn default_2493() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2458() -> String { +fn default_2494() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2459() -> Option { +fn default_2495() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2460() -> String { +fn default_2496() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2461() -> Integer { +fn default_2497() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2462() -> Integer { +fn default_2498() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2463() -> Option { +fn default_2499() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2464() -> std::collections::HashMap { +fn default_2500() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2465() -> String { +fn default_2501() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2466() -> Integer { +fn default_2502() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2467() -> String { +fn default_2503() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2468() -> Option { +fn default_2504() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2469() -> String { +fn default_2505() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2470() -> Option { +fn default_2506() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2471() -> String { +fn default_2507() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2472() -> String { +fn default_2508() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2473() -> String { +fn default_2509() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2474() -> String { +fn default_2510() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2475() -> Integer { +fn default_2511() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2476() -> Integer { +fn default_2512() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2477() -> String { +fn default_2513() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2478() -> std::collections::HashMap { +fn default_2514() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2479() -> String { +fn default_2515() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2480() -> String { +fn default_2516() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2481() -> bool { +fn default_2517() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2482() -> String { +fn default_2518() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2483() -> std::collections::HashMap { +fn default_2519() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2484() -> Vec> { +fn default_2520() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2485() -> Vec { +fn default_2521() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2486() -> Vec { +fn default_2522() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2487() -> bool { +fn default_2523() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2488() -> String { +fn default_2524() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_2489() -> String { +fn default_2525() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2490() -> Vec { +fn default_2526() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2491() -> bool { +fn default_2527() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2492() -> String { +fn default_2528() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2493() -> bool { +fn default_2529() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2494() -> Vec { +fn default_2530() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2495() -> std::collections::HashMap { +fn default_2531() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2496() -> Vec> { +fn default_2532() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2497() -> bool { +fn default_2533() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2498() -> bool { +fn default_2534() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2499() -> Vec> { +fn default_2535() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2500() -> std::collections::HashMap { +fn default_2536() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2501() -> String { +fn default_2537() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2502() -> Vec> { +fn default_2538() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2503() -> bool { +fn default_2539() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2504() -> String { +fn default_2540() -> String { serde_json::from_str("\"calibrated\"").expect("schema default") } -fn default_2505() -> std::collections::HashMap { +fn default_2541() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2506() -> std::collections::HashMap { +fn default_2542() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2507() -> String { +fn default_2543() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2508() -> std::collections::HashMap { +fn default_2544() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2509() -> std::collections::HashMap { +fn default_2545() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2510() -> std::collections::HashMap { +fn default_2546() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2511() -> String { +fn default_2547() -> String { serde_json::from_str("\"ok\"").expect("schema default") } -fn default_2512() -> String { +fn default_2548() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2513() -> String { +fn default_2549() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2514() -> bool { +fn default_2550() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2515() -> Integer { +fn default_2551() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2516() -> String { +fn default_2552() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2517() -> String { +fn default_2553() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2518() -> Vec { +fn default_2554() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2519() -> bool { +fn default_2555() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2520() -> Vec { +fn default_2556() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2521() -> std::collections::HashMap> { +fn default_2557() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2522() -> Vec> { +fn default_2558() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2523() -> Vec> { +fn default_2559() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2524() -> String { +fn default_2560() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2525() -> Vec> { +fn default_2561() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2526() -> std::collections::HashMap { +fn default_2562() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2527() -> String { +fn default_2563() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2528() -> Vec> { +fn default_2564() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2529() -> bool { +fn default_2565() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2530() -> Integer { +fn default_2566() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2531() -> Vec> { +fn default_2567() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2532() -> String { +fn default_2568() -> String { serde_json::from_str("\"no_flaky_signal\"").expect("schema default") } -fn default_2533() -> bool { +fn default_2569() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2534() -> Option> { +fn default_2570() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2535() -> Vec { +fn default_2571() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2536() -> bool { +fn default_2572() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2537() -> std::collections::HashMap { +fn default_2573() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2538() -> String { +fn default_2574() -> String { serde_json::from_str("\"not_computed\"").expect("schema default") } -fn default_2539() -> Vec> { +fn default_2575() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2540() -> String { +fn default_2576() -> String { serde_json::from_str("\"candidate\"").expect("schema default") } -fn default_2541() -> std::collections::HashMap { +fn default_2577() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2542() -> String { +fn default_2578() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2543() -> bool { +fn default_2579() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2544() -> Integer { +fn default_2580() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2545() -> std::collections::HashMap { +fn default_2581() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2546() -> bool { +fn default_2582() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2547() -> Vec> { +fn default_2583() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2548() -> std::collections::HashMap { +fn default_2584() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2549() -> std::collections::HashMap { +fn default_2585() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2550() -> String { +fn default_2586() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_2551() -> bool { +fn default_2587() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2552() -> Vec { +fn default_2588() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2553() -> Vec> { +fn default_2589() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2554() -> std::collections::HashMap { +fn default_2590() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2555() -> Vec { +fn default_2591() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2556() -> String { +fn default_2592() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2557() -> bool { +fn default_2593() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2558() -> bool { +fn default_2594() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2559() -> std::collections::HashMap { +fn default_2595() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2560() -> String { +fn default_2596() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2561() -> bool { +fn default_2597() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2562() -> std::collections::HashMap { +fn default_2598() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2563() -> std::collections::HashMap { +fn default_2599() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2564() -> Vec> { +fn default_2600() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2565() -> Vec { +fn default_2601() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2566() -> std::collections::HashMap { +fn default_2602() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2567() -> Vec> { +fn default_2603() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2568() -> bool { +fn default_2604() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2569() -> bool { +fn default_2605() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2570() -> Vec { +fn default_2606() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2571() -> std::collections::HashMap { +fn default_2607() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2572() -> String { +fn default_2608() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2573() -> std::collections::HashMap { +fn default_2609() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2574() -> bool { +fn default_2610() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2575() -> bool { +fn default_2611() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2576() -> String { +fn default_2612() -> String { serde_json::from_str("\"no_signal\"").expect("schema default") } -fn default_2577() -> Vec { +fn default_2613() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2578() -> f64 { +fn default_2614() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2579() -> Integer { +fn default_2615() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2580() -> String { +fn default_2616() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2581() -> std::collections::HashMap { +fn default_2617() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2582() -> std::collections::HashMap { +fn default_2618() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2583() -> std::collections::HashMap { +fn default_2619() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2584() -> std::collections::HashMap { +fn default_2620() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2585() -> String { +fn default_2621() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2586() -> std::collections::HashMap { +fn default_2622() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2587() -> bool { +fn default_2623() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2588() -> std::collections::HashMap { +fn default_2624() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2589() -> std::collections::HashMap { +fn default_2625() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2590() -> std::collections::HashMap { +fn default_2626() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2591() -> std::collections::HashMap { +fn default_2627() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2592() -> String { +fn default_2628() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2593() -> Vec> { +fn default_2629() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2594() -> Integer { +fn default_2630() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2595() -> String { +fn default_2631() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2596() -> bool { +fn default_2632() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2597() -> String { +fn default_2633() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2598() -> Vec { +fn default_2634() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2599() -> bool { +fn default_2635() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2600() -> Vec { +fn default_2636() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2601() -> f64 { +fn default_2637() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2602() -> String { +fn default_2638() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2603() -> Integer { +fn default_2639() -> Integer { serde_json::from_str("4096").expect("schema default") } -fn default_2604() -> Integer { +fn default_2640() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2605() -> Option { +fn default_2641() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2606() -> f64 { +fn default_2642() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2607() -> Option { +fn default_2643() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2608() -> Vec { +fn default_2644() -> Vec { serde_json::from_str("[]").expect("schema default") } diff --git a/sdk/rust/tests/registry_contracts.rs b/sdk/rust/tests/registry_contracts.rs index 191f54d96d..db0c7e3bc4 100644 --- a/sdk/rust/tests/registry_contracts.rs +++ b/sdk/rust/tests/registry_contracts.rs @@ -10084,6 +10084,116 @@ fn code_blame_range() { ); } #[test] +fn code_branch_diff() { + let value: clickhouse_loom::CodeBranchDiffInput = + serde_json::from_str("{\"against\":\"sample\"}").unwrap(); + let encoded = serde_json::to_value(value).unwrap(); + assert!(encoded.is_object()); + let value: clickhouse_loom::CodeBranchDiffOutput = serde_json::from_str("{}").unwrap(); + let encoded = serde_json::to_value(value).unwrap(); + assert!(encoded.is_object()); + assert_eq!( + encoded["compares"], + serde_json::from_str::("\"\"").unwrap(), + "code.branch.diff:compares" + ); + assert_eq!( + encoded["head"], + serde_json::from_str::("null").unwrap(), + "code.branch.diff:head" + ); + assert_eq!( + encoded["base"], + serde_json::from_str::("null").unwrap(), + "code.branch.diff:base" + ); + assert_eq!( + encoded["divergence"], + serde_json::from_str::("null").unwrap(), + "code.branch.diff:divergence" + ); + assert_eq!( + encoded["heads_stable"], + serde_json::from_str::("true").unwrap(), + "code.branch.diff:heads_stable" + ); + assert_eq!( + encoded["files_added"], + serde_json::from_str::("[]").unwrap(), + "code.branch.diff:files_added" + ); + assert_eq!( + encoded["files_removed"], + serde_json::from_str::("[]").unwrap(), + "code.branch.diff:files_removed" + ); + assert_eq!( + encoded["files_changed"], + serde_json::from_str::("[]").unwrap(), + "code.branch.diff:files_changed" + ); + assert_eq!( + encoded["files_added_total"], + serde_json::from_str::("0").unwrap(), + "code.branch.diff:files_added_total" + ); + assert_eq!( + encoded["files_removed_total"], + serde_json::from_str::("0").unwrap(), + "code.branch.diff:files_removed_total" + ); + assert_eq!( + encoded["files_changed_total"], + serde_json::from_str::("0").unwrap(), + "code.branch.diff:files_changed_total" + ); + assert_eq!( + encoded["definitions"], + serde_json::from_str::("[]").unwrap(), + "code.branch.diff:definitions" + ); + assert_eq!( + encoded["definitions_total"], + serde_json::from_str::("0").unwrap(), + "code.branch.diff:definitions_total" + ); + assert_eq!( + encoded["definitions_moved"], + serde_json::from_str::("0").unwrap(), + "code.branch.diff:definitions_moved" + ); + assert_eq!( + encoded["definitions_complete"], + serde_json::from_str::("true").unwrap(), + "code.branch.diff:definitions_complete" + ); + assert_eq!( + encoded["truncated"], + serde_json::from_str::("false").unwrap(), + "code.branch.diff:truncated" + ); + assert_eq!( + encoded["overlaps"], + serde_json::from_str::("[]").unwrap(), + "code.branch.diff:overlaps" + ); + assert_eq!( + encoded["overlaps_skipped"], + serde_json::from_str::("[]").unwrap(), + "code.branch.diff:overlaps_skipped" + ); + assert_eq!( + encoded["as_of"], + serde_json::from_str::("{}").unwrap(), + "code.branch.diff:as_of" + ); + assert_eq!( + encoded["against_as_of"], + serde_json::from_str::("{}").unwrap(), + "code.branch.diff:against_as_of" + ); +} +#[test] fn code_setting_facts() { let value: clickhouse_loom::CodeSettingFactsInput = serde_json::from_str("{\"name\":\"sample\"}").unwrap(); diff --git a/sdk/typescript/src/generated/ops.ts b/sdk/typescript/src/generated/ops.ts index 22156720cd..c687081f6f 100644 --- a/sdk/typescript/src/generated/ops.ts +++ b/sdk/typescript/src/generated/ops.ts @@ -418,6 +418,81 @@ export interface CodeBlameRangeOutput { trace_run_id?: string; } +export interface CodeBranchDiffInput { + org?: string; + namespace?: string; + agent?: string; + user_id?: string; + consumer?: string; + /** The namespace to compare `namespace` against, usually the trunk's. */ + against: string; + /** Compare only the paths under this prefix; '' compares every indexed path. */ + path_prefix?: string; + /** Also name the other readable namespaces of this repository that change the same definitions against the same base. */ + overlaps?: boolean; + /** At most this many rows in each list of the answer (1..500). */ + limit?: number; +} + +export interface BranchDiffSide { + namespace: string; + git_branch?: string; + git_head: string; +} + +export interface BranchDiffDivergence { + state?: string; + merge_base?: string; + ahead?: number; + behind?: number; + reason?: string; +} + +export interface BranchDiffDefinition { + path: string; + qualified_name: string; + kind: string; + change: string; + reasons?: string[]; + start_line?: number; + end_line?: number; + signature?: string; + base_start_line?: number; + base_end_line?: number; + base_signature?: string; +} + +export interface BranchDiffOverlap { + namespace: string; + git_branch?: string; + git_head: string; + definitions?: Array>; + definitions_total?: number; +} + +export interface CodeBranchDiffOutput { + compares?: string; + head?: BranchDiffSide | null; + base?: BranchDiffSide | null; + divergence?: BranchDiffDivergence | null; + heads_stable?: boolean; + files_added?: string[]; + files_removed?: string[]; + files_changed?: string[]; + files_added_total?: number; + files_removed_total?: number; + files_changed_total?: number; + definitions?: BranchDiffDefinition[]; + definitions_total?: number; + definitions_moved?: number; + definitions_complete?: boolean; + truncated?: boolean; + overlaps?: BranchDiffOverlap[]; + overlaps_skipped?: Array>; + as_of?: Record; + against_as_of?: Record; +} + export interface CodeCalibrateInput { org?: string; namespace?: string; @@ -11066,6 +11141,7 @@ export type OpName = | "code.backport_gaps" | "code.bisect_candidates" | "code.blame_range" + | "code.branch.diff" | "code.calibrate" | "code.callees" | "code.callers" @@ -11456,6 +11532,7 @@ export interface OpMap { "code.backport_gaps": { input: CodeBackportGapsInput; output: CodeBackportGapsOutput }; "code.bisect_candidates": { input: CodeBisectCandidatesInput; output: CodeBisectCandidatesOutput }; "code.blame_range": { input: CodeBlameRangeInput; output: CodeBlameRangeOutput }; + "code.branch.diff": { input: CodeBranchDiffInput; output: CodeBranchDiffOutput }; "code.calibrate": { input: CodeCalibrateInput; output: CodeCalibrateOutput }; "code.callees": { input: CodeCallersInput; output: CodeCallersOutput }; "code.callers": { input: CodeCallersInput; output: CodeCallersOutput }; @@ -11846,6 +11923,7 @@ export const OPS: readonly OpSpec[] = [ { name: "code.backport_gaps", group: "code", method: "backportGaps", idempotent: true, role: "viewer", maturity: "experimental", budgetP99Ms: 500, audit: false, readOnly: true }, { name: "code.bisect_candidates", group: "code", method: "bisectCandidates", idempotent: true, role: "viewer", maturity: "experimental", budgetP99Ms: 1500, audit: false, readOnly: true }, { name: "code.blame_range", group: "code", method: "blameRange", idempotent: true, role: "viewer", maturity: "experimental", budgetP99Ms: 6000, audit: false, readOnly: true }, + { name: "code.branch.diff", group: "code", method: "branchDiff", idempotent: true, role: "viewer", maturity: "experimental", budgetP99Ms: 3000, audit: false, readOnly: true }, { name: "code.calibrate", group: "code", method: "calibrate", idempotent: false, role: "admin", maturity: "stable", budgetP99Ms: 30000, audit: true, readOnly: false }, { name: "code.callees", group: "code", method: "callees", idempotent: true, role: "viewer", maturity: "experimental", budgetP99Ms: 400, audit: false, readOnly: true }, { name: "code.callers", group: "code", method: "callers", idempotent: true, role: "viewer", maturity: "stable", budgetP99Ms: 400, audit: false, readOnly: true }, @@ -12225,4 +12303,4 @@ export const OP_BY_NAME: Readonly> = Object.fromEntries( OPS.map((o) => [o.name, o]), ) as Readonly>; -export const GENERATED_OP_COUNT = 387; +export const GENERATED_OP_COUNT = 388; diff --git a/server/code/api/models_branch.py b/server/code/api/models_branch.py new file mode 100644 index 0000000000..5bafdaa084 --- /dev/null +++ b/server/code/api/models_branch.py @@ -0,0 +1,144 @@ +"""code.branch.diff: how two indexed branches of a repository differ, tip to tip.""" + +from __future__ import annotations + +from typing import Any + +from pydantic import BaseModel, Field + +from server.code.api.models_common import _CodeIdentity + + +class CodeBranchDiffInput(_CodeIdentity): + """The files, then the definitions, that `namespace` has and `against` lacks or holds + differently: both branches' indexed heads compared tip to tip, files by blob. Both + namespaces must be readable; an unreadable one refuses the call.""" + + against: str = Field( + min_length=1, + max_length=200, + description="The namespace to compare `namespace` against, usually the trunk's.", + ) + path_prefix: str = Field( + default="", + max_length=500, + description="Compare only the paths under this prefix; '' compares every indexed path.", + ) + overlaps: bool = Field( + default=False, + description=( + "Also name the other readable namespaces of this repository that change the " + "same definitions against the same base." + ), + ) + limit: int = Field( + default=100, + ge=1, + le=500, + description="At most this many rows in each list of the answer (1..500).", + ) + + +class BranchDiffDefinition(BaseModel): + path: str + qualified_name: str + kind: str + # added | removed | changed, seen from `namespace`: an added definition is one + # `namespace` has and `against` lacks. + change: str + # For a changed definition, what differs: `signature`, `size` (the line span's + # length) and `body` (its text, compared through the content hashes of the chunks + # tagged with it). A definition that only moved down the file because lines were + # added above it is not changed; `definitions_moved` counts those. + reasons: list[str] = Field(default_factory=list) + # The span and signature on `namespace`'s side (0 and '' for a removed definition). + start_line: int = 0 + end_line: int = 0 + signature: str = "" + # The span and signature on `against`'s side (0 and '' for an added definition). + base_start_line: int = 0 + base_end_line: int = 0 + base_signature: str = "" + + +class BranchDiffSide(BaseModel): + namespace: str + # The branch the namespace indexes ('' when the entry is not configured on this process). + git_branch: str = "" + # The indexed head the rows were read at. + git_head: str + + +class BranchDiffOverlap(BaseModel): + """One other namespace of the repository that changes some of the same definitions.""" + + namespace: str + git_branch: str = "" + git_head: str + # Each definition both namespaces change against `against`: path, qualified_name, + # kind, `change` here and `change_there`. + definitions: list[dict[str, Any]] = Field(default_factory=list) + definitions_total: int = 0 + + +class BranchDiffDivergence(BaseModel): + """Where the two indexed heads stand in the repository's git mirror.""" + + # `known`, or `unknown` with `reason` (no mirror on this process, a head the mirror + # lacks, a git read that failed or ran out of time). + state: str = "unknown" + # The best common ancestor of the two heads. + merge_base: str = "" + # Commits `head` has that `base` lacks, and commits `base` has that `head` lacks. + ahead: int = 0 + behind: int = 0 + reason: str = "" + + +class CodeBranchDiffOutput(BaseModel): + # What the answer compares, in words: the two indexed heads, tip to tip. It is not + # a merge-base diff and does not say what a merge would do. + compares: str = "" + # `namespace`'s side, then `against`'s: each head is the commit pinned for every row below. + head: BranchDiffSide | None = None + base: BranchDiffSide | None = None + # The two heads' merge-base and how far each is from it, so a removal can be read as + # this branch removing a path or the trunk adding it after the fork. + divergence: BranchDiffDivergence | None = None + # False when either side's indexed head, or an overlap row's, moved while the rows were + # read; was partway through publishing a commit; holds definition rows another + # commit's — changed under the read, whatever version their writer stamped them with, or + # naming a commit the head does not contain — or holds a file the head's tree does not: + # the answer may mix two commits of that side. A file the index declines to hold is not a + # publish. Call again once the publish completes. + heads_stable: bool = True + # Paths `namespace` has and `against` lacks, removed paths the other way round, and + # paths both have with a different blob; each list is sorted and cut at `limit`. + files_added: list[str] = Field(default_factory=list) + files_removed: list[str] = Field(default_factory=list) + files_changed: list[str] = Field(default_factory=list) + files_added_total: int = 0 + files_removed_total: int = 0 + files_changed_total: int = 0 + # The definitions (tree-sitter tier) on the added, removed and changed paths that one + # side has and the other lacks or holds with another signature, span length or text, + # by path then name, cut at `limit`. + definitions: list[BranchDiffDefinition] = Field(default_factory=list) + definitions_total: int = 0 + # Definitions whose only difference is their start line. + definitions_moved: int = 0 + # False when more paths differ than the definition read covers; the definitions + # listed are those of the first paths in order. Narrow with `path_prefix`. + definitions_complete: bool = True + # True when any list above was cut at `limit`. + truncated: bool = False + # With `overlaps`: the other readable namespaces of the repository that change a + # definition `namespace` changes, against the same `against`. + overlaps: list[BranchDiffOverlap] = Field(default_factory=list) + # Namespaces the overlap read left out, each {namespace, reason}: `not_readable`, + # `not_indexed` or `over_cap`. + overlaps_skipped: list[dict[str, str]] = Field(default_factory=list) + # Provenance and freshness of `namespace`'s index (branch, commit, lag_commits, stale). + as_of: dict[str, Any] = Field(default_factory=dict) + # The same for `against`'s index. + against_as_of: dict[str, Any] = Field(default_factory=dict) diff --git a/server/code/api/ops.py b/server/code/api/ops.py index c97afe7f28..52cf290cbb 100644 --- a/server/code/api/ops.py +++ b/server/code/api/ops.py @@ -5,6 +5,7 @@ from __future__ import annotations +from server.code.api.models_branch import CodeBranchDiffInput, CodeBranchDiffOutput from server.code.api.models_context import ( CodeContextPackInput, CodeContextPackOutput, @@ -136,6 +137,7 @@ from server.code.app.backport_gaps import handle_code_backport_gaps from server.code.app.bisect import handle_code_bisect_candidates from server.code.app.blame import handle_code_blame_range +from server.code.app.branch_diff import handle_code_branch_diff from server.code.app.citations import handle_code_verify_citations from server.code.app.context import ( handle_code_context_pack, @@ -314,6 +316,15 @@ idempotent=True, required_role=Role.VIEWER, ), + Operation( + name="code.branch.diff", + maturity="experimental", + input_model=CodeBranchDiffInput, + output_model=CodeBranchDiffOutput, + handler=handle_code_branch_diff, + idempotent=True, + required_role=Role.VIEWER, + ), Operation( name="code.setting_facts", maturity="experimental", diff --git a/server/code/app/branch_diff.py b/server/code/app/branch_diff.py new file mode 100644 index 0000000000..753857780b --- /dev/null +++ b/server/code/app/branch_diff.py @@ -0,0 +1,622 @@ +"""code.branch.diff: how two indexed branches of a repository differ. + +`namespace` is compared against `against` tip to tip: the files from the two namespaces' +`code_files` rows under the same path prefix, judged by blob; then, for the paths that +differ, the definitions from the two namespaces' tree-sitter `code_symbols` rows, their text +compared through the content hashes of the `code_chunks` rows tagged with them. Each +namespace is one branch's indexed head, so the answer says what the two indexes hold, not +what a merge would do. Both heads are pinned in the answer, and `divergence` gives their +merge-base and ahead/behind counts from the shared git mirror when this process holds it. +`heads_stable` is false when either head, or the head of an overlap row, moved during the +reads, when that side was partway through publishing a commit before or after them, or when +the rows the answer is built from were not the rows the read captured: definitions whose +`code_symbols` or `code_chunks` rows changed under the read, or name a commit the head does +not contain (another commit's either way, whatever version its writer stamped it with), or +files the head's tree does not hold at the manifest's paths. A file the index declines to +hold — a binary, a path outside the configured prefixes — is not a publish. Where the +serving process holds no mirror of the repository, the tree and ancestry legs are left out +and the rest stands. + +Both namespaces are authorized before any read (fail closed: one unreadable side refuses +the call). `overlaps` adds the other namespaces of the repository that Loom itself looks up; +an unreadable one is skipped and disclosed, as in every fan-out Loom expands. +""" + +from __future__ import annotations + +import asyncio +import logging +from dataclasses import dataclass +from typing import Any, NamedTuple + +from server.code.api.models_branch import ( + BranchDiffDefinition, + BranchDiffDivergence, + BranchDiffOverlap, + BranchDiffSide, + CodeBranchDiffInput, + CodeBranchDiffOutput, +) +from server.code.app.common import ( + index_as_of, + require_code_intel, + resolve_code_identity, +) +from server.code.app.spans import code_span, set_code_span_attributes, span_attrs +from server.code.domain.index.branch_diff import ( + DefinitionChange, + FileDiff, + Fingerprints, + Manifest, + diff_definitions, + diff_files, + same_blob, + shared_changes, +) +from server.code.domain.index.state import IndexState +from server.code.store.index import CodeRepo +from server.settings import settings + +COMPARES = ( + "the two indexed heads, tip to tip: each namespace's own index at the commit pinned " + "in `head` and `base`. It is not a merge-base diff and does not say what a merge " + "would change; `divergence` gives the heads' merge-base and how far each is from it." +) + +logger = logging.getLogger("loom.code_index.branch_diff") +_TIER = "treesitter" + + +async def handle_code_branch_diff(input: CodeBranchDiffInput) -> CodeBranchDiffOutput: + from server.code.app.search_fanout import authorize + from server.core.errors import PreconditionFailedError, ValidationError + + require_code_intel() + org, ns = resolve_code_identity(input.org, input.namespace) + against = input.against.strip() + if not against or against == ns: + raise ValidationError("code.branch.diff: `against` must name another namespace") + await authorize(org, [ns, against], op="code.branch.diff") + repo = CodeRepo() + (head_commit, base_commit), publishing = await _published_heads(repo, org, [ns, against]) + missing = [n for n, c in ((ns, head_commit), (against, base_commit)) if not c] + if missing: + raise PreconditionFailedError( + f"code.branch.diff: {missing} has no indexed head yet; compare once it is indexed" + ) + with code_span("branch_diff.files", route="branch_diff") as sp: + head_files, base_files, divergence = await asyncio.gather( + _manifest(repo, org, ns, input.path_prefix), + _manifest(repo, org, against, input.path_prefix), + _divergence(org, ns, against, head_commit, base_commit), + ) + files = diff_files(head_files, base_files) + span_attrs( + sp, added=len(files.added), removed=len(files.removed), changed=len(files.changed) + ) + paths = files.paths + read_paths = paths[: settings.code_branch_diff_max_definition_paths] + model = _chunk_model() + with code_span("branch_diff.definitions", route="branch_diff") as sp: + ( + head_capture, + base_capture, + head_symbols, + base_symbols, + head_fps, + base_fps, + ) = await asyncio.gather( + repo.definition_capture(org, ns, read_paths, model, _TIER), + repo.definition_capture(org, against, read_paths, model, _TIER), + repo.live_symbols_for_paths(org, ns, read_paths, _TIER), + repo.live_symbols_for_paths(org, against, read_paths, _TIER), + repo.definition_fingerprints(org, ns, read_paths, model), + repo.definition_fingerprints(org, against, read_paths, model), + ) + changes, moved = diff_definitions(head_symbols, base_symbols, head_fps, base_fps) + span_attrs(sp, paths=len(read_paths), definitions=len(changes)) + overlaps: list[BranchDiffOverlap] = [] + skipped: list[dict[str, str]] = [] + overlaps_stable = True + if input.overlaps: + overlaps, skipped, overlaps_stable = await _overlaps( + repo, + org, + ns, + against, + changes, + _Base(base_files, base_symbols, base_fps, input.path_prefix), + files, + input.limit, + ) + stable = ( + not publishing + and overlaps_stable + and await _settled( + repo, + org, + {ns: head_commit, against: base_commit}, + input.path_prefix, + manifests={ns: head_files, against: base_files}, + captures={ + ns: _Captured(head_capture[0], head_capture[1], tuple(read_paths)), + against: _Captured(base_capture[0], base_capture[1], tuple(read_paths)), + }, + ) + ) + limit = input.limit + out = CodeBranchDiffOutput( + compares=COMPARES, + head=_side(org, ns, head_commit), + base=_side(org, against, base_commit), + divergence=divergence, + heads_stable=stable, + files_added=files.added[:limit], + files_removed=files.removed[:limit], + files_changed=files.changed[:limit], + files_added_total=len(files.added), + files_removed_total=len(files.removed), + files_changed_total=len(files.changed), + definitions=[_definition(c) for c in changes[:limit]], + definitions_total=len(changes), + definitions_moved=moved, + definitions_complete=len(paths) <= settings.code_branch_diff_max_definition_paths, + truncated=_truncated(files, len(changes), limit, overlaps), + overlaps=overlaps, + overlaps_skipped=skipped, + as_of=await _as_of(repo, org, ns, head_commit), + against_as_of=await _as_of(repo, org, against, base_commit), + ) + set_code_span_attributes( + route="branch_diff", + results=len(changes), + truncated=out.truncated, + consumer=input.consumer, + ) + return out + + +async def _published_heads( + repo: CodeRepo, org: str, namespaces: list[str] +) -> tuple[tuple[str, ...], bool]: + """Each namespace's `git_head`, and whether any is partway through publishing a + commit: an incremental pass writing a commit on top of `git_head` (its slice cursor + names that base), or a bootstrap between its slices (its index cursor set). The + writer sets the slice cursor before the commit's first row and clears it only after + `git_head` moves, so while it names the current head the rows may hold files that + head does not; a cursor naming another base is one a pass left behind after moving + `git_head`. Each state write lands past its key's newest row whatever the writer's + clock (`set_state`), and the read is sequentially consistent, so a worker on a slower + clock than the last one, or a replica behind the writer's, still shows the cursor. A + writer of an earlier build sets no cursor for a commit of one round and clears it + before `git_head` moves, so a missing cursor proves nothing alone: `_settled` reads + the rows too. One read of the namespaces' state rows.""" + from server.code.app.index.bootstrap import CURSOR_KEY + from server.code.app.index.pass_stream import SLICE_KEY + from server.core.ch import own_write_reads + + with own_write_reads(): + states = await repo.all_state_many([(org, n) for n in namespaces]) + sides = [states.get((org, n)) or {} for n in namespaces] + + def value(state: IndexState, key: str) -> str: + return str((state.get(key) or {}).get("value") or "") + + def busy(state: IndexState) -> bool: + base, dots, _ = value(state, SLICE_KEY).partition("..") + return bool(value(state, CURSOR_KEY)) or (bool(dots) and base == value(state, "git_head")) + + return tuple(value(s, "git_head") for s in sides), any(busy(s) for s in sides) + + +async def _head_tree(org: str, ns: str, head: str, paths: list[str]) -> dict[str, str] | None: + """Blob ids at `head` of exactly `paths` — the paths the read's manifest named — from + the mirror this process holds, None when it holds none or git cannot read it (a head the + mirror lacks): the fence then keeps the evidence it has. One listing scoped to the + directory those paths share, holding one entry per path asked, bounded by the divergence + budget.""" + from server.code.app.index import gitrepo, mirrors + from server.code.domain.index.repos import repo_for_namespace + + cfg = repo_for_namespace(org, ns) + git_dir = await mirrors.present_dir(cfg) + if not git_dir: + return None + try: + return await gitrepo.tree_blobs_at( + git_dir, head, paths, timeout_s=settings.code_branch_diff_divergence_timeout_s + ) + except gitrepo.GitError as e: + logger.debug("code.branch.diff: tree of %s at %s: %s", ns, head[:12], e) + return None + + +def _holds_tree( + manifest: dict[str, tuple[str, str]], tree: dict[str, str], paths: set[str] | None +) -> bool: + """Whether every live row in scope is a file of `tree`: the tree holds the row's path, + and the blob it holds there is the row's. One direction only. A tree path with no live + row is a path the index declines to hold — the denylist, a binary or oversized file, a + path outside the repository's `path_prefixes`, a submodule, a parse skip — so its + absence is declared, not evidence, and asking the reverse read a settled partial index + as a publish in progress. A row whose path the tree does not hold, or whose blob differs, + is a commit the head does not name yet. A row older than `blob_sha` ('') cannot be told + from a tree id at all, and is left to the version count and the definition fence, + unless its path is not in the tree, which is evidence whatever the row holds. `paths` + limits the comparison (an overlap's wanted set); None is every path of the manifest.""" + for path, (blob, _hash) in manifest.items(): + if paths is not None and path not in paths: + continue + held = tree.get(path) + if held is None: + return False + if blob and held != blob: + return False + return True + + +class _Captured(NamedTuple): + """What a side's definition read was founded on: a digest of the live rows per path (a + path with no row has none), the paths it asked about, and every commit those rows name. + The digest is read again after the reads, for every path asked about, because a row that + moved in between is another commit's; the commits are asked of git against the head, + because a row that names a commit the head does not contain was another commit's before + the read began. Neither question is put to a clock.""" + + rows: dict[str, str] + commits: tuple[str, ...] + paths: tuple[str, ...] + + +async def _commits_outside(org: str, ns: str, head: str, commits: tuple[str, ...]) -> set[str]: + """The commits a side's definitions name that `head` does not contain, read from the + mirror this process holds: rows of a commit the head does not name yet, whatever version + their writer stamped them with. Empty when there is nothing to ask, when the process + holds no mirror or git cannot read the head (the fence then keeps the evidence it has), + and empty for a commit the mirror does not hold, which is unverifiable and not evidence.""" + if not commits: + return set() + from server.code.app.index import gitrepo, mirrors + from server.code.domain.index.repos import repo_for_namespace + + git_dir = await mirrors.present_dir(repo_for_namespace(org, ns)) + if not git_dir: + return set() + try: + return await gitrepo.commits_outside( + git_dir, head, commits, timeout_s=settings.code_branch_diff_divergence_timeout_s + ) + except gitrepo.GitError as e: + logger.debug("code.branch.diff: ancestry of %s at %s: %s", ns, head[:12], e) + return set() + + +async def _settled( + repo: CodeRepo, + org: str, + heads: dict[str, str], + prefix: str, + *, + manifests: dict[str, Manifest] | None = None, + paths: set[str] | None = None, + captures: dict[str, _Captured] | None = None, +) -> bool: + """After the reads: every namespace still at the head read before them, none partway + through publishing, and none holding a row under `prefix` written after its `git_head` + for another commit. Every writer moves `git_head` only after a commit's rows, whichever + build it runs, so such a row belongs to a commit the head does not name yet. A live row + rewritten at the head itself (a heal) is not counted, but a tombstone is: it keeps the + commit of the row it retires, so it cannot be told from a previous-build commit's + deletion. A reconcile that tombstones rows after the head therefore reads as unstable + until the branch's next commit; unstable is a lower bound, never a false stable. + + That count reads one writer's clock against another's, so it is the first exclusion and + not the fence: a previous build whose clock trails the head's is invisible to it. The + fence is what the read itself captured. `captures` is what each side's definitions were + read from: a digest of the live rows, read again here, so a row that moved while the + read ran is another commit's however its writer stamped it; and the commits those rows + name, asked of git against the head, so a row that had already landed before the read + began — N-1's shape, it writes a round's chunks before its file rows — is another + commit's too. `manifests` is the file manifest the read judged + the files by, compared with the blobs `head`'s tree holds at exactly those paths: a row + whose path the tree does not hold, or whose blob differs, is a file of another commit, + and a tree path with no row is one the index declines to hold (see `_holds_tree`). A + mirror this process does not hold, or a head git cannot read, leaves the tree leg out, + as before; the capture leg does not depend on git.""" + after, publishing = await _published_heads(repo, org, list(heads)) + if publishing or after != tuple(heads.values()): + return False + unnamed = await asyncio.gather( + *(repo.rows_after_head(org, n, head, prefix, _chunk_model()) for n, head in heads.items()) + ) + if any(unnamed): + return False + if captures: + model = _chunk_model() + sides = [(n, held) for n, held in captures.items() if held.paths] + fresh = await asyncio.gather( + *( + repo.definition_capture(org, n, sorted(held.paths), model, _TIER) + for n, held in sides + ) + ) + if any( + digests != held.rows for (digests, _c), (_n, held) in zip(fresh, sides, strict=True) + ): + return False + outside = await asyncio.gather( + *(_commits_outside(org, n, heads[n], held.commits) for n, held in sides) + ) + if any(outside): + return False + if manifests: + asked = [(n, head, manifests[n]) for n, head in heads.items() if n in manifests] + trees = await asyncio.gather( + *( + _head_tree(org, n, head, sorted(p for p in manifest if paths is None or p in paths)) + for n, head, manifest in asked + ) + ) + for (_n, _head, manifest), tree in zip(asked, trees, strict=True): + if tree is not None and not _holds_tree(manifest, tree, paths): + return False + return True + + +async def _as_of(repo: CodeRepo, org: str, ns: str, commit: str) -> dict[str, Any]: + """The namespace's provenance block when it names `commit`, the head the answer + pinned, and {} otherwise: `index_as_of` serves from a 30 s cache, which can still + name the commit before that head.""" + block = await index_as_of(repo, org, ns) + return block if block.get("commit") == commit else {} + + +def _truncated( + files: FileDiff, definitions: int, limit: int, overlaps: list[BranchDiffOverlap] +) -> bool: + return max( + len(files.added), len(files.removed), len(files.changed), definitions + ) > limit or any(o.definitions_total > limit for o in overlaps) + + +async def _divergence( + org: str, ns: str, against: str, head: str, base: str +) -> BranchDiffDivergence: + """The two heads' merge-base and how many commits each has that the other lacks, from + the mirror both namespaces share on this process: two git reads, gathered, each bounded + by `code_branch_diff_divergence_timeout_s`. It never clones or fetches; anything it + cannot read answers as unknown with the reason and never fails the call.""" + from server.code.app.index import gitrepo, mirrors + from server.code.domain.index.repos import repo_for_namespace + + here, there = repo_for_namespace(org, ns), repo_for_namespace(org, against) + if here is None or there is None or not here.git_dir or here.git_dir != there.git_dir: + return _unknown("no_shared_mirror: the two namespaces name no common git mirror") + git_dir = await mirrors.present_dir(here) + if not git_dir: + return _unknown("no_git_mirror: this process holds no mirror of the repository") + timeout_s = settings.code_branch_diff_divergence_timeout_s + deadline = asyncio.get_running_loop().time() + timeout_s + try: + merge_base, (ahead, behind) = await asyncio.gather( + gitrepo.merge_base(git_dir, head, base, timeout_s=timeout_s), + gitrepo.ahead_behind(git_dir, head, base, timeout_s=timeout_s), + ) + except gitrepo.GitError as e: + logger.debug("code.branch.diff: divergence of %s and %s: %s", ns, against, e) + left = deadline - asyncio.get_running_loop().time() + return _unknown(await _why_unknown(git_dir, [head, base], e, left)) + if not merge_base: + return _unknown("git_failed: no merge-base or count") + return BranchDiffDivergence(state="known", merge_base=merge_base, ahead=ahead, behind=behind) + + +async def _why_unknown(git_dir: str, heads: list[str], error: Exception, left_s: float) -> str: + """The reason a divergence read failed: a timeout, a head the mirror lacks (one + `cat-file --batch-check`, read only on this path, within the `left_s` seconds left of + the divergence budget), or git failing otherwise. The reason names no path on the + host.""" + from server.code.app.index import gitrepo + + if isinstance(error, gitrepo.GitTimedOut) or left_s <= 0: + return "git_timeout" + try: + missing = await gitrepo.missing_commits(git_dir, heads, timeout_s=left_s) + except gitrepo.GitTimedOut: + return "git_timeout" + except gitrepo.GitError: + missing = [] + if missing: + return f"head_not_in_mirror: {', '.join(missing)}" + return "git_failed: no merge-base or count" + + +def _unknown(reason: str) -> BranchDiffDivergence: + return BranchDiffDivergence(state="unknown", reason=reason) + + +def _chunk_model() -> str: + """The embedding model label the indexer writes chunk rows under, which leads the + chunk table's key after the namespace.""" + from server.embedding.embedder import get_embedder + + return str(get_embedder().model_name) + + +def _side(org: str, ns: str, commit: str) -> BranchDiffSide: + from server.code.domain.index.repos import repo_for_namespace + + cfg = repo_for_namespace(org, ns) + return BranchDiffSide(namespace=ns, git_branch=cfg.git_branch if cfg else "", git_head=commit) + + +async def _manifest( + repo: CodeRepo, org: str, ns: str, prefix: str, paths: list[str] | None = None +) -> Manifest: + from server.core.errors import ValidationError + + cap = settings.code_branch_diff_max_manifest_files + rows = await repo.file_manifest(org, ns, prefix=prefix, paths=paths, limit=cap + 1) + if len(rows) > cap: + raise ValidationError( + f"code.branch.diff: {ns} holds more than {cap} files under " + f"{prefix!r}; name a narrower path_prefix" + ) + return rows + + +def _definition(c: DefinitionChange) -> BranchDiffDefinition: + head, base = c.head or {}, c.base or {} + return BranchDiffDefinition( + path=c.path, + qualified_name=c.qualified_name, + kind=c.kind, + change=c.change, + reasons=list(c.reasons), + start_line=int(head.get("start_line") or 0), + end_line=int(head.get("end_line") or 0), + signature=str(head.get("signature") or ""), + base_start_line=int(base.get("start_line") or 0), + base_end_line=int(base.get("end_line") or 0), + base_signature=str(base.get("signature") or ""), + ) + + +@dataclass(frozen=True) +class _Base: + """`against`'s rows on the paths this diff names, which every sibling is compared to, + and the path prefix they were read under.""" + + files: Manifest + symbols: dict[str, list[dict[str, Any]]] + fingerprints: Fingerprints + prefix: str + + +async def _overlaps( + repo: CodeRepo, + org: str, + ns: str, + against: str, + here: list[DefinitionChange], + base: _Base, + files: FileDiff, + limit: int, +) -> tuple[list[BranchDiffOverlap], list[dict[str, str]], bool]: + """The other readable namespaces of `ns`'s repository that change a definition `ns` + changes against `against`, and whether every sibling read held still, as `_settled` + judges the pair. A sibling is compared to `against` on the paths `ns` differs on, so + the cost follows this diff, not the repository.""" + from server.code.app.search_fanout import readable_subset + + # Readability first: an unreadable sibling takes no slot under the cap and is + # named only as not readable. + readable, skipped = await readable_subset(org, _siblings(org, ns, against)) + if len(readable) > settings.code_branch_diff_max_overlap_namespaces: + skipped.extend( + {"namespace": n, "reason": "over_cap"} + for n in readable[settings.code_branch_diff_max_overlap_namespaces :] + ) + readable = readable[: settings.code_branch_diff_max_overlap_namespaces] + if not here or not readable: + return [], skipped, True + results = await asyncio.gather( + *(_overlap_with(repo, org, n, here, base, files.paths) for n in readable) + ) + overlaps: list[BranchDiffOverlap] = [] + stable = True + for n, found in zip(readable, results, strict=True): + if found is None: + skipped.append({"namespace": n, "reason": "not_indexed"}) + continue + head, shared, held = found + stable = stable and held + if shared: + overlaps.append(_overlap_row(org, n, (head, shared), limit)) + return overlaps, skipped, stable + + +def _siblings(org: str, ns: str, against: str) -> list[str]: + """The configured namespaces of `ns`'s repository, other than the two compared.""" + from server.code.domain.index.remote import repo_key + from server.code.domain.index.repos import configured_repos, repo_for_namespace + + cfg = repo_for_namespace(org, ns) + if cfg is None: + return [] + want = repo_key(cfg.repo, cfg.git_remote) + return sorted( + c.namespace + for c in configured_repos() + if c.org == org + and c.namespace not in (ns, against) + and repo_key(c.repo, c.git_remote) == want + ) + + +async def _overlap_with( + repo: CodeRepo, + org: str, + sibling: str, + here: list[DefinitionChange], + base: _Base, + paths: list[str], +) -> tuple[str, list[tuple[DefinitionChange, DefinitionChange]], bool] | None: + """(the sibling's head, the definitions it shares with `here`, whether its rows held + still at that head through the read), None without an index. The sibling is fenced + as the pair is: its state before the reads, `_settled` after them.""" + (head,), publishing = await _published_heads(repo, org, [sibling]) + if not head: + return None + wanted = paths[: settings.code_branch_diff_max_definition_paths] + theirs = await _manifest(repo, org, sibling, "", wanted) + differing = [ + p + for p in wanted + if (p in theirs) != (p in base.files) + or (p in theirs and not same_blob(theirs[p], base.files[p])) + ] + capture, symbols, fps = await asyncio.gather( + repo.definition_capture(org, sibling, differing, _chunk_model(), _TIER), + repo.live_symbols_for_paths(org, sibling, differing, _TIER), + repo.definition_fingerprints(org, sibling, differing, _chunk_model()), + ) + there, _moved = diff_definitions( + symbols, {p: base.symbols.get(p, []) for p in differing}, fps, base.fingerprints + ) + held = not publishing and await _settled( + repo, + org, + {sibling: head}, + base.prefix, + manifests={sibling: theirs}, + paths=set(wanted), + captures={sibling: _Captured(capture[0], capture[1], tuple(differing))}, + ) + return head, shared_changes(here, there), held + + +def _overlap_row( + org: str, + ns: str, + found: tuple[str, list[tuple[DefinitionChange, DefinitionChange]]], + limit: int, +) -> BranchDiffOverlap: + head, shared = found + side = _side(org, ns, head) + return BranchDiffOverlap( + namespace=ns, + git_branch=side.git_branch, + git_head=head, + definitions=[ + { + "path": here.path, + "qualified_name": here.qualified_name, + "kind": here.kind, + "change": here.change, + "change_there": there.change, + } + for here, there in shared[:limit] + ], + definitions_total=len(shared), + ) diff --git a/server/code/app/index/gitrepo.py b/server/code/app/index/gitrepo.py index f67e39363d..7126fa041d 100644 --- a/server/code/app/index/gitrepo.py +++ b/server/code/app/index/gitrepo.py @@ -19,6 +19,7 @@ import signal import struct import tempfile +import time from collections.abc import Sequence from dataclasses import dataclass from pathlib import Path @@ -48,7 +49,11 @@ class PathsTooLong(ArgumentsTooLong): """One whose paths alone are past it, whatever else it is given.""" -class GrepTimedOut(GitError): +class GitTimedOut(GitError): + """A git command that ran past its time.""" + + +class GrepTimedOut(GitTimedOut): """A `git grep` that ran past its time.""" @@ -291,7 +296,7 @@ async def _git( try: out, err = await communicate_or_kill(proc, stdin, timeout_s=timeout_s) except TimeoutError: - raise GitError(f"git {label} timed out after {timeout_s}s") from None + raise GitTimedOut(f"git {label} timed out after {timeout_s}s") from None returncode = proc.returncode if returncode != 0: raise GitError( @@ -329,7 +334,7 @@ async def _network_git( **remote_access(remote, proxy_identity), ) except TimeoutError: - raise GitError(f"git {label} timed out after {timeout_s}s") from None + raise GitTimedOut(f"git {label} timed out after {timeout_s}s") from None except GitProxyRefused as e: # The fixed reason, as any failed fetch: the tier's health records it. raise GitError(e.reason) from None @@ -824,14 +829,89 @@ async def ref_tips(git_dir: str, *refs: str) -> dict[str, str]: return {ref: tips[ref] for ref in refs if ref in tips} -async def merge_base(git_dir: str, a: str, b: str) -> str: - """`git merge-base a b`, '' when unrelated or unknown.""" +def _scope_dir(paths: set[str]) -> str: + """The narrowest directory that holds every path asked about: a listing scoped to it + holds every path of `paths` and nothing the caller did not ask for. One directory is + that directory; several narrow to the part of the tree they share, cut back to a whole + name so that a partial one (`src/pkg1` beside `src/pkg10`) never excludes a path. '' + is the repository root, where nothing is shared.""" + dirs = {p.rpartition("/")[0] for p in paths} + if len(dirs) == 1: + return dirs.pop() + split = [d.split("/") if d else [] for d in dirs] + shared = os.path.commonprefix(split) + return "/".join(shared) + + +async def tree_blobs_at( + git_dir: str, rev: str, paths: Sequence[str], *, timeout_s: float | None = None +) -> dict[str, str]: + """Path -> blob id at `rev` for exactly `paths`: one `git ls-tree -r -z` scoped to the + directory they share, so a comparison of a handful of paths reads a subtree and not the + repository's tree, and the records of paths not asked about are dropped as they are + read, so what is held is one entry per path asked. A rev the mirror does not hold is a + GitError, never an empty map. A path the rev does not hold is absent.""" + if not _is_rev(rev): + raise GitError(f"not a revision: {rev[:12]!r}") + wanted = {p for p in paths if p} + if not wanted: + return {} + scope = _scope_dir(wanted) + listing = ["ls-tree", "-r", "-z", "--end-of-options", _rev(rev)] + if scope: + # `:(literal)` so a directory named with a glob character is that directory + listing += ["--", f":(literal){scope}"] + out = await _git(git_dir, *listing, timeout_s=timeout_s) + blobs: dict[str, str] = {} + for record in nul_fields(out): + meta, _, path = record.partition("\t") + if path not in wanted: + continue + fields = meta.split() + if len(fields) == 3: + blobs[path] = fields[2] + return blobs + + +async def merge_base(git_dir: str, a: str, b: str, *, timeout_s: float | None = None) -> str: + """`git merge-base a b`, '' when unrelated or unknown. A caller that sets `timeout_s` + gets the GitTimedOut of a read that ran out of it, so it can tell a timeout from no + merge-base.""" try: - return (await _git(git_dir, "merge-base", _rev(a), _rev(b))).strip() + return ( + await _git( + git_dir, "merge-base", "--end-of-options", _rev(a), _rev(b), timeout_s=timeout_s + ) + ).strip() + except GitTimedOut: + if timeout_s is not None: + raise + return "" except GitError: return "" +async def ahead_behind( + git_dir: str, a: str, b: str, *, timeout_s: float | None = None +) -> tuple[int, int]: + """How many commits `a` has that `b` lacks, and the reverse (`rev-list --left-right + --count a...b`). GitError when git fails or answers anything else.""" + out = await _git( + git_dir, + "rev-list", + "--left-right", + "--count", + "--end-of-options", + f"{_rev(a)}...{_rev(b)}", + timeout_s=timeout_s, + ) + try: + ahead, behind = (int(n) for n in out.split()) + except ValueError: + raise GitError(f"unreadable rev-list count: {out[:80]!r}") from None + return ahead, behind + + async def diff_name_only( git_dir: str, base_sha: str, head_sha: str, *, limit: int = 2000 ) -> list[str]: @@ -849,18 +929,45 @@ async def diff_name_only( return nul_fields(out)[:limit] -async def missing_commits(git_dir: str, shas: list[str]) -> list[str]: +async def missing_commits( + git_dir: str, shas: list[str], *, timeout_s: float | None = None +) -> list[str]: """The shas among `shas` the clone does not hold — one `cat-file - --batch-check`, read-only, in input order.""" + --batch-check`, read-only, in input order, bounded by `timeout_s` (default + `code_git_timeout_s`).""" wanted = [x for x in dict.fromkeys(s.strip().lower() for s in shas) if _SHA40.fullmatch(x)] if not wanted: return [] payload = ("\n".join(wanted) + "\n").encode() - out = await _git(git_dir, "cat-file", "--batch-check", stdin=payload) + out = await _git(git_dir, "cat-file", "--batch-check", stdin=payload, timeout_s=timeout_s) lines = out.splitlines() return [x for i, x in enumerate(wanted) if i >= len(lines) or " missing" in lines[i]] +async def commits_outside( + git_dir: str, head: str, commits: Sequence[str], *, timeout_s: float | None = None +) -> set[str]: + """The `commits` the mirror holds that `head` does not contain: rows of a commit the + head does not name yet. One `rev-list` of them against `head` lists what is reachable + from them and not from the head, and the commits asked about among that are the answer; + a settled namespace lists nothing and costs a few ms. `timeout_s` is one deadline for the + whole check. A commit the mirror does not hold is left out: the fence has no evidence + either way there, and a clone that pruned history is not a publish. When git cannot say + (a head the mirror lacks, a timeout) this raises GitError: ancestry that cannot be read + is unknown, never proof that a commit is outside.""" + wanted = sorted({c for c in commits if _SHA40.fullmatch(c)}) + if not wanted or not _is_rev(head): + return set() + started = time.monotonic() + missing = set(await missing_commits(git_dir, wanted, timeout_s=timeout_s)) + present = [c for c in wanted if c not in missing] + if not present: + return set() + left = None if timeout_s is None else max(timeout_s - (time.monotonic() - started), 0.001) + listed = await _git(git_dir, "rev-list", *present, "--not", _rev(head), timeout_s=left) + return set(present) & set(listed.split()) + + async def head_sha(git_dir: str, branch: str) -> str: return (await _git(git_dir, "rev-parse", f"refs/heads/{branch}")).strip() diff --git a/server/code/app/index/pass_stream.py b/server/code/app/index/pass_stream.py index 460ee94d3e..d6e737742e 100644 --- a/server/code/app/index/pass_stream.py +++ b/server/code/app/index/pass_stream.py @@ -25,18 +25,22 @@ logger = logging.getLogger("loom.workers.code_ingest") -# `..:` — how far a commit too big -# for one pass has been ingested. One per entry: commits land in order. +# `..:` — the commit being ingested on top of +# `git_head` (``) and how far it got. Set before its first row is written and +# cleared after `git_head` moves, so readers can tell its rows from a published head. +# One per entry: commits land in order. SLICE_KEY = "commit_slice" -async def _slice_done(repo: Any, org: str, ns: str, slice_key: str) -> int: +async def _slice_done(repo: Any, org: str, ns: str, slice_key: str) -> int | None: """Files of `slice_key`'s commit an earlier pass already made durable; 0 - when the cursor names another commit (a force-push moved the base).""" + when the cursor names another commit (a force-push moved the base); None + when the cursor could not be read, which is not the same as no cursor: the + caller starts no work on None, so no row lands behind no marker.""" try: raw = await repo.get_state(org, ns, SLICE_KEY) - except Exception: # noqa: BLE001 — no cursor reads as a fresh commit - return 0 + except Exception: # noqa: BLE001 — an unreadable cursor is unknown, not zero + return None key, _, n = str(raw or "").rpartition(":") return int(n) if key == slice_key and n.isdigit() else 0 @@ -132,17 +136,33 @@ async def step(self, clock: Any = None) -> bool | None: cfg, sha = self.cfg, self.next_sha org, ns = cfg.org, cfg.namespace slice_key = f"{self.base}..{sha}" - skip = await _slice_done(self.repo, org, ns, slice_key) + done_files = await _slice_done(self.repo, org, ns, slice_key) + if done_files is None: + # An unreadable cursor cannot fence the commit: which commit it names is + # unknown, so a `:0` marker could overwrite a durable `:N`, and no marker + # at all leaves the commit's rows under a `git_head` that does not name + # them, which a reader takes for settled. Start nothing; the stored cursor + # (if any) still fences, and the next pass reads it again. + self.result.errors.append( + f"{ns}: commit {sha[:12]} not started: commit_slice unreadable" + ) + logger.warning( + "code_ingest: %s commit %s not started: commit_slice unreadable", + cfg.label, + sha[:12], + ) + self.index = len(self.commits) + return False + skip = done_files + if done_files == 0: # in progress before its first row, one round or many + await self.repo.set_state(org, ns, SLICE_KEY, f"{slice_key}:0") commit_started = time.monotonic() cost_accumulator.begin_op() try: async def _saved(n: int) -> None: - wrote.append(n) await self.repo.set_state(org, ns, SLICE_KEY, f"{slice_key}:{n}") - wrote: list[int] = [] - with git_text_source(cfg.git_dir, sha): done = await _ingest_commit( self.repo, @@ -184,9 +204,9 @@ async def _saved(n: int) -> None: done, ) return None - if skip or wrote: - await self.repo.set_state(org, ns, SLICE_KEY, "") + # `git_head` first: a reader sees the cursor or the new head, never neither. await self.repo.set_state(org, ns, "git_head", sha, detail=f"base {self.base[:12]}") + await self.repo.set_state(org, ns, SLICE_KEY, "") self.result.commits += 1 self.result.commits_done += 1 self.landed += 1 diff --git a/server/code/domain/index/branch_diff.py b/server/code/domain/index/branch_diff.py new file mode 100644 index 0000000000..77bd774340 --- /dev/null +++ b/server/code/domain/index/branch_diff.py @@ -0,0 +1,190 @@ +"""The comparison behind code.branch.diff: two files manifests and two symbol sets, pure. + +Both sides are one branch's indexed rows, so nothing here knows a namespace: the handler +reads, this module decides what differs. +""" + +from __future__ import annotations + +from collections import defaultdict +from dataclasses import dataclass +from typing import Any + +# path -> (git blob sha, content sha256); either may be '' on a row older than its column. +Manifest = dict[str, tuple[str, str]] +# (path, symbol_id) -> a hash of the texts of the chunks that carry the definition, in line +# order; a definition no chunk carries is absent. +Fingerprints = dict[tuple[str, str], str] + + +@dataclass(frozen=True) +class FileDiff: + added: list[str] + removed: list[str] + changed: list[str] + + @property + def paths(self) -> list[str]: + return sorted({*self.added, *self.removed, *self.changed}) + + +@dataclass(frozen=True) +class DefinitionChange: + path: str + qualified_name: str + kind: str + change: str # added | removed | changed + reasons: tuple[str, ...] + head: dict[str, Any] | None + base: dict[str, Any] | None + + +def same_blob(a: tuple[str, str], b: tuple[str, str]) -> bool: + """One file on both sides is unchanged when the git blobs match; a row with no blob + sha is judged by its content hash, and a row with neither differs.""" + if a[0] and b[0]: + return a[0] == b[0] + return bool(a[1]) and a[1] == b[1] + + +def diff_files(head: Manifest, base: Manifest) -> FileDiff: + """The paths `head` has and `base` lacks, the reverse, and those both have with another + blob, each sorted.""" + added = sorted(p for p in head if p not in base) + removed = sorted(p for p in base if p not in head) + changed = sorted(p for p in head if p in base and not same_blob(head[p], base[p])) + return FileDiff(added, removed, changed) + + +def _span_size(row: dict[str, Any]) -> int: + return int(row.get("end_line") or 0) - int(row.get("start_line") or 0) + + +def _pair_group( + head: list[dict[str, Any]], base: list[dict[str, Any]] +) -> list[tuple[dict[str, Any] | None, dict[str, Any] | None]]: + """Pair the definitions of one (path, name, kind): equal signatures first, then the + rest in line order, so an overload added above another does not make both look changed.""" + head = sorted( + head, key=lambda r: (int(r.get("start_line") or 0), str(r.get("symbol_id") or "")) + ) + base = sorted( + base, key=lambda r: (int(r.get("start_line") or 0), str(r.get("symbol_id") or "")) + ) + pairs: list[tuple[dict[str, Any] | None, dict[str, Any] | None]] = [] + unmatched_base = list(base) + left: list[dict[str, Any]] = [] + for h in head: + match = next( + ( + b + for b in unmatched_base + if str(b.get("signature") or "") == str(h.get("signature") or "") + ), + None, + ) + if match is None: + left.append(h) + else: + unmatched_base.remove(match) + pairs.append((h, match)) + for h in left: + pairs.append((h, unmatched_base.pop(0) if unmatched_base else None)) + pairs.extend((None, b) for b in unmatched_base) + return pairs + + +def _fingerprint(fps: Fingerprints | None, path: str, row: dict[str, Any]) -> str: + return (fps or {}).get((path, str(row.get("symbol_id") or "")), "") + + +def _reasons( + path: str, + h: dict[str, Any], + b: dict[str, Any], + head_fps: Fingerprints | None, + base_fps: Fingerprints | None, +) -> tuple[str, ...]: + """What differs between two paired definitions: `signature`, `size` (the span's + length) and `body` (the text, when both sides' chunks carry the definition).""" + hf, bf = _fingerprint(head_fps, path, h), _fingerprint(base_fps, path, b) + checks = ( + ("signature", str(h.get("signature") or "") != str(b.get("signature") or "")), + ("size", _span_size(h) != _span_size(b)), + ("body", bool(hf) and bool(bf) and hf != bf), + ) + return tuple(reason for reason, differs in checks if differs) + + +def diff_definitions( + head: dict[str, list[dict[str, Any]]], + base: dict[str, list[dict[str, Any]]], + head_fps: Fingerprints | None = None, + base_fps: Fingerprints | None = None, +) -> tuple[list[DefinitionChange], int]: + """The definitions one side has and the other lacks or holds with another signature, + span length or text, by path then line, and how many only moved (equal in all three, + another start line). `head` and `base` map a path to its live symbol rows; the + fingerprints, when given, compare each definition's text.""" + out: list[DefinitionChange] = [] + moved = 0 + for path in sorted({*head, *base}): + groups: dict[tuple[str, str], tuple[list[dict[str, Any]], list[dict[str, Any]]]] = ( + defaultdict(lambda: ([], [])) + ) + for r in head.get(path, []): + groups[(str(r.get("qualified_name") or ""), str(r.get("kind") or ""))][0].append(r) + for r in base.get(path, []): + groups[(str(r.get("qualified_name") or ""), str(r.get("kind") or ""))][1].append(r) + for (name, kind), (hs, bs) in groups.items(): + for h, b in _pair_group(hs, bs): + if h is None or b is None: + out.append( + DefinitionChange( + path, name, kind, "added" if b is None else "removed", (), h, b + ) + ) + continue + reasons = _reasons(path, h, b, head_fps, base_fps) + if reasons: + out.append(DefinitionChange(path, name, kind, "changed", reasons, h, b)) + elif int(h.get("start_line") or 0) != int(b.get("start_line") or 0): + moved += 1 + out.sort( + key=lambda c: ( + c.path, + int((c.head or c.base or {}).get("start_line") or 0), + c.qualified_name, + c.kind, + ) + ) + return out, moved + + +def _overlap_key(c: DefinitionChange) -> tuple[str, ...]: + """One definition across two diffs against the same base. A changed or removed + definition is its base row, which both diffs paired from the same rows; an added one + is its signature. Distinct overloads of one name therefore never match.""" + if c.base is not None: + row, side = c.base, "base" + else: + row, side = c.head or {}, "added" + return ( + c.path, + c.qualified_name, + c.kind, + side, + str(row.get("signature") or ""), + str(row.get("symbol_id") or "") if side == "base" else "", + str(row.get("start_line") or 0) if side == "base" else "", + ) + + +def shared_changes( + here: list[DefinitionChange], there: list[DefinitionChange] +) -> list[tuple[DefinitionChange, DefinitionChange]]: + """The definitions both lists change, in `here`'s order. Both lists diff against the + same base, so a changed or removed definition matches the one paired with the same + base row, and an added one matches an addition with the same signature.""" + by_key = {_overlap_key(c): c for c in there} + return [(c, by_key[k]) for c in here if (k := _overlap_key(c)) in by_key] diff --git a/server/code/store/index/files.py b/server/code/store/index/files.py index df89c876da..e248828d14 100644 --- a/server/code/store/index/files.py +++ b/server/code/store/index/files.py @@ -5,6 +5,7 @@ from __future__ import annotations +from datetime import datetime from typing import Any from server.code.domain.index.test_gate import TEST_PATH_PATTERN @@ -401,6 +402,219 @@ async def file_identities(self, org: str, ns: str) -> list[tuple[str, str, str]] out.append((str(r["path"]), _hex(r.get("c")), _hex(r.get("b")))) return out + async def file_manifest( + self, + org: str, + ns: str, + *, + prefix: str = "", + paths: list[str] | None = None, + limit: int = 0, + ) -> dict[str, tuple[str, str]]: + """path -> (blob_sha, content_hash) of the live files under `prefix` (a range + of the (org, namespace, path) key), or of exactly `paths` when given. The + manifest a branch comparison judges by blob; either hash is '' on a row older + than its column. At most `limit` rows when it is positive.""" + out: dict[str, tuple[str, str]] = {} + batches = _batched(sorted(set(paths)), 500) if paths is not None else [None] + limit_sql = "LIMIT {limit:UInt64}" if limit > 0 else "" + for batch in batches: + paths_sql = "AND path IN {paths:Array(String)}" if batch is not None else "" + rows = await self._ch.query_all( + f""" + SELECT path, blob_sha, content_hash FROM loom.code_files FINAL + WHERE org = {{org:String}} AND namespace = {{ns:String}} + AND startsWith(path, {{prefix:String}}) AND tombstoned_at IS NULL + {paths_sql} + ORDER BY path + {limit_sql} + """, + { + "org": org, + "ns": ns, + "prefix": prefix, + **({"paths": batch} if batch is not None else {}), + **({"limit": int(limit)} if limit > 0 else {}), + }, + ) + for r in rows: + out[str(r["path"])] = (_hex(r.get("blob_sha")), _hex(r.get("content_hash"))) + return out + + async def rows_after_head( + self, org: str, ns: str, head: str, prefix: str, embedding_model: str + ) -> bool: + """Whether a `code_files`, tree-sitter `code_symbols` or `embedding_model` + `code_chunks` row under `prefix` was written after `git_head` was set to `head`, and + either names a commit other than `head` or is a tombstone: a row of a commit that + head does not name yet. Every writer moves `git_head` after a commit's rows, so a + published head has none, whichever build wrote them. A live row rewritten at `head` + itself (a heal) is not counted. A tombstone keeps the `indexed_commit` of the row it + retires, which can be `head`, so every tombstone after the head counts; that + includes the ones a reconcile writes at the head, which read as unstable until the + next commit (a lower bound). A tombstone stamped after the second the head's row was + written counts whatever version its writer gave it: a previous build's clock trails the + head's, and a deleted file has no live row for the head's tree to be compared with. + One written in the head's own second is not seen. A chunk an embedding pass rewrites + after the head keeps the commit it was written at, which can be an older one, so it + reads the same way. + Row versions are the writers' clocks and the head's is past its key's newest row + (`set_state`), so this build's commits are fenced by their slice cursor, not by + this check. A previous-build row on a clock that trails the head's by more than + the gap since that head was written reads as older and is not counted, so this is a + cheap first exclusion and not the fence: `code.branch.diff` fences the same window + by reading again the rows it founded the answer on (`definition_capture`, + `_holds_tree`), which no clock can fake. Two reads: the head's version, then one + count over the three tables. `code_files` and `code_chunks` are ranges of their + keys. `code_symbols` is ordered (org, namespace, tier, qualified_name, symbol_id), + so the prefix does not narrow it: the count scans the namespace's tree-sitter rows + (three columns), once per call and side, and not measured at scale.""" + published = await self._ch.query_one( + """ + SELECT max(version) AS v, argMax(updated_at, version) AS t + FROM loom.code_index_state + WHERE org = {org:String} AND namespace = {ns:String} + AND state_key = 'git_head' AND state_value = {head:String} + """, + {"org": org, "ns": ns, "head": head}, + ) + row = await self._ch.query_one( + """ + SELECT + (SELECT count() FROM loom.code_files + WHERE org = {org:String} AND namespace = {ns:String} + AND startsWith(path, {prefix:String}) + AND ((version > {v:UInt64} + AND (indexed_commit != {head:String} OR tombstoned_at IS NOT NULL)) + OR tombstoned_at > {t:DateTime})) + + (SELECT count() FROM loom.code_symbols + WHERE org = {org:String} AND namespace = {ns:String} AND tier = 'treesitter' + AND startsWith(path, {prefix:String}) + AND ((version > {v:UInt64} + AND (indexed_commit != {head:String} OR tombstoned_at IS NOT NULL)) + OR tombstoned_at > {t:DateTime})) + + (SELECT count() FROM loom.code_chunks + WHERE org = {org:String} AND namespace = {ns:String} + AND embedding_model = {model:String} + AND startsWith(path, {prefix:String}) + AND ((version > {v:UInt64} + AND (indexed_commit != {head:String} OR tombstoned_at IS NOT NULL)) + OR tombstoned_at > {t:DateTime})) AS n + """, + { + "org": org, + "ns": ns, + "prefix": prefix, + "model": embedding_model, + "head": head, + "v": int((published or {}).get("v") or 0), + "t": (published or {}).get("t") or datetime(1970, 1, 1), + }, + ) + return bool(row and int(row["n"] or 0)) + + async def definition_fingerprints( + self, org: str, ns: str, paths: list[str], embedding_model: str + ) -> dict[tuple[str, str], str]: + """(path, symbol_id) -> one hash over the content hashes of the live chunks under + `embedding_model` that carry that definition's text, in line order: a function or + container chunk is the definition's by its first tag, and a packed chunk (kind `other`, + the SQL statement records) is every tagged statement's, since its text cannot say which + statement changed. It differs when any line of the definition's text differs and stays + equal when the definition only moved, since a chunk's hash covers its text and not its + position. A container's skeleton chunk lists the body-less declarations inside it after + its own id, so a declaration is not read from it and has no fingerprint, and an edit to + one declaration leaves its siblings' hashes alone. A definition no chunk owns is absent. + One read per 500 paths, a range of the (org, namespace, embedding_model, path) key.""" + out: dict[tuple[str, str], str] = {} + for batch in _batched(sorted(set(paths)), 500): + rows = await self._ch.query_all( + """ + SELECT path, sid, lower(hex(SHA256(arrayStringConcat( + arrayMap(x -> x.2, arraySort(groupUniqArray((start_line, h)))), ',' + )))) AS fp + FROM ( + SELECT path, + arrayJoin(if(kind = 'other', symbol_ids, [symbol_ids[1]])) AS sid, + start_line, toString(content_hash) AS h + FROM loom.code_chunks FINAL + WHERE org = {org:String} AND namespace = {ns:String} + AND embedding_model = {model:String} + AND path IN {paths:Array(String)} AND tombstoned_at IS NULL + AND content_hash != '' AND notEmpty(symbol_ids) + ) + GROUP BY path, sid + """, + {"org": org, "ns": ns, "model": embedding_model, "paths": batch}, + ) + for r in rows: + out[(str(r["path"]), str(r["sid"]))] = str(r["fp"]) + return out + + async def definition_capture( + self, org: str, ns: str, paths: list[str], embedding_model: str, tier: str + ) -> tuple[dict[str, str], tuple[str, ...]]: + """What the definitions of `paths` are read from, captured: per path a digest of the + live rows (`code_chunks` under `embedding_model` by chunk id and content hash, + `code_symbols` of `tier` by id, name, kind, span and signature), and every commit + those rows name. `code.branch.diff` reads it in the same pass as the definitions and + again after them: rows that moved in between are another commit's, whatever clock + their writer stamped them with, and rows whose commit the head does not contain were + another commit's before the read began — the digest closes the window the read + spans, the commits the window it does not. Content only (a row rewritten with the + same text leaves it equal) and a path no live row stands for is absent. Two reads + per 500 paths: a range of the chunks key, and the namespace's tree-sitter scan + `rows_after_head` already counts. + """ + digests: dict[str, str] = {} + commits: set[str] = set() + if not paths: + return digests, () + for batch in _batched(sorted(set(paths)), 500): + chunk_rows = await self._ch.query_all( + """ + SELECT path, + toString(count()) AS n, + lower(hex(SHA256(arrayStringConcat(arraySort(groupUniqArray( + concat(toString(chunk_id), ':', lower(hex(content_hash))) + )), ',')))) AS d, + groupUniqArray(toString(indexed_commit)) AS commits + FROM loom.code_chunks FINAL + WHERE org = {org:String} AND namespace = {ns:String} + AND embedding_model = {model:String} + AND path IN {paths:Array(String)} AND tombstoned_at IS NULL + AND content_hash != '' AND notEmpty(symbol_ids) + GROUP BY path + """, + {"org": org, "ns": ns, "model": embedding_model, "paths": batch}, + ) + symbol_rows = await self._ch.query_all( + """ + SELECT path, + toString(count()) AS n, + lower(hex(SHA256(arrayStringConcat(arraySort(groupUniqArray( + concat(symbol_id, ':', qualified_name, ':', kind, ':', + toString(start_line), '-', toString(end_line), ':', signature) + )), ',')))) AS d, + groupUniqArray(toString(indexed_commit)) AS commits + FROM loom.code_symbols FINAL + WHERE org = {org:String} AND namespace = {ns:String} AND tier = {tier:String} + AND path IN {paths:Array(String)} AND tombstoned_at IS NULL + GROUP BY path + """, + {"org": org, "ns": ns, "tier": tier, "paths": batch}, + ) + held: dict[str, list[str]] = {} + for r in chunk_rows: + held.setdefault(str(r["path"]), ["-", "-"])[0] = f"{r['n']}:{r['d']}" + commits.update(c for c in r["commits"] if c) + for r in symbol_rows: + held.setdefault(str(r["path"]), ["-", "-"])[1] = f"{r['n']}:{r['d']}" + commits.update(c for c in r["commits"] if c) + for path, (chunks, symbols) in held.items(): + digests[path] = f"{chunks}:{symbols}" + return digests, tuple(sorted(commits)) + async def file_rows_for_paths( self, org: str, ns: str, paths: list[str] ) -> dict[str, dict[str, Any]]: diff --git a/server/identity/domain/read_scope.py b/server/identity/domain/read_scope.py index d559ee14d4..78270fe27f 100644 --- a/server/identity/domain/read_scope.py +++ b/server/identity/domain/read_scope.py @@ -339,6 +339,7 @@ def pin_read_filters[M: BaseModel](input: M, auth: Any) -> tuple[M, bool]: "code.backport_gaps": _CODE_INDEX, "code.bisect_candidates": _CODE_INDEX, "code.blame_range": _CODE_INDEX, + "code.branch.diff": _CODE_INDEX, "code.calibrate": _CODE_INDEX, "code.callees": _CODE_LESSONS, "code.callers": _CODE_LESSONS, diff --git a/server/operations/dashboard.py b/server/operations/dashboard.py index de27b5f6f7..d31493bbff 100644 --- a/server/operations/dashboard.py +++ b/server/operations/dashboard.py @@ -54,6 +54,7 @@ def _named_once(*groups: dict[str, str]) -> dict[str, str]: "code.backport_gaps", "code.bisect_candidates", "code.blame_range", + "code.branch.diff", "code.conventions", "code.coverage_claim", "code.edit_context", diff --git a/server/operations/reach_manifest.py b/server/operations/reach_manifest.py index 450a0060ef..66fce48c87 100644 --- a/server/operations/reach_manifest.py +++ b/server/operations/reach_manifest.py @@ -46,6 +46,7 @@ "code.backport_gaps": ("sdk_method",), "code.bisect_candidates": ("sdk_method",), "code.blame_range": ("sdk_method",), + "code.branch.diff": ("sdk_method",), "code.calibrate": ( "sdk_method", "sdk_example", diff --git a/server/settings/catalog.py b/server/settings/catalog.py index a4355121fb..b020b0ef60 100644 --- a/server/settings/catalog.py +++ b/server/settings/catalog.py @@ -969,6 +969,18 @@ class CodeSettings(BaseModel): # A touched function is "widely called" when its hop-1 callers span more # than this many `src/` directories (rule wide_callers_untested). code_conventions_wide_caller_dirs: int = 5 + # --- code.branch.diff --- + # Files one side's manifest may hold under the path prefix before the call asks for + # a narrower `path_prefix` (the largest indexed repository holds about 40 thousand). + code_branch_diff_max_manifest_files: int = Field(default=200_000, ge=1) + # Differing paths whose definitions are read; the rest are counted and the answer + # says `definitions_complete: false`. + code_branch_diff_max_definition_paths: int = Field(default=2_000, ge=1) + # Readable sibling namespaces `overlaps` compares; the rest are named `over_cap`. + code_branch_diff_max_overlap_namespaces: int = Field(default=16, ge=1) + # Seconds each git read of `divergence` (the merge-base and the ahead/behind + # count) may take before the answer is `unknown`. + code_branch_diff_divergence_timeout_s: float = Field(default=2.0, gt=0) # --- multi-repo and self-service --- # Multi-repo: JSON array of repo configs (code/domain/index/repos.py); # empty = the scalar single-repo settings. Missing per-entry fields fall @@ -6421,6 +6433,13 @@ class TrackerSettings(BaseModel): # (≤400 lines, 5 s cap, cached 10 min) beside one rev-list and two # ledger reads, gathered; optional bounded tracker reads "code.blame_range": 6000, + # two keyed manifest reads (one row per file, ~40k on the largest index), then per + # side, gathered, the symbol rows of the differing paths (≤ 2000, rounds of 100) and + # their chunk fingerprints (one statement per 500 paths); `overlaps` repeats the + # manifest (≤ 4 statements), symbol and fingerprint reads per sibling namespace (≤ 16), + # gathered; beside the manifests, two git reads of the shared mirror (2 s cap + # each) for the divergence. A design target, not measured on a large index. + "code.branch.diff": 3000, # Probes the live embedder over the whole corpus: slow by design. "code.calibrate": 30000, "code.callees": 400, diff --git a/tests/integration/test_code_branch_diff.py b/tests/integration/test_code_branch_diff.py new file mode 100644 index 0000000000..7c7d9c1006 --- /dev/null +++ b/tests/integration/test_code_branch_diff.py @@ -0,0 +1,774 @@ +"""code.branch.diff over a real git repository indexed into three namespaces (a trunk and +two branches), against a live ClickHouse: the files, the definitions and the overlaps the +op reads from the two namespaces' `code_files` and `code_symbols` rows. + +Skips without LOOM_CH_HOST (house rule). +""" + +from __future__ import annotations + +import argparse +import os +import re +import subprocess +from pathlib import Path +from typing import Any + +import pytest + +from tests.integration._resources import unique_org + +pytestmark = pytest.mark.asyncio + +ORG = unique_org("branchdiff") + +_LIB = """def keep(): + return 1 + + +def grow(): + return 2 + + +def gone(): + return 3 + + +def retype(a): + return a +""" +_LIB_FEATURE = """def keep(): + return 11 + + +def grow(): + first = 2 + second = first + 1 + third = second + 1 + return third + + +def retype(a, b): + return a + + +def fresh(): + return 4 +""" +_LIB_OTHER = """def keep(): + return 12 + + +def grow(): + value = 2 + for step in range(3): + value += step + return value + + +def gone(): + return 3 + + +def retype(a): + return a +""" +_OLD = "def legacy():\n return 9\n" +_SAME = "def same():\n return 0\n" +_NEW = "def brand_new():\n return 5\n" +_ELSEWHERE = "def elsewhere():\n return 6\n" + +_STORE = """export interface Store { + get(key: string): string; + put(key: string): void; + size(): number; +} +""" +_STORE_PUT = _STORE.replace("put(key: string)", "put(key: string, value: string)") +_STORE_SIZE = _STORE.replace("size()", "size(unit: string)") + + +def _git(root: Path, *args: str) -> str: + return subprocess.run( + ["git", *args], cwd=root, check=True, capture_output=True, text=True + ).stdout.strip() + + +def _commit(root: Path, files: dict[str, str | None]) -> str: + for path, text in files.items(): + if text is None: + _git(root, "rm", "-q", path) + continue + (root / path).parent.mkdir(parents=True, exist_ok=True) + (root / path).write_text(text) + _git(root, "add", path) + _git(root, "commit", "-q", "-m", "change") + return _git(root, "rev-parse", "HEAD") + + +async def _backfill(monkeypatch: Any, cfg: Any, commit: str) -> int: + from server.cli import code_backfill + + async def _nothing(*_a: object, **_k: object) -> None: + return None + + monkeypatch.setattr(code_backfill, "_repo_cfg", lambda _args: cfg) + monkeypatch.setattr(code_backfill, "connect_code_plane", _nothing) + monkeypatch.setattr(code_backfill, "_record_manual_pass", _nothing) + args = argparse.Namespace( + org=cfg.org, + namespace=cfg.namespace, + phase="index", + embed=False, + commit=commit, + no_fetch=True, + paths_file="", + limit=0, + concurrency=2, + workers=1, + edges_second_pass=False, + no_edges_second_pass=False, + dialect_folder_pass=False, + embedding_model_suffix="", + ) + return await code_backfill._backfill(args) + + +async def _index_branches( + monkeypatch: Any, root: Path, repo: str, commits: dict[str, str] +) -> dict[str, str]: + """One namespace per branch of the repository at `root`, each indexed at its commit.""" + from server.code.domain.index import repos as repos_mod + from server.code.domain.index.repos import RepoConfig + + tag = os.urandom(3).hex() + ns = {b: f"code-bd-{repo}-{b[:4]}-{tag}" for b in commits} + entries = [ + RepoConfig( + org=ORG, + namespace=ns[b], + repo=f"acme/{repo}", + git_dir=str(root / ".git"), + git_remote=f"https://github.com/acme/{repo}.git", + git_branch=b, + path_prefixes=("",), + github_token="", + ) + for b in ns + ] + monkeypatch.setattr(repos_mod, "configured_repos", lambda: entries) + for cfg in entries: + assert await _backfill(monkeypatch, cfg, commits[cfg.git_branch]) == 0 + return ns + + +def _all_readable(monkeypatch: Any) -> None: + from server.auth import authz + + async def readable( + org: str, namespace: str, role: object, *, hides_answer: bool = True + ) -> bool: + return True + + monkeypatch.setattr(authz, "row_in_scope", readable) + + +def _name(qualified: str) -> str: + return re.split(r"[.:#/]+", qualified)[-1] + + +async def test_two_branches_of_one_repository_compared_tip_to_tip( + ch_client, tmp_path, monkeypatch +) -> None: + from server.auth import authz + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.code.domain.index import repos as repos_mod + from server.code.domain.index.repos import RepoConfig + from server.code.store.index import CodeRepo + from server.core.ch import get_client + from server.core.errors import AuthInsufficientError + + await get_client().connect() + root = tmp_path / "widgets" + root.mkdir() + _git(root, "init", "-q", "-b", "main") + _git(root, "config", "user.email", "it@example.com") + _git(root, "config", "user.name", "it") + trunk_commit = _commit(root, {"src/lib.py": _LIB, "src/old.py": _OLD, "src/same.py": _SAME}) + _git(root, "checkout", "-q", "-b", "feature") + feature_commit = _commit( + root, {"src/lib.py": _LIB_FEATURE, "src/old.py": None, "src/new.py": _NEW} + ) + _git(root, "checkout", "-q", "main") + _git(root, "checkout", "-q", "-b", "other") + other_commit = _commit(root, {"src/lib.py": _LIB_OTHER, "src/elsewhere.py": _ELSEWHERE}) + + tag = os.urandom(3).hex() + ns = { + "main": f"code-bd-main-{tag}", + "feature": f"code-bd-feat-{tag}", + "other": f"code-bd-oth-{tag}", + } + commits = {"main": trunk_commit, "feature": feature_commit, "other": other_commit} + + def entry(branch: str) -> RepoConfig: + return RepoConfig( + org=ORG, + namespace=ns[branch], + repo="acme/widgets", + git_dir=str(root / ".git"), + git_remote="https://github.com/acme/widgets.git", + git_branch=branch, + path_prefixes=("",), + github_token="", + ) + + entries = [entry(b) for b in ns] + monkeypatch.setattr(repos_mod, "configured_repos", lambda: entries) + for branch, cfg in zip(ns, entries, strict=True): + assert await _backfill(monkeypatch, cfg, commits[branch]) == 0 + repo = CodeRepo() + for branch in ns: + assert await repo.get_state(ORG, ns[branch], "git_head") == commits[branch] + + out = await handle_code_branch_diff( + CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"], overlaps=True) + ) + assert out.head.git_head == feature_commit and out.base.git_head == trunk_commit + assert out.head.git_branch == "feature" and out.base.git_branch == "main" + assert "tip to tip" in out.compares and out.heads_stable + # both branches fork at the trunk's commit; `feature` is one commit ahead + assert (out.divergence.state, out.divergence.merge_base) == ("known", trunk_commit) + assert (out.divergence.ahead, out.divergence.behind) == (1, 0) + assert out.files_added == ["src/new.py"] + assert out.files_removed == ["src/old.py"] + assert out.files_changed == ["src/lib.py"] + got = {(d.path, _name(d.qualified_name)): d for d in out.definitions} + assert {k: d.change for k, d in got.items()} == { + ("src/lib.py", "keep"): "changed", + ("src/lib.py", "grow"): "changed", + ("src/lib.py", "retype"): "changed", + ("src/lib.py", "gone"): "removed", + ("src/lib.py", "fresh"): "added", + ("src/new.py", "brand_new"): "added", + ("src/old.py", "legacy"): "removed", + } + # `keep` keeps its span and signature; one line inside it differs + assert got[("src/lib.py", "keep")].reasons == ["body"] + assert got[("src/lib.py", "grow")].reasons == ["size", "body"] + assert got[("src/lib.py", "retype")].reasons == ["signature", "body"] + assert got[("src/lib.py", "grow")].base_end_line < got[("src/lib.py", "grow")].end_line + assert out.definitions_moved == 0 + # the other branch also patches `keep` in place and changes `grow`, plus a file + # `feature` does not touch; it shares those two definitions with `feature` + [overlap] = out.overlaps + assert overlap.namespace == ns["other"] and overlap.git_head == other_commit + assert [(d["path"], _name(d["qualified_name"])) for d in overlap.definitions] == [ + ("src/lib.py", "keep"), + ("src/lib.py", "grow"), + ] + assert all(d["change"] == d["change_there"] == "changed" for d in overlap.definitions) + + # the reverse direction swaps added and removed + back = await handle_code_branch_diff( + CodeBranchDiffInput(org=ORG, namespace=ns["main"], against=ns["feature"]) + ) + assert back.files_added == ["src/old.py"] and back.files_removed == ["src/new.py"] + + # a prefix narrows both reads + narrowed = await handle_code_branch_diff( + CodeBranchDiffInput( + org=ORG, namespace=ns["feature"], against=ns["main"], path_prefix="src/n" + ) + ) + assert narrowed.files_added == ["src/new.py"] and narrowed.files_changed == [] + assert [_name(d.qualified_name) for d in narrowed.definitions] == ["brand_new"] + + # limits cut each list and say so + cut = await handle_code_branch_diff( + CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"], limit=2) + ) + assert cut.truncated and len(cut.definitions) == 2 and cut.definitions_total == 7 + + # fail closed: an unreadable `against` refuses the call, whichever side it is + async def only(org: str, namespace: str, role: object, *, hides_answer: bool = True) -> bool: + return namespace == ns["feature"] + + monkeypatch.setattr(authz, "row_in_scope", only) + with pytest.raises(AuthInsufficientError): + await handle_code_branch_diff( + CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + ) + + +async def test_editing_one_method_of_an_interface_marks_only_that_method( + ch_client, tmp_path, monkeypatch +) -> None: + """An interface's methods share the container's skeleton chunk. A definition's + fingerprint comes from the chunk it owns, so a sibling's edit leaves the others + unflagged and out of the overlaps.""" + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.core.ch import get_client + + await get_client().connect() + root = tmp_path / "shapes" + root.mkdir() + _git(root, "init", "-q", "-b", "main") + _git(root, "config", "user.email", "it@example.com") + _git(root, "config", "user.name", "it") + commits = {"main": _commit(root, {"src/store.ts": _STORE})} + _git(root, "checkout", "-q", "-b", "feature") + commits["feature"] = _commit(root, {"src/store.ts": _STORE_PUT}) + _git(root, "checkout", "-q", "main") + _git(root, "checkout", "-q", "-b", "other") + commits["other"] = _commit(root, {"src/store.ts": _STORE_SIZE}) + + ns = await _index_branches(monkeypatch, root, "shapes", commits) + _all_readable(monkeypatch) + out = await handle_code_branch_diff( + CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"], overlaps=True) + ) + methods = {"get", "put", "size"} + changed = {_name(d.qualified_name) for d in out.definitions} & methods + assert changed == {"put"} + # `other` edits `size`: the two branches share the interface, not a method + shared = {_name(d["qualified_name"]) for o in out.overlaps for d in o.definitions} + assert shared & methods == set() + + +_SQL_TEST = "tests/queries/0_stateless/00001_statements.sql" + + +def _sql_test(second: int) -> str: + """Five statements. The first three are small and pack into one chunk; the fourth + is large enough to start the next, which takes the fifth.""" + return ( + "-- Tags: no-parallel\n\n" + "SELECT count() FROM numbers(10) WHERE number = 1;\n" + f"SELECT count() FROM numbers(10) WHERE number = {second};\n" + "SELECT count() FROM numbers(10) WHERE number = 3;\n" + f"SELECT '{'x' * 1900}';\n" + "SELECT count() FROM numbers(10) WHERE number = 5;\n" + ) + + +async def test_editing_one_sql_statement_flags_the_statements_of_its_chunk_only( + ch_client, tmp_path, monkeypatch +) -> None: + """With statement records on, a chunk packs consecutive statements and is tagged with + all of them. Its text cannot say which one changed, so every statement of that chunk + is listed, the edited one among them, and the statements of other chunks are not.""" + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.core.ch import get_client + from server.settings import settings + + monkeypatch.setattr(settings, "code_sql_statement_records", True) + await get_client().connect() + root = tmp_path / "sqltests" + root.mkdir() + _git(root, "init", "-q", "-b", "main") + _git(root, "config", "user.email", "it@example.com") + _git(root, "config", "user.name", "it") + commits = {"main": _commit(root, {_SQL_TEST: _sql_test(2)})} + _git(root, "checkout", "-q", "-b", "feature") + commits["feature"] = _commit(root, {_SQL_TEST: _sql_test(20)}) + + ns = await _index_branches(monkeypatch, root, "sqltests", commits) + _all_readable(monkeypatch) + out = await handle_code_branch_diff( + CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + ) + flagged = {_name(d.qualified_name) for d in out.definitions} + assert "stmt_0002" in flagged + assert flagged <= {"stmt_0001", "stmt_0002", "stmt_0003"} + + +async def _two_branches(tmp_path: Path, name: str, extra: str) -> tuple[Path, dict[str, str]]: + """`main` holds `_LIB`; `feature` appends one function, so every other definition of + the file keeps its chunk.""" + root = tmp_path / name + root.mkdir() + _git(root, "init", "-q", "-b", "main") + _git(root, "config", "user.email", "it@example.com") + _git(root, "config", "user.name", "it") + commits = {"main": _commit(root, {"src/lib.py": _LIB})} + _git(root, "checkout", "-q", "-b", "feature") + commits["feature"] = _commit(root, {"src/lib.py": _LIB + extra}) + return root, commits + + +async def test_a_paused_slice_in_the_store_makes_the_pair_unstable( + ch_client, tmp_path, monkeypatch +) -> None: + """The slice cursor as the ingest worker leaves it when it stops between the rounds + of a commit: `git_head` stays at the last whole commit while the rows already hold + the next one's files. The comparison says the pair is not stable.""" + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.code.app.index.pass_stream import SLICE_KEY + from server.code.store.index import CodeRepo + from server.core.ch import get_client + + await get_client().connect() + root, commits = await _two_branches(tmp_path, "paused", "\n\ndef later():\n return 8\n") + ns = await _index_branches(monkeypatch, root, "paused", commits) + _all_readable(monkeypatch) + ask = CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + assert (await handle_code_branch_diff(ask)).heads_stable + repo = CodeRepo() + await repo.set_state(ORG, ns["feature"], SLICE_KEY, f"{commits['feature']}..{'e' * 40}:1") + out = await handle_code_branch_diff(ask) + assert out.head.git_head == commits["feature"] and not out.heads_stable + await repo.set_state(ORG, ns["feature"], SLICE_KEY, "") + assert (await handle_code_branch_diff(ask)).heads_stable + + +async def test_rows_of_a_commit_the_head_does_not_name_make_the_pair_unstable( + ch_client, tmp_path, monkeypatch +) -> None: + """The rows a previous-build worker writes for a one-round commit before it moves + `git_head`: a file and its definition at the next commit, no slice cursor. The pair + is not stable until `git_head` names that commit; rows rewritten at the head itself + afterwards (a reconcile heal) leave it stable.""" + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.code.store.index import CodeRepo + from server.code.store.index.rows import build_row, version_now + from server.core.ch import get_client + + await get_client().connect() + root, commits = await _two_branches(tmp_path, "unnamed", "\n\ndef later():\n return 8\n") + ns = await _index_branches(monkeypatch, root, "unnamed", commits) + _all_readable(monkeypatch) + ask = CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + assert (await handle_code_branch_diff(ask)).heads_stable + repo, nxt = CodeRepo(), "e" * 40 + + def rows(commit: str) -> tuple[dict[str, Any], dict[str, Any]]: + common = {"org": ORG, "namespace": ns["main"], "path": "src/half.py"} + return ( + build_row("code_files", **common, indexed_commit=commit, version=version_now()), + build_row( + "code_symbols", + **common, + qualified_name="half", + symbol_id="src/half.py:half", + name="half", + kind="function", + indexed_commit=commit, + version=version_now(), + ), + ) + + file_row, symbol_row = rows(nxt) + await repo.insert_rows("code_symbols", [symbol_row]) + out = await handle_code_branch_diff(ask) + assert out.base.git_head == commits["main"] and not out.heads_stable + await repo.insert_rows("code_files", [file_row]) + out = await handle_code_branch_diff(ask) + assert "src/half.py" in out.files_removed and not out.heads_stable + await repo.set_state(ORG, ns["main"], "git_head", nxt) + assert (await handle_code_branch_diff(ask)).heads_stable + await repo.insert_rows("code_files", [rows(nxt)[0]]) + assert (await handle_code_branch_diff(ask)).heads_stable + + +async def test_the_definition_capture_is_the_digest_of_the_rows_the_reads_use( + ch_client, tmp_path, monkeypatch +) -> None: + """The digests the pair is fenced by, read off the store: two reads of unchanged rows + are equal; a definition row the next commit writes (no file row, no cursor) changes it; + and that same row rewritten at a newer version with the same text — a heal — leaves it + equal, because the fence is over what the rows hold and not over when they were written. + """ + from server.code.app.branch_diff import _chunk_model + from server.code.store.index import CodeRepo + from server.code.store.index.rows import build_row, version_now + from server.core.ch import get_client + + await get_client().connect() + root, commits = await _two_branches(tmp_path, "capture", "\n\ndef later():\n return 8\n") + ns = await _index_branches(monkeypatch, root, "capture", commits) + repo, model = CodeRepo(), _chunk_model() + paths = ["src/lib.py"] + + def later(version: int) -> dict[str, Any]: + return build_row( + "code_symbols", + org=ORG, + namespace=ns["main"], + path="src/lib.py", + qualified_name="later", + symbol_id="src/lib.py:later", + name="later", + kind="function", + indexed_commit="e" * 40, + version=version, + ) + + first, commits = await repo.definition_capture(ORG, ns["main"], paths, model, "treesitter") + assert set(first) == {"src/lib.py"} + assert "e" * 40 not in commits + assert await repo.definition_capture(ORG, ns["main"], paths, model, "treesitter") == ( + first, + commits, + ) + + await repo.insert_rows("code_symbols", [later(version_now())]) + grown, grown_commits = await repo.definition_capture( + ORG, ns["main"], paths, model, "treesitter" + ) + assert grown != first + assert "e" * 40 in grown_commits + + # the same row at a newer version is a heal: the digest and the commits do not move + await repo.insert_rows("code_symbols", [later(version_now() + 10**9)]) + assert await repo.definition_capture(ORG, ns["main"], paths, model, "treesitter") == ( + grown, + grown_commits, + ) + + +async def test_a_previous_build_single_round_apply_on_a_slower_clock_is_not_stable( + ch_client, tmp_path, monkeypatch +) -> None: + """An N-1 worker whose clock trails the one that wrote `main`'s head runs a commit + of one round: no slice cursor, its `code_files` row at its clock, then its + `git_head`, which FINAL drops because its version is below the head's. Both state + reads still name the old head, and the row's version is below that head's, so the + version count cannot see the row either — the head's tree does: `src/half.py` is + not a file of the commit the head names. Once N's worker moves `git_head` (its + state write lands past the head row whatever the clocks) the row is that head's + file and the pair is stable.""" + import time + + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.code.app.index.pass_stream import SLICE_KEY + from server.code.store.index import CodeRepo + from server.code.store.index.rows import build_row, version_now + from server.core.ch import get_client + from server.core.datetimes import naive_utc_now + + await get_client().connect() + root, commits = await _two_branches(tmp_path, "handoff", "\n\ndef later():\n return 8\n") + ns = await _index_branches(monkeypatch, root, "handoff", commits) + _all_readable(monkeypatch) + ask = CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + ahead = time.time_ns() + 120 * 10**9 + await get_client().insert( + "loom.code_index_state", + [ + { + "org": ORG, + "namespace": ns["main"], + "state_key": key, + "state_value": value, + "detail": "", + "updated_at": naive_utc_now(), + "version": ahead, + } + for key, value in (("git_head", commits["main"]), (SLICE_KEY, "")) + ], + ) + assert (await handle_code_branch_diff(ask)).heads_stable + # the commit the previous-build worker is applying, on that worker's clock + _git(root, "checkout", "-q", "main") + nxt = _commit(root, {"src/half.py": "def half():\n return 0.5\n"}) + blob = _git(root, "rev-parse", "HEAD:src/half.py") + repo = CodeRepo() + await repo.insert_rows( + "code_files", + [ + build_row( + "code_files", + org=ORG, + namespace=ns["main"], + path="src/half.py", + blob_sha=blob, + indexed_commit=nxt, + version=version_now(), + ) + ], + ) + await get_client().insert( + "loom.code_index_state", + [ + { + "org": ORG, + "namespace": ns["main"], + "state_key": "git_head", + "state_value": nxt, + "detail": "", + "updated_at": naive_utc_now(), + "version": version_now(), # below `ahead`: FINAL keeps the old head + } + ], + ) + out = await handle_code_branch_diff(ask) + assert out.base.git_head == commits["main"] and "src/half.py" in out.files_removed + assert not out.heads_stable + await repo.set_state(ORG, ns["main"], "git_head", nxt, detail=f"base {commits['main'][:12]}") + await repo.set_state(ORG, ns["main"], SLICE_KEY, "") + out = await handle_code_branch_diff(ask) + assert out.base.git_head == nxt and out.heads_stable + + +async def test_a_commit_that_only_deletes_files_written_at_the_head_is_not_stable( + ch_client, tmp_path, monkeypatch +) -> None: + """A previous-build commit whose only change deletes `src/lib.py`, last written at + the head: `tombstone_file` copies the live rows, so its tombstones name the head's + commit. Both state reads still see the old head and no cursor, and the files + differ; the pair is not stable until `git_head` names the deleting commit.""" + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.code.app.index.ingest import tombstone_file + from server.code.store.index import CodeRepo + from server.core.ch import get_client + from server.embedding.embedder import get_embedder + + await get_client().connect() + root, commits = await _two_branches(tmp_path, "deleting", "\n\ndef later():\n return 8\n") + ns = await _index_branches(monkeypatch, root, "deleting", commits) + _all_readable(monkeypatch) + ask = CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + assert (await handle_code_branch_diff(ask)).heads_stable + repo = CodeRepo() + await tombstone_file( + repo, ORG, ns["main"], path="src/lib.py", embedding_model=get_embedder().model_name + ) + out = await handle_code_branch_diff(ask) + assert out.base.git_head == commits["main"] and "src/lib.py" in out.files_added + assert not out.heads_stable + await repo.set_state(ORG, ns["main"], "git_head", "e" * 40) + assert (await handle_code_branch_diff(ask)).heads_stable + + +async def test_a_previous_build_deletion_on_a_slower_clock_is_not_stable( + ch_client, tmp_path, monkeypatch +) -> None: + """An N-1 worker whose clock trails the one that wrote `main`'s head deletes + `src/lib.py` before it publishes its head. Its tombstone's version is below the head's, + so the version count does not see it, and the file is not in the manifest, so the + head's tree has nothing to be compared with: the answer lists the file as added and + called itself stable. The tombstone was written after the head was published, which + no clock of the writer's changes. A tombstone from before the head leaves it stable.""" + import time + from datetime import timedelta + + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.code.app.index.ingest import tombstone_file + from server.code.app.index.pass_stream import SLICE_KEY + from server.code.store.index import CodeRepo + from server.core.ch import get_client + from server.core.datetimes import naive_utc_now + from server.embedding.embedder import get_embedder + + await get_client().connect() + root, commits = await _two_branches(tmp_path, "gone", "\n\ndef later():\n return 8\n") + ns = await _index_branches(monkeypatch, root, "gone", commits) + _all_readable(monkeypatch) + ask = CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + ahead = time.time_ns() + 120 * 10**9 + await get_client().insert( + "loom.code_index_state", + [ + { + "org": ORG, + "namespace": ns["main"], + "state_key": key, + "state_value": value, + "detail": "", + "updated_at": naive_utc_now() - timedelta(seconds=30), + "version": ahead, + } + for key, value in (("git_head", commits["main"]), (SLICE_KEY, "")) + ], + ) + assert (await handle_code_branch_diff(ask)).heads_stable + repo = CodeRepo() + await tombstone_file( + repo, ORG, ns["main"], path="src/lib.py", embedding_model=get_embedder().model_name + ) + out = await handle_code_branch_diff(ask) + assert out.base.git_head == commits["main"] and "src/lib.py" in out.files_added + assert not out.heads_stable + await repo.set_state(ORG, ns["main"], "git_head", "e" * 40) + assert (await handle_code_branch_diff(ask)).heads_stable + + +async def test_chunks_of_another_embedding_model_do_not_change_a_fingerprint( + ch_client, tmp_path, monkeypatch +) -> None: + """A namespace can hold live chunks of a second embedding model (a re-embed in + flight). Its rows carry their own content hashes; the fingerprint reads the served + model's rows only, so they never mark an unchanged definition as edited.""" + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.core.ch import get_client + + await get_client().connect() + root, commits = await _two_branches(tmp_path, "models", "\n\ndef extra():\n return 7\n") + ns = await _index_branches(monkeypatch, root, "models", commits) + _all_readable(monkeypatch) + await get_client().execute( + """ + INSERT INTO loom.code_chunks + SELECT * REPLACE ( + concat(embedding_model, '-next') AS embedding_model, + reverse(content_hash) AS content_hash + ) + FROM loom.code_chunks FINAL + WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL + """, + {"org": ORG, "ns": ns["feature"]}, + ) + out = await handle_code_branch_diff( + CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + ) + assert out.files_changed == ["src/lib.py"] + assert [(_name(d.qualified_name), d.change) for d in out.definitions] == [("extra", "added")] + + +async def test_chunk_rows_of_a_commit_the_head_does_not_name_make_the_pair_unstable( + ch_client, tmp_path, monkeypatch +) -> None: + """A previous-build worker flushes a round's chunk rows before its symbol and file + rows. A read that falls between the two sees a body change under the old head, so the + chunk rows alone make the pair unstable until `git_head` names their commit.""" + import uuid + + from server.code.api.models_branch import CodeBranchDiffInput + from server.code.app.branch_diff import handle_code_branch_diff + from server.code.store.index import CodeRepo + from server.code.store.index.rows import build_row, version_now + from server.core.ch import get_client + from server.embedding.embedder import get_embedder + + await get_client().connect() + root, commits = await _two_branches(tmp_path, "chunks", "\n\ndef later():\n return 8\n") + ns = await _index_branches(monkeypatch, root, "chunks", commits) + _all_readable(monkeypatch) + ask = CodeBranchDiffInput(org=ORG, namespace=ns["feature"], against=ns["main"]) + assert (await handle_code_branch_diff(ask)).heads_stable + repo, nxt = CodeRepo(), "e" * 40 + chunk = build_row( + "code_chunks", + org=ORG, + namespace=ns["main"], + embedding_model=get_embedder().model_name, + path="src/lib.py", + chunk_id=str(uuid.uuid4()), + indexed_commit=nxt, + version=version_now(), + ) + await repo.insert_rows("code_chunks", [chunk]) + out = await handle_code_branch_diff(ask) + assert out.base.git_head == commits["main"] and not out.heads_stable + await repo.set_state(ORG, ns["main"], "git_head", nxt) + assert (await handle_code_branch_diff(ask)).heads_stable diff --git a/tests/unit/snapshots/sdk_public_api.json b/tests/unit/snapshots/sdk_public_api.json index 23492cbfac..b2a23fd823 100644 --- a/tests/unit/snapshots/sdk_public_api.json +++ b/tests/unit/snapshots/sdk_public_api.json @@ -323,6 +323,10 @@ "body", "options" ], + "branch_diff": [ + "body", + "options" + ], "calibrate": [ "body", "options" diff --git a/tests/unit/snapshots/settings_defaults.json b/tests/unit/snapshots/settings_defaults.json index 81347c5cbb..452d561e92 100644 --- a/tests/unit/snapshots/settings_defaults.json +++ b/tests/unit/snapshots/settings_defaults.json @@ -138,6 +138,10 @@ "code_bootstrap_mirror_refresh_s": 5.0, "code_bootstrap_mirror_retry_s": 60.0, "code_bot_authors": "", + "code_branch_diff_divergence_timeout_s": 2.0, + "code_branch_diff_max_definition_paths": 2000, + "code_branch_diff_max_manifest_files": 200000, + "code_branch_diff_max_overlap_namespaces": 16, "code_calibration_enabled": false, "code_calibration_interval_seconds": 3600, "code_callers_candidate_min_confidence": 0.2, diff --git a/tests/unit/test_code_branch_diff.py b/tests/unit/test_code_branch_diff.py new file mode 100644 index 0000000000..4ae321eee7 --- /dev/null +++ b/tests/unit/test_code_branch_diff.py @@ -0,0 +1,1405 @@ +"""code.branch.diff: the comparison, the two-sided authorization and the answer's limits. + +The handler runs against an in-memory stand-in for the two namespaces' rows: files by blob, +tree-sitter definitions by path. The same handler runs against ClickHouse in +tests/integration/test_code_branch_diff.py. +""" + +from __future__ import annotations + +import hashlib +from typing import Any + +import pytest + +from server.code.api.models_branch import CodeBranchDiffInput +from server.code.app import branch_diff +from server.code.domain.index import repos as repos_mod +from server.code.domain.index.branch_diff import ( + diff_definitions, + diff_files, + same_blob, + shared_changes, +) +from server.code.domain.index.repos import RepoConfig +from server.core.errors import AuthInsufficientError, PreconditionFailedError, ValidationError +from server.settings import settings + +ORG = "acme" +TRUNK, FEATURE, OTHER, THIRD = "code-w-main", "code-w-feature", "code-w-other", "code-w-third" +H = {TRUNK: "a" * 40, FEATURE: "b" * 40, OTHER: "c" * 40, THIRD: "d" * 40} + + +def sym( + path: str, + name: str, + start: int, + end: int, + sig: str = "", + kind: str = "function", + commit: str = "", +) -> dict: + return { + "path": path, + "qualified_name": name, + "kind": kind, + "start_line": start, + "end_line": end, + "signature": sig or f"def {name}()", + "symbol_id": f"{path}:{name}:{sig}", + "indexed_commit": commit, + } + + +class FakeRepo: + """Files as path -> (blob, content hash), symbols as path -> rows, and definition + fingerprints as (path, symbol_id) -> hash, per namespace.""" + + def __init__(self, files: dict[str, dict[str, Any]], symbols: dict[str, dict[str, list]]): + self.heads = dict(H) + self.files = files + self.symbols = symbols + self.fps: dict[str, dict[tuple[str, str], str]] = {} + # index-state rows other than `git_head`, per namespace + self.state: dict[str, dict[str, str]] = {} + self.fp_models: set[str] = set() + self.reads: list[str] = [] + # a write clock: the version `git_head` was set at, and each row write as + # (path, indexed commit, version), per namespace + self.clock = 0 + self.head_set_at: dict[str, int] = {} + self.row_writes: dict[str, list[tuple[str, str, int, bool]]] = {} + # the commit each path's newest row names; the files of a fixture sit at the head + self.row_commit: dict[str, dict[str, str]] = { + ns: {path: H[ns] for path in rows} for ns, rows in files.items() if ns in H + } + + def tick(self) -> int: + self.clock += 1 + return self.clock + + def write_files(self, ns: str, files: dict[str, tuple[str, str] | None], commit: str): + """An ingest's rows: a file row per path at `commit`. A path given as None is + tombstoned, and its tombstone keeps the commit of the row it retires, as the + store's `tombstone_of` copies it.""" + commits = self.row_commit.setdefault(ns, {}) + for path, value in files.items(): + if value is None: + self.files[ns].pop(path, None) + named = commits.get(path, "") + else: + self.files[ns][path] = value + named = commits[path] = commit + self.row_writes.setdefault(ns, []).append((path, named, self.tick(), value is None)) + + def set_state(self, ns: str, key: str, value: str) -> None: + if key == "git_head": + self.heads[ns] = value + self.head_set_at[ns] = self.tick() + else: + self.state.setdefault(ns, {})[key] = value + + async def rows_after_head(self, org, ns, head, prefix, embedding_model): + self.reads.append(f"rows:{ns}") + return any( + path.startswith(prefix) + and (commit != head or tombstone) + and at > self.head_set_at.get(ns, 0) + for path, commit, at, tombstone in self.row_writes.get(ns, []) + ) + + async def get_state(self, org: str, ns: str, key: str) -> str: + assert key == "git_head" + self.reads.append(f"state:{ns}") + return self.heads.get(ns, "") + + async def all_state_many(self, pairs): + out = {} + for org, ns in pairs: + self.reads.append(f"state:{ns}") + rows = {k: {"value": v} for k, v in self.state.get(ns, {}).items()} + if ns in self.heads: + rows["git_head"] = {"value": self.heads[ns]} + out[(org, ns)] = rows + return out + + async def definition_capture(self, org, ns, paths, model="", tier="treesitter"): + """What a definition read of `paths` is founded on: the digest of the live rows (each + symbol's identity and span, each definition's text hash), and every commit those + rows name. The store reads it with the definitions and again after them.""" + self.reads.append(f"capture:{ns}") + out: dict[str, str] = {} + commits: set[str] = set() + for p in sorted(set(paths)): + rows = self.symbols.get(ns, {}).get(p, []) + syms = sorted( + f"{r['symbol_id']}|{r['qualified_name']}|{r['kind']}|" + f"{r['start_line']}-{r['end_line']}|{r['signature']}" + for r in rows + ) + fps = sorted(f"{k[1]}={v}" for k, v in self.fps.get(ns, {}).items() if k[0] == p) + commits.update(r["indexed_commit"] for r in rows if r["indexed_commit"]) + if not syms and not fps: + continue + out[p] = ( + f"{len(syms)}:{hashlib.sha256(';'.join(syms).encode()).hexdigest()}:" + f"{len(fps)}:{hashlib.sha256(';'.join(fps).encode()).hexdigest()}" + ) + return out, tuple(sorted(commits)) + + async def file_manifest(self, org, ns, *, prefix="", paths=None, limit=0): + self.reads.append(f"files:{ns}") + rows = { + p: v + for p, v in sorted(self.files.get(ns, {}).items()) + if p.startswith(prefix) and (paths is None or p in paths) + } + return dict(list(rows.items())[:limit]) if limit else rows + + async def live_symbols_for_paths(self, org, ns, paths, tier): + assert tier == "treesitter" + self.reads.append(f"symbols:{ns}") + return {p: list(self.symbols.get(ns, {}).get(p, [])) for p in paths} + + async def definition_fingerprints(self, org, ns, paths, model=""): + self.reads.append(f"fingerprints:{ns}") + self.fp_models.add(model) + return {k: v for k, v in self.fps.get(ns, {}).items() if k[0] in paths} + + +def blob(tag: str) -> tuple[str, str]: + return (tag.ljust(40, "0"), tag.ljust(64, "1")) + + +def fixture() -> tuple[dict, dict]: + """TRUNK is the base. FEATURE edits `lib.py`, adds `new.py`, drops `old.py`. + OTHER also changes `lib.py:keep` and `lib.py:grow`, plus `other.py`.""" + files = { + TRUNK: { + "lib.py": blob("lib0"), + "old.py": blob("old0"), + "same.py": blob("same"), + "other.py": blob("oth0"), + "pkg/a.py": blob("a0"), + }, + FEATURE: { + "lib.py": blob("lib1"), + "new.py": blob("new1"), + "same.py": blob("same"), + "other.py": blob("oth0"), + "pkg/a.py": blob("a0"), + }, + OTHER: { + "lib.py": blob("lib2"), + "old.py": blob("old0"), + "same.py": blob("same"), + "other.py": blob("oth2"), + "pkg/a.py": blob("a0"), + }, + THIRD: { + "lib.py": blob("lib0"), + "old.py": blob("old0"), + "same.py": blob("same"), + "other.py": blob("oth0"), + "pkg/a.py": blob("a0"), + }, + } + symbols = { + TRUNK: { + "lib.py": [ + sym("lib.py", "keep", 1, 5), + sym("lib.py", "grow", 7, 10), + sym("lib.py", "gone", 12, 15), + sym("lib.py", "retype", 17, 20, "def retype(a)"), + ], + "old.py": [sym("old.py", "legacy", 1, 3)], + "other.py": [sym("other.py", "elsewhere", 1, 2)], + }, + FEATURE: { + "lib.py": [ + sym("lib.py", "keep", 3, 7), # moved down two lines, otherwise equal + sym("lib.py", "grow", 9, 16), # grew + sym("lib.py", "retype", 19, 22, "def retype(a, b)"), # signature + sym("lib.py", "fresh", 24, 26), + ], + "new.py": [sym("new.py", "brand_new", 1, 4)], + "other.py": [sym("other.py", "elsewhere", 1, 2)], + }, + OTHER: { + "lib.py": [ + sym("lib.py", "keep", 1, 5), + sym("lib.py", "grow", 7, 30), # grew too + sym("lib.py", "gone", 12, 15), + sym("lib.py", "retype", 17, 20, "def retype(a)"), + ], + "old.py": [sym("old.py", "legacy", 1, 3)], + "other.py": [sym("other.py", "elsewhere", 1, 9)], + }, + THIRD: { + "lib.py": [ + sym("lib.py", "keep", 1, 5), + sym("lib.py", "grow", 7, 10), + sym("lib.py", "gone", 12, 15), + sym("lib.py", "retype", 17, 20, "def retype(a)"), + ], + "old.py": [sym("old.py", "legacy", 1, 3)], + "other.py": [sym("other.py", "elsewhere", 1, 2)], + }, + } + return files, symbols + + +@pytest.fixture +def world(monkeypatch: pytest.MonkeyPatch): + from server.auth import authz + + files, symbols = fixture() + fake = FakeRepo(files, symbols) + readable = {TRUNK, FEATURE, OTHER, THIRD} + + async def row_reach(org: str, ns: str, role: Any = None) -> bool: + return ns in readable + + monkeypatch.setattr(authz, "row_reach", row_reach) + monkeypatch.setattr(branch_diff, "CodeRepo", lambda: fake) + entries = [ + RepoConfig( + org=ORG, + namespace=ns, + repo="acme/w", + git_dir="/x/w.git", + git_remote="https://github.com/acme/w.git", + git_branch=branch, + path_prefixes=("",), + github_token="", + ) + for ns, branch in ( + (TRUNK, "main"), + (FEATURE, "feature"), + (OTHER, "other"), + (THIRD, "third"), + ) + ] + entries.append( + RepoConfig( + org=ORG, + namespace="code-elsewhere", + repo="acme/other-repo", + git_dir="/x/o.git", + git_remote="https://github.com/acme/other-repo.git", + git_branch="main", + path_prefixes=("",), + github_token="", + ) + ) + monkeypatch.setattr(repos_mod, "configured_repos", lambda: entries) + readable_set = readable + return fake, readable_set + + +def call(**kw: Any) -> CodeBranchDiffInput: + return CodeBranchDiffInput(org=ORG, namespace=FEATURE, against=TRUNK, **kw) + + +# ---- the pure comparison ----------------------------------------------------- + + +def test_files_are_judged_by_blob_and_fall_back_to_the_content_hash() -> None: + assert same_blob(("b" * 40, "x"), ("b" * 40, "y")) + assert not same_blob(("b" * 40, "x"), ("c" * 40, "x")) + assert same_blob(("", "h"), ("b" * 40, "h")) + assert not same_blob(("", ""), ("", "")) + head = {"a": blob("a1"), "b": blob("b0"), "n": blob("n")} + base = {"a": blob("a0"), "b": blob("b0"), "r": blob("r")} + d = diff_files(head, base) + assert (d.added, d.removed, d.changed) == (["n"], ["r"], ["a"]) + + +def test_a_definition_that_only_moved_is_counted_not_listed() -> None: + head = {"f.py": [sym("f.py", "a", 5, 9), sym("f.py", "b", 11, 12)]} + base = {"f.py": [sym("f.py", "a", 1, 5), sym("f.py", "b", 7, 9), sym("f.py", "c", 20, 21)]} + changes, moved = diff_definitions(head, base) + assert [(c.qualified_name, c.change, c.reasons) for c in changes] == [ + ("b", "changed", ("size",)), + ("c", "removed", ()), + ] + assert moved == 1 + + +def test_a_body_edit_is_a_change_and_an_equal_text_that_moved_is_not() -> None: + base = {"f.py": [sym("f.py", "a", 1, 5), sym("f.py", "b", 7, 9), sym("f.py", "c", 11, 12)]} + head = {"f.py": [sym("f.py", "a", 1, 5), sym("f.py", "b", 9, 11), sym("f.py", "c", 13, 14)]} + ids = {n: f"f.py:{n}:" for n in "abc"} + base_fps = {("f.py", ids["a"]): "a0", ("f.py", ids["b"]): "b0", ("f.py", ids["c"]): "c0"} + # `a` keeps its span and signature with another line inside; `b` moved with its text; + # `c` moved and has no fingerprint on the head side, so only its span and signature count + head_fps = {("f.py", ids["a"]): "a1", ("f.py", ids["b"]): "b0"} + changes, moved = diff_definitions(head, base, head_fps, base_fps) + assert [(c.qualified_name, c.change, c.reasons) for c in changes] == [ + ("a", "changed", ("body",)) + ] + assert moved == 2 + + +def test_an_overload_added_above_another_does_not_change_both() -> None: + old = sym("f.py", "run", 1, 3, "run(int)") + head = {"f.py": [sym("f.py", "run", 1, 3, "run(str)"), sym("f.py", "run", 5, 7, "run(int)")]} + changes, moved = diff_definitions(head, {"f.py": [old]}) + assert [(c.change, c.head["signature"]) for c in changes] == [("added", "run(str)")] + assert moved == 1 + + +def _overloads(*rows: dict) -> dict[str, list[dict]]: + return {"f.py": list(rows)} + + +def test_an_added_overload_does_not_share_a_change_with_another_overload() -> None: + base = _overloads(sym("f.py", "f", 1, 3, "def f(a)"), sym("f.py", "f", 5, 7, "def f(b)")) + # here adds f(a, b); the sibling grows f(a) + here, _ = diff_definitions( + _overloads(*base["f.py"], sym("f.py", "f", 9, 11, "def f(a, b)")), base + ) + there, _ = diff_definitions( + _overloads(sym("f.py", "f", 1, 5, "def f(a)"), sym("f.py", "f", 7, 9, "def f(b)")), base + ) + assert [c.change for c in here] == ["added"] and [c.change for c in there] == ["changed"] + assert shared_changes(here, there) == [] + + +def test_each_changed_overload_pairs_with_the_same_overload_there() -> None: + base = _overloads(sym("f.py", "f", 1, 3, "def f(a)"), sym("f.py", "f", 5, 7, "def f(b)")) + # here grows both overloads; the sibling grows only f(b) + here, _ = diff_definitions( + _overloads(sym("f.py", "f", 1, 4, "def f(a)"), sym("f.py", "f", 6, 9, "def f(b)")), base + ) + there, _ = diff_definitions( + _overloads(sym("f.py", "f", 1, 3, "def f(a)"), sym("f.py", "f", 5, 12, "def f(b)")), base + ) + shared = shared_changes(here, there) + assert [(h.base or {}).get("signature") for h, _ in shared] == ["def f(b)"] + assert [(t.head or {}).get("end_line") for _, t in shared] == [12] + + +# ---- the handler -------------------------------------------------------------- + + +@pytest.mark.asyncio +async def test_files_and_definitions_of_the_two_heads(world) -> None: + out = await branch_diff.handle_code_branch_diff(call()) + assert out.files_added == ["new.py"] + assert out.files_removed == ["old.py"] + assert out.files_changed == ["lib.py"] + by_name = {(d.qualified_name): d for d in out.definitions} + assert {n: d.change for n, d in by_name.items()} == { + "grow": "changed", + "retype": "changed", + "gone": "removed", + "fresh": "added", + "brand_new": "added", + "legacy": "removed", + } + assert by_name["grow"].reasons == ["size"] + assert by_name["retype"].reasons == ["signature"] + assert (by_name["grow"].start_line, by_name["grow"].end_line) == (9, 16) + assert (by_name["grow"].base_start_line, by_name["grow"].base_end_line) == (7, 10) + assert by_name["retype"].base_signature == "def retype(a)" + assert by_name["gone"].start_line == 0 and by_name["gone"].base_start_line == 12 + # `keep` shifted two lines and is neither listed nor an overlap candidate + assert "keep" not in by_name and out.definitions_moved == 1 + assert out.definitions_total == 6 and not out.truncated and out.definitions_complete + + +@pytest.mark.asyncio +async def test_the_answer_pins_both_heads_and_says_tip_to_tip(world) -> None: + out = await branch_diff.handle_code_branch_diff(call()) + assert out.head.namespace == FEATURE and out.head.git_head == H[FEATURE] + assert out.base.namespace == TRUNK and out.base.git_head == H[TRUNK] + assert out.head.git_branch == "feature" and out.base.git_branch == "main" + assert "tip to tip" in out.compares and "not a merge-base" in out.compares + assert out.heads_stable + + +@pytest.mark.asyncio +async def test_a_head_that_moves_during_the_read_is_flagged(world) -> None: + fake, _ = world + original = fake.live_symbols_for_paths + + async def moving(org, ns, paths, tier): + fake.heads[FEATURE] = "e" * 40 + return await original(org, ns, paths, tier) + + fake.live_symbols_for_paths = moving + out = await branch_diff.handle_code_branch_diff(call()) + assert out.head.git_head == H[FEATURE] and not out.heads_stable + + +@pytest.mark.asyncio +async def test_a_paused_ingest_slice_is_not_presented_as_a_stable_diff(world) -> None: + """The worker wrote the first round of FEATURE's next commit and stopped: its slice + cursor names that commit and `git_head` still names the one before. The rows already + hold the new commit's file, so the answer must not claim a stable pair of heads.""" + from server.code.app.index.pass_stream import SLICE_KEY + + fake, _ = world + fake.files[FEATURE]["half.py"] = blob("half") # a file of the unpublished commit + fake.state[FEATURE] = {SLICE_KEY: f"{H[FEATURE]}..{'e' * 40}:1"} + out = await branch_diff.handle_code_branch_diff(call()) + assert out.head.git_head == H[FEATURE] and "half.py" in out.files_added + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_a_bootstrap_between_slices_on_against_is_not_a_stable_diff(world) -> None: + from server.code.app.index.bootstrap import CURSOR_KEY + + fake, _ = world + fake.state[TRUNK] = {CURSOR_KEY: "500"} + out = await branch_diff.handle_code_branch_diff(call()) + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_a_slice_that_pauses_during_the_read_is_flagged(world) -> None: + from server.code.app.index.pass_stream import SLICE_KEY + + fake, _ = world + original = fake.live_symbols_for_paths + + async def pausing(org, ns, paths, tier): + fake.state[TRUNK] = {SLICE_KEY: f"{H[TRUNK]}..{'e' * 40}:1"} + return await original(org, ns, paths, tier) + + fake.live_symbols_for_paths = pausing + out = await branch_diff.handle_code_branch_diff(call()) + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_cleared_cursors_leave_the_pair_stable(world) -> None: + from server.code.app.index.bootstrap import CURSOR_KEY + from server.code.app.index.pass_stream import SLICE_KEY + + fake, _ = world + fake.state[FEATURE] = {SLICE_KEY: "", CURSOR_KEY: ""} + out = await branch_diff.handle_code_branch_diff(call()) + assert out.heads_stable + + +class PreviousBuild: + """One commit ingested the way the build before the publish fence ran it + (`CommitStream.step` and `_ingest_commit_files` there): each round's rows, then the + slice cursor only when rounds are left, so a one-round commit never writes one; at + the end the cursor is cleared when one was written, and then `git_head` moves.""" + + def __init__(self, fake: FakeRepo, ns: str, sha: str, rounds: list[dict]) -> None: + from server.code.app.index.pass_stream import SLICE_KEY + + self.fake, self.ns, self.sha, self.rounds = fake, ns, sha, rounds + self.key, self.base, self.wrote = SLICE_KEY, fake.heads[ns], False + + def round(self, i: int) -> None: + self.fake.write_files(self.ns, self.rounds[i], self.sha) + if i + 1 < len(self.rounds): + self.fake.set_state(self.ns, self.key, f"{self.base}..{self.sha}:{i + 1}") + self.wrote = True + + def clear_cursor(self) -> None: + if self.wrote: + self.fake.set_state(self.ns, self.key, "") + + def move_head(self) -> None: + self.fake.set_state(self.ns, "git_head", self.sha) + + +@pytest.mark.asyncio +async def test_a_previous_build_one_round_commit_is_not_a_stable_diff(world) -> None: + """A worker on the previous build wrote FEATURE's next commit in one round: no slice + cursor, `git_head` still at the commit before, the rows already holding the new one.""" + fake, _ = world + old = PreviousBuild(fake, FEATURE, "e" * 40, [{"half.py": blob("half")}]) + old.round(0) + out = await branch_diff.handle_code_branch_diff(call()) + assert out.head.git_head == H[FEATURE] and "half.py" in out.files_added + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_an_older_worker_on_a_slower_clock_is_fenced_by_the_tree(world, monkeypatch) -> None: + """N-1's one-round apply from a worker whose clock trails the one that wrote the + head: no slice cursor, and its `git_head` write loses under FINAL, so both state + reads name the old head. Its row's version is below the head's too, so the version + count cannot see it. The row is not the head's file: the head's tree does not hold + `half.py`, which is the evidence that works whatever the writers' clocks.""" + fake, _ = world + trees = { + H[TRUNK]: {p: b for p, (b, _) in fake.files[TRUNK].items()}, + H[FEATURE]: {p: b for p, (b, _) in fake.files[FEATURE].items()}, + } + + async def tree(org: str, ns: str, head: str, prefix: str): + return trees.get(head) + + monkeypatch.setattr(branch_diff, "_head_tree", tree) + fake.head_set_at[TRUNK] = fake.clock + 10 # the worker that wrote the head ran ahead + fake.write_files(TRUNK, {"half.py": blob("half")}, "e" * 40) + assert fake.row_writes[TRUNK][-1][2] <= fake.head_set_at[TRUNK] + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == H[TRUNK] and "half.py" in out.files_removed + assert not out.heads_stable + fake.set_state(TRUNK, "git_head", "e" * 40) + trees["e" * 40] = {p: b for p, (b, _) in fake.files[TRUNK].items()} + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == "e" * 40 and out.heads_stable + + +@pytest.mark.asyncio +async def test_a_previous_build_cursor_cleared_before_git_head_is_not_a_stable_diff( + world, +) -> None: + """The previous build cleared the slice cursor of a two-round commit before it moved + `git_head`: between the two writes neither marks the commit.""" + fake, _ = world + rounds = [{"half.py": blob("half")}, {"old.py": None}] + old = PreviousBuild(fake, TRUNK, "e" * 40, rounds) + old.round(0) + old.round(1) + old.clear_cursor() + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == H[TRUNK] and "old.py" not in out.files_removed + assert not out.heads_stable + old.move_head() + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == "e" * 40 and out.heads_stable + + +@pytest.mark.asyncio +async def test_a_previous_build_commit_that_only_deletes_is_not_a_stable_diff(world) -> None: + """The commit before the head wrote `lib.py`, so its tombstone names the head's + commit, not the commit being ingested. A deletion-only round still reads as unpublished + until `git_head` moves.""" + fake, _ = world + old = PreviousBuild(fake, TRUNK, "e" * 40, [{"lib.py": None}]) + old.round(0) + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == H[TRUNK] and "lib.py" in out.files_added + assert not out.heads_stable + old.move_head() + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == "e" * 40 and out.heads_stable + + +@pytest.mark.asyncio +async def test_a_read_paused_across_a_previous_build_write_is_flagged(world) -> None: + """The read pauses between its manifests and its definitions while a previous-build + worker writes the first round of TRUNK's next commit. Both state reads see the same + head and no cursor; the rows the read used are newer than that head.""" + fake, _ = world + old = PreviousBuild(fake, TRUNK, "e" * 40, [{"lib.py": blob("lib1")}]) + original = fake.live_symbols_for_paths + + async def paused(org, ns, paths, tier): + if ns == TRUNK and not old.fake.row_writes.get(TRUNK): + old.round(0) + return await original(org, ns, paths, tier) + + fake.live_symbols_for_paths = paused + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == H[TRUNK] and not fake.state.get(TRUNK) + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_a_slower_clock_writer_that_changes_definitions_after_the_manifest_is_fenced( + world, monkeypatch +) -> None: + """N-1's one-round apply lands its definition rows after this read captured TRUNK's + file manifest and before it reads the definitions: no file row, no cursor, and a clock + behind the head's, so the version count cannot see it and the file rows, unchanged, + say nothing either. The answer lists a definition the head does not name. The rows the + read used are not the rows it captured, which no writer's clock can fake.""" + fake, _ = world + trees = { + H[TRUNK]: {p: b for p, (b, _) in fake.files[TRUNK].items()}, + H[FEATURE]: {p: b for p, (b, _) in fake.files[FEATURE].items()}, + } + + async def tree(org: str, ns: str, head: str, paths) -> dict[str, str] | None: + return trees.get(head) + + monkeypatch.setattr(branch_diff, "_head_tree", tree) + fake.head_set_at[TRUNK] = fake.clock + 10 # the worker that wrote the head ran ahead + original = fake.live_symbols_for_paths + wrote = False + + async def paused(org, ns, paths, tier): + nonlocal wrote + if ns == TRUNK and not wrote: + wrote = True + # the previous build's first row for its next commit: a definition, no file row + fake.symbols[TRUNK]["lib.py"] = [ + *fake.symbols[TRUNK]["lib.py"], + sym("lib.py", "unpublished", 30, 34), + ] + return await original(org, ns, paths, tier) + + fake.live_symbols_for_paths = paused + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == H[TRUNK] and not fake.state.get(TRUNK) + assert any(d.qualified_name.endswith("unpublished") for d in out.definitions) + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_a_path_with_no_rows_when_read_is_fenced_too(world, monkeypatch) -> None: + """`new.py` has no definition rows on TRUNK when the read captures them, so the capture + holds nothing for it. A previous-build worker writes its first definition there while + the read runs; the check after the read must look at the paths the read asked about, + not only the ones that held rows.""" + fake, _ = world + trees = { + H[TRUNK]: {p: b for p, (b, _) in fake.files[TRUNK].items()}, + H[FEATURE]: {p: b for p, (b, _) in fake.files[FEATURE].items()}, + } + + async def tree(org: str, ns: str, head: str, paths) -> dict[str, str] | None: + return trees.get(head) + + monkeypatch.setattr(branch_diff, "_head_tree", tree) + fake.head_set_at[TRUNK] = fake.clock + 10 + assert "new.py" not in fake.symbols[TRUNK] + original = fake.live_symbols_for_paths + wrote = False + + async def paused(org, ns, paths, tier): + nonlocal wrote + if ns == TRUNK and not wrote: + wrote = True + fake.symbols[TRUNK]["new.py"] = [sym("new.py", "unpublished", 1, 4)] + return await original(org, ns, paths, tier) + + fake.live_symbols_for_paths = paused + out = await branch_diff.handle_code_branch_diff(call()) + assert out.base.git_head == H[TRUNK] and not fake.state.get(TRUNK) + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_a_row_that_names_a_commit_the_head_does_not_hold_is_fenced( + world, monkeypatch +) -> None: + """N-1 wrote TRUNK's symbol row for its next commit before this read captured the file + manifest: the file rows never moved, the cursor is clear, and the writer's clock is + behind the head's, so the version count sees nothing and a capture taken during the read + sees a state that does not move either. The row names a commit the head does not + contain, which is the one thing no clock can fake.""" + fake, _ = world + trees = { + H[TRUNK]: {p: b for p, (b, _) in fake.files[TRUNK].items()}, + H[FEATURE]: {p: b for p, (b, _) in fake.files[FEATURE].items()}, + } + + async def tree(org: str, ns: str, head: str, paths) -> dict[str, str] | None: + return trees.get(head) + + monkeypatch.setattr(branch_diff, "_head_tree", tree) + fake.head_set_at[TRUNK] = fake.clock + 10 + fake.symbols[TRUNK]["lib.py"] = [ + *fake.symbols[TRUNK]["lib.py"], + sym("lib.py", "unpublished", 30, 34, commit="e" * 40), + ] + + async def outside(org: str, ns: str, head: str, commits: tuple[str, ...]) -> set[str]: + return {"e" * 40} if ns == TRUNK and "e" * 40 in commits else set() + + monkeypatch.setattr(branch_diff, "_commits_outside", outside) + out = await branch_diff.handle_code_branch_diff(call()) + assert any(d.qualified_name.endswith("unpublished") for d in out.definitions) + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_a_row_that_names_the_head_itself_leaves_the_pair_stable(world, monkeypatch) -> None: + """A heal, or a re-index, writes a row naming the head: it is the head's row, and the + commits the read named are all the head's.""" + fake, _ = world + trees = { + H[TRUNK]: {p: b for p, (b, _) in fake.files[TRUNK].items()}, + H[FEATURE]: {p: b for p, (b, _) in fake.files[FEATURE].items()}, + } + + async def tree(org: str, ns: str, head: str, paths) -> dict[str, str] | None: + return trees.get(head) + + monkeypatch.setattr(branch_diff, "_head_tree", tree) + fake.symbols[TRUNK]["lib.py"] = [ + *fake.symbols[TRUNK]["lib.py"], + sym("lib.py", "healed", 30, 34, commit=H[TRUNK]), + ] + + async def outside(org: str, ns: str, head: str, commits: tuple[str, ...]) -> set[str]: + return {c for c in commits if c != head} + + monkeypatch.setattr(branch_diff, "_commits_outside", outside) + out = await branch_diff.handle_code_branch_diff(call()) + assert out.heads_stable + + +@pytest.mark.asyncio +async def test_a_tracked_file_the_index_declines_leaves_the_pair_stable(world, monkeypatch) -> None: + """A binary sits in the head's tree beside the indexed source and no live row holds it: + the index declines it on purpose (the denylist, a binary, a path outside the + repository's prefixes, a submodule), so its absence is declared, not evidence.""" + fake, _ = world + logo = "f" * 40 + trees = { + H[TRUNK]: {**{p: b for p, (b, _) in fake.files[TRUNK].items()}, "assets/logo.png": logo}, + H[FEATURE]: { + **{p: b for p, (b, _) in fake.files[FEATURE].items()}, + "assets/logo.png": logo, + }, + } + + async def tree(org: str, ns: str, head: str, paths) -> dict[str, str] | None: + return trees.get(head) + + monkeypatch.setattr(branch_diff, "_head_tree", tree) + out = await branch_diff.handle_code_branch_diff(call()) + assert out.heads_stable + + +@pytest.mark.asyncio +async def test_a_row_older_than_its_blob_column_leaves_the_pair_stable(world, monkeypatch) -> None: + """A live row written before `blob_sha` existed carries '' there while the head's tree + holds a blob for its path: the row cannot be told from the tree at all, which is not + evidence that it is another commit's file.""" + fake, _ = world + fake.files[TRUNK]["legacy.py"] = ("", "") + trees = { + H[TRUNK]: { + **{p: b for p, (b, _) in fake.files[TRUNK].items()}, + "legacy.py": "1" * 40, + }, + H[FEATURE]: { + **{p: b for p, (b, _) in fake.files[FEATURE].items()}, + "legacy.py": "1" * 40, + }, + } + + async def tree(org: str, ns: str, head: str, paths) -> dict[str, str] | None: + return trees.get(head) + + monkeypatch.setattr(branch_diff, "_head_tree", tree) + out = await branch_diff.handle_code_branch_diff(call()) + assert out.heads_stable + + +@pytest.mark.asyncio +async def test_rows_written_at_the_head_itself_leave_the_pair_stable(world) -> None: + """A heal after `git_head` moved rewrites rows at that head (the reconcile); a + published commit's rows were all written before its head. Neither is unpublished.""" + fake, _ = world + old = PreviousBuild(fake, FEATURE, "e" * 40, [{"half.py": blob("half")}]) + old.round(0) + old.move_head() + fake.write_files(FEATURE, {"new.py": blob("new1")}, "e" * 40) + out = await branch_diff.handle_code_branch_diff(call()) + assert out.head.git_head == "e" * 40 and out.heads_stable + + +@pytest.mark.asyncio +async def test_a_tombstone_written_after_the_head_reads_unstable_until_the_next_commit( + world, +) -> None: + """A reconcile that retires a file after `git_head` moved writes a tombstone no + different from a previous-build deletion, so it counts: unstable is a lower bound. + The next commit's `git_head` clears it.""" + fake, _ = world + fake.set_state(TRUNK, "git_head", "e" * 40) + fake.write_files(TRUNK, {"old.py": None}, "e" * 40) + out = await branch_diff.handle_code_branch_diff(call()) + assert not out.heads_stable + fake.set_state(TRUNK, "git_head", "f" * 40) + out = await branch_diff.handle_code_branch_diff(call()) + assert out.heads_stable + + +@pytest.mark.asyncio +async def test_a_sibling_publishing_a_commit_makes_the_overlaps_unstable(world) -> None: + from server.code.app.index.pass_stream import SLICE_KEY + + fake, _ = world + fake.state[OTHER] = {SLICE_KEY: f"{H[OTHER]}..{'e' * 40}:0"} + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert [o.namespace for o in out.overlaps] == [OTHER] + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_a_sibling_paused_across_a_previous_build_write_is_flagged(world) -> None: + """A previous-build worker writes OTHER's next commit while the overlap reads it: + the overlap row would name OTHER's old head over rows of the new commit.""" + fake, _ = world + old = PreviousBuild(fake, OTHER, "e" * 40, [{"lib.py": blob("lib3")}]) + original = fake.live_symbols_for_paths + + async def paused(org, ns, paths, tier): + if ns == OTHER and not fake.row_writes.get(OTHER): + old.round(0) + return await original(org, ns, paths, tier) + + fake.live_symbols_for_paths = paused + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert [o.git_head for o in out.overlaps] == [H[OTHER]] + assert not out.heads_stable + + +@pytest.mark.asyncio +async def test_fingerprints_are_read_under_the_served_embedding_model(world) -> None: + from server.embedding.embedder import get_embedder + + fake, _ = world + await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert fake.fp_models == {get_embedder().model_name} + + +@pytest.mark.asyncio +async def test_path_prefix_narrows_both_sides(world) -> None: + out = await branch_diff.handle_code_branch_diff(call(path_prefix="pkg/")) + assert (out.files_added, out.files_removed, out.files_changed) == ([], [], []) + assert out.definitions == [] + + +@pytest.mark.asyncio +async def test_each_list_is_cut_at_the_limit_with_its_total(world) -> None: + out = await branch_diff.handle_code_branch_diff(call(limit=2)) + assert out.truncated + assert len(out.definitions) == 2 and out.definitions_total == 6 + assert (out.files_added_total, out.files_removed_total, out.files_changed_total) == (1, 1, 1) + + +@pytest.mark.asyncio +async def test_the_definition_read_stops_at_its_path_cap_and_says_so(world, monkeypatch) -> None: + monkeypatch.setattr(settings, "code_branch_diff_max_definition_paths", 1) + out = await branch_diff.handle_code_branch_diff(call()) + assert not out.definitions_complete + assert {d.path for d in out.definitions} == {"lib.py"} + assert out.files_added_total == 1 and out.files_removed_total == 1 + + +@pytest.mark.asyncio +async def test_a_manifest_over_its_cap_asks_for_a_narrower_prefix(world, monkeypatch) -> None: + monkeypatch.setattr(settings, "code_branch_diff_max_manifest_files", 3) + with pytest.raises(ValidationError, match="path_prefix"): + await branch_diff.handle_code_branch_diff(call()) + + +@pytest.mark.asyncio +async def test_overlaps_name_the_other_branches_that_change_the_same_definitions(world) -> None: + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + names = [o.namespace for o in out.overlaps] + # OTHER changes `grow` (and `other.py`, which FEATURE does not touch); THIRD changes + # nothing; the other repository is never a candidate + assert names == [OTHER] + [overlap] = out.overlaps + assert overlap.git_head == H[OTHER] and overlap.git_branch == "other" + assert overlap.definitions == [ + { + "path": "lib.py", + "qualified_name": "grow", + "kind": "function", + "change": "changed", + "change_there": "changed", + } + ] + assert overlap.definitions_total == 1 + assert out.overlaps_skipped == [] + assert out.heads_stable + + +@pytest.mark.asyncio +async def test_a_body_edit_with_the_same_span_and_signature_is_listed_and_overlaps( + world, +) -> None: + fake, _ = world + keep = ("lib.py", "lib.py:keep:") + # FEATURE and OTHER both patch a line inside `keep`; THIRD holds the trunk's text + fake.fps = { + TRUNK: {keep: "k0"}, + FEATURE: {keep: "k1"}, + OTHER: {keep: "k2"}, + THIRD: {keep: "k0"}, + } + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + by_name = {d.qualified_name: d for d in out.definitions} + assert by_name["keep"].change == "changed" and by_name["keep"].reasons == ["body"] + assert (by_name["keep"].start_line, by_name["keep"].end_line) == (3, 7) + assert out.definitions_moved == 0 and out.definitions_total == 7 + [overlap] = out.overlaps + assert overlap.namespace == OTHER + assert [d["qualified_name"] for d in overlap.definitions] == ["keep", "grow"] + assert overlap.definitions_total == 2 + + +@pytest.mark.asyncio +async def test_overlaps_are_off_unless_asked(world) -> None: + fake, _ = world + out = await branch_diff.handle_code_branch_diff(call()) + assert out.overlaps == [] and out.overlaps_skipped == [] + assert not any(r.endswith(OTHER) for r in fake.reads) + + +@pytest.mark.asyncio +async def test_an_unreadable_sibling_is_skipped_and_disclosed(world) -> None: + _, readable = world + readable.discard(OTHER) + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert out.overlaps == [] + assert {"namespace": OTHER, "reason": "not_readable"} in out.overlaps_skipped + + +@pytest.mark.asyncio +async def test_a_sibling_without_an_index_is_disclosed(world) -> None: + fake, _ = world + del fake.heads[OTHER] + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert {"namespace": OTHER, "reason": "not_indexed"} in out.overlaps_skipped + + +@pytest.mark.asyncio +async def test_siblings_beyond_the_cap_are_disclosed(world, monkeypatch) -> None: + monkeypatch.setattr(settings, "code_branch_diff_max_overlap_namespaces", 1) + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert {"namespace": THIRD, "reason": "over_cap"} in out.overlaps_skipped + assert [o.namespace for o in out.overlaps] == [OTHER] + + +@pytest.mark.asyncio +async def test_the_cap_counts_only_readable_siblings(world, monkeypatch) -> None: + _, readable = world + monkeypatch.setattr(settings, "code_branch_diff_max_overlap_namespaces", 1) + # OTHER sorts first and is unreadable: THIRD, readable, takes the one slot + readable.discard(OTHER) + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert out.overlaps_skipped == [{"namespace": OTHER, "reason": "not_readable"}] + # THIRD unreadable: it is never named over the cap, only as not readable + readable.add(OTHER) + readable.discard(THIRD) + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert [o.namespace for o in out.overlaps] == [OTHER] + assert out.overlaps_skipped == [{"namespace": THIRD, "reason": "not_readable"}] + + +# ---- fail closed ---------------------------------------------------------------- + + +@pytest.mark.asyncio +async def test_an_unreadable_against_refuses_before_any_read(world) -> None: + fake, readable = world + readable.discard(TRUNK) + with pytest.raises(AuthInsufficientError): + await branch_diff.handle_code_branch_diff(call()) + assert fake.reads == [] + + +@pytest.mark.asyncio +async def test_an_unreadable_namespace_refuses_before_any_read(world) -> None: + fake, readable = world + readable.discard(FEATURE) + with pytest.raises(AuthInsufficientError): + await branch_diff.handle_code_branch_diff(call()) + assert fake.reads == [] + + +@pytest.mark.asyncio +async def test_unreadable_overlap_candidates_never_refuse_the_pair(world) -> None: + _, readable = world + readable.difference_update({OTHER, THIRD}) + out = await branch_diff.handle_code_branch_diff(call(overlaps=True)) + assert out.files_changed == ["lib.py"] + + +@pytest.mark.asyncio +async def test_against_must_be_another_namespace(world) -> None: + with pytest.raises(ValidationError): + await branch_diff.handle_code_branch_diff( + CodeBranchDiffInput(org=ORG, namespace=FEATURE, against=FEATURE) + ) + + +@pytest.mark.asyncio +async def test_a_side_without_an_indexed_head_refuses(world) -> None: + fake, _ = world + del fake.heads[TRUNK] + with pytest.raises(PreconditionFailedError, match=TRUNK): + await branch_diff.handle_code_branch_diff(call()) + + +# ---- the merge-base divergence --------------------------------------------------- + + +def _git(root, *args: str) -> str: + import subprocess + + return subprocess.run( + ["git", *args], cwd=root, check=True, capture_output=True, text=True + ).stdout.strip() + + +@pytest.fixture +def mirror(world, tmp_path, monkeypatch): + """A real repository as the shared mirror: `main` and `feature` fork at one commit, + then each gains one; the fake's indexed heads are the two tips.""" + import dataclasses + + fake, _ = world + root = tmp_path / "w" + root.mkdir() + _git(root, "init", "-q", "-b", "main") + _git(root, "config", "user.email", "t@example.com") + _git(root, "config", "user.name", "t") + shas = {} + for name in ("fork", "feature", "trunk"): + if name == "feature": + _git(root, "checkout", "-q", "-b", "feature") + elif name == "trunk": + _git(root, "checkout", "-q", "main") + (root / f"{name}.txt").write_text(name) + _git(root, "add", f"{name}.txt") + _git(root, "commit", "-q", "-m", name) + shas[name] = _git(root, "rev-parse", "HEAD") + entries = [ + dataclasses.replace(c, git_dir=str(root / ".git")) if c.repo == "acme/w" else c + for c in repos_mod.configured_repos() + ] + monkeypatch.setattr(repos_mod, "configured_repos", lambda: entries) + fake.heads[FEATURE], fake.heads[TRUNK] = shas["feature"], shas["trunk"] + return fake, shas + + +@pytest.mark.asyncio +async def test_the_divergence_gives_the_merge_base_and_both_counts(mirror) -> None: + _, shas = mirror + out = await branch_diff.handle_code_branch_diff(call()) + d = out.divergence + assert (d.state, d.merge_base, d.ahead, d.behind, d.reason) == ( + "known", + shas["fork"], + 1, + 1, + "", + ) + assert out.head.git_head == shas["feature"] and out.base.git_head == shas["trunk"] + + +@pytest.mark.asyncio +async def test_a_head_the_mirror_lacks_leaves_the_divergence_unknown(mirror) -> None: + fake, _ = mirror + fake.heads[FEATURE] = "f" * 40 + out = await branch_diff.handle_code_branch_diff(call()) + assert out.divergence.state == "unknown" and out.divergence.merge_base == "" + assert out.divergence.reason == "head_not_in_mirror: " + "f" * 40 + # the tip-to-tip comparison is answered all the same + assert out.files_changed == ["lib.py"] + + +@pytest.mark.asyncio +async def test_without_a_mirror_the_divergence_is_unknown_and_the_call_answers(world) -> None: + out = await branch_diff.handle_code_branch_diff(call()) + assert out.divergence.state == "unknown" + assert out.divergence.reason.startswith("no_git_mirror") + assert out.files_added == ["new.py"] + + +@pytest.mark.asyncio +async def test_a_head_that_could_pass_for_an_option_is_refused_before_the_divergence_reads( + mirror, monkeypatch +) -> None: + from server.code.app.index import gitrepo + + fake, _ = mirror + ran: list[tuple[str, ...]] = [] + + async def spy(git_dir: str, *args: str, **_kw: object) -> str: + ran.append(args) + # the one read that may follow a failure: the other head is present + return "x commit 1\n" if args[0] == "cat-file" else "" + + monkeypatch.setattr(gitrepo, "_git", spy) + fake.heads[FEATURE] = "--output=refused.txt" + out = await branch_diff.handle_code_branch_diff(call()) + assert out.divergence.state == "unknown" and out.divergence.merge_base == "" + assert out.divergence.reason.startswith("git_failed") + assert not any("--output=refused.txt" in " ".join(a) for a in ran) + # the tip-to-tip comparison is answered all the same + assert out.files_changed == ["lib.py"] + + +@pytest.mark.asyncio +async def test_provenance_names_only_the_pinned_head(world) -> None: + """`index_as_of` serves a namespace from a 30 s cache. Warmed at FEATURE's previous + commit, it would name that commit beside the head the comparison pinned; a block of + the pinned head itself is kept.""" + from server.code.app import common + + def block(commit: str) -> dict[str, Any]: + return {"commit": commit, "branch": "", "lag_commits": 0, "stale": False} + + common._AS_OF_CACHE.put((ORG, FEATURE), (block("9" * 40), "")) + common._AS_OF_CACHE.put((ORG, TRUNK), (block(H[TRUNK]), "")) + try: + out = await branch_diff.handle_code_branch_diff(call()) + finally: + common._AS_OF_CACHE.pop((ORG, FEATURE)) + common._AS_OF_CACHE.pop((ORG, TRUNK)) + assert out.head.git_head == H[FEATURE] and out.as_of == {} + assert out.against_as_of["commit"] == H[TRUNK] + + +@pytest.mark.asyncio +async def test_a_stalled_mirror_lookup_stays_inside_the_divergence_budget( + mirror, monkeypatch +) -> None: + """The divergence reads fail at once, and the `cat-file` that looks for a missing head + then stalls. It gets what is left of the divergence budget, not the general Git + timeout, and the call answers.""" + import asyncio + + from server.code.app.index import gitrepo + + monkeypatch.setattr(settings, "code_branch_diff_divergence_timeout_s", 0.5) + monkeypatch.setattr(settings, "code_git_timeout_s", 30.0) + + async def stalled(git_dir: str, *args: str, timeout_s=None, **_kw: object) -> str: + if args[0] != "cat-file": + raise gitrepo.GitError("fatal: bad object") + limit = settings.code_git_timeout_s if timeout_s is None else timeout_s + try: + await asyncio.wait_for(asyncio.sleep(60), limit) + except TimeoutError: + raise gitrepo.GitTimedOut(f"git cat-file timed out after {limit}s") from None + return "" + + monkeypatch.setattr(gitrepo, "_git", stalled) + out = await asyncio.wait_for(branch_diff.handle_code_branch_diff(call()), 5) + assert (out.divergence.state, out.divergence.reason) == ("unknown", "git_timeout") + assert out.files_changed == ["lib.py"] + + +@pytest.mark.asyncio +async def test_a_git_read_past_its_time_raises_a_typed_timeout(tmp_path, monkeypatch) -> None: + """The Git helper raises GitTimedOut for a read that ran out of time, and + `merge_base` passes it on to a caller that set the bound, so `code.branch.diff` tells + a timeout from a failure by type.""" + from server.code.app.index import gitrepo + + async def stalled(proc, stdin=None, *, timeout_s: float, group: bool = False): + await gitrepo.kill_and_reap(proc) + raise TimeoutError + + monkeypatch.setattr(gitrepo, "communicate_or_kill", stalled) + with pytest.raises(gitrepo.GitTimedOut): + await gitrepo.merge_base(str(tmp_path), "a" * 40, "b" * 40, timeout_s=0.5) + assert await gitrepo.merge_base(str(tmp_path), "a" * 40, "b" * 40) == "" + + +@pytest.mark.asyncio +async def test_a_merge_base_timeout_is_reported_as_a_timeout(mirror, monkeypatch) -> None: + """`merge-base` runs out of the divergence budget while the count answers.""" + from server.code.app.index import gitrepo + + async def slow_merge_base(git_dir: str, *args: str, timeout_s=None, **_kw: object) -> str: + if args[0] == "merge-base": + raise gitrepo.GitTimedOut(f"git merge-base timed out after {timeout_s}s") + return "1\t1\n" if args[0] == "rev-list" else "" + + monkeypatch.setattr(gitrepo, "_git", slow_merge_base) + out = await branch_diff.handle_code_branch_diff(call()) + assert (out.divergence.state, out.divergence.reason) == ("unknown", "git_timeout") + + +def test_the_head_blobs_are_read_for_exactly_the_paths_asked(tmp_path) -> None: + """`blobs_at` is one `cat-file --batch-check` over the paths the manifest named: the + same objects `git rev-parse :` names, no path it was not asked about, a path + the rev does not hold absent, and a name with a newline in it still one record.""" + import asyncio + import subprocess + + from server.code.app.index import gitrepo + + work = tmp_path / "r" + work.mkdir() + + def git(*args: str) -> str: + return subprocess.run( + ["git", *gitrepo.UNQUOTED_PATHS, "-C", str(work), *args], + check=True, + capture_output=True, + ).stdout.decode() + + git("init", "-q") + git("config", "user.email", "t@example.com") + git("config", "user.name", "t") + (work / "a.py").write_text("a\n") + (work / "d").mkdir() + (work / "d" / "b.py").write_text("b\n") + (work / "d" / "odd\nname.py").write_text("c\n") + git("add", "-A") + git("commit", "-qm", "one") + head = git("rev-parse", "HEAD").strip() + asked = ["a.py", "d/b.py", "d/odd\nname.py", "gone.py"] + blobs = asyncio.run(gitrepo.tree_blobs_at(str(work / ".git"), head, asked)) + assert set(blobs) == {"a.py", "d/b.py", "d/odd\nname.py"} + for path, blob in blobs.items(): + assert git("rev-parse", f"{head}:{path}").strip() == blob + # a path not asked for is not read, whatever the tree holds + assert "d" not in blobs and "d/" not in blobs + assert asyncio.run(gitrepo.tree_blobs_at(str(work / ".git"), head, [])) == {} + with pytest.raises(gitrepo.GitError): + asyncio.run(gitrepo.tree_blobs_at(str(work / ".git"), "e" * 40, asked)) + + +def test_a_listing_is_scoped_to_the_directory_the_paths_share() -> None: + """`_scope_dir` narrows to the narrowest directory holding every path asked about, cut + back to a whole name so a partial one never excludes a path, and the root when nothing + is shared.""" + from server.code.app.index.gitrepo import _scope_dir + + assert _scope_dir({"a/b/c.py"}) == "a/b" + assert _scope_dir({"a/b/c.py", "a/b/d.py"}) == "a/b" + assert _scope_dir({"a/b/c.py", "a/c/d.py"}) == "a" + assert _scope_dir({"a/b/c.py", "a/b/d/e.py"}) == "a/b" + assert _scope_dir({"a/c.py", "a/b/d.py"}) == "a" + assert _scope_dir({"a1/x.py", "a10/y.py"}) == "" + assert _scope_dir({"top.py"}) == "" + assert _scope_dir({"a/b/c.py", "top.py"}) == "" + + +def test_the_commits_a_read_named_are_asked_of_the_head(tmp_path) -> None: + """`commits_outside` is the fence's other half: the commits a row names that the head + does not contain are another commit's rows, an ancestor is the head's own history, a + commit the mirror does not hold is no evidence either way, and '' names nothing.""" + import asyncio + import subprocess + + from server.code.app.index import gitrepo + + work = tmp_path / "r" + work.mkdir() + + def git(*args: str) -> str: + return subprocess.run( + ["git", *gitrepo.UNQUOTED_PATHS, "-C", str(work), *args], + check=True, + capture_output=True, + text=True, + ).stdout + + git("init", "-q", "-b", "main") + git("config", "user.email", "t@example.com") + git("config", "user.name", "t") + (work / "a.py").write_text("a\n") + git("add", "-A") + git("commit", "-qm", "one") + first = git("rev-parse", "HEAD").strip() + (work / "a.py").write_text("b\n") + git("commit", "-qam", "two") + head = git("rev-parse", "HEAD").strip() + git("checkout", "-q", "-b", "side", first) + (work / "b.py").write_text("c\n") + git("add", "-A") + git("commit", "-qm", "side") + side = git("rev-parse", "HEAD").strip() + git("checkout", "-q", "main") + + run = lambda cs: asyncio.run( # noqa: E731 + gitrepo.commits_outside(str(work / ".git"), head, cs) + ) + assert run([head]) == set() + assert run([first, head]) == set() + assert run([side]) == {side} + assert run([first, side, head]) == {side} + assert run([]) == set() + assert run(["", "nope"]) == set() + # a commit the mirror does not hold is unverifiable, not evidence + assert run(["f" * 40]) == set() + + +def test_ancestry_git_cannot_read_is_unknown_and_one_call_decides_the_rest( + tmp_path, monkeypatch +) -> None: + """A head the mirror lacks is not proof that the commits a row names are outside it: + `commits_outside` raises, and the fence keeps the evidence it has. With a readable head + one `rev-list` answers however many commits are asked about, so a commit outside does + not turn into a git call per candidate.""" + import asyncio + import subprocess + + from server.code.app.index import gitrepo + + work = tmp_path / "r" + work.mkdir() + + def git(*args: str) -> str: + return subprocess.run( + ["git", *gitrepo.UNQUOTED_PATHS, "-C", str(work), *args], + check=True, + capture_output=True, + text=True, + ).stdout + + git("init", "-q", "-b", "main") + git("config", "user.email", "t@example.com") + git("config", "user.name", "t") + commits = [] + for i in range(6): + (work / "a.py").write_text(f"{i}\n") + git("add", "-A") + git("commit", "-qm", str(i)) + commits.append(git("rev-parse", "HEAD").strip()) + git("checkout", "-q", "-b", "side", commits[2]) + (work / "b.py").write_text("c\n") + git("add", "-A") + git("commit", "-qm", "side") + side = git("rev-parse", "HEAD").strip() + git_dir = str(work / ".git") + + with pytest.raises(gitrepo.GitError): + asyncio.run(gitrepo.commits_outside(git_dir, "f" * 40, commits[:3])) + + calls: list[tuple[str, ...]] = [] + real = gitrepo._git + + async def counting(directory: str, *args: str, **kw): + calls.append(args) + return await real(directory, *args, **kw) + + monkeypatch.setattr(gitrepo, "_git", counting) + outside = asyncio.run(gitrepo.commits_outside(git_dir, commits[-1], [*commits, side])) + assert outside == {side} + assert [c[0] for c in calls].count("rev-list") == 1 + assert not any(c[0] == "merge-base" for c in calls) + + +def test_the_index_must_hold_the_head_tree() -> None: + """Every live row in scope must be a file of the head's tree: its blob is the blob + there, and its path is in the tree at all. One direction only — a tree path with no + live row is one the index declines to hold, so a manifest that sits under the tree is + settled; a row above it is another commit's file. A row older than `blob_sha` is + undecidable at a path the tree holds, and a row at a path it does not hold is not.""" + tree = {"a.py": "b" * 40, "d/b.py": "c" * 40} + assert branch_diff._holds_tree({"a.py": ("b" * 40, "x"), "d/b.py": ("c" * 40, "y")}, tree, None) + # a row of an older commit whose file is unchanged at the head is that head's file + assert branch_diff._holds_tree({"a.py": ("b" * 40, "x")}, tree, None) + # a blob that is not the head's is another commit's file + assert not branch_diff._holds_tree( + {"a.py": ("e" * 40, "x"), "d/b.py": ("c" * 40, "y")}, tree, None + ) + # a row for a path the head's tree does not hold is another commit's file + assert not branch_diff._holds_tree( + {"a.py": ("b" * 40, "x"), "z.py": ("f" * 40, "z")}, tree, None + ) + # a row older than its blob column cannot be told from a tree id: left to the capture + assert branch_diff._holds_tree({"a.py": ("", ""), "d/b.py": ("c" * 40, "y")}, tree, None) + assert not branch_diff._holds_tree({"z.py": ("", "")}, tree, None) + # `paths` limits the comparison to an overlap's wanted set + assert branch_diff._holds_tree({"z.py": ("f" * 40, "z")}, tree, {"a.py"}) diff --git a/tests/unit/test_code_ingest_large_commit_slices.py b/tests/unit/test_code_ingest_large_commit_slices.py index 91b9884f39..97f55e40f4 100644 --- a/tests/unit/test_code_ingest_large_commit_slices.py +++ b/tests/unit/test_code_ingest_large_commit_slices.py @@ -203,3 +203,130 @@ def test_the_entry_a_sliced_round_did_not_reach_is_served_first_next_pass(monkey asyncio.run(ingest_stream.ingest_round_robin(plans, result, budget)) assert not any(sha == "sd" for sha, _ in done), "the budget ended before the small entry" assert ingest_budget.cut_points(result.resume)["commits"] == "o/code-d", result.resume + + +def _fenced(state: dict[str, str]) -> bool: + """Whether `code.branch_diff`'s fence reads a side with these state rows as partway + through publishing a commit.""" + from server.code.app.branch_diff import _published_heads + + class _Both: + async def all_state_many(self, keys: list[tuple[str, str]]) -> dict[Any, Any]: + rows = {"code-feat": state, "code-trunk": {"git_head": "t0"}} + return {(o, ns): {k: {"value": v} for k, v in rows[ns].items()} for o, ns in keys} + + both: Any = _Both() + _, publishing = asyncio.run(_published_heads(both, "o", ["code-feat", "code-trunk"])) + return publishing + + +def test_a_one_round_commit_is_fenced_from_its_first_write_until_git_head_moves( + monkeypatch, +) -> None: + """A commit that fits in one round never saves a round cursor, yet its rows land + before the dependents, the pack and the brief run and before `git_head` moves. + Readers must see it in progress through all of that, and settled once it lands.""" + clock, done = _Clock(), [] + _wire(monkeypatch, clock, {"s": 3}, done) + repo = _StateRepo() + repo.state["git_head"] = "w0" + seen: list[dict[str, str]] = [] + files = ingest_commit._ingest_round_files + + async def first_write(*a: Any, **k: Any) -> None: + seen.append(dict(repo.state)) + await files(*a, **k) + + async def dependents(*a: Any, **k: Any) -> None: + seen.append(dict(repo.state)) + + monkeypatch.setattr(ingest_commit, "_ingest_round_files", first_write) + monkeypatch.setattr(ingest_commit, "resolve_dependents", dependents) + _pass(clock, [_plan("code-feat", repo, ["s"])]) + assert len(seen) == 2 and all(s["git_head"] == "w0" for s in seen) + assert all(_fenced(s) for s in seen), "the commit's rows sit under the old head" + assert repo.state["git_head"] == "s" and not _fenced(repo.state) + + +def test_a_pass_killed_inside_a_one_round_commit_stays_fenced_and_resumes_from_zero( + monkeypatch, +) -> None: + clock, done = _Clock(), [] + _wire(monkeypatch, clock, {"s": 3}, done, kill_at=clock.now + PER_FILE_S * 1.5) + repo = _StateRepo() + repo.state["git_head"] = "w0" + with pytest.raises(asyncio.CancelledError): + _pass(clock, [_plan("code-feat", repo, ["s"])]) + assert repo.state["commit_slice"] == "w0..s:0" and repo.state["git_head"] == "w0" + assert _fenced(repo.state), "one file of the commit is written, git_head names the old one" + _wire(monkeypatch, clock, {"s": 3}, done) + _pass(clock, [_plan("code-feat", repo, ["s"])]) + assert [p for _, p in done[1:]] == [f"src/s/f{i:03d}.py" for i in range(3)], ( + "the next pass rewrites the commit from its first file" + ) + assert repo.state["git_head"] == "s" and repo.state["commit_slice"] == "" + + +def test_git_head_moves_before_the_cursor_clears_and_a_cursor_left_behind_is_settled( + monkeypatch, +) -> None: + clock, done = _Clock(), [] + _wire(monkeypatch, clock, {"s": 3}, done) + repo = _StateRepo() + repo.state["git_head"] = "w0" + _pass(clock, [_plan("code-feat", repo, ["s"])]) + keys = [k for k, _ in repo.writes] + assert keys[-2:] == ["git_head", "commit_slice"], "a reader always sees one of the two" + # a pass that died between the two writes: the cursor names the commit git_head names + left = {"git_head": "s", "commit_slice": "w0..s:3"} + assert not _fenced(left) + repo.state = dict(left) + assert asyncio.run(ingest_stream._slice_done(repo, "o", "n", "s..t")) == 0 + + +def test_a_failed_cursor_read_leaves_the_stored_cursor_alone(monkeypatch) -> None: + """A transient `get_state` failure is not "no cursor": the step does not start the + commit, so the durable `:N` a killed pass left stays the only marker (and is not + overwritten), and no row is written under a head that does not name it. The next + pass, where the read succeeds, resumes the commit at N.""" + clock, done = _Clock(), [] + _wire(monkeypatch, clock, {"s": 3}, done) + repo = _StateRepo() + repo.state.update({"git_head": "w0", "commit_slice": "w0..s:2"}) + reads = repo.get_state + failed: list[str] = [] + + async def flaky(org: str, ns: str, key: str) -> str: + if key == "commit_slice" and not failed: + failed.append(key) + raise ConnectionError("transient") + return await reads(org, ns, key) + + monkeypatch.setattr(repo, "get_state", flaky) + _pass(clock, [_plan("code-feat", repo, ["s"])]) + assert failed and done == [], "no row is written while the cursor cannot be read" + assert repo.state == {"git_head": "w0", "commit_slice": "w0..s:2"} + _pass(clock, [_plan("code-feat", repo, ["s"])]) + assert [p for _, p in done] == ["src/s/f002.py"], "the next pass resumes at the durable cursor" + assert repo.state["git_head"] == "s" and repo.state["commit_slice"] == "" + + +def test_an_unreadable_cursor_does_not_let_the_commit_land_unmarked(monkeypatch) -> None: + """The hole: with no stored cursor the read's failure let the step write the + commit's rows with no publication marker at all, so a reader saw a `git_head` that + does not name the commit with its rows already visible and read the pair as stable. + An unreadable cursor now starts nothing: no row, no marker, the head where it was.""" + clock, done = _Clock(), [] + _wire(monkeypatch, clock, {"s": 3}, done) + repo = _StateRepo() + repo.state["git_head"] = "w0" + + async def unreadable(org: str, ns: str, key: str) -> str: + raise ConnectionError("transient") + + monkeypatch.setattr(repo, "get_state", unreadable) + _, result = _pass(clock, [_plan("code-feat", repo, ["s"])]) + assert done == [], "no row lands without a marker" + assert "commit_slice" not in repo.state, "no marker was written either" + assert repo.state["git_head"] == "w0" + assert result.errors, "the pass says why the commit did not start" diff --git a/tests/unit/test_code_tombstone_file.py b/tests/unit/test_code_tombstone_file.py index be8efd3308..f829a4547f 100644 --- a/tests/unit/test_code_tombstone_file.py +++ b/tests/unit/test_code_tombstone_file.py @@ -109,3 +109,23 @@ def test_the_cached_header_text_of_a_deleted_file_is_forgotten( monkeypatch.setattr(ingest_headers, "_header_cache", {("o", "n", PATH): "struct Gone {};"}) _tombstone(_Repo()) assert ("o", "n", PATH) not in ingest_headers._header_cache + + +def test_a_tombstone_names_the_commit_of_the_row_it_retires() -> None: + """code.branch.diff counts tombstones after `git_head` whatever commit they name: a + deletion's rows say where the file was last written, not the commit being ingested.""" + + class Repo(_Repo): + async def live_files_for_path(self, org: str, ns: str, path: str) -> list[dict[str, Any]]: + return [_live(lang="py", indexed_commit="h" * 40)] + + async def live_symbols_for_path( + self, org: str, ns: str, path: str, tier: str + ) -> list[dict[str, Any]]: + return [_live(symbol_id="s1", name="f", indexed_commit="h" * 40)] + + repo = Repo() + _tombstone(repo) + for table in ("code_files", "code_symbols"): + (row,) = repo.inserted[table] + assert row["tombstoned_at"] is not None and row["indexed_commit"] == "h" * 40 diff --git a/tests/unit/test_model_calls_held_mid_pass.py b/tests/unit/test_model_calls_held_mid_pass.py index 9aa6f6bcc1..fec8d5eba0 100644 --- a/tests/unit/test_model_calls_held_mid_pass.py +++ b/tests/unit/test_model_calls_held_mid_pass.py @@ -390,10 +390,17 @@ async def zero(*a: Any) -> int: monkeypatch.setattr("server.workers.cost_event.emit_worker_cost_event_for", lambda **k: None) result = ps.CodeIngestResult() cfg = SimpleNamespace(org="acme", namespace="code-a", git_dir="/x", label="a") - stream = ps.CommitStream(cfg, object(), "h", "w", ["c1", "c2"], result) + state: dict[str, str] = {} + + class _Repo: + async def set_state(self, org: str, ns: str, key: str, value: str, **k: Any) -> None: + state[key] = value + + stream = ps.CommitStream(cfg, _Repo(), "h", "w", ["c1", "c2"], result) stream._ctx = {} assert asyncio.run(stream.step(clock=None)) is False - assert not result.errors and stream.remaining == 0 # the watermark stays at "w" + assert not result.errors and stream.remaining == 0 + assert state == {ps.SLICE_KEY: "w..c1:0"} # the watermark stays at "w" @held