@codeworksh/harness 0.0.1-dev.20260922184400 → 0.0.1-dev.20260923102526

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/effect.d.mts CHANGED
@@ -498,7 +498,7 @@ declare const SessionEntryPartRow_base: import("effect/unstable/schema/VariantSc
498
498
  declare class SessionEntryPartRow extends SessionEntryPartRow_base {}
499
499
  import * as import__codeworksh_plugin_event from "@codeworksh/plugin/event";
500
500
  declare namespace event_d_exports {
501
- export { event_d_exports as Event, Interface$17 as Interface, InvalidDurableEventError, LogInput, LogItem, Manifest, PublishOptions, ReadAggregateInput, ReadAggregateResult, SerializedEvent, Service$17 as Service, Subscribe, SubscribeOptions, Subscriber, SubscriptionOverflowError, Synced, Unsubscribe, isSynced, layer$18 as layer };
501
+ export { event_d_exports as Event, Interface$17 as Interface, InvalidDurableEventError, LogInput, LogItem, Manifest, PublishOptions, ReadAggregateInput, ReadAggregateResult, SerializedEvent, Service$17 as Service, Subscribe, SubscribeOptions, Subscriber, SubscriptionOverflowError, Synced, Unsubscribe, isSynced, layer$19 as layer };
502
502
  }
503
503
  type SerializedEvent = {
504
504
  readonly id: schema_d_exports$10.ID;
@@ -654,7 +654,7 @@ interface Interface$17 {
654
654
  }
655
655
  declare const Service_base$15: Context.ServiceClass<Service$17, "@codeworksh/harness/event/event/Service", Interface$17>;
656
656
  declare class Service$17 extends Service_base$15 {}
657
- declare const layer$18: Layer.Layer<Service$17, never, SqlClient.SqlClient>;
657
+ declare const layer$19: Layer.Layer<Service$17, never, SqlClient.SqlClient>;
658
658
  import * as import__codeworksh_plugin_project from "@codeworksh/plugin/project";
659
659
  import * as import__codeworksh_plugin_schema from "@codeworksh/plugin/schema";
660
660
  import * as import__codeworksh_plugin_space from "@codeworksh/plugin/space";
@@ -711,7 +711,7 @@ declare const AssistantEnvelopeUsage: Schema.fromJsonString<Schema.Struct<{
711
711
  }>;
712
712
  }>>;
713
713
  declare namespace session_d_exports$1 {
714
- export { AbortAssistant, AppendEntry, AppendPart, CreateSession, EntryNotFoundError, EntryState, EntryType, ForkInput, HydratedEntry, Interface$16 as Interface, InvalidEntryDataError, ListInput$1 as ListInput, MessageEntryType, PartType, RelinkError, RelinkInput$1 as RelinkInput, RelinkReason, ReplaceAssistant, Service$16 as Service, session_d_exports$1 as Session, SessionEntryPartRow, SessionEntryRow, SessionLinkedSpaceNotFoundError, SessionNotFoundError, SessionNotLinkedError, SessionRow, SetEntryState, SettleToolCall, ToolCallNotFoundError, ToolStatus, defaultLayer$7 as defaultLayer, entryStates, entryTypes, layer$17 as layer, messageEntryTypes, partTypes, rebaseDirectory, toolStatuses };
714
+ export { AbortAssistant, AppendEntry, AppendPart, CreateSession, EntryNotFoundError, EntryState, EntryType, ForkInput, HydratedEntry, Interface$16 as Interface, InvalidEntryDataError, ListInput$1 as ListInput, MessageEntryType, PartType, RelinkError, RelinkInput$1 as RelinkInput, RelinkReason, ReplaceAssistant, Service$16 as Service, session_d_exports$1 as Session, SessionEntryPartRow, SessionEntryRow, SessionLinkedSpaceNotFoundError, SessionNotFoundError, SessionNotLinkedError, SessionRow, SetEntryState, SettleToolCall, ToolCallNotFoundError, ToolStatus, defaultLayer$7 as defaultLayer, entryStates, entryTypes, layer$18 as layer, messageEntryTypes, partTypes, rebaseDirectory, toolStatuses };
715
715
  }
716
716
  declare const SessionNotFoundError_base: Schema.Class<SessionNotFoundError, Schema.TaggedStruct<"SessionNotFoundError", {
717
717
  readonly sessionId: Schema.String;
@@ -926,7 +926,7 @@ interface Interface$16 {
926
926
  }
927
927
  declare const Service_base$14: Context.ServiceClass<Service$16, "@codeworksh/harness/session/session/Service", Interface$16>;
928
928
  declare class Service$16 extends Service_base$14 {}
929
- declare const layer$17: Layer.Layer<Service$16, never, Service$17 | SqlClient.SqlClient>;
929
+ declare const layer$18: Layer.Layer<Service$16, never, Service$17 | SqlClient.SqlClient>;
930
930
  declare const defaultLayer$7: Layer.Layer<Service$16, import("effect/Config").ConfigError, Service$17>;
931
931
  //#endregion
932
932
  //#region src/context/errors.d.ts
@@ -947,9 +947,9 @@ declare const ContextInvariantError_base: Schema.Class<ContextInvariantError, Sc
947
947
  }>, import("effect/Cause").YieldableError>;
948
948
  declare class ContextInvariantError extends ContextInvariantError_base {}
949
949
  declare namespace db_d_exports {
950
- export { db_d_exports as Database, SqlClient$1 as SqlClient, SqlSchema$1 as SqlSchema, defaultLayer$6 as defaultLayer, layer$16 as layer, locationConfig, path, resolveDatabaseLocation };
950
+ export { db_d_exports as Database, SqlClient$1 as SqlClient, SqlSchema$1 as SqlSchema, defaultLayer$6 as defaultLayer, layer$17 as layer, locationConfig, path, resolveDatabaseLocation };
951
951
  }
952
- declare function layer$16(location: string): Layer.Layer<SqlClient.SqlClient | SqliteClient.SqliteClient, never, never>;
952
+ declare function layer$17(location: string): Layer.Layer<SqlClient.SqlClient | SqliteClient.SqliteClient, never, never>;
953
953
  declare const locationConfig: Config.Config<string>;
954
954
  declare function resolveDatabaseLocation(configured: string, data: string): string;
955
955
  declare const path: (data?: string | undefined) => Effect.Effect<string, Config.ConfigError, never>;
@@ -960,7 +960,7 @@ import * as import__codeworksh_plugin_sandbox_io from "@codeworksh/plugin/sandbo
960
960
  import * as import__codeworksh_plugin_sandbox_driver from "@codeworksh/plugin/sandbox/driver";
961
961
  import * as import__codeworksh_plugin_sandbox_errors from "@codeworksh/plugin/sandbox/errors";
962
962
  declare namespace registry_d_exports$1 {
963
- export { DriverInfo, Registry, RegistryService, registry_d_exports$1 as SandboxDriverRegistry, layer$15 as layer, make$5 as make };
963
+ export { DriverInfo, Registry, RegistryService, registry_d_exports$1 as SandboxDriverRegistry, layer$16 as layer, make$5 as make };
964
964
  }
965
965
  interface DriverInfo {
966
966
  readonly name: driver_d_exports.SandboxDriver.Name;
@@ -982,9 +982,9 @@ interface RegistryService {
982
982
  declare const Registry_base: Context.ServiceClass<Registry, "@codeworksh/harness/sandbox/registry", RegistryService>;
983
983
  declare class Registry extends Registry_base {}
984
984
  declare const make$5: (drivers: ReadonlyArray<driver_d_exports.SandboxDriver.Registration>) => Effect.Effect<RegistryService, errors_d_exports.SandboxDriverRegistrationError>;
985
- declare const layer$15: (...drivers: ReadonlyArray<driver_d_exports.SandboxDriver.Registration>) => Layer.Layer<Registry, errors_d_exports.SandboxDriverRegistrationError, never>;
985
+ declare const layer$16: (...drivers: ReadonlyArray<driver_d_exports.SandboxDriver.Registration>) => Layer.Layer<Registry, errors_d_exports.SandboxDriverRegistrationError, never>;
986
986
  declare namespace control_d_exports$1 {
987
- export { Controller, CreateInput$2 as CreateInput, DestroyOptions, Interface$15 as Interface, ListInput, MountOptions, Options$5 as Options, RegisterInput$1 as RegisterInput, control_d_exports$1 as SandboxController, layer$14 as layer, make$4 as make };
987
+ export { Controller, CreateInput$2 as CreateInput, DestroyOptions, Interface$15 as Interface, ListInput, MountOptions, Options$5 as Options, RegisterInput$1 as RegisterInput, control_d_exports$1 as SandboxController, layer$15 as layer, make$4 as make };
988
988
  }
989
989
  interface CreateInput$2<CreateConfig, RuntimeConfig extends driver_d_exports.SandboxDriver.RuntimeConfigBase> {
990
990
  readonly driver: driver_d_exports.SandboxDriver.Definition<CreateConfig, RuntimeConfig>;
@@ -1036,7 +1036,7 @@ interface Options$5 {
1036
1036
  readonly provisioningTimeoutMs?: number;
1037
1037
  }
1038
1038
  declare const make$4: (options: Options$5) => Effect.Effect<Interface$15, errors_d_exports.SandboxDriverRegistrationError, Registry | import("effect/Scope").Scope | SqlClient.SqlClient>;
1039
- declare const layer$14: (options: Options$5) => Layer.Layer<Controller, errors_d_exports.SandboxDriverRegistrationError, Registry | SqlClient.SqlClient>;
1039
+ declare const layer$15: (options: Options$5) => Layer.Layer<Controller, errors_d_exports.SandboxDriverRegistrationError, Registry | SqlClient.SqlClient>;
1040
1040
  //#endregion
1041
1041
  //#region src/sandbox/sandbox.d.ts
1042
1042
  /**
@@ -1053,7 +1053,7 @@ type Provides = io_d_exports.SandboxIO.Provides;
1053
1053
  /** A sandbox is any Layer providing the runtime services above. */
1054
1054
  type Sandbox<E = never, RIn = never> = Layer.Layer<Provides, E, RIn>;
1055
1055
  declare namespace git_d_exports {
1056
- export { AppProcessError, git_d_exports as Git, Interface$14 as Interface, Result$1 as Result, RevParse, Service$15 as Service, defaultLayer$5 as defaultLayer, layer$13 as layer, layerWith$6 as layerWith, resolvePath };
1056
+ export { AppProcessError, git_d_exports as Git, Interface$14 as Interface, Result$1 as Result, RevParse, Service$15 as Service, defaultLayer$5 as defaultLayer, layer$14 as layer, layerWith$6 as layerWith, resolvePath };
1057
1057
  }
1058
1058
  declare const AppProcessError_base: Schema.Class<AppProcessError, Schema.TaggedStruct<"AppProcessError", {
1059
1059
  readonly command: Schema.String;
@@ -1098,7 +1098,7 @@ interface Interface$14 {
1098
1098
  }
1099
1099
  declare const Service_base$13: Context.ServiceClass<Service$15, "@codeworksh/harness/git/git/Service", Interface$14>;
1100
1100
  declare class Service$15 extends Service_base$13 {}
1101
- declare const layer$13: Layer.Layer<Service$15, never, import("@codeworksh/plugin/sandbox/shell").Shell>;
1101
+ declare const layer$14: Layer.Layer<Service$15, never, import("@codeworksh/plugin/sandbox/shell").Shell>;
1102
1102
  /**
1103
1103
  * Run git inside the given sandbox — local, remote, or virtual. Every command
1104
1104
  * goes through the sandbox shell, so git never executes anywhere other than
@@ -1114,7 +1114,7 @@ declare const defaultLayer$5: (rootPath: string) => Layer.Layer<Service$15, neve
1114
1114
  declare function resolvePath(cwd: string, value: string): string;
1115
1115
  import * as import__codeworksh_plugin_repo from "@codeworksh/plugin/repo";
1116
1116
  declare namespace repo_d_exports {
1117
- export { Identity, Interface$13 as Interface, MARKER, repo_d_exports as Repo, Service$14 as Service, defaultLayer$4 as defaultLayer, layer$12 as layer, layerWith$5 as layerWith, normalize };
1117
+ export { Identity, Interface$13 as Interface, MARKER, repo_d_exports as Repo, Service$14 as Service, defaultLayer$4 as defaultLayer, layer$13 as layer, layerWith$5 as layerWith, normalize };
1118
1118
  }
1119
1119
  /** Per-clone file under the store that pins the project id (see PROJECT.md §1 "marker"). */
1120
1120
  declare const MARKER = "codework";
@@ -1139,11 +1139,11 @@ declare class Service$14 extends Service_base$12 {}
1139
1139
  * `file:` urls and empty input yield undefined.
1140
1140
  */
1141
1141
  declare function normalize(url: string): string | undefined;
1142
- declare const layer$12: Layer.Layer<Service$14, never, import("@codeworksh/plugin/sandbox/filesystem").Service | Service$15>;
1142
+ declare const layer$13: Layer.Layer<Service$14, never, import("@codeworksh/plugin/sandbox/filesystem").Service | Service$15>;
1143
1143
  declare const layerWith$5: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$14, E, RIn>;
1144
1144
  declare const defaultLayer$4: (rootPath: string) => Layer.Layer<Service$14, never, never>;
1145
1145
  declare namespace space_d_exports {
1146
- export { AbsorbInput, Interface$12 as Interface, RehomeInput, Service$13 as Service, space_d_exports as Space, archiveEnv, fromRow, id, layer$11 as layer, layerWith$4 as layerWith };
1146
+ export { AbsorbInput, Interface$12 as Interface, RehomeInput, Service$13 as Service, space_d_exports as Space, archiveEnv, fromRow, id, layer$12 as layer, layerWith$4 as layerWith };
1147
1147
  }
1148
1148
  /** `hash(env, location)` — no project component (D-SPACEID). */
1149
1149
  declare const id: (env: instance_d_exports.SandboxInstance.ID, location: string) => schema_d_exports$7.SpaceSchema.ID;
@@ -1182,10 +1182,10 @@ declare const fromRow: (row: SpaceRow) => schema_d_exports$7.SpaceSchema.Info;
1182
1182
  * Write-first so a DEFERRED transaction takes the write lock immediately.
1183
1183
  */
1184
1184
  declare const archiveEnv: (env: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<void, never, SqlClient.SqlClient>;
1185
- declare const layer$11: Layer.Layer<Service$13, never, io_d_exports.SandboxIO.Current | import("@codeworksh/plugin/sandbox/filesystem").Service | SqlClient.SqlClient>;
1185
+ declare const layer$12: Layer.Layer<Service$13, never, io_d_exports.SandboxIO.Current | import("@codeworksh/plugin/sandbox/filesystem").Service | SqlClient.SqlClient>;
1186
1186
  declare const layerWith$4: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$13, E, RIn | SqlClient.SqlClient>;
1187
1187
  declare namespace worktree_d_exports {
1188
- export { Entry$2 as Entry, Input$1 as Input, Interface$11 as Interface, Service$12 as Service, worktree_d_exports as Worktree, WorktreeError, defaultLayer$3 as defaultLayer, layer$10 as layer, layerWith$3 as layerWith };
1188
+ export { Entry$2 as Entry, Input$1 as Input, Interface$11 as Interface, Service$12 as Service, worktree_d_exports as Worktree, WorktreeError, defaultLayer$3 as defaultLayer, layer$11 as layer, layerWith$3 as layerWith };
1189
1189
  }
1190
1190
  declare const WorktreeError_base: Schema.Class<WorktreeError, Schema.TaggedStruct<"Worktree.WorktreeError", {
1191
1191
  readonly operation: Schema.Literals<readonly ["add", "remove", "list"]>;
@@ -1214,11 +1214,11 @@ interface Interface$11 {
1214
1214
  }
1215
1215
  declare const Service_base$10: Context.ServiceClass<Service$12, "@codeworksh/harness/worktree/worktree/Service", Interface$11>;
1216
1216
  declare class Service$12 extends Service_base$10 {}
1217
- declare const layer$10: Layer.Layer<Service$12, never, import("@codeworksh/plugin/sandbox/filesystem").Service | Service$15>;
1217
+ declare const layer$11: Layer.Layer<Service$12, never, import("@codeworksh/plugin/sandbox/filesystem").Service | Service$15>;
1218
1218
  declare const layerWith$3: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$12, E, RIn>;
1219
1219
  declare const defaultLayer$3: (rootPath: string) => Layer.Layer<Service$12, never, never>;
1220
1220
  declare namespace project_d_exports {
1221
- export { Interface$10 as Interface, project_d_exports as Project, Resolved$2 as Resolved, Service$11 as Service, defaultLayer$2 as defaultLayer, layer$9 as layer, layerWith$2 as layerWith, provisional };
1221
+ export { Interface$10 as Interface, project_d_exports as Project, Resolved$2 as Resolved, Service$11 as Service, defaultLayer$2 as defaultLayer, layer$10 as layer, layerWith$2 as layerWith, provisional };
1222
1222
  }
1223
1223
  /** Deterministic, env-local id for a directory without a portable identity. Never written to a marker. */
1224
1224
  declare const provisional: (env: instance_d_exports.SandboxInstance.ID, location: string) => schema_d_exports$9.ProjectSchema.ID;
@@ -1237,14 +1237,14 @@ interface Interface$10 {
1237
1237
  }
1238
1238
  declare const Service_base$9: Context.ServiceClass<Service$11, "@codeworksh/harness/project/project/Service", Interface$10>;
1239
1239
  declare class Service$11 extends Service_base$9 {}
1240
- declare const layer$9: Layer.Layer<Service$11, never, io_d_exports.SandboxIO.Current | import("@codeworksh/plugin/sandbox/filesystem").Service | Service$13 | Service$14 | Service$12 | SqlClient.SqlClient>;
1240
+ declare const layer$10: Layer.Layer<Service$11, never, io_d_exports.SandboxIO.Current | import("@codeworksh/plugin/sandbox/filesystem").Service | Service$13 | Service$14 | Service$12 | SqlClient.SqlClient>;
1241
1241
  /** Takes an assembled sandbox — local or remote — not a local backend. */
1242
1242
  declare const layerWith$2: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$11, E | import("effect/Config").ConfigError, Exclude<RIn, SqlClient.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient>>;
1243
1243
  declare const defaultLayer$2: (path: string) => Layer.Layer<Service$11, import("effect/Config").ConfigError, never>;
1244
1244
  declare namespace location_d_exports {
1245
- export { DirectoryNotFoundError, Error, Info$5 as Info, Interface$9 as Interface, location_d_exports as Location, NotDirectoryError, Ref$2 as Ref, Service$10 as Service, defaultLayer$1 as defaultLayer, layer$8 as layer, layerMounted, layerWith$1 as layerWith };
1245
+ export { DirectoryNotFoundError, Error, Info$5 as Info, Interface$9 as Interface, location_d_exports as Location, NotDirectoryError, Ref$2 as Ref, Service$10 as Service, defaultLayer$1 as defaultLayer, layer$9 as layer, layerMounted, layerWith$1 as layerWith };
1246
1246
  }
1247
- declare const layer$8: (ref?: Ref$1) => Layer.Layer<Service, import("@codeworksh/plugin/location").Error, io_d_exports.SandboxIO.Current | Service$11>;
1247
+ declare const layer$9: (ref?: Ref$1) => Layer.Layer<Service, import("@codeworksh/plugin/location").Error, io_d_exports.SandboxIO.Current | Service$11>;
1248
1248
  /**
1249
1249
  * `layer` with the whole resolution stack (Project, Space, Repo, Worktree, Git)
1250
1250
  * folded in. What remains is exactly the mount and the database — for callers
@@ -1254,7 +1254,7 @@ declare const layerMounted: (ref?: Ref$1) => Layer.Layer<Service, import("@codew
1254
1254
  declare const layerWith$1: <E, RIn>(ref: Ref$1, sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service, E | import("effect/Config").ConfigError | import("@codeworksh/plugin/location").Error, Exclude<RIn, SqlClient$1.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient>>;
1255
1255
  declare const defaultLayer$1: (ref: Ref$1, path: string) => Layer.Layer<Service, import("effect/Config").ConfigError | import("@codeworksh/plugin/location").Error, never>;
1256
1256
  declare namespace global_d_exports {
1257
- export { global_d_exports as Global, Interface$8 as Interface, Service$9 as Service, app, appConfigDir, authFile, defaultLayer, homeConfig, layer$7 as layer, layerWith, make$3 as make, resolve$3 as resolve };
1257
+ export { global_d_exports as Global, Interface$8 as Interface, Service$9 as Service, app, appConfigDir, authFile, defaultLayer, homeConfig, layer$8 as layer, layerWith, make$3 as make, resolve$3 as resolve };
1258
1258
  }
1259
1259
  declare const appConfigDir = ".codework";
1260
1260
  declare const app = "codework";
@@ -1279,12 +1279,12 @@ declare function make$3(input?: Partial<Interface$8>): Interface$8;
1279
1279
  */
1280
1280
  declare const authFile: (home: string | undefined) => string | undefined;
1281
1281
  declare const resolve$3: (input?: Partial<Interface$8> | undefined) => Effect.Effect<Interface$8, Config.ConfigError, never>;
1282
- declare const layer$7: Layer.Layer<Service$9, Config.ConfigError, never>;
1282
+ declare const layer$8: Layer.Layer<Service$9, Config.ConfigError, never>;
1283
1283
  declare const defaultLayer: Layer.Layer<Service$9, Config.ConfigError, never>;
1284
1284
  declare const layerWith: (input: Partial<Interface$8>) => Layer.Layer<Service$9, Config.ConfigError, never>;
1285
1285
  import * as import__codeworksh_plugin_settings from "@codeworksh/plugin/settings";
1286
1286
  declare namespace settings_d_exports {
1287
- export { Interface$7 as Interface, Options$4 as Options, Service$8 as Service, settings_d_exports as Settings, SettingsError, schema_d_exports$4.defaults as defaults, layer$6 as layer, load$1 as load, parse$1 as parse, paths, projectRoot };
1287
+ export { Interface$7 as Interface, Options$4 as Options, Service$8 as Service, settings_d_exports as Settings, SettingsError, schema_d_exports$4.defaults as defaults, layer$7 as layer, load$1 as load, parse$1 as parse, paths, projectRoot };
1288
1288
  }
1289
1289
  interface Options$4 {
1290
1290
  readonly userConfigDir?: string;
@@ -1565,10 +1565,10 @@ declare const load$1: (options: Options$4 & {
1565
1565
  })[];
1566
1566
  declared: readonly schema_d_exports$4.Declared[];
1567
1567
  }, SettingsError, never>;
1568
- declare const layer$6: (options?: Omit<Options$4, "hostDir">) => Layer.Layer<Service$8, never, Service$9>;
1568
+ declare const layer$7: (options?: Omit<Options$4, "hostDir">) => Layer.Layer<Service$8, never, Service$9>;
1569
1569
  import * as import__codeworksh_plugin_plugin from "@codeworksh/plugin/plugin";
1570
1570
  declare namespace registry_d_exports {
1571
- export { EventRegistrationError, registry_d_exports as EventRegistry, Interface$6 as Interface, Service$7 as Service, flatten, layer$5 as layer };
1571
+ export { EventRegistrationError, registry_d_exports as EventRegistry, Interface$6 as Interface, Service$7 as Service, flatten, layer$6 as layer };
1572
1572
  }
1573
1573
  /**
1574
1574
  * Every event definition this harness knows: the kernel's, plus whatever the
@@ -1598,7 +1598,7 @@ declare class EventRegistrationError extends EventRegistrationError_base {}
1598
1598
  * hide it behind plugin ordering.
1599
1599
  */
1600
1600
  declare const flatten: (plugins: readonly plugin_d_exports.Plugin[]) => Effect.Effect<readonly schema_d_exports$10.EventSchema.Definition<string, Schema.Codec<unknown, unknown, never, never>>[], EventRegistrationError, never>;
1601
- declare const layer$5: (definitions?: ReadonlyArray<schema_d_exports$10.EventSchema.Definition>) => Layer.Layer<Service$7, never, never>;
1601
+ declare const layer$6: (definitions?: ReadonlyArray<schema_d_exports$10.EventSchema.Definition>) => Layer.Layer<Service$7, never, never>;
1602
1602
  //#endregion
1603
1603
  //#region src/plugin/error.d.ts
1604
1604
  declare const SourceError_base: Schema.Class<SourceError, Schema.TaggedStruct<"PluginSourceError", {
@@ -1807,7 +1807,7 @@ interface Origin {
1807
1807
  readonly file?: string;
1808
1808
  }
1809
1809
  declare namespace runtime_d_exports {
1810
- export { Bindings, Interface$5 as Interface, Service$6 as Service, runtime_d_exports as SessionRuntime, layer$4 as layer };
1810
+ export { Bindings, Interface$5 as Interface, Service$6 as Service, runtime_d_exports as SessionRuntime, layer$5 as layer };
1811
1811
  }
1812
1812
  /**
1813
1813
  * Per-session configuration, held in process.
@@ -1824,7 +1824,7 @@ interface Interface$5 {
1824
1824
  }
1825
1825
  declare const Service_base$5: Context.ServiceClass<Service$6, "@codeworksh/harness/session/runtime/Service", Interface$5>;
1826
1826
  declare class Service$6 extends Service_base$5 {}
1827
- declare const layer$4: Layer.Layer<Service$6, never, never>;
1827
+ declare const layer$5: Layer.Layer<Service$6, never, never>;
1828
1828
  import * as import__codeworksh_plugin_plugin_tool from "@codeworksh/plugin/plugin/tool";
1829
1829
  import * as import__codeworksh_plugin_tool_progress from "@codeworksh/plugin/tool/progress";
1830
1830
  import * as import__codeworksh_plugin_tool from "@codeworksh/plugin/tool";
@@ -1926,7 +1926,7 @@ interface Resolved$1 {
1926
1926
  readonly handle: Executor["handle"];
1927
1927
  }
1928
1928
  declare namespace state_d_exports {
1929
- export { Interface$4 as Interface, Options$2 as Options, Reloaded, RequestOptions, Service$5 as Service, Snapshot$1 as Snapshot, SnapshotError, state_d_exports as State, ToolExecutionMode, layer$3 as layer };
1929
+ export { Interface$4 as Interface, Options$2 as Options, Reloaded, RequestOptions, Service$5 as Service, Snapshot$1 as Snapshot, SnapshotError, state_d_exports as State, ToolExecutionMode, layer$4 as layer };
1930
1930
  }
1931
1931
  /**
1932
1932
  * How a turn's tool calls are scheduled once the array has been re-read.
@@ -2061,7 +2061,7 @@ declare class Service$5 extends Service_base$4 {}
2061
2061
  * exchange read, so a caller that pinned an explicit list keeps it and everyone else follows the
2062
2062
  * files.
2063
2063
  */
2064
- declare const layer$3: (options: Options$2, pool: Ref.Ref<Pool>, references: (settings: schema_d_exports$4.Info) => ReadonlyArray<PluginRef>,
2064
+ declare const layer$4: (options: Options$2, pool: Ref.Ref<Pool>, references: (settings: schema_d_exports$4.Info) => ReadonlyArray<PluginRef>,
2065
2065
  /**
2066
2066
  * The exchange-boundary check: the new pool when the store has moved, nothing when it has not.
2067
2067
  * State does not know what a store is, so whoever built the pool answers this.
@@ -2306,6 +2306,21 @@ type AikitPart = Message.AssistantMessage["parts"][number] | Message.UserMessage
2306
2306
  declare const encodePart: (part: AikitPart) => Effect.Effect<AppendPart, ContextEncodeError, never>;
2307
2307
  declare const validateUserMessage: (value: unknown, entryId: string, type: string) => Effect.Effect<Message.UserMessage, ContextDecodeError>;
2308
2308
  declare const encodeMessage: (message: {
2309
+ messageId: string;
2310
+ role: "user";
2311
+ time: {
2312
+ created: number;
2313
+ };
2314
+ parts: ({
2315
+ type: "text";
2316
+ text: string;
2317
+ textSignature?: string;
2318
+ } | {
2319
+ type: "image";
2320
+ data: string;
2321
+ mimeType: string;
2322
+ })[];
2323
+ } | {
2309
2324
  role: "assistant";
2310
2325
  protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
2311
2326
  provider: {
@@ -2453,19 +2468,14 @@ declare const encodeMessage: (message: {
2453
2468
  type: "image";
2454
2469
  data: string;
2455
2470
  mimeType: string;
2456
- } | {
2457
- type: "thinking";
2458
- thinking: string;
2459
- thinkingSignature?: string;
2460
- redacted?: boolean;
2461
2471
  } | {
2462
2472
  addedToolNames?: string[];
2463
2473
  arguments: Record<string, any>;
2464
2474
  callID: string;
2465
2475
  name: string;
2466
2476
  namespace?: string;
2467
- partial?: {
2468
- content?: ({
2477
+ result: {
2478
+ content: ({
2469
2479
  type: "text";
2470
2480
  text: string;
2471
2481
  textSignature?: string;
@@ -2475,8 +2485,9 @@ declare const encodeMessage: (message: {
2475
2485
  mimeType: string;
2476
2486
  })[];
2477
2487
  details?: any;
2488
+ isError: false;
2478
2489
  };
2479
- status: "running";
2490
+ status: "completed";
2480
2491
  thoughtSignature?: string;
2481
2492
  time: {
2482
2493
  start: number;
@@ -2500,9 +2511,9 @@ declare const encodeMessage: (message: {
2500
2511
  mimeType: string;
2501
2512
  })[];
2502
2513
  details?: any;
2503
- isError: false;
2514
+ isError: true;
2504
2515
  };
2505
- status: "completed";
2516
+ status: "error";
2506
2517
  thoughtSignature?: string;
2507
2518
  time: {
2508
2519
  start: number;
@@ -2528,7 +2539,7 @@ declare const encodeMessage: (message: {
2528
2539
  details?: any;
2529
2540
  isError: true;
2530
2541
  };
2531
- status: "error";
2542
+ status: "skipped";
2532
2543
  thoughtSignature?: string;
2533
2544
  time: {
2534
2545
  start: number;
@@ -2554,21 +2565,26 @@ declare const encodeMessage: (message: {
2554
2565
  details?: any;
2555
2566
  isError: true;
2556
2567
  };
2557
- status: "skipped";
2568
+ status: "aborted";
2558
2569
  thoughtSignature?: string;
2559
2570
  time: {
2560
2571
  start: number;
2561
2572
  end: number;
2562
2573
  };
2563
2574
  type: "toolCall";
2575
+ } | {
2576
+ type: "thinking";
2577
+ thinking: string;
2578
+ thinkingSignature?: string;
2579
+ redacted?: boolean;
2564
2580
  } | {
2565
2581
  addedToolNames?: string[];
2566
2582
  arguments: Record<string, any>;
2567
2583
  callID: string;
2568
2584
  name: string;
2569
2585
  namespace?: string;
2570
- result: {
2571
- content: ({
2586
+ partial?: {
2587
+ content?: ({
2572
2588
  type: "text";
2573
2589
  text: string;
2574
2590
  textSignature?: string;
@@ -2578,9 +2594,8 @@ declare const encodeMessage: (message: {
2578
2594
  mimeType: string;
2579
2595
  })[];
2580
2596
  details?: any;
2581
- isError: true;
2582
2597
  };
2583
- status: "aborted";
2598
+ status: "running";
2584
2599
  thoughtSignature?: string;
2585
2600
  time: {
2586
2601
  start: number;
@@ -2605,7 +2620,8 @@ declare const encodeMessage: (message: {
2605
2620
  responseId?: string;
2606
2621
  responseModel?: string;
2607
2622
  messageId: string;
2608
- } | {
2623
+ }) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
2624
+ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2609
2625
  messageId: string;
2610
2626
  role: "user";
2611
2627
  time: {
@@ -2620,8 +2636,8 @@ declare const encodeMessage: (message: {
2620
2636
  data: string;
2621
2637
  mimeType: string;
2622
2638
  })[];
2623
- }) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
2624
- declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2639
+ }, ContextDecodeError, never>;
2640
+ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2625
2641
  messageId: string;
2626
2642
  role: "user";
2627
2643
  time: {
@@ -2636,8 +2652,7 @@ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect
2636
2652
  data: string;
2637
2653
  mimeType: string;
2638
2654
  })[];
2639
- }, ContextDecodeError, never>;
2640
- declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2655
+ } | {
2641
2656
  role: "assistant";
2642
2657
  protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
2643
2658
  provider: {
@@ -2785,19 +2800,14 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2785
2800
  type: "image";
2786
2801
  data: string;
2787
2802
  mimeType: string;
2788
- } | {
2789
- type: "thinking";
2790
- thinking: string;
2791
- thinkingSignature?: string;
2792
- redacted?: boolean;
2793
2803
  } | {
2794
2804
  addedToolNames?: string[];
2795
2805
  arguments: Record<string, any>;
2796
2806
  callID: string;
2797
2807
  name: string;
2798
2808
  namespace?: string;
2799
- partial?: {
2800
- content?: ({
2809
+ result: {
2810
+ content: ({
2801
2811
  type: "text";
2802
2812
  text: string;
2803
2813
  textSignature?: string;
@@ -2807,8 +2817,9 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2807
2817
  mimeType: string;
2808
2818
  })[];
2809
2819
  details?: any;
2820
+ isError: false;
2810
2821
  };
2811
- status: "running";
2822
+ status: "completed";
2812
2823
  thoughtSignature?: string;
2813
2824
  time: {
2814
2825
  start: number;
@@ -2832,9 +2843,9 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2832
2843
  mimeType: string;
2833
2844
  })[];
2834
2845
  details?: any;
2835
- isError: false;
2846
+ isError: true;
2836
2847
  };
2837
- status: "completed";
2848
+ status: "error";
2838
2849
  thoughtSignature?: string;
2839
2850
  time: {
2840
2851
  start: number;
@@ -2860,7 +2871,7 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2860
2871
  details?: any;
2861
2872
  isError: true;
2862
2873
  };
2863
- status: "error";
2874
+ status: "skipped";
2864
2875
  thoughtSignature?: string;
2865
2876
  time: {
2866
2877
  start: number;
@@ -2886,21 +2897,26 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2886
2897
  details?: any;
2887
2898
  isError: true;
2888
2899
  };
2889
- status: "skipped";
2900
+ status: "aborted";
2890
2901
  thoughtSignature?: string;
2891
2902
  time: {
2892
2903
  start: number;
2893
2904
  end: number;
2894
2905
  };
2895
2906
  type: "toolCall";
2907
+ } | {
2908
+ type: "thinking";
2909
+ thinking: string;
2910
+ thinkingSignature?: string;
2911
+ redacted?: boolean;
2896
2912
  } | {
2897
2913
  addedToolNames?: string[];
2898
2914
  arguments: Record<string, any>;
2899
2915
  callID: string;
2900
2916
  name: string;
2901
2917
  namespace?: string;
2902
- result: {
2903
- content: ({
2918
+ partial?: {
2919
+ content?: ({
2904
2920
  type: "text";
2905
2921
  text: string;
2906
2922
  textSignature?: string;
@@ -2910,9 +2926,8 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2910
2926
  mimeType: string;
2911
2927
  })[];
2912
2928
  details?: any;
2913
- isError: true;
2914
2929
  };
2915
- status: "aborted";
2930
+ status: "running";
2916
2931
  thoughtSignature?: string;
2917
2932
  time: {
2918
2933
  start: number;
@@ -2937,24 +2952,9 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2937
2952
  responseId?: string;
2938
2953
  responseModel?: string;
2939
2954
  messageId: string;
2940
- } | {
2941
- messageId: string;
2942
- role: "user";
2943
- time: {
2944
- created: number;
2945
- };
2946
- parts: ({
2947
- type: "text";
2948
- text: string;
2949
- textSignature?: string;
2950
- } | {
2951
- type: "image";
2952
- data: string;
2953
- mimeType: string;
2954
- })[];
2955
2955
  }, ContextDecodeError, never>;
2956
2956
  declare namespace context_d_exports {
2957
- export { context_d_exports as Context, assemble_d_exports as ContextAssembly, codec_d_exports as ContextCodec, ContextDecodeError, ContextEncodeError, ContextInvariantError, ContextReadError, EncodedMessage, Interface$1 as Interface, Service$2 as Service, Snapshot, assemblePath, decodeMessage, decodeSyntheticMessage, encodeMessage, encodePart, layer$2 as layer, validateUserMessage };
2957
+ export { context_d_exports as Context, assemble_d_exports as ContextAssembly, codec_d_exports as ContextCodec, ContextDecodeError, ContextEncodeError, ContextInvariantError, ContextReadError, EncodedMessage, Interface$1 as Interface, Service$2 as Service, Snapshot, assemblePath, decodeMessage, decodeSyntheticMessage, encodeMessage, encodePart, layer$3 as layer, validateUserMessage };
2958
2958
  }
2959
2959
  type ContextReadError = SessionNotFoundError | ContextDecodeError;
2960
2960
  interface Interface$1 {
@@ -2962,7 +2962,7 @@ interface Interface$1 {
2962
2962
  }
2963
2963
  declare const Service_base$1: Context.ServiceClass<Service$2, "@codeworksh/harness/context/context/Service", Interface$1>;
2964
2964
  declare class Service$2 extends Service_base$1 {}
2965
- declare const layer$2: Layer.Layer<Service$2, never, Service$16>;
2965
+ declare const layer$3: Layer.Layer<Service$2, never, Service$16>;
2966
2966
  //#endregion
2967
2967
  //#region src/session/input/schema.d.ts
2968
2968
  declare const Admitted: Schema.Struct<{
@@ -2994,7 +2994,7 @@ declare namespace schema_d_exports$2 {
2994
2994
  export { ID, schema_d_exports$2 as SessionMessageSchema };
2995
2995
  }
2996
2996
  declare namespace control_d_exports {
2997
- export { control_d_exports as Control, Interface, PromptConflictError, PromptInput$1 as PromptInput, Service$1 as Service, layer$1 as layer };
2997
+ export { control_d_exports as Control, Interface, PromptConflictError, PromptInput$1 as PromptInput, Service$1 as Service, layer$2 as layer };
2998
2998
  }
2999
2999
  declare const PromptConflictError_base: Schema.Class<PromptConflictError, Schema.TaggedStruct<"PromptConflictError", {
3000
3000
  readonly sessionId: Schema.String;
@@ -3046,7 +3046,7 @@ interface Interface {
3046
3046
  }
3047
3047
  declare const Service_base: Context.ServiceClass<Service$1, "@codeworksh/harness/control/Service", Interface>;
3048
3048
  declare class Service$1 extends Service_base {}
3049
- declare const layer$1: Layer.Layer<Service$1, never, Service$17 | Service$16 | Service$3 | import("effect/unstable/sql/SqlClient").SqlClient>;
3049
+ declare const layer$2: Layer.Layer<Service$1, never, Service$17 | Service$16 | Service$3 | import("effect/unstable/sql/SqlClient").SqlClient>;
3050
3050
  declare namespace event_d_exports$1 {
3051
3051
  export { event_d_exports$1 as LLMEventPublisher, Publisher, Terminal, make$1 as make };
3052
3052
  }
@@ -3171,7 +3171,7 @@ interface Options$1 {
3171
3171
  declare const load: (entry: Entry$1, options: Options$1) => Effect.Effect<driver_d_exports.SandboxDriver.Registration, errors_d_exports.SandboxDriverLoadError, never>;
3172
3172
  declare const loadAll: (entries: ReadonlyArray<Entry$1>, options: Options$1) => Effect.Effect<ReadonlyArray<driver_d_exports.SandboxDriver.Registration>, errors_d_exports.SandboxDriverLoadError>;
3173
3173
  declare namespace harness_d_exports {
3174
- export { harness_d_exports as Harness, Options, layer };
3174
+ export { harness_d_exports as Harness, Options, layer$1 as layer };
3175
3175
  }
3176
3176
  interface Options {
3177
3177
  /**
@@ -3193,10 +3193,15 @@ interface Options {
3193
3193
  readonly userConfigDir?: string;
3194
3194
  readonly sandboxes?: ReadonlyArray<Entry$1>;
3195
3195
  readonly llm?: Open;
3196
+ /**
3197
+ * Keep `<home>/models.gen.json` fresh for the life of the process, as a server does.
3198
+ * Otherwise it is checked once, at boot.
3199
+ */
3200
+ readonly watchModels?: boolean;
3196
3201
  }
3197
- declare const layer: (options?: Options) => Layer.Layer<Controller | Registry | Service$9 | Service$17 | Service$16 | Service$2 | Service$8 | Service$7 | Service$6 | Service$5 | Service$3 | Service$1 | SqlClient$1.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient, import("effect/Config").ConfigError | EventRegistrationError | InstallError | LoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverLoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverRegistrationError | SettingsError | SourceError | StoreError, never>;
3202
+ declare const layer$1: (options?: Options) => Layer.Layer<Controller | Registry | Service$9 | Service$17 | Service$16 | Service$2 | Service$8 | Service$7 | Service$6 | Service$5 | Service$3 | Service$1 | SqlClient$1.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient, import("effect/Config").ConfigError | EventRegistrationError | InstallError | LoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverLoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverRegistrationError | SettingsError | SourceError | StoreError, never>;
3198
3203
  declare namespace sandbox_d_exports {
3199
- export { CreateInput$1 as CreateInput, Driver, DriverInfo, Info$2 as Info, RegisterInput, sandbox_d_exports as Sandbox, instance_d_exports.SandboxInstance as SandboxInstance, Selection, create$2 as create, destroy, drivers, get$1 as get, list, refresh, register, resolve$1 as resolve, stop, wake };
3204
+ export { CreateInput$1 as CreateInput, Driver, DriverInfo, Info$2 as Info, RegisterInput, sandbox_d_exports as Sandbox, instance_d_exports.SandboxInstance as SandboxInstance, Selection, create$2 as create, destroy, drivers, get$1 as get, list, refresh$1 as refresh, register, resolve$1 as resolve, stop, wake };
3200
3205
  }
3201
3206
  type Info$2 = instance_d_exports.SandboxInstance.Info;
3202
3207
  type Driver = Entry$1;
@@ -3240,7 +3245,7 @@ declare const list: (input?: {
3240
3245
  readonly driver?: string;
3241
3246
  readonly status?: instance_d_exports.SandboxInstance.Status;
3242
3247
  } | undefined) => Effect.Effect<readonly instance_d_exports.SandboxInstance.Info[], never, Controller>;
3243
- declare const refresh: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<instance_d_exports.SandboxInstance.Info, import("@codeworksh/plugin/sandbox/errors").SandboxRefreshError, Controller>;
3248
+ declare const refresh$1: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<instance_d_exports.SandboxInstance.Info, import("@codeworksh/plugin/sandbox/errors").SandboxRefreshError, Controller>;
3244
3249
  declare const wake: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<instance_d_exports.SandboxInstance.Info, import("@codeworksh/plugin/sandbox/errors").SandboxWakeError, Controller>;
3245
3250
  declare const stop: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<instance_d_exports.SandboxInstance.Info, import("@codeworksh/plugin/sandbox/errors").SandboxStopError, Controller>;
3246
3251
  declare const destroy: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<void, import("@codeworksh/plugin/sandbox/errors").SandboxDestroyError, Controller>;
@@ -23176,6 +23181,129 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
23176
23181
  }>, Schema.Unknown, never, never>;
23177
23182
  }>;
23178
23183
  }];
23184
+ declare namespace catalog_d_exports {
23185
+ export { catalog_d_exports as ModelCatalog, RefreshError, Status, filename, layer, loadError, models, providers, refresh, sync, ttlConfig };
23186
+ }
23187
+ declare const filename = "models.gen.json";
23188
+ /** How old the catalog may get before a check downloads a new one. */
23189
+ declare const ttlConfig: Config.Config<Duration.Duration>;
23190
+ declare const RefreshError_base: Schema.Class<RefreshError, Schema.TaggedStruct<"ModelCatalog.RefreshError", {
23191
+ readonly path: Schema.String;
23192
+ readonly detail: Schema.String;
23193
+ }>, import("effect/Cause").YieldableError>;
23194
+ declare class RefreshError extends RefreshError_base {
23195
+ get message(): string;
23196
+ }
23197
+ interface Status {
23198
+ readonly path: string;
23199
+ /** False when the catalog was fresh enough to keep. */
23200
+ readonly refreshed: boolean;
23201
+ }
23202
+ /** Download a new catalog for the home when it is missing, older than the TTL, or `force` asks. */
23203
+ declare const refresh: (home: string, options?: {
23204
+ readonly force?: boolean;
23205
+ } | undefined) => Effect.Effect<{
23206
+ path: string;
23207
+ refreshed: false;
23208
+ } | {
23209
+ path: string;
23210
+ refreshed: true;
23211
+ }, Config.ConfigError | RefreshError, never>;
23212
+ /** Check the home's catalog once, for a command that runs and exits; returns the file aikit reads. */
23213
+ declare const sync: (home: string) => Effect.Effect<string, never, never>;
23214
+ /**
23215
+ * Check at boot, and with `watch`, keep checking for the life of the layer. A file whose mtime
23216
+ * moved -- refreshed here, by `codework models refresh`, or by hand -- is reloaded, so the
23217
+ * process never serves a catalog older than what is on disk.
23218
+ */
23219
+ declare const layer: (options: {
23220
+ readonly home: string;
23221
+ readonly watch: boolean;
23222
+ }) => Layer.Layer<never, never, never>;
23223
+ /** Translate aikit's catalog failure, or undefined for anything else. */
23224
+ declare const loadError: (cause: unknown) => ModelCatalogError | undefined;
23225
+ declare const models: Effect.Effect<Partial<Record<string, Record<string, {
23226
+ api?: {
23227
+ id?: string;
23228
+ url?: string;
23229
+ method?: "chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses";
23230
+ };
23231
+ baseUrl: string;
23232
+ compat?: {
23233
+ supportsThinkingLevel?: boolean;
23234
+ supportsToolSearch?: boolean;
23235
+ supportsAdditionalTools?: boolean;
23236
+ supportsStrictMode?: boolean;
23237
+ supportsOpenAIGrammarTools?: boolean;
23238
+ supportsThinkingTokenBudget?: boolean;
23239
+ forceAdaptiveThinking?: boolean;
23240
+ thinkingTokenBudgetField?: string;
23241
+ };
23242
+ contextWindow: number;
23243
+ cost: {
23244
+ input: number;
23245
+ output: number;
23246
+ cacheRead: number;
23247
+ cacheWrite: number;
23248
+ tiers?: {
23249
+ input: number;
23250
+ output: number;
23251
+ cacheRead: number;
23252
+ cacheWrite: number;
23253
+ inputTokensAbove: number;
23254
+ }[];
23255
+ serviceTierMultipliers?: Record<string, number>;
23256
+ };
23257
+ headers?: Record<string, string>;
23258
+ id: string;
23259
+ input: ("image" | "text")[];
23260
+ maxTokens: number;
23261
+ name: string;
23262
+ npm?: string;
23263
+ options?: Record<string, unknown>;
23264
+ protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23265
+ provider: {
23266
+ id: string;
23267
+ name: string;
23268
+ source: "api" | "config" | "custom" | "env" | "unknown";
23269
+ env: string[];
23270
+ key?: string;
23271
+ options?: Record<string, any>;
23272
+ };
23273
+ providerOptions?: Record<string, unknown>;
23274
+ providerOptionsKey?: string;
23275
+ reasoning: boolean;
23276
+ supportedProtocols?: {
23277
+ anthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23278
+ google?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23279
+ googleVertex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23280
+ googleVertexAnthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23281
+ githubCopilot?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23282
+ openai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23283
+ openaiCompatible?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23284
+ openaiCodex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23285
+ openrouter?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23286
+ xai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
23287
+ };
23288
+ thinkingBudgets?: {
23289
+ high?: number;
23290
+ low?: number;
23291
+ max?: number;
23292
+ medium?: number;
23293
+ minimal?: number;
23294
+ xhigh?: number;
23295
+ };
23296
+ thinkingLevelMap?: {
23297
+ high?: string | null;
23298
+ low?: string | null;
23299
+ max?: string | null;
23300
+ medium?: string | null;
23301
+ minimal?: string | null;
23302
+ off?: string | null;
23303
+ xhigh?: string | null;
23304
+ };
23305
+ }>>>, ModelCatalogError, never>;
23306
+ declare const providers: Effect.Effect<string[], ModelCatalogError, never>;
23179
23307
  //#endregion
23180
23308
  //#region src/plugin/host.d.ts
23181
23309
  declare const SetupError_base: Schema.Class<SetupError, Schema.TaggedStruct<"Plugin.SetupError", {
@@ -23368,5 +23496,5 @@ type DateTimeUtcFromMillis = import__codeworksh_plugin_schema.DateTimeUtcFromMil
23368
23496
  type EventSchema = import__codeworksh_plugin_event.EventSchema;
23369
23497
  type SandboxError = import__codeworksh_plugin_sandbox_errors.SandboxError;
23370
23498
  type optional = import__codeworksh_plugin_schema.optional;
23371
- export { control_d_exports as Control, db_d_exports as Database, DateTimeUtcFromMillis, event_d_exports as Event, list_d_exports as EventList, registry_d_exports as EventRegistry, EventSchema, global_d_exports as Global, harness_d_exports as Harness, location_d_exports as Location, index_d_exports as Plugin, schema_d_exports as PromptSchema, run_d_exports as Runner, sandbox_d_exports as Sandbox, SandboxError, session_d_exports as Session, session_d_exports$1 as SessionStore, settings_d_exports as Settings, state_d_exports as State, tool_d_exports as Tool, optional };
23499
+ export { control_d_exports as Control, db_d_exports as Database, DateTimeUtcFromMillis, event_d_exports as Event, list_d_exports as EventList, registry_d_exports as EventRegistry, EventSchema, global_d_exports as Global, harness_d_exports as Harness, location_d_exports as Location, catalog_d_exports as ModelCatalog, index_d_exports as Plugin, schema_d_exports as PromptSchema, run_d_exports as Runner, sandbox_d_exports as Sandbox, SandboxError, session_d_exports as Session, session_d_exports$1 as SessionStore, settings_d_exports as Settings, state_d_exports as State, tool_d_exports as Tool, optional };
23372
23500
  //# sourceMappingURL=effect.d.mts.map