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 +2 -0
- package/dist/acp.d.ts +1 -0
- package/dist/acp.js +3 -0
- package/dist/acp.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +3 -0
- package/dist/core.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +3 -0
- package/dist/mcp.js.map +1 -0
- package/dist/pi.d.ts +1 -0
- package/dist/pi.js +3 -0
- package/dist/pi.js.map +1 -0
- package/dist/shared.d.ts +1 -0
- package/dist/shared.js +3 -0
- package/dist/shared.js.map +1 -0
- package/package.json +78 -0
- package/scripts/postinstall.mjs +46 -0
package/bin/actant.js
ADDED
package/dist/acp.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@actant/acp";
|
package/dist/acp.js
ADDED
package/dist/acp.js.map
ADDED
|
@@ -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
package/dist/cli.js.map
ADDED
|
@@ -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
package/dist/core.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core.ts"],"sourcesContent":["export * from \"@actant/core\";\n"],"mappings":";AAAA,cAAc;","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@actant/api";
|
package/dist/index.js
ADDED
|
@@ -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
package/dist/mcp.js.map
ADDED
|
@@ -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
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":[]}
|
package/dist/shared.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@actant/shared";
|
package/dist/shared.js
ADDED
|
@@ -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
|
+
}
|