pygmalion 0.1.5 → 0.1.7

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.
@@ -9,11 +9,12 @@ import { attachSessionToCwdWorkspace } from './dsh-bookkeeping.js';
9
9
  * 登记」两处复用。
10
10
  */
11
11
  export function buildSessionDeps(deps, sessionId) {
12
- const { api, routes, persona, roleId, httpApiToken, httpApiPath, log } = deps;
12
+ const { api, routes, persona, roleId, httpApiToken, httpApiPath, log, subagents, llm } = deps;
13
13
  return {
14
14
  api, routes,
15
15
  target: () => routes.get(sessionId)?.target ?? targetOfSession(sessionId),
16
16
  roleId, httpApiToken, httpApiPath, persona, log,
17
+ subagents, llm,
17
18
  workspaceOf: roleId !== undefined && persona !== undefined
18
19
  ? async () => persona.roleWorkspace(roleId)
19
20
  : undefined,
@@ -77,6 +78,7 @@ export function createSetupAgent(deps) {
77
78
  httpApiPath,
78
79
  persona,
79
80
  log,
81
+ subagents: deps.subagents, llm: deps.llm,
80
82
  workspaceOf: roleId !== undefined && persona !== undefined
81
83
  ? async () => persona.roleWorkspace(roleId)
82
84
  : undefined,