actant 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/bin/actant.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import "@actant/cli/dist/bin/actant.js";
package/dist/acp.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@actant/acp";
package/dist/acp.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/acp.ts
2
+ export * from "@actant/acp";
3
+ //# sourceMappingURL=acp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/acp.ts"],"sourcesContent":["export * from \"@actant/acp\";\n"],"mappings":";AAAA,cAAc;","names":[]}
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@actant/cli";
package/dist/cli.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/cli.ts
2
+ export * from "@actant/cli";
3
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["export * from \"@actant/cli\";\n"],"mappings":";AAAA,cAAc;","names":[]}
package/dist/core.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@actant/core";
package/dist/core.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/core.ts
2
+ export * from "@actant/core";
3
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core.ts"],"sourcesContent":["export * from \"@actant/core\";\n"],"mappings":";AAAA,cAAc;","names":[]}
@@ -0,0 +1 @@
1
+ export * from "@actant/api";
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/index.ts
2
+ export * from "@actant/api";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"@actant/api\";\n"],"mappings":";AAAA,cAAc;","names":[]}
package/dist/mcp.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@actant/mcp-server";
package/dist/mcp.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/mcp.ts
2
+ export * from "@actant/mcp-server";
3
+ //# sourceMappingURL=mcp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/mcp.ts"],"sourcesContent":["export * from \"@actant/mcp-server\";\n"],"mappings":";AAAA,cAAc;","names":[]}
package/dist/pi.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@actant/pi";
package/dist/pi.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/pi.ts
2
+ export * from "@actant/pi";
3
+ //# sourceMappingURL=pi.js.map
package/dist/pi.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/pi.ts"],"sourcesContent":["export * from \"@actant/pi\";\n"],"mappings":";AAAA,cAAc;","names":[]}
@@ -0,0 +1 @@
1
+ export * from "@actant/shared";
package/dist/shared.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/shared.ts
2
+ export * from "@actant/shared";
3
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared.ts"],"sourcesContent":["export * from \"@actant/shared\";\n"],"mappings":";AAAA,cAAc;","names":[]}
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "actant",
3
+ "version": "0.2.0",
4
+ "description": "A platform for building, managing, and composing AI agents",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "blackplume <blackplume233@gmail.com>",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/blackplume233/Actant.git"
11
+ },
12
+ "homepage": "https://github.com/blackplume233/Actant#readme",
13
+ "bugs": "https://github.com/blackplume233/Actant/issues",
14
+ "keywords": [
15
+ "actant",
16
+ "ai-agent",
17
+ "agent-platform",
18
+ "cli"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "bin",
26
+ "scripts/postinstall.mjs"
27
+ ],
28
+ "bin": {
29
+ "actant": "./bin/actant.js"
30
+ },
31
+ "main": "./dist/index.js",
32
+ "types": "./dist/index.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "import": "./dist/index.js",
36
+ "types": "./dist/index.d.ts"
37
+ },
38
+ "./core": {
39
+ "import": "./dist/core.js",
40
+ "types": "./dist/core.d.ts"
41
+ },
42
+ "./shared": {
43
+ "import": "./dist/shared.js",
44
+ "types": "./dist/shared.d.ts"
45
+ },
46
+ "./acp": {
47
+ "import": "./dist/acp.js",
48
+ "types": "./dist/acp.d.ts"
49
+ },
50
+ "./mcp": {
51
+ "import": "./dist/mcp.js",
52
+ "types": "./dist/mcp.d.ts"
53
+ },
54
+ "./pi": {
55
+ "import": "./dist/pi.js",
56
+ "types": "./dist/pi.d.ts"
57
+ },
58
+ "./cli": {
59
+ "import": "./dist/cli.js",
60
+ "types": "./dist/cli.d.ts"
61
+ }
62
+ },
63
+ "dependencies": {
64
+ "@actant/cli": "0.2.0",
65
+ "@actant/shared": "0.2.0",
66
+ "@actant/api": "0.2.0",
67
+ "@actant/pi": "0.2.0",
68
+ "@actant/acp": "0.2.0",
69
+ "@actant/core": "0.2.0",
70
+ "@actant/mcp-server": "0.2.0"
71
+ },
72
+ "scripts": {
73
+ "build": "tsup",
74
+ "type-check": "tsc --noEmit",
75
+ "clean": "rimraf dist",
76
+ "postinstall": "node scripts/postinstall.mjs"
77
+ }
78
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Post-install hook: creates ~/.actant directory structure on first install.
3
+ * Runs automatically after `npm install -g actant`.
4
+ */
5
+
6
+ import { mkdirSync, writeFileSync, existsSync } from "node:fs";
7
+ import { join } from "node:path";
8
+ import { homedir } from "node:os";
9
+
10
+ const ACTANT_HOME = process.env.ACTANT_HOME || join(homedir(), ".actant");
11
+
12
+ const dirs = [
13
+ "configs/skills",
14
+ "configs/prompts",
15
+ "configs/mcp",
16
+ "configs/workflows",
17
+ "configs/plugins",
18
+ "configs/templates",
19
+ "instances",
20
+ "sources/cache",
21
+ "logs",
22
+ "backups",
23
+ ];
24
+
25
+ for (const dir of dirs) {
26
+ mkdirSync(join(ACTANT_HOME, dir), { recursive: true });
27
+ }
28
+
29
+ const configFile = join(ACTANT_HOME, "config.json");
30
+ if (!existsSync(configFile)) {
31
+ writeFileSync(
32
+ configFile,
33
+ JSON.stringify(
34
+ {
35
+ devSourcePath: "",
36
+ update: {
37
+ maxBackups: 3,
38
+ preUpdateTestCommand: "pnpm test:changed",
39
+ autoRestartAgents: true,
40
+ },
41
+ },
42
+ null,
43
+ 2,
44
+ ) + "\n",
45
+ );
46
+ }