sideby 0.40.1 → 0.41.1
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.
- package/dist/build.json +1 -1
- package/dist/src/cli/commands.d.ts +7 -0
- package/dist/src/cli/commands.js +145 -0
- package/dist/src/cli/json-schemas.js +75 -2
- package/dist/src/cli/main.js +32 -2
- package/dist/src/core/claude-trust.d.ts +198 -0
- package/dist/src/core/claude-trust.js +559 -0
- package/dist/src/core/cli-commands.js +14 -2
- package/dist/src/core/config.d.ts +7 -3
- package/dist/src/core/config.js +12 -5
- package/dist/src/core/network.d.ts +9 -7
- package/dist/src/core/network.js +10 -13
- package/dist/src/core/search-catalog.js +23 -0
- package/dist/src/panel/handler.d.ts +14 -0
- package/dist/src/panel/handler.js +55 -0
- package/dist/src/panel/i18n.d.ts +22 -0
- package/dist/src/panel/i18n.js +46 -2
- package/dist/src/panel/page-script.js +80 -2
- package/dist/src/runtime.d.ts +32 -0
- package/dist/src/runtime.js +74 -1
- package/package.json +1 -1
- package/schemas/config.json +5 -1
- package/schemas/network.json +5 -1
- package/schemas/trust-set.json +117 -0
- package/schemas/trust-undo.json +155 -0
- package/schemas/trust.json +183 -0
- package/skills/sideby/SKILL.md +2 -1
- package/skills/sideby/references/network.md +1 -1
- package/skills/sideby/references/trust.md +28 -0
package/schemas/network.json
CHANGED
|
@@ -125,9 +125,13 @@
|
|
|
125
125
|
{
|
|
126
126
|
"type": "string",
|
|
127
127
|
"const": "at-launch"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "string",
|
|
131
|
+
"const": "api"
|
|
128
132
|
}
|
|
129
133
|
],
|
|
130
|
-
"description": "
|
|
134
|
+
"description": "api: an API account, never checked; third-party: an endpoint set to a third party, not checked; at-launch: no longer given."
|
|
131
135
|
}
|
|
132
136
|
}
|
|
133
137
|
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/trust-set.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"action",
|
|
8
|
+
"on",
|
|
9
|
+
"changed",
|
|
10
|
+
"applied",
|
|
11
|
+
"before",
|
|
12
|
+
"after",
|
|
13
|
+
"file"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schemaVersion": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"const": 1
|
|
19
|
+
},
|
|
20
|
+
"action": {
|
|
21
|
+
"anyOf": [
|
|
22
|
+
{
|
|
23
|
+
"type": "string",
|
|
24
|
+
"const": "on"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "string",
|
|
28
|
+
"const": "off"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"on": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Whether config `claude.carryTrust` is on now."
|
|
35
|
+
},
|
|
36
|
+
"changed": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
39
|
+
"applied": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "False when only the change was shown; run again with --yes (exit 10)."
|
|
42
|
+
},
|
|
43
|
+
"before": {
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
},
|
|
46
|
+
"after": {
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
49
|
+
"file": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "The config file changed."
|
|
52
|
+
},
|
|
53
|
+
"_notice": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"update": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": [
|
|
59
|
+
"current",
|
|
60
|
+
"latest",
|
|
61
|
+
"command",
|
|
62
|
+
"message"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"current": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"latest": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"command": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
74
|
+
},
|
|
75
|
+
"message": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"skill": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"required": [
|
|
83
|
+
"installed",
|
|
84
|
+
"current",
|
|
85
|
+
"command",
|
|
86
|
+
"message"
|
|
87
|
+
],
|
|
88
|
+
"properties": {
|
|
89
|
+
"installed": {
|
|
90
|
+
"anyOf": [
|
|
91
|
+
{
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "null"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"description": "The skill's version; null when it has none."
|
|
99
|
+
},
|
|
100
|
+
"current": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"command": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
106
|
+
},
|
|
107
|
+
"message": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"title": "sideby trust on|off --json"
|
|
117
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/trust-undo.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"action",
|
|
8
|
+
"applied",
|
|
9
|
+
"items"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schemaVersion": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"const": 1
|
|
15
|
+
},
|
|
16
|
+
"action": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "undo"
|
|
19
|
+
},
|
|
20
|
+
"applied": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "False when only shown (exit 10 when something would be taken back); true with --yes."
|
|
23
|
+
},
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": [
|
|
29
|
+
"id",
|
|
30
|
+
"account",
|
|
31
|
+
"path",
|
|
32
|
+
"from",
|
|
33
|
+
"at",
|
|
34
|
+
"status"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"id": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "The carry record; the Panel confirms only the ids it showed."
|
|
40
|
+
},
|
|
41
|
+
"account": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"path": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "The folder the mark is for."
|
|
47
|
+
},
|
|
48
|
+
"from": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "The account whose trust was copied."
|
|
51
|
+
},
|
|
52
|
+
"at": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "When it was copied (ISO time)."
|
|
55
|
+
},
|
|
56
|
+
"status": {
|
|
57
|
+
"anyOf": [
|
|
58
|
+
{
|
|
59
|
+
"type": "string",
|
|
60
|
+
"const": "undo"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "undone"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "string",
|
|
68
|
+
"const": "changed"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "string",
|
|
72
|
+
"const": "gone"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "string",
|
|
76
|
+
"const": "blocked"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "string",
|
|
80
|
+
"const": "busy"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"description": "`undo`: would be taken back; `undone`: taken back; `changed`: the mark changed since sideby wrote it, left alone; `gone`: the file is gone; `blocked`/`busy`: not changed (`why`), kept for another try."
|
|
84
|
+
},
|
|
85
|
+
"why": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"_notice": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"update": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": [
|
|
97
|
+
"current",
|
|
98
|
+
"latest",
|
|
99
|
+
"command",
|
|
100
|
+
"message"
|
|
101
|
+
],
|
|
102
|
+
"properties": {
|
|
103
|
+
"current": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"latest": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"command": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
112
|
+
},
|
|
113
|
+
"message": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"skill": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"required": [
|
|
121
|
+
"installed",
|
|
122
|
+
"current",
|
|
123
|
+
"command",
|
|
124
|
+
"message"
|
|
125
|
+
],
|
|
126
|
+
"properties": {
|
|
127
|
+
"installed": {
|
|
128
|
+
"anyOf": [
|
|
129
|
+
{
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "null"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"description": "The skill's version; null when it has none."
|
|
137
|
+
},
|
|
138
|
+
"current": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"command": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
144
|
+
},
|
|
145
|
+
"message": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"title": "sideby trust undo --json"
|
|
155
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/trust.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"action",
|
|
8
|
+
"on",
|
|
9
|
+
"carried"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schemaVersion": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"const": 1
|
|
15
|
+
},
|
|
16
|
+
"action": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "status"
|
|
19
|
+
},
|
|
20
|
+
"on": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Config `claude.carryTrust` (spec §3.43): before sideby starts an interactive Claude session, an account that does not trust the folder gets the trust another Claude account already gave it."
|
|
23
|
+
},
|
|
24
|
+
"carried": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": [
|
|
29
|
+
"account",
|
|
30
|
+
"path",
|
|
31
|
+
"from",
|
|
32
|
+
"at"
|
|
33
|
+
],
|
|
34
|
+
"properties": {
|
|
35
|
+
"account": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "The account that got the trust mark."
|
|
38
|
+
},
|
|
39
|
+
"path": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "The folder the mark is for, as sideby wrote it."
|
|
42
|
+
},
|
|
43
|
+
"from": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "The account whose trust was copied."
|
|
46
|
+
},
|
|
47
|
+
"at": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "When (ISO time)."
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"description": "The marks sideby copied and `sideby trust undo` can take back, oldest first."
|
|
54
|
+
},
|
|
55
|
+
"dir": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The folder asked about (its real path); only while on. Nothing is read while off."
|
|
58
|
+
},
|
|
59
|
+
"root": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": [
|
|
62
|
+
"kind"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"kind": {
|
|
66
|
+
"anyOf": [
|
|
67
|
+
{
|
|
68
|
+
"type": "string",
|
|
69
|
+
"const": "git"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "folder"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "string",
|
|
77
|
+
"const": "unclear"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"description": "`git`: trust is kept for the main checkout `path`; `folder`: the folder or a parent counts; `unclear`: sideby cannot tell from the files and copies nothing."
|
|
81
|
+
},
|
|
82
|
+
"path": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"why": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "With `unclear`: why."
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"description": "Where Claude Code looks trust up for the folder; only while on."
|
|
91
|
+
},
|
|
92
|
+
"accounts": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": [
|
|
97
|
+
"ref"
|
|
98
|
+
],
|
|
99
|
+
"properties": {
|
|
100
|
+
"ref": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"trusts": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"description": "Whether this account trusts the folder; absent when sideby cannot tell (`problem`)."
|
|
106
|
+
},
|
|
107
|
+
"problem": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"description": "Why its .claude.json cannot be read; names the path only."
|
|
110
|
+
},
|
|
111
|
+
"carryFrom": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"description": "Starting this account here copies the trust of this account."
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"description": "Each Claude account and its trust of the folder (booleans only); only while on."
|
|
118
|
+
},
|
|
119
|
+
"_notice": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"update": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"required": [
|
|
125
|
+
"current",
|
|
126
|
+
"latest",
|
|
127
|
+
"command",
|
|
128
|
+
"message"
|
|
129
|
+
],
|
|
130
|
+
"properties": {
|
|
131
|
+
"current": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
"latest": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"command": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
140
|
+
},
|
|
141
|
+
"message": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"skill": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"required": [
|
|
149
|
+
"installed",
|
|
150
|
+
"current",
|
|
151
|
+
"command",
|
|
152
|
+
"message"
|
|
153
|
+
],
|
|
154
|
+
"properties": {
|
|
155
|
+
"installed": {
|
|
156
|
+
"anyOf": [
|
|
157
|
+
{
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"type": "null"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"description": "The skill's version; null when it has none."
|
|
165
|
+
},
|
|
166
|
+
"current": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"command": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
172
|
+
},
|
|
173
|
+
"message": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"title": "sideby trust [--dir <path>] --json"
|
|
183
|
+
}
|
package/skills/sideby/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sideby
|
|
3
3
|
description: Use when the user runs, or wants to run, several AI coding accounts (Claude Code, Codex, Grok Build, pi) side by side. Covers installing sideby and setting up a new account ("install sideby", "set up another Claude account", "add cc008", "配置一个 cc00x", "再加一个 Codex 账号"), explaining what accounts share and what stays separate ("what do my accounts share?", "这些账号共享了什么"), showing which account a session is ("show [cc001] in the status line", "加上账号标识"), finding a past session of any account ("找一下我上周改登录页的那个会话"), telling another running session something, in any account ("告诉 cc002 ……", "给跑构建的那个会话发消息"; Claude Code's own SendMessage reaches only sessions of the same account), seeing accounts, quota and usage, moving on when one hits its 5-hour or weekly limit, moving the current task to another account ("用 cc008 继续", "交回 cc008"), adding a short command (alias) or a pick command that starts whichever account has the most quota ("加个 cc"), adding an API account from a vendor's docs ("加一个 DeepSeek API 账号"), supporting a new tool, and repairing drifted account directories (skills, hooks, rules or settings not shared, wrong symlinks, credential file permissions). Drives the `sideby` CLI with `--json`; the agent does every step except browser sign-in, filling in secrets and starting interactive sessions, which it hands to the user as one command (inside an Auto Handoff session, `sideby handoff ready --to` moves the task itself).
|
|
4
4
|
metadata:
|
|
5
|
-
version: "0.
|
|
5
|
+
version: "0.41.1"
|
|
6
6
|
requires:
|
|
7
7
|
bins: [sideby, node]
|
|
8
8
|
cliHelp: sideby --help
|
|
@@ -82,6 +82,7 @@ Account refs are `<family>:<name>`; a bare `<name>` works only when it is unique
|
|
|
82
82
|
| Stop Claude sessions from connecting to claude.ai / the Claude app by themselves ("关闭 remote control", "别让别人远程看到对话") for every account | `sideby remote-control --json`, then `sideby remote-control off` (exits 10 with the change; rerun with `--yes` after they agree); `sideby remote-control undo` puts it back; `sideby remote-control on` turns it back on the same way (only when they ask for it) | — |
|
|
83
83
|
| Let Claude sessions consult a stronger model at key moments, or fix `/advisor` not working ("/advisor 不能用", "Unknown command: /advisor", "/advisor isn't available in this environment", "让 Claude 请教更强的模型", "turn on the advisor", "用 Opus 当顾问") for every Claude subscription account | `sideby advisor --json`, then `sideby advisor opus` (or `fable`, `sonnet`, `off`; exits 10 with the change; rerun with `--yes` after they agree); `sideby advisor undo` puts it back; `sideby advisor unlock on\|off` only changes whether sessions sideby starts get `/advisor` | `references/panel.md` |
|
|
84
84
|
| A Claude API account's gateway rejects requests after an Advisor change, or why sideby adds `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` to API accounts ("API 账号网关报错了", "为什么 API 账号多了这个变量") | `sideby advisor --json` (`apiBetasOff`, each group's `apiAccounts`), `sideby config get claude.apiBetasOff --json`; `sideby advisor undo` or `sideby config set claude.apiBetasOff false` after they agree | `references/panel.md` |
|
|
85
|
+
| Claude asks "Is this a project you created or one you trust?" (Quick safety check, Accessing workspace) in one account although another of the user's Claude accounts already trusts the folder, or a handoff ended at that question ("别的账号已经信任过了还问", "每个账号都要点一次信任", "stop asking me to trust this folder in every account", "接力时卡在信任文件夹") | `sideby trust --json` (setting, and while on, `--dir <folder>` shows each account's trust as booleans), then `sideby trust on --json` (exits 10 with the change; rerun with `--yes` after they agree); `sideby trust undo` (exits 10 first) takes the copies back; `sideby trust off` keeps them | `references/trust.md` |
|
|
85
86
|
| Stop Claude and Codex when the network is wrong ("网络不对时别让 Claude 用", "代理断了就拦住", "only allow US and Japan", "开网络检查"), see where requests leave from now, or a session says it was blocked | `sideby network --json`, `sideby network check --json`, `sideby network allow <CC>... --json` and `sideby network on --json` (each exits 10 first; rerun with `--yes` after they agree) | `references/network.md` |
|
|
86
87
|
| Leave sessions running with nobody there ("挂机", "无人值守", "今晚自己跑完", "设个时间段别问我", "keep going while I sleep"), set a nightly Schedule, or see what was left for the user | `sideby unattended on [--until 08:00] --json` (run it yourself when they say they are leaving), `sideby unattended schedule preset weeknights --json`, `sideby unattended --json`, `sideby unattended pending --json`; inside a session refused a question: `sideby unattended defer "<one sentence>"` | `references/unattended.md` |
|
|
87
88
|
| How long a question waits before the session goes on without an answer ("问题没人回就自动按推荐继续", "问题等我 30 分钟", "别自动继续,一直等我", "how long does a question wait for me") | `sideby unattended wait --json` shows `answerWait`; `sideby unattended wait <1-120> --json` or `sideby unattended wait off --json` sets it. It acts only while Unattended Mode is on, and never answers "yes" | `references/unattended.md` |
|
|
@@ -9,7 +9,7 @@ sideby network --json # the setting and the newest result per address, f
|
|
|
9
9
|
sideby network check --json # ask every address now
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
Each `targets[]` row is one address sideby asks (`api.anthropic.com` for Claude, `chatgpt.com` for Codex
|
|
12
|
+
Each `targets[]` row is one address sideby asks (`api.anthropic.com` for Claude, `chatgpt.com` for Codex) with `status` (`ok`, `blocked`, `unknown`, `not-checked`), `loc` (the country) and the `accounts` checked there. `accounts[].skip` says why an account is not checked: `api` (API accounts are never checked) or `third-party` (an endpoint set to a third party).
|
|
13
13
|
|
|
14
14
|
## Turn it on
|
|
15
15
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Folder trust: stop Claude asking again in another account
|
|
2
|
+
|
|
3
|
+
Carried trust (spec §3.43, ADR-0078). Claude Code asks "Is this a project you created or one you trust?" (the *Quick safety check* on the *Accessing workspace* screen) in every account that has not trusted a folder yet, and keeps the answer per account in that account's `.claude.json`. When sideby starts another account in the same folder (`sideby run`, a short command, a pick command, `sideby next`, an Auto Handoff hop, an AI Task), that account asks again, and the question's default, "No, exit", ends the session when the user presses Enter: an Auto Handoff stops there. Claude Code has no launch option or setting that answers it.
|
|
4
|
+
|
|
5
|
+
With config `claude.carryTrust` on, before sideby starts an interactive Claude session, an account that does not trust the folder gets the trust another of the user's Claude accounts already gave it: sideby copies that one mark into the account's `.claude.json`. It only reuses trust the user gave; a folder no account trusted still asks.
|
|
6
|
+
|
|
7
|
+
## See it, turn it on or off
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
sideby trust --json # { on, carried[] }; while off nothing of .claude.json is read
|
|
11
|
+
sideby trust --dir ~/code/app --json # while on: root, and each account's trusts (booleans), carryFrom
|
|
12
|
+
sideby trust on --json # exit 10: the change; run again with --yes after the user agrees
|
|
13
|
+
sideby trust off --yes --json # keeps what was already copied
|
|
14
|
+
sideby trust undo --json # exit 10: what would be taken back; --yes takes it back
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Before turning it on, tell the user in one line each:
|
|
18
|
+
- It copies only trust they already gave in another Claude account, and only the same folder key: in a git repository the main checkout's trust (a linked worktree uses it), elsewhere the folder's or a parent folder's (never the home folder or `/`). Where sideby cannot tell from the files (a submodule, a separate git folder), it copies nothing, and it never runs git in the folder.
|
|
19
|
+
- It writes one field, `projects["<folder>"].hasTrustDialogAccepted`, into the account's `.claude.json` (for the main account that file is `~/.claude.json`), and prints one line each time, such as `sideby: claude:work now trusts ~/code/app, as claude:main does (claude.carryTrust; undo: sideby trust undo)`.
|
|
20
|
+
- Sessions started with plain `claude`, a headless run (`-p`) and `sideby login` copy nothing.
|
|
21
|
+
- Turning it off does not remove what was copied; `sideby trust undo` does, each only while it still holds what sideby wrote.
|
|
22
|
+
- In the Panel it is **Settings › Folder trust**.
|
|
23
|
+
|
|
24
|
+
Never show other entries of a `.claude.json`: it holds the login. `sideby trust --json` gives only booleans for the folder asked about.
|
|
25
|
+
|
|
26
|
+
## When a copy was skipped
|
|
27
|
+
|
|
28
|
+
A launch line that starts `sideby: claude:work was not given claude:main's trust of …` names why (the file is a link, is not valid JSON, changed while sideby wrote it, or the account has not been started yet, so it has no `.claude.json`). Claude Code then asks as before. Read the reason to the user; a file that changed is usually fine on the next start.
|