omniagent 0.1.4 → 0.1.6
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/CLAUDE.md +44 -5
- package/README.md +43 -0
- package/dist/cli.js +7051 -5197
- package/package.json +5 -3
- package/schemas/profile.v1.json +76 -0
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omniagent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Unified agent configuration CLI that compiles canonical agent configs to multiple runtimes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"omniagent": "
|
|
7
|
+
"omniagent": "dist/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "npm run check && vite build",
|
|
12
12
|
"patch": "npm version patch --no-git-tag-version",
|
|
13
|
-
"
|
|
13
|
+
"prepublishOnly": "npm run patch",
|
|
14
|
+
"prepack": "npm run build",
|
|
14
15
|
"postbuild": "chmod +x dist/cli.js",
|
|
15
16
|
"dev": "npm run build && node dist/cli.js",
|
|
16
17
|
"check": "biome check .",
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"license": "MIT",
|
|
44
45
|
"dependencies": {
|
|
45
46
|
"jiti": "^2.6.1",
|
|
47
|
+
"minimatch": "^10.2.5",
|
|
46
48
|
"yargs": "^17.7.2"
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://omniagent.dev/schema/profile.v1.json",
|
|
4
|
+
"title": "omniagent sync profile",
|
|
5
|
+
"description": "A named configuration that filters and customizes what `omniagent sync` writes to targets.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Optional reference to this JSON Schema for editor autocomplete, for example https://raw.githubusercontent.com/JoeRoddy/omniagent/master/schemas/profile.v1.json."
|
|
12
|
+
},
|
|
13
|
+
"description": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Human-readable summary shown in `omniagent profiles`."
|
|
16
|
+
},
|
|
17
|
+
"extends": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Name of another profile to inherit from. Chains are supported; cycles are detected."
|
|
20
|
+
},
|
|
21
|
+
"targets": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"description": "Per-target enablement map. Keys are target ids or configured aliases.",
|
|
24
|
+
"additionalProperties": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"properties": {
|
|
28
|
+
"enabled": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"description": "When false, this target is skipped for the profile (equivalent to --skip <target>)."
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"enable": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"description": "Allowlist of items to include. Values are glob patterns matched against canonical item names.",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"skills": { "$ref": "#/$defs/patternList" },
|
|
41
|
+
"subagents": { "$ref": "#/$defs/patternList" },
|
|
42
|
+
"commands": { "$ref": "#/$defs/patternList" }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"disable": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"description": "Denylist applied after `enable`. Values are glob patterns matched against canonical item names.",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"properties": {
|
|
50
|
+
"skills": { "$ref": "#/$defs/patternList" },
|
|
51
|
+
"subagents": { "$ref": "#/$defs/patternList" },
|
|
52
|
+
"commands": { "$ref": "#/$defs/patternList" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"variables": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"description": "Template variables. Keys must match [A-Z_][A-Z0-9_]*. Values substitute `{{KEY}}` (or `{{KEY=default}}`) anywhere in rendered template content and are exposed to `<nodejs>` / `<shell>` blocks as `OMNIAGENT_VAR_KEY` env vars.",
|
|
58
|
+
"additionalProperties": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"propertyNames": {
|
|
62
|
+
"pattern": "^[A-Z_][A-Z0-9_]*$"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"$defs": {
|
|
67
|
+
"patternList": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1
|
|
72
|
+
},
|
|
73
|
+
"description": "List of glob patterns. `*` and `?` are supported. Exact names (no wildcards) emit a warning when they match zero items."
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|