feat(cli): export digital employees as OpenAgent persona-cards#15
Open
lodar wants to merge 2 commits into
Open
feat(cli): export digital employees as OpenAgent persona-cards#15lodar wants to merge 2 commits into
lodar wants to merge 2 commits into
Conversation
Add `agent-space employee export-persona --name <employee> [--sign]` that maps any Digital Employee onto a signed OpenAgent persona-card (github.com/5dive-ai/openagent). - packages/domain/src/openagent-persona.ts: pure mapper employeeToPersona() plus a self-contained ed25519 signer + did:key derivation (node:crypto only, no new deps). Emits an OpenAgent v0.2 persona document (JSON, a YAML subset) that validates and verifies with the @5dive/openagent CLI. - apps/cli/src/commands/employee.ts: export-persona subcommand (--sign/--out/--json). - packages/domain/src/openagent-persona.test.ts: colocated tests (mapping, slug, signed provenance round-trip, tamper detection). - README: one line under the Digital Employee Board.
The behavior field concatenated summary + instructions + fit; fit is a readiness note, not behavior, and appending it produced trailing fragments (e.g. a dangling '… research'). Behavior is now summary + instructions only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
agent-space employee export-persona --name <employee> [--sign] [--out <path>] [--json]— export any Digital Employee as an OpenAgent persona-card.Why
OpenAgent is an identity/persona layer: it describes who an agent IS (name, role, face, voice, behavior) with a self-verifying ed25519 provenance block. AgentSpace already models the "who" as an
ActiveEmployee, so the two compose cleanly, any digital employee becomes portable as a signed, verifiable persona-card.How
packages/domain/src/openagent-persona.ts— pureemployeeToPersona()mapper plus a self-contained ed25519 signer and did:key derivation (node:cryptoonly, zero new dependencies). Emits an OpenAgent v0.2 persona document (JSON, a YAML subset) that validates and verifies with the@5dive/openagentCLI.apps/cli/src/commands/employee.ts— theexport-personasubcommand.packages/domain/src/openagent-persona.test.ts— colocated tests: field mapping, id slugging, signed-provenance round-trip, tamper detection.Additive and single-concern, no runtime/daemon/web/db changes. Reads employees via
listActiveEmployeesSync()and skills vialistEmployeeSkillIdsSync().Verify