chore: generate
This commit is contained in:
@@ -58,7 +58,8 @@ export const Plugin = PluginV2.define({
|
|||||||
|
|
||||||
yield* agent.update((editor) => {
|
yield* agent.update((editor) => {
|
||||||
const global = documents.flatMap((document) => document.info.permissions ?? [])
|
const global = documents.flatMap((document) => document.info.permissions ?? [])
|
||||||
const configuredDefault = documents.findLast((document) => document.info.default_agent !== undefined)?.info.default_agent
|
const configuredDefault = documents.findLast((document) => document.info.default_agent !== undefined)?.info
|
||||||
|
.default_agent
|
||||||
if (configuredDefault !== undefined) editor.default(AgentV2.ID.make(configuredDefault))
|
if (configuredDefault !== undefined) editor.default(AgentV2.ID.make(configuredDefault))
|
||||||
for (const current of editor.list()) {
|
for (const current of editor.list()) {
|
||||||
editor.update(current.id, (agent) => agent.permissions.push(...global))
|
editor.update(current.id, (agent) => agent.permissions.push(...global))
|
||||||
|
|||||||
@@ -152,7 +152,9 @@ export const layer = Layer.effect(
|
|||||||
const context = yield* store.runnerContext(session.id, system.baselineSeq)
|
const context = yield* store.runnerContext(session.id, system.baselineSeq)
|
||||||
const request = LLM.request({
|
const request = LLM.request({
|
||||||
model,
|
model,
|
||||||
system: [agent?.system, system.baseline].filter((part): part is string => part !== undefined && part.length > 0).map(SystemPart.make),
|
system: [agent?.system, system.baseline]
|
||||||
|
.filter((part): part is string => part !== undefined && part.length > 0)
|
||||||
|
.map(SystemPart.make),
|
||||||
messages: toLLMMessages(context, model),
|
messages: toLLMMessages(context, model),
|
||||||
tools: yield* tools.definitions(),
|
tools: yield* tools.definitions(),
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -787,7 +787,12 @@ describe("SessionRunnerLLM", () => {
|
|||||||
agent.mode = "primary"
|
agent.mode = "primary"
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
yield* db.update(SessionTable).set({ agent: "reviewer" }).where(eq(SessionTable.id, sessionID)).run().pipe(Effect.orDie)
|
yield* db
|
||||||
|
.update(SessionTable)
|
||||||
|
.set({ agent: "reviewer" })
|
||||||
|
.where(eq(SessionTable.id, sessionID))
|
||||||
|
.run()
|
||||||
|
.pipe(Effect.orDie)
|
||||||
const session = yield* SessionV2.Service
|
const session = yield* SessionV2.Service
|
||||||
yield* session.prompt({ sessionID, prompt: new Prompt({ text: "First" }), resume: false })
|
yield* session.prompt({ sessionID, prompt: new Prompt({ text: "First" }), resume: false })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user