Documentation
¶
Overview ¶
Package team implements `hadron team ...` — the team-coordination surface (#369, re-keyed to the Worker model in #428 / hadron-server#974). An Agent carries role metadata and a compiled boot-prompt pointer; the named identity ("Iris") is a WORKER, the casting of an installed Agent into an App (cor:dmo:050:11).
TWO facts about a name, and they are not the same one (cor:agt:020:09, hadron-cli#487). HELD is whose name it is: held by a PERSON, freed only by an explicit release, and what decides whether you may bind. LIVE is whether a worker session is open on it right now — derived from an unended Session, only ever a question about a name already yours, and never a claim that anybody is at the keyboard, since a worker session outlives the chat session that started it. An earlier version of this comment called the second one "taken right now"; that word named both facts at once, which is the defect #487 was filed for.
Index ¶
Constants ¶
const GitDirEnv = "HADRON_TEAM_GIT_DIR"
GitDirEnv overrides the git call that locates the worktree binding — for tests, and for environments with no git binary. Exported so the test sandbox names the same string this reads rather than a copy of it: two spellings of one well-known key is how a sandbox silently stops sandboxing (hadron-cli#498).
const TeamChatPageSize = 200
TeamChatPageSize is the server's list cap and the default page size; an unbounded read pages with the seq watermark as the cursor (each page's last seq is the next sinceSeq).
EXPORTED for the command tests, which need a FULL page to drive the exhaustive loop past its first iteration — the loop stops on a short page, so a test hard-coding 200 would silently stop exercising exhaustion the day this changes.
Variables ¶
This section is empty.
Functions ¶
func AuthoredWriteContext ¶ added in v0.21.0
func AuthoredWriteContext(f *cmdutil.Factory) func(context.Context, *graphql.Request) context.Context
AuthoredWriteContext is command-local, never a default session on the transport. Snapshot before the first lookup, then verify the binding again for every authored mutation. Other requests retain their existing context.
func InstallEndedBindingCheck ¶ added in v0.25.0
InstallEndedBindingCheck arms the notice for one root command. Each NewRootCmd installs a fresh one, so one command checks at most once.
Types ¶
This section is empty.
Source Files
¶
- availability.go
- channel_check.go
- channel_location.go
- chat.go
- chat_attribution.go
- chat_check.go
- chat_check_command.go
- chat_check_output.go
- chat_freshness.go
- chat_host_adapter.go
- chat_host_delivery.go
- chat_host_errors.go
- chat_inbox.go
- chat_inbox_command.go
- chat_inbox_errors.go
- chat_inbox_transport.go
- chat_mark_read.go
- chat_search.go
- chat_wait.go
- composition.go
- delivery_settings.go
- ended_binding.go
- events.go
- finduntracked.go
- health.go
- health_install.go
- health_status_command.go
- host.go
- host_availability.go
- host_delivery.go
- host_reset.go
- host_run.go
- host_wakes.go
- init.go
- instruction.go
- isolation.go
- launch_grant.go
- lock_unix.go
- manager_controls.go
- push.go
- refnorm.go
- register.go
- retired.go
- role.go
- roster.go
- session.go
- session_continuity.go
- session_filters_1337.go
- session_inputs_1337.go
- session_model.go
- session_outcome.go
- session_resume.go
- session_shed.go
- session_shed_open_unix.go
- session_work_items.go
- stallschedule.go
- state.go
- stop.go
- task.go
- taskbatch.go
- taskclone.go
- taskdto.go
- taskfindings.go
- taskmatching.go
- taskmintier.go
- taskmodelgroups.go
- taskpriority.go
- taskproperties.go
- taskread.go
- taskrefs.go
- taskteam.go
- taskupdate.go
- taskwarnings.go
- team.go
- terminal.go
- terminal_metadata.go
- usage.go
- wake_settings.go
- wakes.go
- worker.go
- worker_activity.go
- worker_boot_prompt.go
- worker_compile.go
- worker_compile_batch.go
- worker_onboard.go
- worker_reporting.go
- worker_signing.go
- write_attribution.go