@otto-code/protocol 0.8.17 → 0.8.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,6 +94,13 @@ export interface AgentModelDefinition {
94
94
  * and the user hasn't tagged. Consumers fall back to their own inference.
95
95
  */
96
96
  tier?: ModelTier;
97
+ /**
98
+ * False when the host owner hid this model from model-picking surfaces.
99
+ * Absent means visible, including snapshots from older daemons. Visibility
100
+ * is presentation policy only: an existing profile or agent may continue to
101
+ * reference a hidden model by id.
102
+ */
103
+ isVisible?: boolean;
97
104
  /**
98
105
  * False when this model cannot run the provider's "auto" permission mode
99
106
  * (e.g. Claude's classifier-based Auto mode is unsupported on Haiku). Absent
@@ -399,6 +406,7 @@ export type AgentTimelineItem = {
399
406
  } | {
400
407
  type: "error";
401
408
  message: string;
409
+ details?: string[];
402
410
  } | CompactionTimelineItem;
403
411
  export type AgentStreamEvent = {
404
412
  type: "thread_started";
@@ -99,6 +99,18 @@ export declare const MutableKanbanConfigSchema: z.ZodObject<{
99
99
  }, z.core.$loose>>;
100
100
  }, z.core.$loose>;
101
101
  export type MutableKanbanConfig = z.infer<typeof MutableKanbanConfigSchema>;
102
+ export declare const ProjectKnowledgeStoreLocationSchema: z.ZodEnum<{
103
+ repository: "repository";
104
+ host: "host";
105
+ }>;
106
+ export declare const MutableProjectKnowledgeConfigSchema: z.ZodObject<{
107
+ defaultStoreLocation: z.ZodDefault<z.ZodEnum<{
108
+ repository: "repository";
109
+ host: "host";
110
+ }>>;
111
+ }, z.core.$loose>;
112
+ export type MutableProjectKnowledgeConfig = z.infer<typeof MutableProjectKnowledgeConfigSchema>;
113
+ export declare const DEFAULT_MUTABLE_PROJECT_KNOWLEDGE_CONFIG: MutableProjectKnowledgeConfig;
102
114
  export declare const MutableAgentPersonalitiesConfigSchema: z.ZodObject<{
103
115
  personalities: z.ZodDefault<z.ZodArray<z.ZodObject<{
104
116
  id: z.ZodString;
@@ -171,6 +171,20 @@ export const MutableKanbanConfigSchema = z
171
171
  .optional(),
172
172
  })
173
173
  .passthrough();
174
+ // Host-wide default for where a project's Knowledge store lives. Only a
175
+ // default: a project's own `knowledgeLocation`, and any repository store that
176
+ // already exists on disk, both outrank it. Changing this therefore never moves
177
+ // an existing store, it only decides where projects that have none start.
178
+ // Gated by server_info features.projectKnowledgeStoreLocation.
179
+ export const ProjectKnowledgeStoreLocationSchema = z.enum(["repository", "host"]);
180
+ export const MutableProjectKnowledgeConfigSchema = z
181
+ .object({
182
+ defaultStoreLocation: ProjectKnowledgeStoreLocationSchema.default("repository"),
183
+ })
184
+ .passthrough();
185
+ export const DEFAULT_MUTABLE_PROJECT_KNOWLEDGE_CONFIG = {
186
+ defaultStoreLocation: "repository",
187
+ };
174
188
  export const MutableAgentPersonalitiesConfigSchema = z
175
189
  .object({
176
190
  personalities: z.array(AgentPersonalitySchema).default([]),