@hugo.bastidas/agent-foundation 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/dist/cli.js +1464 -49
- package/dist/hosts.d.ts +1 -1
- package/dist/hosts.d.ts.map +1 -1
- package/dist/hosts.js +2 -1
- package/dist/hosts.js.map +1 -1
- package/package.json +4 -2
package/dist/hosts.d.ts
CHANGED
package/dist/hosts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosts.d.ts","sourceRoot":"","sources":["../src/hosts.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"hosts.d.ts","sourceRoot":"","sources":["../src/hosts.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;AAE5D,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAK1C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,EAA0C,CAAC;AAEzE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAQ9D"}
|
package/dist/hosts.js
CHANGED
|
@@ -4,8 +4,9 @@ export const HOSTS = {
|
|
|
4
4
|
claude: { label: 'Claude Code', instructions: join(homedir(), '.claude', 'CLAUDE.md') },
|
|
5
5
|
codex: { label: 'Codex', instructions: join(homedir(), '.codex', 'AGENTS.md') },
|
|
6
6
|
opencode: { label: 'OpenCode', instructions: join(homedir(), '.config', 'opencode', 'AGENTS.md') },
|
|
7
|
+
pi: { label: 'Pi Agent', instructions: join(homedir(), '.pi', 'agent', 'AGENTS.md') },
|
|
7
8
|
};
|
|
8
|
-
export const ALL_HOSTS = ['claude', 'codex', 'opencode'];
|
|
9
|
+
export const ALL_HOSTS = ['claude', 'codex', 'opencode', 'pi'];
|
|
9
10
|
export function parseHosts(value) {
|
|
10
11
|
if (!value || value === 'all')
|
|
11
12
|
return ALL_HOSTS;
|
package/dist/hosts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosts.js","sourceRoot":"","sources":["../src/hosts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"hosts.js","sourceRoot":"","sources":["../src/hosts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AASjC,MAAM,CAAC,MAAM,KAAK,GAA6B;IAC7C,MAAM,EAAI,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE;IACzF,KAAK,EAAK,EAAE,KAAK,EAAE,OAAO,EAAQ,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE;IACxF,QAAQ,EAAE,EAAE,KAAK,EAAE,UAAU,EAAK,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE;IACrG,EAAE,EAAQ,EAAE,KAAK,EAAE,UAAU,EAAK,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE;CAC/F,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;AAEzE,MAAM,UAAU,UAAU,CAAC,KAAyB;IAClD,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,KAAK;QAAE,OAAO,SAAS,CAAC;IAChD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IAC5E,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC;IAC7D,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvG,CAAC;IACD,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAa,CAAC;AAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hugo.bastidas/agent-foundation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "CLI to install personal agent conventions (AGENT_FOUNDATION.md) into Claude Code, Codex, and OpenCode global instructions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "
|
|
11
|
+
"build": "node scripts/build.mjs",
|
|
12
12
|
"dev": "tsc --watch",
|
|
13
13
|
"test": "vitest run",
|
|
14
14
|
"test:watch": "vitest",
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
"bugs": "https://gitlab.com/tools5290918/agent-foundations/-/issues",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@clack/prompts": "^1.5.1",
|
|
34
35
|
"@types/node": "^20.14.0",
|
|
36
|
+
"esbuild": "^0.28.1",
|
|
35
37
|
"typescript": "^5.5.0",
|
|
36
38
|
"vitest": "^2.0.0"
|
|
37
39
|
},
|