@shigar/muaz 0.1.0 → 0.3.0
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 +100 -81
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -63,12 +63,13 @@ read-only defaults under `builtins/`:
|
|
|
63
63
|
|
|
64
64
|
```
|
|
65
65
|
~/.muaz/
|
|
66
|
-
├── config.yaml # global settings (default agent
|
|
67
|
-
├──
|
|
66
|
+
├── config.yaml # global settings (default agent, tool access, web tools, telemetry)
|
|
67
|
+
├── models.yaml # provider profiles + global default + per-agent bindings (one file)
|
|
68
68
|
├── plugins.yaml # per-plugin state (enabled / priority / trusted / source)
|
|
69
69
|
├── mcp.json # global MCP server registry
|
|
70
|
+
├── secrets.json # chmod-600 API-key store (only when no OS keychain is available)
|
|
70
71
|
├── builtins/
|
|
71
|
-
│ └──
|
|
72
|
+
│ └── preset/ # embedded read-only `starter` agent + preset pipelines (refreshed each start)
|
|
72
73
|
├── plugins/
|
|
73
74
|
│ ├── local/ # YOUR workspace
|
|
74
75
|
│ │ ├── agents/ # agents you create
|
|
@@ -76,11 +77,12 @@ read-only defaults under `builtins/`:
|
|
|
76
77
|
│ │ ├── pipelines/ # multi-agent pipeline definitions
|
|
77
78
|
│ │ ├── prompts/
|
|
78
79
|
│ │ └── commands/ # custom slash commands
|
|
79
|
-
│ ├──
|
|
80
|
+
│ ├── auto-sde/ # seeded example plugin (editable; its agent is `coding`)
|
|
80
81
|
│ └── <installed>/ # plugins you install
|
|
81
82
|
├── sessions/ # saved sessions + index.json
|
|
82
|
-
├──
|
|
83
|
-
|
|
83
|
+
├── memory/ # per-agent cross-session notebooks (<agent>.md)
|
|
84
|
+
├── audit/ # append-only security audit log (audit.jsonl)
|
|
85
|
+
└── runtimes/ # on-demand Node.js / uv runtimes for MCP servers
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
## Configuration
|
|
@@ -91,48 +93,69 @@ read-only defaults under `builtins/`:
|
|
|
91
93
|
# The agent used when no --agent flag is passed
|
|
92
94
|
default_agent: starter
|
|
93
95
|
|
|
94
|
-
# Provider/model selection
|
|
95
|
-
# agent_providers overrides specific agents. See "Providers" below.
|
|
96
|
-
default_provider: gemini-main
|
|
97
|
-
agent_providers:
|
|
98
|
-
coding:
|
|
99
|
-
profile: bedrock-work
|
|
96
|
+
# Provider/model selection lives in models.yaml (see below), not here.
|
|
100
97
|
|
|
101
98
|
# Override the remote plugin registry index (else $MUAZ_PLUGIN_REGISTRY, else default)
|
|
102
99
|
# plugin_registry: "https://example.com/muaz-plugins/index.json"
|
|
103
100
|
|
|
104
|
-
# Global tool
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
101
|
+
# Global tool access — one level per tool (off | ask | auto). Per-agent `tools:`
|
|
102
|
+
# blocks override these; `blocked` forces a tool Off everywhere.
|
|
103
|
+
tools:
|
|
104
|
+
default: ask
|
|
105
|
+
built_in:
|
|
106
|
+
read_file: auto
|
|
107
|
+
list_dir: auto
|
|
108
|
+
search: auto
|
|
109
|
+
edit_file: ask
|
|
110
|
+
write_file: ask
|
|
111
|
+
patch_file: ask
|
|
112
|
+
shell: ask
|
|
113
|
+
fetch_webpage: ask
|
|
114
|
+
web_search: ask
|
|
115
|
+
blocked: []
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Models (`~/.muaz/models.yaml`)
|
|
119
|
+
|
|
120
|
+
Everything about model routing lives in one file: named connection `profiles`, the
|
|
121
|
+
global `default`, and per-agent `agents` overrides. Agents are provider-agnostic,
|
|
122
|
+
so this is the single place models are chosen. It is re-read on every resolution,
|
|
123
|
+
so edits take effect without a restart.
|
|
120
124
|
|
|
121
125
|
```yaml
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
bedrock-work:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
profiles:
|
|
127
|
+
gemini-main:
|
|
128
|
+
type: gemini
|
|
129
|
+
default_model: gemini-2.5-pro
|
|
130
|
+
api_key: ${GEMINI_API_KEY}
|
|
131
|
+
bedrock-work:
|
|
132
|
+
type: bedrock
|
|
133
|
+
region: us-east-1
|
|
134
|
+
default_model: anthropic.claude-3-5-sonnet-20241022-v2:0
|
|
135
|
+
profile: work
|
|
136
|
+
|
|
137
|
+
# Global default: every agent that isn't bound below uses this profile.
|
|
138
|
+
default: gemini-main
|
|
139
|
+
|
|
140
|
+
# Per-agent overrides (agent name, or @plugin/agent), with an optional model swap.
|
|
141
|
+
agents:
|
|
142
|
+
coding:
|
|
143
|
+
profile: bedrock-work
|
|
132
144
|
```
|
|
133
145
|
|
|
134
|
-
Effective provider for an agent resolves as: per-agent
|
|
135
|
-
|
|
146
|
+
Effective provider for an agent resolves as: per-agent binding under `agents:` →
|
|
147
|
+
the global `default:` → error. Manage it with `muaz models list/set/default/bind`
|
|
148
|
+
or by editing the file.
|
|
149
|
+
|
|
150
|
+
Keep the `api_key: ${OPENAI_API_KEY}` reference and store the actual key with muaz
|
|
151
|
+
instead of exporting it: run `muaz auth [profile]` (hidden input) — or `/auth
|
|
152
|
+
[profile]` inside a chat session — or use the browser UI's **Providers** page.
|
|
153
|
+
Use `muaz auth` for the first-run case: when a profile's key is unset the REPL
|
|
154
|
+
can't start (provider resolution fails on the missing `${VAR}`), so authenticate
|
|
155
|
+
from the CLI first. Keys go to your OS keychain (chmod-600 `~/.muaz/secrets.json`
|
|
156
|
+
fallback); `${VAR}` resolves from the store first, then the environment. If a
|
|
157
|
+
turn fails auth (401/403), the REPL prints a `/auth` hint and the UI shows an
|
|
158
|
+
inline "set your API key" banner.
|
|
136
159
|
|
|
137
160
|
### MCP registry (`~/.muaz/mcp.json`)
|
|
138
161
|
|
|
@@ -159,12 +182,8 @@ MCP server definitions live in their own JSON file. Use `muaz mcp install` to ma
|
|
|
159
182
|
name: coding
|
|
160
183
|
description: "An expert coding assistant"
|
|
161
184
|
|
|
162
|
-
#
|
|
163
|
-
#
|
|
164
|
-
# provider:
|
|
165
|
-
# type: openai-compatible
|
|
166
|
-
# model: gpt-4o
|
|
167
|
-
# api_key: "${OPENAI_API_KEY}" # ${ENV_VAR} interpolation supported
|
|
185
|
+
# No provider/model here — agents are provider-agnostic. The model is chosen in
|
|
186
|
+
# ~/.muaz/models.yaml (global `default` plus optional per-agent overrides).
|
|
168
187
|
|
|
169
188
|
# system_prompt: path (~/…, /…, ./…, ../…) OR inline text. Co-locate and use a
|
|
170
189
|
# relative path so the agent is portable across namespaces.
|
|
@@ -196,39 +215,38 @@ compaction_summary_prompt: ~
|
|
|
196
215
|
# allow: [] # allowlist by name
|
|
197
216
|
# deny: [] # denylist by name
|
|
198
217
|
|
|
199
|
-
#
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
#
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
**Resolution order:** session-approved → agent auto_approve → agent auto_deny → global auto_approve → global auto_deny → interactive prompt.
|
|
218
|
+
# Hard local-egress lock: `none` strips web tools + drops HTTP MCP (default: full)
|
|
219
|
+
network: full
|
|
220
|
+
|
|
221
|
+
# Tool access: one level per tool (off | ask | auto). Overrides the global
|
|
222
|
+
# config.yaml `tools:` defaults; the most specific setting wins. Setting a tool
|
|
223
|
+
# `off` removes it from the agent's toolset.
|
|
224
|
+
tools:
|
|
225
|
+
default: ask
|
|
226
|
+
built_in:
|
|
227
|
+
edit_file: ask
|
|
228
|
+
fetch_webpage: auto
|
|
229
|
+
shell: # stay at ask, but auto-approve read-only git/cargo
|
|
230
|
+
level: ask
|
|
231
|
+
allow_when:
|
|
232
|
+
- "program=git"
|
|
233
|
+
- "program=cargo"
|
|
234
|
+
# MCP servers are opt-in: an agent attaches one by listing it here.
|
|
235
|
+
servers:
|
|
236
|
+
filesystem:
|
|
237
|
+
default: ask
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Access levels:** `off` (removed from the toolset), `ask` (every call prompts),
|
|
241
|
+
`auto` (runs without prompting). A tool value is a bare level or
|
|
242
|
+
`{ level, allow_when }`, where `allow_when` auto-approves specific calls:
|
|
243
|
+
`program=NAME` (first shell token), `dir=PATH` (path containment), or a glob over
|
|
244
|
+
the primary argument.
|
|
245
|
+
|
|
246
|
+
**Resolution order (most specific wins):** global `tools.blocked` → agent per-tool
|
|
247
|
+
→ agent per-server default → agent `tools.default` → global `tools.built_in.<tool>`
|
|
248
|
+
→ global `tools.default`. A session grant or a matching `allow_when` lets an
|
|
249
|
+
otherwise-`ask` call through without re-prompting.
|
|
232
250
|
|
|
233
251
|
At the interactive prompt:
|
|
234
252
|
- `a` — approve once
|
|
@@ -419,8 +437,9 @@ Options (install):
|
|
|
419
437
|
--force Overwrite an existing plugin with the same id
|
|
420
438
|
```
|
|
421
439
|
|
|
422
|
-
|
|
423
|
-
`
|
|
440
|
+
Manage provider profiles and bindings with `muaz models`
|
|
441
|
+
(`list`/`set`/`set-model`/`default`/`bind`/`unbind`/`remove`), by editing
|
|
442
|
+
`~/.muaz/models.yaml` directly, or from the browser UI's Providers + Agents pages.
|
|
424
443
|
|
|
425
444
|
### `muaz config`
|
|
426
445
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"hasInstallScript": true,
|
|
20
20
|
"name": "@shigar/muaz",
|
|
21
|
-
"version": "0.
|
|
21
|
+
"version": "0.3.0"
|
|
22
22
|
},
|
|
23
23
|
"node_modules/detect-libc": {
|
|
24
24
|
"engines": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"requires": true,
|
|
50
|
-
"version": "0.
|
|
50
|
+
"version": "0.3.0"
|
|
51
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"artifactDownloadUrls": [
|
|
3
|
-
"https://github.com/shigar-dev/releases-muaz/releases/download/v0.
|
|
3
|
+
"https://github.com/shigar-dev/releases-muaz/releases/download/v0.3.0"
|
|
4
4
|
],
|
|
5
5
|
"author": "shigar ltd",
|
|
6
6
|
"bin": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"zipExt": ".tar.xz"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
"version": "0.
|
|
84
|
+
"version": "0.3.0",
|
|
85
85
|
"volta": {
|
|
86
86
|
"node": "18.14.1",
|
|
87
87
|
"npm": "9.5.0"
|