squads-cli 0.1.2
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 +21 -0
- package/README.md +266 -0
- package/dist/cli.js +4706 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/package.json +79 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const version = "0.1.0";
|
|
2
|
+
|
|
3
|
+
interface Agent {
|
|
4
|
+
name: string;
|
|
5
|
+
model: string;
|
|
6
|
+
tools: string[];
|
|
7
|
+
trigger: 'manual' | 'scheduled' | 'event';
|
|
8
|
+
}
|
|
9
|
+
interface Squad {
|
|
10
|
+
name: string;
|
|
11
|
+
agents: Agent[];
|
|
12
|
+
mission?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function loadSquad(path: string): Promise<Squad | null>;
|
|
15
|
+
declare function runAgent(agent: Agent, prompt: string): Promise<string>;
|
|
16
|
+
|
|
17
|
+
export { type Agent, type Squad, loadSquad, runAgent, version };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/version.ts
|
|
2
|
+
var version = "0.1.0";
|
|
3
|
+
|
|
4
|
+
// src/index.ts
|
|
5
|
+
async function loadSquad(path) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
async function runAgent(agent, prompt) {
|
|
9
|
+
return "";
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
loadSquad,
|
|
13
|
+
runAgent,
|
|
14
|
+
version
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/version.ts","../src/index.ts"],"sourcesContent":["export const version = '0.1.0';\n","// squads-cli library exports\nexport { version } from './version.js';\n\n// Types\nexport interface Agent {\n name: string;\n model: string;\n tools: string[];\n trigger: 'manual' | 'scheduled' | 'event';\n}\n\nexport interface Squad {\n name: string;\n agents: Agent[];\n mission?: string;\n}\n\n// Core functions (to be implemented)\nexport async function loadSquad(path: string): Promise<Squad | null> {\n // TODO: Load squad from markdown file\n return null;\n}\n\nexport async function runAgent(agent: Agent, prompt: string): Promise<string> {\n // TODO: Execute agent\n return '';\n}\n"],"mappings":";AAAO,IAAM,UAAU;;;ACkBvB,eAAsB,UAAU,MAAqC;AAEnE,SAAO;AACT;AAEA,eAAsB,SAAS,OAAc,QAAiC;AAE5E,SAAO;AACT;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "squads-cli",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "A CLI for humans and agents",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"squads": "./dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup",
|
|
22
|
+
"dev": "tsup --watch",
|
|
23
|
+
"start": "node dist/cli.js",
|
|
24
|
+
"lint": "eslint src",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
|
+
"test:coverage": "vitest run --coverage",
|
|
29
|
+
"prepublishOnly": "npm run build"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"ai",
|
|
33
|
+
"agents",
|
|
34
|
+
"squads",
|
|
35
|
+
"cli",
|
|
36
|
+
"automation",
|
|
37
|
+
"claude",
|
|
38
|
+
"llm"
|
|
39
|
+
],
|
|
40
|
+
"author": "Agents Squads <hello@agents-squads.com>",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "git+https://github.com/agents-squads/squads-cli.git"
|
|
45
|
+
},
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/agents-squads/squads-cli/issues"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://agents-squads.com",
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=18"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public",
|
|
55
|
+
"registry": "https://registry.npmjs.org/"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@supabase/supabase-js": "^2.89.0",
|
|
59
|
+
"chalk": "^5.3.0",
|
|
60
|
+
"commander": "^12.1.0",
|
|
61
|
+
"dotenv": "^17.2.3",
|
|
62
|
+
"inquirer": "^9.2.12",
|
|
63
|
+
"open": "^11.0.0",
|
|
64
|
+
"ora": "^8.0.1",
|
|
65
|
+
"pg": "^8.16.3"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@eslint/js": "^9.39.2",
|
|
69
|
+
"@types/node": "^20.19.27",
|
|
70
|
+
"@types/pg": "^8.16.0",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
72
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
73
|
+
"eslint": "^9.39.2",
|
|
74
|
+
"tsup": "^8.0.1",
|
|
75
|
+
"typescript": "^5.3.0",
|
|
76
|
+
"typescript-eslint": "^8.51.0",
|
|
77
|
+
"vitest": "^4.0.16"
|
|
78
|
+
}
|
|
79
|
+
}
|