agentloom 0.1.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.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +234 -0
  3. package/ThirdPartyNoticeText.txt +3 -0
  4. package/bin/cli.mjs +8 -0
  5. package/dist/cli.d.ts +1 -0
  6. package/dist/cli.js +61 -0
  7. package/dist/commands/add.d.ts +2 -0
  8. package/dist/commands/add.js +62 -0
  9. package/dist/commands/mcp.d.ts +2 -0
  10. package/dist/commands/mcp.js +188 -0
  11. package/dist/commands/skills.d.ts +1 -0
  12. package/dist/commands/skills.js +11 -0
  13. package/dist/commands/sync.d.ts +2 -0
  14. package/dist/commands/sync.js +25 -0
  15. package/dist/commands/update.d.ts +2 -0
  16. package/dist/commands/update.js +71 -0
  17. package/dist/core/agents.d.ts +7 -0
  18. package/dist/core/agents.js +67 -0
  19. package/dist/core/argv.d.ts +5 -0
  20. package/dist/core/argv.js +52 -0
  21. package/dist/core/copy.d.ts +16 -0
  22. package/dist/core/copy.js +167 -0
  23. package/dist/core/fs.d.ts +13 -0
  24. package/dist/core/fs.js +70 -0
  25. package/dist/core/importer.d.ts +21 -0
  26. package/dist/core/importer.js +201 -0
  27. package/dist/core/lockfile.d.ts +4 -0
  28. package/dist/core/lockfile.js +25 -0
  29. package/dist/core/manifest.d.ts +3 -0
  30. package/dist/core/manifest.js +17 -0
  31. package/dist/core/mcp.d.ts +4 -0
  32. package/dist/core/mcp.js +73 -0
  33. package/dist/core/scope.d.ts +9 -0
  34. package/dist/core/scope.js +64 -0
  35. package/dist/core/settings.d.ts +6 -0
  36. package/dist/core/settings.js +54 -0
  37. package/dist/core/sources.d.ts +20 -0
  38. package/dist/core/sources.js +162 -0
  39. package/dist/core/version-notifier.d.ts +8 -0
  40. package/dist/core/version-notifier.js +142 -0
  41. package/dist/core/version.d.ts +1 -0
  42. package/dist/core/version.js +25 -0
  43. package/dist/sync/index.d.ts +15 -0
  44. package/dist/sync/index.js +482 -0
  45. package/dist/types.d.ts +73 -0
  46. package/dist/types.js +8 -0
  47. package/package.json +60 -0
@@ -0,0 +1,73 @@
1
+ export declare const ALL_PROVIDERS: readonly ["cursor", "claude", "codex", "opencode", "gemini", "copilot"];
2
+ export type Provider = (typeof ALL_PROVIDERS)[number];
3
+ export type Scope = "local" | "global";
4
+ export interface AgentFrontmatter {
5
+ name: string;
6
+ description: string;
7
+ cursor?: Record<string, unknown> | false;
8
+ claude?: Record<string, unknown> | false;
9
+ codex?: Record<string, unknown> | false;
10
+ opencode?: Record<string, unknown> | false;
11
+ gemini?: Record<string, unknown> | false;
12
+ copilot?: Record<string, unknown> | false;
13
+ [key: string]: unknown;
14
+ }
15
+ export interface CanonicalAgent {
16
+ name: string;
17
+ description: string;
18
+ body: string;
19
+ frontmatter: AgentFrontmatter;
20
+ sourcePath: string;
21
+ fileName: string;
22
+ }
23
+ export interface LockEntry {
24
+ source: string;
25
+ sourceType: "local" | "github" | "git";
26
+ requestedRef?: string;
27
+ resolvedCommit: string;
28
+ subdir?: string;
29
+ importedAt: string;
30
+ importedAgents: string[];
31
+ importedMcpServers: string[];
32
+ contentHash: string;
33
+ }
34
+ export interface AgentsLockFile {
35
+ version: 1;
36
+ entries: LockEntry[];
37
+ }
38
+ export interface CanonicalMcpServer {
39
+ base?: Record<string, unknown>;
40
+ providers?: Partial<Record<Provider, Record<string, unknown> | false>>;
41
+ [key: string]: unknown;
42
+ }
43
+ export interface CanonicalMcpFile {
44
+ version: 1;
45
+ mcpServers: Record<string, CanonicalMcpServer>;
46
+ }
47
+ export interface ScopePaths {
48
+ scope: Scope;
49
+ workspaceRoot: string;
50
+ homeDir: string;
51
+ agentsRoot: string;
52
+ agentsDir: string;
53
+ mcpPath: string;
54
+ lockPath: string;
55
+ settingsPath: string;
56
+ manifestPath: string;
57
+ }
58
+ export interface DotagentsSettings {
59
+ version: 1;
60
+ lastScope?: Scope;
61
+ defaultProviders?: Provider[];
62
+ telemetry?: {
63
+ enabled?: boolean;
64
+ };
65
+ }
66
+ export interface SyncManifest {
67
+ version: 1;
68
+ generatedFiles: string[];
69
+ codex?: {
70
+ roles?: string[];
71
+ mcpServers?: string[];
72
+ };
73
+ }
package/dist/types.js ADDED
@@ -0,0 +1,8 @@
1
+ export const ALL_PROVIDERS = [
2
+ "cursor",
3
+ "claude",
4
+ "codex",
5
+ "opencode",
6
+ "gemini",
7
+ "copilot",
8
+ ];
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "agentloom",
3
+ "version": "0.1.0",
4
+ "description": "Unified agent and MCP sync CLI for multi-provider AI tooling",
5
+ "type": "module",
6
+ "bin": {
7
+ "agentloom": "bin/cli.mjs"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "bin",
12
+ "README.md",
13
+ "LICENSE",
14
+ "ThirdPartyNoticeText.txt"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsc -p tsconfig.json",
18
+ "dev": "tsx src/cli.ts",
19
+ "test": "vitest run",
20
+ "test:watch": "vitest",
21
+ "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
22
+ "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
23
+ "type-check": "tsc --noEmit",
24
+ "check": "pnpm format:check && pnpm type-check && pnpm test",
25
+ "prepublishOnly": "pnpm build"
26
+ },
27
+ "keywords": [
28
+ "agents",
29
+ "ai",
30
+ "codex",
31
+ "claude",
32
+ "cursor",
33
+ "gemini",
34
+ "copilot",
35
+ "mcp"
36
+ ],
37
+ "repository": {
38
+ "type": "git"
39
+ },
40
+ "license": "MIT",
41
+ "engines": {
42
+ "node": ">=20"
43
+ },
44
+ "dependencies": {
45
+ "@clack/prompts": "^0.11.0",
46
+ "@iarna/toml": "^2.2.5",
47
+ "gray-matter": "^4.0.3",
48
+ "minimist": "^1.2.8",
49
+ "yaml": "^2.8.1"
50
+ },
51
+ "devDependencies": {
52
+ "@types/minimist": "^1.2.5",
53
+ "@types/node": "^22.13.0",
54
+ "prettier": "^3.5.3",
55
+ "tsx": "^4.20.6",
56
+ "typescript": "^5.9.3",
57
+ "vitest": "^4.0.5"
58
+ },
59
+ "packageManager": "pnpm@10.17.1"
60
+ }