create-dynamicagents 0.1.0 → 0.2.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 +64 -1
- package/dist/cli.js +3269 -4
- package/package.json +6 -3
- package/dist/welcome.js +0 -9
package/README.md
CHANGED
|
@@ -7,7 +7,70 @@ Create gates, leaders and agents on
|
|
|
7
7
|
npm create dynamicagents@latest
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
It asks what you want to build. **Agent** writes a complete, deployable project:
|
|
11
|
+
one agent in a Cloudflare Worker of its own, with its own wrangler config,
|
|
12
|
+
bindings, migration tag and signing key, reached over A2A as its own tenant.
|
|
13
|
+
Gates and leaders are a work in progress; follow them at
|
|
14
|
+
[dynamicagents.dev](https://dynamicagents.dev).
|
|
15
|
+
|
|
16
|
+
Requires Node 24 or later, and a **paid Cloudflare Workers plan**: the models a
|
|
17
|
+
generated agent runs on are not served on the free tier, and neither is Browser
|
|
18
|
+
Rendering. There is no free-tier path.
|
|
19
|
+
|
|
20
|
+
The CLI itself has no dependencies: `npm create` downloads one package, runs it,
|
|
21
|
+
and the only install it then does is the one for the project it wrote.
|
|
22
|
+
|
|
23
|
+
## What you get
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
support/
|
|
27
|
+
src/agents/support/ the agent: its soul, plugins, sub-agent, card, pipeline
|
|
28
|
+
src/index.ts one Worker, this agent mounted as the tenant `support`
|
|
29
|
+
wrangler.jsonc its own bindings, its own migration v1
|
|
30
|
+
test/ the A2A lifecycle on a scripted model, and the edge
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Then `npm run keygen`, fill in `.env`, and `npm run deploy`. The generated
|
|
34
|
+
`README.md` carries the rest, and its `AGENTS.md` carries the rules — including
|
|
35
|
+
how to bring a second generated agent into the same Worker later.
|
|
36
|
+
|
|
37
|
+
## Answering without the questions
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm create dynamicagents@latest agent generic support -- \
|
|
41
|
+
--name support --description "Answers product questions" --yes
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The `--` is npm's, not ours: without it, npm keeps the flags for itself.
|
|
45
|
+
|
|
46
|
+
| flag | what it answers |
|
|
47
|
+
| --------------- | ---------------------------------------------------------------------- |
|
|
48
|
+
| `--name` | The tenant id. Every class, binding and workflow name derives from it. |
|
|
49
|
+
| `--description` | One line for the card, and the first line of the soul. |
|
|
50
|
+
| `--dir` | Where to write it. Defaults to the name. |
|
|
51
|
+
| `--model` | A Workers AI model id. Defaults to one that calls tools reliably. |
|
|
52
|
+
| `--no-subagent` | Leave out the sub-agent it hands research to. |
|
|
53
|
+
| `--browser` | Install the browser plugin, its binding and its skill. |
|
|
54
|
+
| `--yes` | Do not ask for confirmation. |
|
|
55
|
+
| `--dry-run` | Print what would be written, and write nothing. |
|
|
56
|
+
| `--help` | Usage, both ways in, and every flag. Also `-h`. |
|
|
57
|
+
| `--version` | The version that would run. Also `-v`. |
|
|
58
|
+
|
|
59
|
+
The directory may already exist as long as it is empty. These do not count as
|
|
60
|
+
content, so a repository you made with `git init` first is fine, as is one an
|
|
61
|
+
editor or Finder has already touched:
|
|
62
|
+
|
|
63
|
+
`.git` · `.hg` · `.svn` · `.gitkeep` · `.keep` · `.idea` · `.vscode` ·
|
|
64
|
+
`.DS_Store` · `Thumbs.db` · `desktop.ini`
|
|
65
|
+
|
|
66
|
+
The project is written around them: nothing of yours is moved or removed.
|
|
67
|
+
Anything else in there and it asks you for a different directory.
|
|
68
|
+
|
|
69
|
+
A usable answer given up front is not asked for. One that will not do — a tenant
|
|
70
|
+
id that could not become a class name, a model id that is not one — is said
|
|
71
|
+
where it was given rather than after every other question: the question comes
|
|
72
|
+
back with the value in it where there is a terminal, and the run stops naming
|
|
73
|
+
the flag where there is not.
|
|
11
74
|
|
|
12
75
|
## License
|
|
13
76
|
|