{"modulePath":"github.com/MiniMax-AI/OpenAgentCore","version":"v0.0.14","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runtimebootstrap\n\nPackage runtimebootstrap owns the Provider-to-Runtime connection input. Providers deliver this document as a private file; only Runtime interprets it.\n\n## Constants\n\n```go\nconst MaxBytes = 16 * 1024\n```\n\n```go\nconst PublicWorkspace = \"/workspace\"\n```\nPublicWorkspace is the workspace path applications and Core use for a hosted Environment. The Runtime maps it to its bound workspace directory.\n\n```go\nconst RuntimeWorkspace = \"/environment/workspace\"\n```\nRuntimeWorkspace is the workspace directory of the packaged Runtime layout.\n\n```go\nconst SuspendControlFile = \"/run/oac/daemon-suspend.json\"\n```\nSuspendControlFile is where the Runtime daemon publishes its suspend control. Its directory is private to the Runtime user. The Runtime publishes it exactly when the bootstrap sets SuspendControl, and Core's wake command reads it.\n\n```go\nconst Version = 4\n```\n\n## Variables\n\n```go\nvar ErrInvalid = errors.New(\"invalid Runtime bootstrap input\")\n```\n\n## Types\n\n```go\ntype Connection struct {\n\tVersion        int    `json:\"version\"`\n\tCoreURL        string `json:\"core_url\"`\n\tDeviceID       string `json:\"device_id\"`\n\tCredential     string `json:\"credential\"`\n\tEnvironmentID  string `json:\"environment_id\"`\n\tWorkspace      string `json:\"workspace\"`\n\tSuspendControl bool   `json:\"suspend_control\"`\n}\n```\nConnection is a current-version launch input, not Runtime's private auth store. CoreURL includes the machine API base path. The provider owns delivery and file permissions; Runtime owns validation and its authentication representation. EnvironmentID and Workspace bind the Runtime to its Environment. SuspendControl is true exactly when the Provider declares checkpoint support.\n\n```go\nfunc Decode(raw []byte) (Connection, error)\n```\nDecode accepts one exact object. Unknown, duplicate, missing and case-aliased fields reject instead of introducing alternate spellings of this contract.\n\n```go\nfunc (c Connection) Marshal() ([]byte, error)\n```\n\n```go\nfunc (c Connection) Validate() error\n```\n\n","path":"github.com/MiniMax-AI/OpenAgentCore/internal/runtimebootstrap","name":"runtimebootstrap","synopsis":"Package runtimebootstrap owns the Provider-to-Runtime connection input.","isRedistributable":true}
