@dhzh/foundry 7.0.1 → 7.1.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/README.md +129 -15
- package/dist/index.mjs +10 -4
- package/dist/skills/foundry/SKILL.md +208 -23
- package/dist/skills/foundry/references/agents.md +280 -0
- package/dist/skills/foundry/references/backups.md +154 -23
- package/dist/skills/foundry/references/instructions.md +323 -0
- package/dist/skills/foundry/references/settings.md +165 -34
- package/dist/web/assets/editor.worker-Bb1ubXEX.js +45 -0
- package/dist/web/assets/index-CNmsVI3u.js +139 -0
- package/dist/web/assets/index-D9JJZBZM.css +1 -0
- package/dist/web/assets/markdown-BFxVWTOG.js +1 -0
- package/dist/web/assets/markdown-editor-Bvs7b6w5.js +1120 -0
- package/dist/web/assets/markdown-editor-DMeNDIaI.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +2 -1
- package/dist/web/assets/index-CQ9xJtJX.css +0 -1
- package/dist/web/assets/index-CjheEBIG.js +0 -70
|
@@ -1,62 +1,193 @@
|
|
|
1
1
|
# Settings
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
value with `foundry settings get <key>`. The full CLI result is a flat JSON object
|
|
5
|
-
with the four editable keys below and read-only `config-folder`; it is not a raw
|
|
6
|
-
dump of `settings.json`. A single key returns a JSON string.
|
|
3
|
+
## Overview
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
Foundry settings control the appearance and regional behavior of the Web UI,
|
|
6
|
+
and expose the location of Foundry's runtime data. The CLI exposes four
|
|
7
|
+
editable preference keys plus a read-only configuration-folder key:
|
|
8
|
+
|
|
9
|
+
| Key | Meaning |
|
|
9
10
|
| --- | --- |
|
|
10
|
-
| `color-theme` |
|
|
11
|
-
| `language` |
|
|
12
|
-
| `time-zone` |
|
|
13
|
-
| `time-format` |
|
|
14
|
-
| `config-folder` | Read-only absolute path to
|
|
11
|
+
| `color-theme` | Web UI color theme |
|
|
12
|
+
| `language` | Web UI language |
|
|
13
|
+
| `time-zone` | Time zone used by the Web UI |
|
|
14
|
+
| `time-format` | Date/time display pattern |
|
|
15
|
+
| `config-folder` | Read-only absolute path to Foundry's data folder |
|
|
16
|
+
|
|
17
|
+
The CLI view is not a raw dump of `settings.json`. The file also contains
|
|
18
|
+
normalized backend feature settings that the four-key CLI interface does not
|
|
19
|
+
expose.
|
|
20
|
+
|
|
21
|
+
Use this reference for preference changes, opening the data folder, and
|
|
22
|
+
installing the Foundry Skill. Use [Encrypted backups](backups.md) for export and
|
|
23
|
+
import.
|
|
24
|
+
|
|
25
|
+
## When to use
|
|
15
26
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
Use `foundry settings` when the user asks to:
|
|
28
|
+
|
|
29
|
+
- Read the current theme, language, time zone, or time format.
|
|
30
|
+
- Change one of those preferences.
|
|
31
|
+
- Find or open Foundry's configuration/data folder.
|
|
32
|
+
- Install or refresh this Skill for other agents.
|
|
33
|
+
|
|
34
|
+
Do not edit `settings.json` directly. Unknown or partial objects are normalized
|
|
35
|
+
to defaults, and direct writes bypass the CLI's validation and Web UI
|
|
36
|
+
notification path.
|
|
37
|
+
|
|
38
|
+
## Read settings
|
|
39
|
+
|
|
40
|
+
Read all exposed settings:
|
|
21
41
|
|
|
22
42
|
```bash
|
|
23
43
|
foundry settings get
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The result is a flat JSON object:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"color-theme": "system",
|
|
51
|
+
"language": "system",
|
|
52
|
+
"time-zone": "America/Los_Angeles",
|
|
53
|
+
"time-format": "YYYY-MM-DD HH:mm:ss",
|
|
54
|
+
"config-folder": "/home/alice/.foundry"
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Read one value:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
24
61
|
foundry settings get color-theme
|
|
62
|
+
foundry settings get config-folder
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
A single key returns a JSON string, for example `"system"` or
|
|
66
|
+
`"/home/alice/.foundry"`.
|
|
67
|
+
|
|
68
|
+
## Change settings
|
|
69
|
+
|
|
70
|
+
Apply exactly one change at a time:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
foundry settings set <key> <value>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
```bash
|
|
25
77
|
foundry settings set color-theme dark
|
|
26
78
|
foundry settings set language zh-CN
|
|
27
79
|
foundry settings set time-zone Asia/Shanghai
|
|
28
80
|
foundry settings set time-format "YYYY-MM-DD HH:mm:ss"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Quote values containing spaces. The response is:
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{ "key": "color-theme", "value": "dark" }
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Allowed values
|
|
90
|
+
|
|
91
|
+
| Key | Allowed values |
|
|
92
|
+
| --- | --- |
|
|
93
|
+
| `color-theme` | `system`, `light`, `dark` |
|
|
94
|
+
| `language` | `system`, `en-US`, `zh-CN`, `zh-TW`, `ja-JP` |
|
|
95
|
+
| `time-zone` | `America/Los_Angeles`, `America/New_York`, `Asia/Shanghai`, `Asia/Taipei`, `Asia/Tokyo`, `UTC` |
|
|
96
|
+
| `time-format` | `YYYY-MM-DD HH:mm:ss`, `YYYY-MM-DD`, `YYYY/MM/DD HH:mm:ss`, `DD/MM/YYYY HH:mm:ss`, `MM/DD/YYYY hh:mm:ss A`, `HH:mm:ss` |
|
|
97
|
+
|
|
98
|
+
`system` language uses the operating system locale with an `en-US` fallback.
|
|
99
|
+
`system` theme follows the operating system appearance. Run
|
|
100
|
+
`foundry settings set --help` to confirm the installed version's values.
|
|
101
|
+
|
|
102
|
+
### Validation and errors
|
|
103
|
+
|
|
104
|
+
| Symptom | Code | Cause |
|
|
105
|
+
| --- | --- | --- |
|
|
106
|
+
| Unknown key on read | `UNKNOWN_SETTING` | Key is not one of the exposed keys |
|
|
107
|
+
| Unknown or non-editable key on write | `UNKNOWN_SETTING` / `READ_ONLY_SETTING` | Key is unknown or is `config-folder` |
|
|
108
|
+
| Invalid value | `INVALID_SETTINGS_INPUT` | Value is outside the allowed table |
|
|
109
|
+
|
|
110
|
+
Invalid writes do not change stored settings. The error message lists the
|
|
111
|
+
allowed values.
|
|
112
|
+
|
|
113
|
+
## Configuration folder
|
|
114
|
+
|
|
115
|
+
Read the path:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
29
118
|
foundry settings get config-folder
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Open it with the operating system:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
30
124
|
foundry settings config-folder open
|
|
31
125
|
```
|
|
32
126
|
|
|
127
|
+
The command prints `{ "configFolder": "<absolute path>" }`. The folder is
|
|
128
|
+
`<home>/.foundry`; it contains settings, instructions, agent profiles, and
|
|
129
|
+
retained backend collections. `config-folder` is read-only and cannot be set.
|
|
130
|
+
|
|
131
|
+
## Web UI synchronization
|
|
132
|
+
|
|
33
133
|
Running Web clients receive settings changes automatically, including changes
|
|
34
|
-
|
|
134
|
+
made by another CLI process. There is no Save button or manual refresh step.
|
|
135
|
+
After `foundry settings set`, the open Web UI updates through its settings
|
|
136
|
+
subscription.
|
|
35
137
|
|
|
36
|
-
|
|
138
|
+
Settings deep links:
|
|
139
|
+
|
|
140
|
+
| Panel | URL |
|
|
141
|
+
| --- | --- |
|
|
142
|
+
| Appearance | `#/settings?panel=appearance` |
|
|
143
|
+
| Language and region | `#/settings?panel=language-region` |
|
|
144
|
+
| Advanced | `#/settings?panel=advanced` |
|
|
37
145
|
|
|
38
|
-
|
|
39
|
-
[
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
settings, and is not limited to the four get/set fields.
|
|
146
|
+
Omitted or invalid panels show Appearance. The application root opens
|
|
147
|
+
Dashboard. Settings and [Instructions](instructions.md) are the implemented Web
|
|
148
|
+
features; other main navigation pages remain placeholders. The Settings
|
|
149
|
+
full-screen back button returns one browser history entry.
|
|
43
150
|
|
|
44
|
-
## Install this
|
|
151
|
+
## Install this Skill
|
|
45
152
|
|
|
46
153
|
```bash
|
|
47
154
|
foundry settings download-skill --target .agents,.claude
|
|
48
155
|
```
|
|
49
156
|
|
|
50
|
-
Select `.agents`, `.claude`, or both as a comma-separated list.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
157
|
+
Select `.agents`, `.claude`, or both as a comma-separated list. Paths are fixed
|
|
158
|
+
user-level targets:
|
|
159
|
+
|
|
160
|
+
| Target | Destination |
|
|
161
|
+
| --- | --- |
|
|
162
|
+
| `.agents` | `<home>/.agents/skills/foundry` |
|
|
163
|
+
| `.claude` | `<home>/.claude/skills/foundry` |
|
|
164
|
+
|
|
165
|
+
Existing copies at selected targets are replaced. Unselected targets are left
|
|
166
|
+
alone. The result lists each selected target and its absolute destination:
|
|
167
|
+
|
|
168
|
+
```json
|
|
169
|
+
{
|
|
170
|
+
"installed": [
|
|
171
|
+
{
|
|
172
|
+
"target": "agents",
|
|
173
|
+
"destination": "/home/alice/.agents/skills/foundry"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Invalid targets fail with `INVALID_SKILL_INPUT`. A missing bundled Skill fails
|
|
180
|
+
with `SKILL_NOT_FOUND`; filesystem failures use `SKILL_COPY_FAILED`.
|
|
181
|
+
|
|
182
|
+
## Export and import
|
|
183
|
+
|
|
184
|
+
Encrypted backups and destructive replacement import use the same settings
|
|
185
|
+
pipeline but have separate safety rules. Read
|
|
186
|
+
[Encrypted backups](backups.md) before running `foundry settings export` or
|
|
187
|
+
`foundry settings import`.
|
|
54
188
|
|
|
55
|
-
##
|
|
189
|
+
## Related
|
|
56
190
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
the application root opens Dashboard. The main navigation contains placeholder
|
|
61
|
-
pages, while Settings is the implemented Web feature. Its full-screen back button
|
|
62
|
-
returns one browser history entry.
|
|
191
|
+
- [Instructions](instructions.md): create and list instruction records.
|
|
192
|
+
- [Agents](agents.md): assign and apply instructions.
|
|
193
|
+
- [Encrypted backups](backups.md): export/import scope and safety.
|