@otto-code/protocol 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/messages.d.ts
CHANGED
|
@@ -5555,12 +5555,18 @@ export declare const CodeRenameUndoRequestSchema: z.ZodObject<{
|
|
|
5555
5555
|
* config RPCs because none of it is configuration: which servers this machine can
|
|
5556
5556
|
* actually supply, and which are running right now.
|
|
5557
5557
|
*
|
|
5558
|
-
* `cwd`
|
|
5559
|
-
*
|
|
5558
|
+
* Omit `cwd` for the host-wide answer, which is what the settings screen asks for: every
|
|
5559
|
+
* row this daemon knows, resolved against the rungs a host has (bundled, PATH). Passing a
|
|
5560
|
+
* `cwd` additionally probes that workspace's `node_modules/.bin`, since a server can be
|
|
5561
|
+
* present in one project and absent from another. Optional rather than removed because
|
|
5562
|
+
* older clients still send it.
|
|
5563
|
+
*
|
|
5564
|
+
* COMPAT(lspHostServers): `cwd` became optional in v0.7.3; gate lives in
|
|
5565
|
+
* features.lspHostServers.
|
|
5560
5566
|
*/
|
|
5561
5567
|
export declare const LspServersListRequestSchema: z.ZodObject<{
|
|
5562
5568
|
type: z.ZodLiteral<"lsp.servers.list.request">;
|
|
5563
|
-
cwd: z.ZodString
|
|
5569
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
5564
5570
|
requestId: z.ZodString;
|
|
5565
5571
|
}, z.core.$strip>;
|
|
5566
5572
|
/** Stop one running server, so a user who suspects it of hogging memory can kill it. */
|
|
@@ -8050,7 +8056,7 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
8050
8056
|
requestId: z.ZodString;
|
|
8051
8057
|
}, z.core.$strip>, z.ZodObject<{
|
|
8052
8058
|
type: z.ZodLiteral<"lsp.servers.list.request">;
|
|
8053
|
-
cwd: z.ZodString
|
|
8059
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
8054
8060
|
requestId: z.ZodString;
|
|
8055
8061
|
}, z.core.$strip>, z.ZodObject<{
|
|
8056
8062
|
type: z.ZodLiteral<"lsp.server.stop.request">;
|
|
@@ -8608,6 +8614,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
8608
8614
|
projectSearch: z.ZodOptional<z.ZodBoolean>;
|
|
8609
8615
|
codeIndex: z.ZodOptional<z.ZodBoolean>;
|
|
8610
8616
|
lsp: z.ZodOptional<z.ZodBoolean>;
|
|
8617
|
+
lspHostServers: z.ZodOptional<z.ZodBoolean>;
|
|
8611
8618
|
solutionView: z.ZodOptional<z.ZodBoolean>;
|
|
8612
8619
|
artifactsToolGroup: z.ZodOptional<z.ZodBoolean>;
|
|
8613
8620
|
speechSettings: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8703,6 +8710,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
8703
8710
|
projectSearch?: boolean | undefined;
|
|
8704
8711
|
codeIndex?: boolean | undefined;
|
|
8705
8712
|
lsp?: boolean | undefined;
|
|
8713
|
+
lspHostServers?: boolean | undefined;
|
|
8706
8714
|
solutionView?: boolean | undefined;
|
|
8707
8715
|
artifactsToolGroup?: boolean | undefined;
|
|
8708
8716
|
speechSettings?: boolean | undefined;
|
|
@@ -8799,6 +8807,7 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
8799
8807
|
projectSearch?: boolean | undefined;
|
|
8800
8808
|
codeIndex?: boolean | undefined;
|
|
8801
8809
|
lsp?: boolean | undefined;
|
|
8810
|
+
lspHostServers?: boolean | undefined;
|
|
8802
8811
|
solutionView?: boolean | undefined;
|
|
8803
8812
|
artifactsToolGroup?: boolean | undefined;
|
|
8804
8813
|
speechSettings?: boolean | undefined;
|
|
@@ -17698,6 +17707,8 @@ export declare const LspLanguageStateSchema: z.ZodObject<{
|
|
|
17698
17707
|
running: z.ZodBoolean;
|
|
17699
17708
|
rung: z.ZodNullable<z.ZodString>;
|
|
17700
17709
|
bin: z.ZodString;
|
|
17710
|
+
discovery: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17711
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17701
17712
|
extensions: z.ZodArray<z.ZodString>;
|
|
17702
17713
|
indexCost: z.ZodString;
|
|
17703
17714
|
}, z.core.$strip>;
|
|
@@ -17718,6 +17729,8 @@ export declare const LspServersListResponseSchema: z.ZodObject<{
|
|
|
17718
17729
|
running: z.ZodBoolean;
|
|
17719
17730
|
rung: z.ZodNullable<z.ZodString>;
|
|
17720
17731
|
bin: z.ZodString;
|
|
17732
|
+
discovery: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17733
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17721
17734
|
extensions: z.ZodArray<z.ZodString>;
|
|
17722
17735
|
indexCost: z.ZodString;
|
|
17723
17736
|
}, z.core.$strip>>;
|
|
@@ -26451,6 +26464,8 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
26451
26464
|
running: z.ZodBoolean;
|
|
26452
26465
|
rung: z.ZodNullable<z.ZodString>;
|
|
26453
26466
|
bin: z.ZodString;
|
|
26467
|
+
discovery: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26468
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26454
26469
|
extensions: z.ZodArray<z.ZodString>;
|
|
26455
26470
|
indexCost: z.ZodString;
|
|
26456
26471
|
}, z.core.$strip>>;
|
|
@@ -31502,7 +31517,7 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
|
|
|
31502
31517
|
requestId: z.ZodString;
|
|
31503
31518
|
}, z.core.$strip>, z.ZodObject<{
|
|
31504
31519
|
type: z.ZodLiteral<"lsp.servers.list.request">;
|
|
31505
|
-
cwd: z.ZodString
|
|
31520
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
31506
31521
|
requestId: z.ZodString;
|
|
31507
31522
|
}, z.core.$strip>, z.ZodObject<{
|
|
31508
31523
|
type: z.ZodLiteral<"lsp.server.stop.request">;
|
|
@@ -39726,6 +39741,8 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
|
|
|
39726
39741
|
running: z.ZodBoolean;
|
|
39727
39742
|
rung: z.ZodNullable<z.ZodString>;
|
|
39728
39743
|
bin: z.ZodString;
|
|
39744
|
+
discovery: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39745
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39729
39746
|
extensions: z.ZodArray<z.ZodString>;
|
|
39730
39747
|
indexCost: z.ZodString;
|
|
39731
39748
|
}, z.core.$strip>>;
|
|
@@ -44261,7 +44278,7 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
44261
44278
|
requestId: z.ZodString;
|
|
44262
44279
|
}, z.core.$strip>, z.ZodObject<{
|
|
44263
44280
|
type: z.ZodLiteral<"lsp.servers.list.request">;
|
|
44264
|
-
cwd: z.ZodString
|
|
44281
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
44265
44282
|
requestId: z.ZodString;
|
|
44266
44283
|
}, z.core.$strip>, z.ZodObject<{
|
|
44267
44284
|
type: z.ZodLiteral<"lsp.server.stop.request">;
|
|
@@ -52487,6 +52504,8 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
52487
52504
|
running: z.ZodBoolean;
|
|
52488
52505
|
rung: z.ZodNullable<z.ZodString>;
|
|
52489
52506
|
bin: z.ZodString;
|
|
52507
|
+
discovery: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52508
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52490
52509
|
extensions: z.ZodArray<z.ZodString>;
|
|
52491
52510
|
indexCost: z.ZodString;
|
|
52492
52511
|
}, z.core.$strip>>;
|
package/dist/messages.js
CHANGED
|
@@ -3602,7 +3602,10 @@ export const WorkspaceCreateRequestSchema = z.object({
|
|
|
3602
3602
|
cwd: z.string().optional(),
|
|
3603
3603
|
projectId: z.string().optional(),
|
|
3604
3604
|
action: z.enum(["branch-off", "checkout"]).optional(),
|
|
3605
|
-
//
|
|
3605
|
+
// Branch to check out for "checkout". For "branch-off" this is the BASE to
|
|
3606
|
+
// cut from, not the branch being created -- the new branch name comes from
|
|
3607
|
+
// worktreeSlug (see resolveWorktreeCreationIntent). Omit it to branch off
|
|
3608
|
+
// the repository default.
|
|
3606
3609
|
refName: z.string().min(1).optional(),
|
|
3607
3610
|
baseBranch: z.string().optional(),
|
|
3608
3611
|
githubPrNumber: z.number().int().positive().optional(),
|
|
@@ -3979,12 +3982,18 @@ export const CodeRenameUndoRequestSchema = z.object({
|
|
|
3979
3982
|
* config RPCs because none of it is configuration: which servers this machine can
|
|
3980
3983
|
* actually supply, and which are running right now.
|
|
3981
3984
|
*
|
|
3982
|
-
* `cwd`
|
|
3983
|
-
*
|
|
3985
|
+
* Omit `cwd` for the host-wide answer, which is what the settings screen asks for: every
|
|
3986
|
+
* row this daemon knows, resolved against the rungs a host has (bundled, PATH). Passing a
|
|
3987
|
+
* `cwd` additionally probes that workspace's `node_modules/.bin`, since a server can be
|
|
3988
|
+
* present in one project and absent from another. Optional rather than removed because
|
|
3989
|
+
* older clients still send it.
|
|
3990
|
+
*
|
|
3991
|
+
* COMPAT(lspHostServers): `cwd` became optional in v0.7.3; gate lives in
|
|
3992
|
+
* features.lspHostServers.
|
|
3984
3993
|
*/
|
|
3985
3994
|
export const LspServersListRequestSchema = z.object({
|
|
3986
3995
|
type: z.literal("lsp.servers.list.request"),
|
|
3987
|
-
cwd: z.string(),
|
|
3996
|
+
cwd: z.string().optional(),
|
|
3988
3997
|
requestId: z.string(),
|
|
3989
3998
|
});
|
|
3990
3999
|
/** Stop one running server, so a user who suspects it of hogging memory can kill it. */
|
|
@@ -4692,6 +4701,13 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
4692
4701
|
// the outline/fuzzy-finder source and the no-server fallback.
|
|
4693
4702
|
// COMPAT(lsp): added in v0.6.8, drop the gate when daemon floor >= v0.6.8.
|
|
4694
4703
|
lsp: z.boolean().optional(),
|
|
4704
|
+
// The daemon answers `lsp.servers.list` host-wide, with no `cwd`. The settings
|
|
4705
|
+
// screen is a host screen: it lists every language server this machine knows how
|
|
4706
|
+
// to run and whether it can supply the binary, and it must not need a workspace
|
|
4707
|
+
// open to say so. An older daemon rejects a request with no `cwd`, so without the
|
|
4708
|
+
// flag the client says to update the host rather than showing an empty screen.
|
|
4709
|
+
// COMPAT(lspHostServers): added in v0.7.3, drop the gate when daemon floor >= v0.7.3.
|
|
4710
|
+
lspHostServers: z.boolean().optional(),
|
|
4695
4711
|
// The Solution view — the daemon can discover solutions and serve
|
|
4696
4712
|
// `code.solution.*`. Deliberately NOT implied by `lsp`: there is no
|
|
4697
4713
|
// project-structure request in LSP, so this subsystem is independent of
|
|
@@ -7316,6 +7332,14 @@ export const LspLanguageStateSchema = z.object({
|
|
|
7316
7332
|
/** Which discovery rung supplied it (`workspaceBin` / `bundled` / `path`), or null. */
|
|
7317
7333
|
rung: z.string().nullable(),
|
|
7318
7334
|
bin: z.string(),
|
|
7335
|
+
/**
|
|
7336
|
+
* Every rung this row can ever be supplied from, in resolution order. A row whose only
|
|
7337
|
+
* rung is `workspaceBin` is supplied by the project it runs in and by nothing else, so
|
|
7338
|
+
* `installed: false` from a host-wide check means "the project brings it", not "missing".
|
|
7339
|
+
*/
|
|
7340
|
+
discovery: z.array(z.string()).optional(),
|
|
7341
|
+
/** Absolute path to the resolved executable, so the toolchain behind a row is nameable. */
|
|
7342
|
+
path: z.string().nullable().optional(),
|
|
7319
7343
|
extensions: z.array(z.string()),
|
|
7320
7344
|
/** Plain-words index cost, so the toggle states its own price. */
|
|
7321
7345
|
indexCost: z.string(),
|
package/dist/model-tiers.js
CHANGED
|
@@ -24,17 +24,24 @@ export const KNOWN_MODEL_TIERS = {
|
|
|
24
24
|
// Opus variants are "deep", non-1M Opus and Sonnet are "standard", Haiku is
|
|
25
25
|
// "fast". Fable (1M, most powerful) is "deep".
|
|
26
26
|
"claude-fable-5": "deep",
|
|
27
|
+
// Opus 4.7/4.8/5 are natively 1M, so the plain ids are "deep" and the manifest
|
|
28
|
+
// ships no `[1m]` row for them. The decorated ids stay mapped here because the
|
|
29
|
+
// CLI still accepts them and a user's settings.json or an older agent record
|
|
30
|
+
// may carry one.
|
|
27
31
|
"claude-opus-5[1m]": "deep",
|
|
28
|
-
"claude-opus-5": "
|
|
32
|
+
"claude-opus-5": "deep",
|
|
29
33
|
"claude-opus-4-8[1m]": "deep",
|
|
30
|
-
"claude-opus-4-8": "
|
|
34
|
+
"claude-opus-4-8": "deep",
|
|
31
35
|
"claude-opus-4-7[1m]": "deep",
|
|
32
|
-
"claude-opus-4-7": "
|
|
36
|
+
"claude-opus-4-7": "deep",
|
|
33
37
|
"claude-opus-4-6[1m]": "deep",
|
|
34
38
|
"claude-opus-4-6": "standard",
|
|
39
|
+
"claude-opus-4-5": "standard",
|
|
35
40
|
"claude-sonnet-5": "standard",
|
|
36
41
|
"claude-sonnet-4-6[1m]": "standard",
|
|
37
42
|
"claude-sonnet-4-6": "standard",
|
|
43
|
+
"claude-sonnet-4-5[1m]": "standard",
|
|
44
|
+
"claude-sonnet-4-5": "standard",
|
|
38
45
|
"claude-haiku-4-5": "fast",
|
|
39
46
|
"claude-haiku-4-5-20251001": "fast",
|
|
40
47
|
// OpenAI (GPT / o-series)
|
|
@@ -7855,6 +7855,8 @@ export declare const WSOutboundMessageSchema: {
|
|
|
7855
7855
|
running: import("zod").ZodBoolean;
|
|
7856
7856
|
rung: import("zod").ZodNullable<import("zod").ZodString>;
|
|
7857
7857
|
bin: import("zod").ZodString;
|
|
7858
|
+
discovery: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7859
|
+
path: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
7858
7860
|
extensions: import("zod").ZodArray<import("zod").ZodString>;
|
|
7859
7861
|
indexCost: import("zod").ZodString;
|
|
7860
7862
|
}, import("zod/v4/core").$strip>>;
|