Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3d46dc5
feat(dynamic-agents): add types module
yardend-wix Jun 23, 2026
dad3c39
feat(dynamic-agents): add gateway transport
yardend-wix Jun 23, 2026
ce89421
feat(dynamic-agents): add tool() factory and serialization
yardend-wix Jun 23, 2026
e1dc740
feat(dynamic-agents): add request body builder with param whitelist
yardend-wix Jun 23, 2026
7ba9f1e
feat(dynamic-agents): add agent loop and create/run module
yardend-wix Jun 23, 2026
e3e2dfc
fix(dynamic-agents): revert clone() in transport; align run() type wi…
yardend-wix Jun 23, 2026
516796e
feat(dynamic-agents): wire module into client (user + service role)
yardend-wix Jun 23, 2026
869ada4
fix(dynamic-agents): declare dynamicAgents on client type; fix getTok…
yardend-wix Jun 23, 2026
8c4f307
feat(dynamic-agents): export tool() and public types
yardend-wix Jun 23, 2026
14fdf1f
feat(dynamic-agents): implement Agent.asTool sub-agent tool
yardend-wix Jun 23, 2026
7584305
feat(dynamic-agents): add functions.asTool
yardend-wix Jun 23, 2026
6efe0c0
fix(dynamic-agents): functions.asTool returns the function body direc…
yardend-wix Jun 23, 2026
b9a90d5
refactor(agents): split tool.ts and agent-loop.ts out of dynamic-agents
yardend-wix Jun 23, 2026
c2c0505
feat(agents): add base44.agents.create (code-defined agents) alongsid…
yardend-wix Jun 24, 2026
a57ae27
refactor(agents): remove dynamicAgents surface and module-level run()…
yardend-wix Jun 24, 2026
da0ae3e
docs(agents): bring code-agent public surface to repo JSDoc conventions
yardend-wix Jun 24, 2026
bf3875e
docs(agents): cross-link Agent in create() @returns
yardend-wix Jun 24, 2026
90d2674
test(agents): align test conventions and add type-level tests
yardend-wix Jun 24, 2026
fb62a08
test(agents): exercise real AgentsModule.create return type in type t…
yardend-wix Jun 24, 2026
3b30d06
refactor(agents): type the gateway completion shapes; drop loop any-c…
yardend-wix Jun 24, 2026
db81086
fix(agents): restore optional-chain on choices to keep malformed-resp…
yardend-wix Jun 24, 2026
9d8366a
refactor(agents): move agents module + internals into src/modules/age…
yardend-wix Jun 24, 2026
a909694
feat(agents): add neutral LanguageModel seam + openAIProvider adapter
yardend-wix Jun 24, 2026
d95048c
chore(agents): drop unused imports in provider adapter + test
yardend-wix Jun 24, 2026
1822ff0
refactor(agents): loop talks to the LanguageModel seam; OpenAI logic …
yardend-wix Jun 24, 2026
c4e0ce1
refactor(agents): system as a neutral message role; faithful ChatMess…
yardend-wix Jun 24, 2026
bd675c8
refactor(agents): rename provider to openai-compatible / chat-complet…
yardend-wix Jun 24, 2026
98f2544
feat(agents): aggregate usage across steps (usage + totalUsage) and c…
yardend-wix Jun 24, 2026
f1e7fd1
feat(agents): add entities.<Name>.asTool (per-op tools, read-only def…
yardend-wix Jun 24, 2026
967e5ec
refactor(agents): own Tool/JSONSchema in agents.types; aggregate usage
yardend-wix Jun 25, 2026
9d85ca2
refactor(agents): neutral gateway transport (post(path) over complete)
yardend-wix Jun 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "./modules/connectors.js";
import { getAccessToken } from "./utils/auth-utils.js";
import { createFunctionsModule } from "./modules/functions.js";
import { createAgentsModule } from "./modules/agents.js";
import { createAgentsModule } from "./modules/agents/index.js";
import { createAppLogsModule } from "./modules/app-logs.js";
import { createUsersModule } from "./modules/users.js";
import { RoomsSocket, RoomsSocketConfig } from "./utils/socket-utils.js";
Expand Down Expand Up @@ -189,6 +189,7 @@ export function createClient(config: CreateClientConfig): Base44Client {
appId,
serverUrl,
token,
getToken: () => token || getAccessToken() || undefined,
}),
appLogs: createAppLogsModule(axiosClient, appId),
users: createUsersModule(axiosClient, appId),
Expand Down Expand Up @@ -232,6 +233,7 @@ export function createClient(config: CreateClientConfig): Base44Client {
appId,
serverUrl,
token,
getToken: () => serviceToken,
}),
appLogs: createAppLogsModule(serviceRoleAxiosClient, appId),
cleanup: () => {
Expand Down
2 changes: 1 addition & 1 deletion src/client.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
UserConnectorsModule,
} from "./modules/connectors.types.js";
import type { FunctionsModule } from "./modules/functions.types.js";
import type { AgentsModule } from "./modules/agents.types.js";
import type { AgentsModule } from "./modules/agents/agents.types.js";
import type { AppLogsModule } from "./modules/app-logs.types.js";
import type { AnalyticsModule } from "./modules/analytics.types.js";

Expand Down
19 changes: 18 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
removeAccessToken,
getLoginUrl,
} from "./utils/auth-utils.js";
import { tool } from "./modules/agents/tool.js";

export {
createClient,
Expand All @@ -21,6 +22,7 @@ export {
saveAccessToken,
removeAccessToken,
getLoginUrl,
tool,
};

export type {
Expand Down Expand Up @@ -98,7 +100,7 @@ export type {
AgentMessageCustomContext,
AgentMessageMetadata,
CreateConversationParams,
} from "./modules/agents.types.js";
} from "./modules/agents/agents.types.js";

export type { AppLogsModule } from "./modules/app-logs.types.js";

Expand All @@ -115,6 +117,21 @@ export type {
CustomIntegrationCallResponse,
} from "./modules/custom-integrations.types.js";

export type {
Tool,
JSONSchema,
ChatMessage,
Step,
RunUsage,
RunResult,
RunInput,
RunOptions,
ToolChoice,
AgentConfig,
Agent,
FinishReason,
} from "./modules/agents/agents.types.js";

// Auth utils types
export type {
GetAccessTokenOptions,
Expand Down
Loading
Loading