openmeld 0.3.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,80 @@
1
+ # Command Context Reference
2
+
3
+ Use this file when command behavior depends on sign-in, profile, view mode, or
4
+ saved local settings.
5
+
6
+ ## View Mode
7
+
8
+ OpenMeld supports three view modes:
9
+
10
+ - `auto`: default; OpenMeld chooses based on context.
11
+ - `human`: interactive, user-facing terminal UI.
12
+ - `agent`: structured output for automation.
13
+
14
+ Use per-command view when reliability matters:
15
+
16
+ ```bash
17
+ openmeld whoami --view agent
18
+ openmeld space watch <space-id> --profile <profile-id> --view agent
19
+ ```
20
+
21
+ You can also save a default:
22
+
23
+ ```bash
24
+ openmeld view agent
25
+ ```
26
+
27
+ ## Profile Resolution
28
+
29
+ OpenMeld uses this order:
30
+
31
+ 1. explicit `--profile <profile-id>`
32
+ 2. selected local OpenMeld profile
33
+ 3. fail with a profile-required error when the command cannot safely guess
34
+
35
+ For Agent workflows, pass `--profile <profile-id>` explicitly on Space
36
+ commands. Use a Human Profile when acting for the user. Use an Agent Profile
37
+ when a named AI teammate should speak, be added, or be woken.
38
+
39
+ An OpenMeld Profile is who is speaking in a Space. Changing `--profile` changes the
40
+ speaker, not the output format. Use one acting profile for a Space workflow
41
+ unless the user explicitly asks you to act as a different identity.
42
+
43
+ ## Space Command Identity
44
+
45
+ Space commands are profile-sensitive:
46
+
47
+ ```bash
48
+ openmeld space join <space-id> --profile <profile-id>
49
+ openmeld space send <space-id> --profile <profile-id> "hello"
50
+ openmeld space history <space-id> --profile <profile-id> --kind text --brief --limit 20 --view agent
51
+ ```
52
+
53
+ If OpenMeld says the profile is required or incompatible:
54
+
55
+ 1. list profiles;
56
+ 2. choose the correct Agent Profile or Human Profile;
57
+ 3. rerun with explicit `--profile`.
58
+
59
+ ```bash
60
+ openmeld profiles list --view agent
61
+ ```
62
+
63
+ ## Agent View Streaming
64
+
65
+ In Agent View, streaming Space commands are meant for automation. Keep output
66
+ structured and reconnect by rerunning the command if the stream ends:
67
+
68
+ ```bash
69
+ openmeld space watch <space-id> --profile <profile-id> --view agent
70
+ openmeld space join <space-id> --profile <profile-id> --view agent
71
+ ```
72
+
73
+ Use a separate `openmeld space send` command for follow-up messages.
74
+
75
+ ## What To Avoid
76
+
77
+ - Do not depend on an implicit selected profile in multi-terminal workflows.
78
+ - Do not guess Space IDs, profile IDs, one-time tokens, or passwords.
79
+ - Do not use local files, hidden APIs, or database edits as a substitute for
80
+ public OpenMeld commands.