oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1package claude
2
3import (
4 "encoding/json"
5 "slices"
6
7 "amadan.net/oficina/equipo/internal/runner/provider"
8)
9
10// AuthStatusDocument selects the pinned auth command, which writes one
11// indented document. Agent sessions still require one JSON object per line.
12func AuthStatusDocument(l provider.Launch) bool {
13 var m struct {
14 Argv []string
15 ProviderVersion string
16 }
17 want := AuthStatusArgs()
18 return l.Selection.Provider == "claude" && l.Binding.Expected.ProviderVersion == Version && l.Policy.ManifestHash == provider.ManifestDigest(l.Policy.Manifest) && json.Unmarshal(l.Policy.Manifest, &m) == nil && m.ProviderVersion == Version && slices.Equal(m.Argv, want)
19}
20