Skip to content

Commit 995fed0

Browse files
kitlangtoncavaldos
authored andcommitted
refactor(instruction): migrate to Effect service pattern (anomalyco#20542)
1 parent d5cc240 commit 995fed0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/opencode/src/session/instruction.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,19 @@ export namespace Instruction {
248248
return runPromise((svc) => svc.systemPaths())
249249
}
250250

251+
export async function system() {
252+
return runPromise((svc) => svc.system())
253+
}
254+
251255
export function loaded(messages: MessageV2.WithParts[]) {
252256
return extract(messages)
253257
}
254258

259+
export async function find(dir: string) {
260+
return runPromise((svc) => svc.find(dir))
261+
}
262+
263+
255264
export async function resolve(messages: MessageV2.WithParts[], filepath: string, messageID: MessageID) {
256265
return runPromise((svc) => svc.resolve(messages, filepath, messageID))
257266
}

0 commit comments

Comments
 (0)