@agimon-ai/po-team 0.0.0-alpha.32 → 0.0.0-alpha.34
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.
|
@@ -7110,6 +7110,7 @@ const root = (0, _agimon_ai_po_core_extensionFile.defineRoot)(({ context, host:
|
|
|
7110
7110
|
return {
|
|
7111
7111
|
value: {
|
|
7112
7112
|
runtime,
|
|
7113
|
+
sessionConfig,
|
|
7113
7114
|
execution,
|
|
7114
7115
|
scope,
|
|
7115
7116
|
jobs,
|
|
@@ -7411,7 +7412,7 @@ function createTeamApiHandler(options) {
|
|
|
7411
7412
|
};
|
|
7412
7413
|
}
|
|
7413
7414
|
/** One mounted session API, backed by the Team runtime that owns the subagent tool. */
|
|
7414
|
-
function createTeamSessionApi(runtime, execution) {
|
|
7415
|
+
function createTeamSessionApi(runtime, execution, config) {
|
|
7415
7416
|
const scope = require_atomicJson.createSessionScope(execution.sessionId);
|
|
7416
7417
|
const jobs = runtime.asyncJobTracker.forSession(execution.sessionId, scope);
|
|
7417
7418
|
const launch = async (request) => {
|
|
@@ -7434,7 +7435,7 @@ function createTeamSessionApi(runtime, execution) {
|
|
|
7434
7435
|
availableModels: await availableModelInfos(execution),
|
|
7435
7436
|
...execution.model ? { parentModel: execution.model } : {},
|
|
7436
7437
|
sender: HUMAN_SENDER
|
|
7437
|
-
},
|
|
7438
|
+
}, config)).outcomes[0];
|
|
7438
7439
|
if (!outcome?.runId) throw new Error(outcome?.error ?? "The agent did not start.");
|
|
7439
7440
|
jobs.track(outcome.runId, outcome.identity ? {
|
|
7440
7441
|
identity: outcome.identity,
|
|
@@ -7460,7 +7461,7 @@ function createTeamSessionApi(runtime, execution) {
|
|
|
7460
7461
|
})
|
|
7461
7462
|
};
|
|
7462
7463
|
}
|
|
7463
|
-
var route_server_default$1 = (context) => createTeamSessionApi(context.root.runtime, context.root.execution);
|
|
7464
|
+
var route_server_default$1 = (context) => createTeamSessionApi(context.root.runtime, context.root.execution, context.root.sessionConfig);
|
|
7464
7465
|
//#endregion
|
|
7465
7466
|
//#region src/extensions/workspaces/sessions/(backend)/api/route.server.ts
|
|
7466
7467
|
var route_server_default = (0, _agimon_ai_po_core_extensionFile.defineRoute)(route_server_default$1);
|