Documentation
¶
Overview ¶
Package appsetup holds the text that tells an AI app how to start trading through Mishmar on the person's computer: what the hosted MCP server's set_up_trading tool answers and what the console shows when a person turns trading on for an app (the wiki's design/app-trading-plan.md, section 2.5). It is the one place the text lives. It imports only the standard library, so the hosted control plane can import it, or copy this file; either way spec/vectors/app-setup.json pins the rendered texts, the way the signing vectors pin bytes, and a copy is checked against it.
The text is written to the model, which relays the steps to the person. It says plainly that a server added during a conversation is not usable in it: the app has to restart, or the conversation continue in a new session (seen on 13 Nov 2026 with Claude Code).
Index ¶
- Constants
- Variables
- func AlreadyTrading(signedIn time.Time, code string) string
- func Args(app App, env string) []string
- func Entry(app App, env string) string
- func Flags(app App, env string) []string
- func PythonRequirement() string
- func Text(app App, env string) (string, error)
- func UVXEntry(app App, env string) string
- type App
Constants ¶
const FirstUse = "" /* 329-byte string literal not displayed */
FirstUse is what happens once the server runs.
const Intro = "" /* 208-byte string literal not displayed */
Intro opens every text.
const OwnComputer = "" /* 150-byte string literal not displayed */
OwnComputer is what may trade: a machine the person sits at. Signing in by typing a code on another device is not built, so a remote machine is refused by the server itself; the text says so first.
const Package = "mishmar@0.6"
Package is what every app runs: the npm package (and the PyPI one, by the same version) pinned to a minor release, so patch releases arrive by themselves. Bumped with each minor release of the CLI; an installed app keeps the pin it was added with.
const Restart = "" /* 157-byte string literal not displayed */
Restart is the honest part: a server added during a conversation is not in it.
const SayAfter = "set up trading with Mishmar"
SayAfter is what the person says to the app once the server is in.
const ServerName = "mishmar-trade"
ServerName is the name the trading server is added under in every app.
const Windows = "On Windows, run the app inside WSL (the Linux steps work there): Mishmar's signer has no Windows release yet."
Windows is what an app on Windows is told: the mishmar release has no Windows build yet.
Variables ¶
var Apps = []App{ClaudeCode, Cursor, VSCode, ClaudeDesktop, Other}
Apps lists them in the order they are offered.
Functions ¶
func AlreadyTrading ¶
AlreadyTrading is the text for an app that trades already: when its computer signed in, and its code (the first two groups of its key's fingerprint). The computer's name is left out: it is whatever the program on that computer sent, and this text goes into the AI app's context.
func PythonRequirement ¶
func PythonRequirement() string
PythonRequirement is Package as a pip requirement (mishmar>=0.6,<0.7), for uvx.