feat: Distinct prefixes for protos, molecules, wisps (bd-hobo)
Added type-specific ID prefixes for better visual recognition: - `bd pour` now generates IDs with "mol-" prefix - `bd wisp create` now generates IDs with "wisp-" prefix - Regular issues continue using the configured prefix Implementation: - Added IDPrefix field to types.Issue (internal, not exported to JSONL) - Added Prefix field to CloneOptions for spawning operations - Added IDPrefix to RPC CreateArgs for daemon communication - Updated storage layer to use issue.IDPrefix when generating IDs - Updated pour.go and wisp.go to pass appropriate prefixes This enables instant visual recognition of entity types and prevents accidental modification of templates. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -89,6 +89,8 @@ type CreateArgs struct {
|
||||
Sender string `json:"sender,omitempty"` // Who sent this (for messages)
|
||||
Wisp bool `json:"wisp,omitempty"` // Wisp = ephemeral vapor from the Steam Engine; bulk-deleted when closed
|
||||
RepliesTo string `json:"replies_to,omitempty"` // Issue ID for conversation threading
|
||||
// ID generation (bd-hobo)
|
||||
IDPrefix string `json:"id_prefix,omitempty"` // Override prefix for ID generation (mol, wisp, etc.)
|
||||
}
|
||||
|
||||
// UpdateArgs represents arguments for the update operation
|
||||
|
||||
@@ -179,6 +179,8 @@ func (s *Server) handleCreate(req *Request) Response {
|
||||
Sender: createArgs.Sender,
|
||||
Wisp: createArgs.Wisp,
|
||||
// NOTE: RepliesTo now handled via replies-to dependency (Decision 004)
|
||||
// ID generation (bd-hobo)
|
||||
IDPrefix: createArgs.IDPrefix,
|
||||
}
|
||||
|
||||
// Check if any dependencies are discovered-from type
|
||||
|
||||
Reference in New Issue
Block a user