bazis 0.102.0 → 0.103.0
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.
|
@@ -232,7 +232,7 @@ export class CodexAppServerClient implements CodexClient {
|
|
|
232
232
|
if (method === "account/updated") this.modelCache = undefined;
|
|
233
233
|
}, () => { this.clearLogin(); this.modelCache = undefined; });
|
|
234
234
|
const initialized = await client.request("initialize", {
|
|
235
|
-
clientInfo: { name: "bazis", title: "Bazis", version: "0.
|
|
235
|
+
clientInfo: { name: "bazis", title: "Bazis", version: "0.103.0" }, capabilities: { experimentalApi: true },
|
|
236
236
|
}, 15_000, signal);
|
|
237
237
|
if (resolve(text(initialized.codexHome, 4096)) !== this.paths.home) throw new CodexError("PROTOCOL_ERROR");
|
|
238
238
|
client.notify("initialized");
|
|
@@ -5,12 +5,18 @@ import { reader, requireValue } from "../connectorConfig";
|
|
|
5
5
|
import { CodexAppServerClient } from "./codex/CodexAppServerClient";
|
|
6
6
|
import type { CodexClient, CodexConfigShape } from "./codex/contracts";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Codex App Server client of the `codexAppServerConnect()` connector,
|
|
10
|
+
* injected by type like the other infra clients:
|
|
11
|
+
* `constructor(private readonly codex: ICodex)`.
|
|
12
|
+
*/
|
|
13
|
+
export interface ICodex extends CodexClient {}
|
|
14
|
+
export const ICodex = createToken<ICodex>("ICodex") as InjectionToken<CodexClient>;
|
|
9
15
|
|
|
10
16
|
/** App Server is a full executor; it does not implement the raw AgentModelProvider port. */
|
|
11
17
|
export function codexAppServerConnect(config: AppConfig<CodexConfigShape>): InfraConnector<CodexClient> {
|
|
12
18
|
return {
|
|
13
|
-
token:
|
|
19
|
+
token: ICodex, config, phase: 0,
|
|
14
20
|
create(configs) {
|
|
15
21
|
const view = reader(config, configs);
|
|
16
22
|
return new CodexAppServerClient({
|
package/core/infra/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { Infra, infraModule, type InfraManifest } from "./Infra";
|
|
|
7
7
|
export { InfraError, errorMessage, type ConnectionDescription, type InfraConnector } from "./InfraConnector";
|
|
8
8
|
export { InfraLifecycle } from "./InfraLifecycle";
|
|
9
9
|
export { reader, requireValue, settingNames, type ConfigReader } from "./connectorConfig";
|
|
10
|
-
export { codexAppServerConnect,
|
|
10
|
+
export { codexAppServerConnect, ICodex } from "./connectors/codex";
|
|
11
11
|
export { CodexError, RU_CODEX_MESSAGES, type CodexErrorCode, CODEX_MODEL_ID, CODEX_REASONING_EFFORT, type CodexClient, type CodexConfigShape, type CodexLogin, type CodexLoginMethod, type CodexModel, type CodexStatus, type CodexRunInput, type CodexChatMessage, type CodexTool, type CodexToolCall, type CodexToolResult } from "./connectors/codex/contracts";
|
|
12
12
|
|
|
13
13
|
export { postgres, IPostgres, postgresConnectionOptions, type PostgresConfigShape, type PostgresSslMode, type PostgresConnectorOptions } from "./connectors/postgres";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bazis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.103.0",
|
|
4
4
|
"description": "Modular backend framework for Bun in TypeScript: DI wired by codegen, HTTP, a PostgreSQL ORM, JWT, WebSocket, agents and a CLI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alexander Alenin",
|