create-mandate 0.3.0-alpha.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ljr-w and Mandate contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # create-mandate
2
+
3
+ Scaffolder for [Mandate](https://github.com/liujiarui0918/mandate) — a self-governing multi-agent imperial court framework.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ npx create-mandate my-empire
9
+ # or with a template:
10
+ npx create-mandate my-empire --template both
11
+ ```
12
+
13
+ Available templates:
14
+
15
+ - `research` — investigation-oriented court (scout, chancellor, soldier roles)
16
+ - `self-governance` — recursive self-improving court (full role roster + reforms)
17
+ - `both` (default) — scaffolds both templates side-by-side
18
+
19
+ After scaffolding:
20
+
21
+ ```bash
22
+ cd my-empire
23
+ npx mandate validate .
24
+ ```
25
+
26
+ ## What it does
27
+
28
+ Creates a `.mandate/` directory containing:
29
+
30
+ - `constitution/` — `constitution.yaml`, `charter.md`, `terms.yaml`
31
+ - `workspace/mandate.md` — the entry document for the court
32
+
33
+ Zero LLM calls during scaffolding — pure file copy.
34
+
35
+ ## Companion packages
36
+
37
+ - [`@mandateai/cli`](https://www.npmjs.com/package/@mandateai/cli) — full CLI (`mandate validate`, `mandate status`, `mandate ratify`, …)
38
+ - [`@mandateai/runtime`](https://www.npmjs.com/package/@mandateai/runtime) — constitution loader, chronicle, memory lifecycle
39
+ - [`@mandateai/validators`](https://www.npmjs.com/package/@mandateai/validators) — JSON Schema + topology validation
40
+
41
+ ## License
42
+
43
+ MIT
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import { main } from '@mandateai/cli';
3
+
4
+ const [node, , ...rest] = process.argv;
5
+ const argv = [node, 'mandate', 'create', ...rest];
6
+
7
+ main(argv).catch((err) => {
8
+ console.error(err?.stack ?? err);
9
+ process.exit(1);
10
+ });
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "create-mandate",
3
+ "version": "0.3.0-alpha.0",
4
+ "description": "Scaffolder for Mandate multi-agent imperial courts. Thin wrapper around @mandateai/cli's `create` subcommand — invoked via `npx create-mandate <project>`.",
5
+ "keywords": [
6
+ "mandate",
7
+ "mandateai",
8
+ "multi-agent",
9
+ "agents",
10
+ "scaffold",
11
+ "create",
12
+ "imperial-court",
13
+ "agent-orchestration",
14
+ "claude-code"
15
+ ],
16
+ "homepage": "https://github.com/liujiarui0918/mandate#readme",
17
+ "bugs": {
18
+ "url": "https://github.com/liujiarui0918/mandate/issues"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/liujiarui0918/mandate.git",
23
+ "directory": "packages/create-mandate"
24
+ },
25
+ "license": "MIT",
26
+ "author": "ljr-w <liujiarui0918@users.noreply.github.com>",
27
+ "type": "module",
28
+ "bin": {
29
+ "create-mandate": "bin/create-mandate.mjs"
30
+ },
31
+ "files": [
32
+ "bin",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "dependencies": {
37
+ "@mandateai/cli": "0.3.0-alpha.0"
38
+ },
39
+ "engines": {
40
+ "node": ">=20.0.0"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ }
45
+ }