agent/pkg/agentic/auth_example_test.go
Snider ecd47fe3db revert fcb9c189e5
revert fix(agentic): harden TODO workspace write

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-18 11:22:27 +00:00

17 lines
385 B
Go

// SPDX-License-Identifier: EUPL-1.2
package agentic
import "fmt"
func Example_parseAgentApiKey() {
key := parseAgentApiKey(map[string]any{
"id": 7,
"name": "codex local",
"prefix": "ak_live",
"permissions": []any{"plans:read", "plans:write"},
})
fmt.Println(key.ID, key.Name, key.Prefix, len(key.Permissions))
// Output: 7 codex local ak_live 2
}