oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package codex
2
3import (
4 "amadan.net/oficina/equipo/internal/runner/provider"
5 "bytes"
6 "encoding/json"
7)
8
9type NativeRequest = provider.NativeRequest
10
11func NativeApproval(ev provider.Event) (NativeRequest, error) { return provider.NativeApproval(ev) }
12func (s *sessionState) correlateNative(ev *provider.Event) {
13 v, err := parse(ev.Payload)
14 if err != nil || v.Method != "item/fileChange/requestApproval" {
15 return
16 }
17 var p struct{ ItemID string }
18 if json.Unmarshal(v.Params, &p) == nil {
19 ev.ToolCall = bytes.Clone(s.nativeCalls[p.ItemID])
20 }
21}
22