package wire // Thinking words: the phrases the thinking line shows while a turn runs, // in a set each person picks (GET and PUT /api/v1/thinking). The words // fill the gaps between tools; tool labels stay plain. The accessible // label and tooltip keep the full activity. Sets are fixed here; // their names and phrases are the instance's copy. // ThinkingSets are the sets, the default first; ThinkingRandom picks one // of the others for each turn. var ThinkingSets = []string{"professional", "playful", "galaxy", "bridge", "pirate", "terminal", ThinkingRandom} // DefaultThinking and ThinkingRandom are set ids. const ( DefaultThinking = "professional" ThinkingRandom = "random" ) // ThinkingSituations keeps the existing API phrase groups for older // clients. Current conversation and Settings views use only "think". var ThinkingSituations = []string{"think", "read", "search", "note", "handoff", "tool"} // ThinkingSet is one set: its name, a line about it, and its phrases by // situation (empty for Random). type ThinkingSet struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Phrases map[string][]string `json:"phrases"` } // ThinkingWords is GET /api/v1/thinking: the person's set and every set. type ThinkingWords struct { Set string `json:"set"` Revision int64 `json:"revision"` Sets []ThinkingSet `json:"sets"` } // ThinkingChoice is the body of PUT /api/v1/thinking, and the data of // the thinking event: the set, against the revision the person saw. type ThinkingChoice struct { Set string `json:"set"` Revision int64 `json:"revision"` } // EventThinking fires to the person when their set changes, so an open // conversation uses it from the next turn. const EventThinking = "thinking"