create-dynamicagents 0.1.1 → 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 +60 -5
- package/dist/cli.js +3264 -33
- package/package.json +6 -6
- package/dist/kinds.js +0 -22
- package/dist/messages.js +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-dynamicagents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Create gates, leaders and agents on Dynamic Agents: npm create dynamicagents@latest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"LICENSE"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "
|
|
34
|
+
"build": "node scripts/build.mjs",
|
|
35
35
|
"format": "prettier --write .",
|
|
36
36
|
"lint": "eslint .",
|
|
37
37
|
"check": "prettier --check . && eslint . && tsc && npm run build",
|
|
@@ -42,22 +42,22 @@
|
|
|
42
42
|
"prepublishOnly": "npm run check && npm test && npm run verify:package",
|
|
43
43
|
"prepare": "husky"
|
|
44
44
|
},
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"@clack/prompts": "^1.8.1"
|
|
47
|
-
},
|
|
48
45
|
"devDependencies": {
|
|
46
|
+
"@clack/prompts": "^1.8.1",
|
|
49
47
|
"@types/node": "^24.13.6",
|
|
48
|
+
"esbuild": "^0.28.2",
|
|
50
49
|
"eslint": "^10.10.0",
|
|
51
50
|
"husky": "^9.1.7",
|
|
52
51
|
"prettier": "^3.9.6",
|
|
53
52
|
"typescript": "^6.0.3",
|
|
54
53
|
"typescript-eslint": "^8.70.0",
|
|
55
|
-
"vitest": "^
|
|
54
|
+
"vitest": "^5.0.5"
|
|
56
55
|
},
|
|
57
56
|
"engines": {
|
|
58
57
|
"node": ">=24"
|
|
59
58
|
},
|
|
60
59
|
"allowScripts": {
|
|
60
|
+
"esbuild": false,
|
|
61
61
|
"fsevents": false
|
|
62
62
|
}
|
|
63
63
|
}
|
package/dist/kinds.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export const KINDS = [
|
|
2
|
-
{
|
|
3
|
-
value: "gate",
|
|
4
|
-
label: "Gate",
|
|
5
|
-
hint: "where people and APIs reach your agents",
|
|
6
|
-
about: "Gates are the interfaces humans or APIs interact with, like a Slack, WhatsApp or API gate."
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
value: "leader",
|
|
10
|
-
label: "Leader",
|
|
11
|
-
hint: "creates, edits and evaluates a group of agents",
|
|
12
|
-
about: "A leader is a powerful agent that can create, edit and evaluate a group of agents."
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
value: "agent",
|
|
16
|
-
label: "Agent",
|
|
17
|
-
hint: "one agent, usually created by a leader",
|
|
18
|
-
about: "An agent should be created by a leader rather than directly by a developer. It adds a folder with an agent inside a worker and scaffolds it from plugins, significantly cutting the time it takes to deploy a production-ready agent."
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
/** The kind a command-line argument names, in any case. */
|
|
22
|
-
export const kindOf = (arg) => KINDS.find((kind) => kind.value === arg.toLowerCase());
|
package/dist/messages.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** What `npm create dynamicagents` prints. Pure, so the spec needs no process. */
|
|
2
|
-
import { KINDS } from "./kinds.js";
|
|
3
|
-
export const WEBSITE = "https://dynamicagents.dev";
|
|
4
|
-
export const title = (version) => `Dynamic Agents · create-dynamicagents v${version}`;
|
|
5
|
-
export const question = "What would you like to build?";
|
|
6
|
-
export const workInProgress = (kind) => `${kind.label} scaffolding is a work in progress. Follow updates at ${WEBSITE}`;
|
|
7
|
-
export const nothingBuilt = "Nothing was built.";
|
|
8
|
-
const width = Math.max(...KINDS.map((kind) => kind.value.length));
|
|
9
|
-
const choices = () => KINDS.map((kind) => ` ${kind.value.padEnd(width)} ${kind.hint}`).join("\n");
|
|
10
|
-
/** Without a TTY there is no menu, so the kind has to be an argument. */
|
|
11
|
-
export const noTerminal = () => [
|
|
12
|
-
"No terminal to ask in, so name what to build:",
|
|
13
|
-
"",
|
|
14
|
-
choices(),
|
|
15
|
-
"",
|
|
16
|
-
"npm create dynamicagents@latest <kind>"
|
|
17
|
-
].join("\n");
|
|
18
|
-
export const unknownKind = (arg) => [`"${arg}" is not something to build. Name one of:`, "", choices()].join("\n");
|