omniagent 0.1.3 → 0.1.5
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 +43 -5
- package/CONTRIBUTING.md +56 -0
- package/README.md +137 -267
- package/dist/cli.js +6349 -5164
- package/package.json +3 -2
- package/schemas/profile.v1.json +76 -0
- package/tasks.md +25 -0
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omniagent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
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": {
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"jiti": "^2.6.1",
|
|
46
|
+
"minimatch": "^10.2.5",
|
|
46
47
|
"yargs": "^17.7.2"
|
|
47
48
|
},
|
|
48
49
|
"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."
|
|
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
|
+
}
|
package/tasks.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# README Docs Refactor Tasks
|
|
2
|
+
|
|
3
|
+
- [x] Create concise onboarding-first `README.md` for the 90% sync workflow.
|
|
4
|
+
- [x] Add advanced docs pages and move complex README content into `/docs`.
|
|
5
|
+
- [x] Move custom targets/custom agent declaration guidance to `docs/custom-targets.md`.
|
|
6
|
+
- [x] Move templating and dynamic script guidance to `docs/templating.md`.
|
|
7
|
+
- [x] Add a docs index and link advanced docs from `README.md`.
|
|
8
|
+
- [x] Update docs tests to match the new README/docs structure.
|
|
9
|
+
- [x] Run validation (`npm run check` and `npm test`).
|
|
10
|
+
|
|
11
|
+
# Contributor/Consumer Split Follow-up
|
|
12
|
+
|
|
13
|
+
- [x] Remove development-only validation details from root `README.md`.
|
|
14
|
+
- [x] Add `CONTRIBUTING.md` with local development and validation guidance.
|
|
15
|
+
- [x] Move CLI shim E2E guidance under contributing docs flow.
|
|
16
|
+
- [x] Remove contributor-only links from end-user docs indexes.
|
|
17
|
+
- [x] Update docs tests for the new contributing boundary.
|
|
18
|
+
- [x] Run validation (`npm run check` and `npm test`).
|
|
19
|
+
|
|
20
|
+
# README Basics Follow-up
|
|
21
|
+
|
|
22
|
+
- [x] Add simple `.local` override explanation to root `README.md`.
|
|
23
|
+
- [x] Add simple basic templating explanation to root `README.md`.
|
|
24
|
+
- [x] Update docs tests to assert these root README basics.
|
|
25
|
+
- [x] Run validation (`npm run check` and `npm test`).
|