@shigar/muaz 0.3.0 → 0.4.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 +116 -53
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,10 +32,8 @@ the installer.
|
|
|
32
32
|
npm install -g @shigar/muaz
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
**From source**
|
|
35
|
+
**From source** (from a checkout of this repository)
|
|
36
36
|
```bash
|
|
37
|
-
git clone https://github.com/shigar-dev/muaz
|
|
38
|
-
cd muaz
|
|
39
37
|
cargo build --release -p muaz
|
|
40
38
|
cp target/release/muaz ~/.local/bin/ # or anywhere on $PATH
|
|
41
39
|
```
|
|
@@ -48,7 +46,7 @@ On first run, `muaz` bootstraps `~/.muaz/` with sensible defaults.
|
|
|
48
46
|
export OPENAI_API_KEY=sk-...
|
|
49
47
|
|
|
50
48
|
muaz chat # open the default (starter) agent
|
|
51
|
-
muaz chat --agent
|
|
49
|
+
muaz chat --agent starter # pick an agent explicitly
|
|
52
50
|
muaz chat --incognito # don't save the session to disk
|
|
53
51
|
muaz chat --session <id> # resume a previous session
|
|
54
52
|
```
|
|
@@ -77,10 +75,9 @@ read-only defaults under `builtins/`:
|
|
|
77
75
|
│ │ ├── pipelines/ # multi-agent pipeline definitions
|
|
78
76
|
│ │ ├── prompts/
|
|
79
77
|
│ │ └── commands/ # custom slash commands
|
|
80
|
-
│
|
|
81
|
-
│ └── <installed>/ # plugins you install
|
|
78
|
+
│ └── <installed>/ # plugins you install (e.g. auto-sde, the `coding` agent)
|
|
82
79
|
├── sessions/ # saved sessions + index.json
|
|
83
|
-
├── memory/ #
|
|
80
|
+
├── memory/ # cross-session notebooks: global.md, agents/, projects/
|
|
84
81
|
├── audit/ # append-only security audit log (audit.jsonl)
|
|
85
82
|
└── runtimes/ # on-demand Node.js / uv runtimes for MCP servers
|
|
86
83
|
```
|
|
@@ -95,8 +92,16 @@ default_agent: starter
|
|
|
95
92
|
|
|
96
93
|
# Provider/model selection lives in models.yaml (see below), not here.
|
|
97
94
|
|
|
98
|
-
#
|
|
99
|
-
#
|
|
95
|
+
# Plugin registries for `muaz plugins install <name>` / `search`, consulted in
|
|
96
|
+
# order (first hit wins). Omit the block to use the official muaz registry.
|
|
97
|
+
# Each registry carries its OWN signing keys, so an internal one is trusted for
|
|
98
|
+
# its own plugins only.
|
|
99
|
+
# plugin_registries:
|
|
100
|
+
# - name: acme-internal
|
|
101
|
+
# index_url: "https://plugins.acme.internal/index.json"
|
|
102
|
+
# trusted_keys: ["RW<your minisign public key>"]
|
|
103
|
+
# require_signed: true # an invalid signature is always fatal
|
|
104
|
+
# # allow_plaintext: true # only for an http:// intranet host you control
|
|
100
105
|
|
|
101
106
|
# Global tool access — one level per tool (off | ask | auto). Per-agent `tools:`
|
|
102
107
|
# blocks override these; `blocked` forces a tool Off everywhere.
|
|
@@ -313,14 +318,19 @@ Commands:
|
|
|
313
318
|
agents Manage agents
|
|
314
319
|
skills Manage Agent Skills
|
|
315
320
|
plugins Install and manage plugins (agents, skills, pipelines, prompts)
|
|
321
|
+
models Provider profiles, the global default, and per-agent bindings
|
|
322
|
+
auth Store a provider profile's API key securely (hidden prompt)
|
|
316
323
|
config View and edit global configuration
|
|
317
324
|
mcp Manage MCP server registrations
|
|
318
325
|
runtime Manage bundled MCP runtimes (Node.js, uv)
|
|
326
|
+
audit Inspect the append-only security audit log
|
|
319
327
|
gateway Start the web server with browser UI
|
|
320
328
|
doctor Diagnose config, runtimes, and MCP server health
|
|
321
329
|
```
|
|
322
330
|
|
|
323
|
-
Running bare `muaz` (no subcommand) starts
|
|
331
|
+
Running bare `muaz` (no subcommand) starts the gateway on `127.0.0.1:7878` and
|
|
332
|
+
opens the browser UI — the primary surface. Over SSH or without a tty it prints
|
|
333
|
+
the URL instead. `muaz chat` is the terminal surface.
|
|
324
334
|
|
|
325
335
|
### `muaz chat`
|
|
326
336
|
|
|
@@ -418,7 +428,7 @@ Commands:
|
|
|
418
428
|
|
|
419
429
|
### `muaz plugins`
|
|
420
430
|
|
|
421
|
-
Install and manage [plugins](https://shigar.
|
|
431
|
+
Install and manage [plugins](https://shigar.dev/muaz/docs/concepts/plugins/) —
|
|
422
432
|
bundles of agents, skills, pipelines, and prompts.
|
|
423
433
|
|
|
424
434
|
```
|
|
@@ -426,17 +436,40 @@ muaz plugins <COMMAND>
|
|
|
426
436
|
|
|
427
437
|
Commands:
|
|
428
438
|
install <target> Install from a local .zip path, or by registry name (name@version)
|
|
429
|
-
search <query> Search the
|
|
439
|
+
search <query> Search the configured registries
|
|
440
|
+
update [id] Apply available updates (--check to only report them)
|
|
430
441
|
list List installed plugins (enabled/disabled, trusted) + built-ins
|
|
431
442
|
show <id> Show a plugin's manifest and contents
|
|
432
443
|
enable <id> Enable a disabled plugin
|
|
433
444
|
disable <id> Disable a plugin without uninstalling it
|
|
445
|
+
trust <id> Honour its skill tool pre-approvals and run its hooks
|
|
446
|
+
untrust <id> Revoke that, without uninstalling
|
|
434
447
|
uninstall <id> Uninstall a plugin (deletes its directory)
|
|
435
448
|
|
|
449
|
+
Authoring:
|
|
450
|
+
pack <dir> Build the reproducible .zip a registry publishes (--json for CI)
|
|
451
|
+
verify <zip> Check a .zip the way an install will: sha256, manifest, signature
|
|
452
|
+
|
|
453
|
+
Registries:
|
|
454
|
+
registries What muaz has recorded per registry (index serial, signing)
|
|
455
|
+
forget-registry <name>
|
|
456
|
+
Reset that record, so a lower serial is accepted again
|
|
457
|
+
|
|
436
458
|
Options (install):
|
|
437
459
|
--force Overwrite an existing plugin with the same id
|
|
460
|
+
--registry <name> Install only from this configured registry
|
|
461
|
+
--allow-unsigned Take a plugin the registry serves unsigned (CLI only —
|
|
462
|
+
the browser UI never offers it)
|
|
438
463
|
```
|
|
439
464
|
|
|
465
|
+
A plugin from a registry is verified against **that registry's** trusted keys.
|
|
466
|
+
An unsigned one is refused under the default `require_signed: true`, and an
|
|
467
|
+
invalid signature is always fatal — `--allow-unsigned` says "unsigned is
|
|
468
|
+
acceptable here", never "forgeries are". Updates are re-fetched only from the
|
|
469
|
+
registry a plugin was installed from, and trust does not survive an update that
|
|
470
|
+
adds capabilities: the digest recorded when you trusted it is re-checked, and a
|
|
471
|
+
mismatch revokes trust rather than running the new `post_update` hook.
|
|
472
|
+
|
|
440
473
|
Manage provider profiles and bindings with `muaz models`
|
|
441
474
|
(`list`/`set`/`set-model`/`default`/`bind`/`unbind`/`remove`), by editing
|
|
442
475
|
`~/.muaz/models.yaml` directly, or from the browser UI's Providers + Agents pages.
|
|
@@ -482,6 +515,21 @@ Commands:
|
|
|
482
515
|
clean Remove all downloaded runtimes
|
|
483
516
|
```
|
|
484
517
|
|
|
518
|
+
### `muaz audit`
|
|
519
|
+
|
|
520
|
+
The append-only security log at `~/.muaz/audit/audit.jsonl` (chmod 600): tool
|
|
521
|
+
executions, secret changes, plugin/config/connector changes, plugin hook runs,
|
|
522
|
+
and gateway auth failures. It records *what happened*, never values — tool
|
|
523
|
+
arguments are stored as a SHA-256 hash and secret events carry only the name.
|
|
524
|
+
|
|
525
|
+
```
|
|
526
|
+
muaz audit <COMMAND>
|
|
527
|
+
|
|
528
|
+
Commands:
|
|
529
|
+
tail [--count N] [--json] Show the most recent events
|
|
530
|
+
export Print the whole log (raw JSON Lines) to stdout
|
|
531
|
+
```
|
|
532
|
+
|
|
485
533
|
## Slash commands
|
|
486
534
|
|
|
487
535
|
| Command | Description |
|
|
@@ -497,13 +545,15 @@ Commands:
|
|
|
497
545
|
| `/pipelines` | List pipelines in your local workspace |
|
|
498
546
|
| `/skills` | List available Agent Skills |
|
|
499
547
|
| `/skill <name>` | Show the body of a skill's SKILL.md |
|
|
548
|
+
| `/auth [profile]` | Store a provider profile's API key (hidden input) |
|
|
500
549
|
| `/incognito` | Toggle incognito mode (session not saved) |
|
|
501
550
|
| `/compact` | Summarize and compact conversation history now |
|
|
502
551
|
| `/usage` | Show token and latency stats for this session |
|
|
503
552
|
| `/clear` | Start a fresh session (old transcript stays saved) |
|
|
504
553
|
| `/exit` | Exit muaz |
|
|
505
554
|
|
|
506
|
-
Custom commands defined in `~/.muaz/commands/<name>.yaml` also
|
|
555
|
+
Custom commands defined in `~/.muaz/plugins/local/commands/<name>.yaml` also
|
|
556
|
+
appear in `/help`.
|
|
507
557
|
|
|
508
558
|
## Built-in tools
|
|
509
559
|
|
|
@@ -569,62 +619,75 @@ From within the REPL:
|
|
|
569
619
|
|
|
570
620
|
## Pipelines
|
|
571
621
|
|
|
572
|
-
Pipelines wire multiple agents together for complex workflows. Define them as YAML files in `~/.muaz/plugins/local/pipelines
|
|
622
|
+
Pipelines wire multiple agents together for complex workflows. Define them as YAML files in `~/.muaz/plugins/local/pipelines/`, then run them with `/run <name> [input]` in the REPL or `muaz pipeline run <name> [input]` from the shell.
|
|
623
|
+
|
|
624
|
+
A pipeline is a single ordered list of **`steps`**. There is no `pattern` field — sequential, parallel, and router flows are all expressed with steps.
|
|
573
625
|
|
|
574
|
-
### Sequential
|
|
626
|
+
### Sequential
|
|
575
627
|
|
|
576
|
-
Each
|
|
628
|
+
Each step names itself, so later steps can read its output.
|
|
577
629
|
|
|
578
630
|
```yaml
|
|
579
|
-
# ~/.muaz/plugins/local/pipelines/research-
|
|
580
|
-
name: research-
|
|
581
|
-
pattern: sequential
|
|
631
|
+
# ~/.muaz/plugins/local/pipelines/research-write.yaml
|
|
632
|
+
name: research-write
|
|
582
633
|
steps:
|
|
583
|
-
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
634
|
+
- name: research
|
|
635
|
+
agent: researcher # resolved across namespaces; @plugin/name disambiguates
|
|
636
|
+
input: "Research this topic:\n\n${input}"
|
|
637
|
+
retry: { max: 1, backoff_secs: 2 }
|
|
638
|
+
- name: write
|
|
639
|
+
agent: writer
|
|
640
|
+
input: |
|
|
641
|
+
Write the piece requested below from these notes.
|
|
642
|
+
|
|
643
|
+
Request: ${input}
|
|
644
|
+
Notes: ${steps.research.output}
|
|
587
645
|
```
|
|
588
646
|
|
|
589
|
-
|
|
590
|
-
- `last_message` — the previous agent's response becomes the next agent's input (default)
|
|
591
|
-
- `full_history` — all prior step inputs and outputs are prepended as context
|
|
647
|
+
Templates resolve `${input}`, `${vars.<name>}`, `${steps.<name>.output}`, and `${steps.<name>.<field>}`. An unknown placeholder is a hard error, so a typo fails at load rather than silently interpolating nothing.
|
|
592
648
|
|
|
593
|
-
### Parallel
|
|
649
|
+
### Parallel
|
|
594
650
|
|
|
595
|
-
|
|
651
|
+
A step may be a `parallel:` group whose members run concurrently:
|
|
596
652
|
|
|
597
653
|
```yaml
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
654
|
+
steps:
|
|
655
|
+
- name: reviews
|
|
656
|
+
parallel:
|
|
657
|
+
- name: security
|
|
658
|
+
agent: security-reviewer
|
|
659
|
+
input: "${input}"
|
|
660
|
+
- name: style
|
|
661
|
+
agent: style-reviewer
|
|
662
|
+
input: "${input}"
|
|
663
|
+
- name: summary
|
|
664
|
+
agent: editor
|
|
665
|
+
input: "Security:\n${steps.security.output}\n\nStyle:\n${steps.style.output}"
|
|
605
666
|
```
|
|
606
667
|
|
|
607
|
-
### Router
|
|
668
|
+
### Router
|
|
608
669
|
|
|
609
|
-
A router
|
|
670
|
+
A router is a step whose `output_schema` carries a `route` field; specialists gate on it with `when:`. The route is typed structured output, not free text scanned out of a reply.
|
|
610
671
|
|
|
611
672
|
```yaml
|
|
612
|
-
name:
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
673
|
+
name: triage
|
|
674
|
+
steps:
|
|
675
|
+
- name: route
|
|
676
|
+
agent: triage-router
|
|
677
|
+
output_schema:
|
|
678
|
+
type: object
|
|
679
|
+
properties:
|
|
680
|
+
route: { type: string, enum: [write, analyze] }
|
|
681
|
+
message: { type: string }
|
|
682
|
+
required: [route, message]
|
|
683
|
+
additionalProperties: false
|
|
684
|
+
- name: write
|
|
685
|
+
agent: writer
|
|
686
|
+
when: { value: "${steps.route.route}", equals: write }
|
|
687
|
+
input: "${steps.route.message}"
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
Steps also take `on_error: fail | continue | fallback` and a `budget:` (`max_cost_usd`, `max_tokens`, `max_seconds`), which the pipeline as a whole accepts too.
|
|
628
691
|
|
|
629
692
|
## Custom slash commands
|
|
630
693
|
|
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.4.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.4.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.4.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.4.0",
|
|
85
85
|
"volta": {
|
|
86
86
|
"node": "18.14.1",
|
|
87
87
|
"npm": "9.5.0"
|