chore: generate
This commit is contained in:
@@ -1328,7 +1328,8 @@ export class Agent implements ACPAgent {
|
|||||||
if (!current) {
|
if (!current) {
|
||||||
this.sessionManager.setModel(session.id, model)
|
this.sessionManager.setModel(session.id, model)
|
||||||
}
|
}
|
||||||
const agent = session.modeId ?? (await AppRuntime.runPromise(AgentModule.Service.use((svc) => svc.defaultInfo()))).name
|
const agent =
|
||||||
|
session.modeId ?? (await AppRuntime.runPromise(AgentModule.Service.use((svc) => svc.defaultInfo()))).name
|
||||||
|
|
||||||
const parts: Array<
|
const parts: Array<
|
||||||
| { type: "text"; text: string; synthetic?: boolean; ignored?: boolean }
|
| { type: "text"; text: string; synthetic?: boolean; ignored?: boolean }
|
||||||
|
|||||||
@@ -845,7 +845,9 @@ describe("plugin.loader.shared", () => {
|
|||||||
(tmp) =>
|
(tmp) =>
|
||||||
Effect.gen(function* () {
|
Effect.gen(function* () {
|
||||||
yield* load(tmp.path)
|
yield* load(tmp.path)
|
||||||
expect(yield* Effect.promise(() => Filesystem.readJson<{ source: string; enabled: boolean }>(tmp.extra.mark))).toEqual({
|
expect(
|
||||||
|
yield* Effect.promise(() => Filesystem.readJson<{ source: string; enabled: boolean }>(tmp.extra.mark)),
|
||||||
|
).toEqual({
|
||||||
source: "tuple",
|
source: "tuple",
|
||||||
enabled: true,
|
enabled: true,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -220,17 +220,19 @@ describe("InstanceStore", () => {
|
|||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
it.instance("provides legacy Promise callers with instance ALS", () =>
|
it.instance(
|
||||||
Effect.gen(function* () {
|
"provides legacy Promise callers with instance ALS",
|
||||||
const test = yield* TestInstance
|
() =>
|
||||||
const ctx = yield* InstanceRef
|
Effect.gen(function* () {
|
||||||
if (!ctx) throw new Error("InstanceRef not provided")
|
const test = yield* TestInstance
|
||||||
|
const ctx = yield* InstanceRef
|
||||||
|
if (!ctx) throw new Error("InstanceRef not provided")
|
||||||
|
|
||||||
const directory = yield* Effect.promise(() => Promise.resolve(Instance.restore(ctx, () => Instance.directory)))
|
const directory = yield* Effect.promise(() => Promise.resolve(Instance.restore(ctx, () => Instance.directory)))
|
||||||
|
|
||||||
expect(directory).toBe(test.directory)
|
expect(directory).toBe(test.directory)
|
||||||
expect(() => Instance.current).toThrow()
|
expect(() => Instance.current).toThrow()
|
||||||
}),
|
}),
|
||||||
{ git: true },
|
{ git: true },
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -101,7 +101,9 @@ describe("Discovery.pull", () => {
|
|||||||
const refs = path.join(agentsSdk, "references")
|
const refs = path.join(agentsSdk, "references")
|
||||||
expect(yield* Effect.promise(() => Filesystem.exists(path.join(agentsSdk, "SKILL.md")))).toBe(true)
|
expect(yield* Effect.promise(() => Filesystem.exists(path.join(agentsSdk, "SKILL.md")))).toBe(true)
|
||||||
// agents-sdk has reference files per the index
|
// agents-sdk has reference files per the index
|
||||||
const refDir = yield* Effect.promise(() => Array.fromAsync(new Bun.Glob("**/*.md").scan({ cwd: refs, onlyFiles: true })))
|
const refDir = yield* Effect.promise(() =>
|
||||||
|
Array.fromAsync(new Bun.Glob("**/*.md").scan({ cwd: refs, onlyFiles: true })),
|
||||||
|
)
|
||||||
expect(refDir.length).toBeGreaterThan(0)
|
expect(refDir.length).toBeGreaterThan(0)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user