omniagent 0.1.4 → 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 CHANGED
@@ -1,10 +1,32 @@
1
1
  # omniagent Development Guidelines
2
2
 
3
- Auto-generated from all feature plans. Last updated: 2026-02-08
3
+ Auto-generated from all feature plans. Last updated: 2026-01-10
4
4
 
5
5
  ## Active Technologies
6
+ - TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js fs/promises + path (004-sync-agent-config)
7
+ - Filesystem (repo-local directories) (004-sync-agent-config)
8
+ - TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js fs/promises + path, Vitest, Vite, Biome (005-sync-slash-commands)
9
+ - Filesystem (repo `agents/commands/`, project target dirs, user home dirs) (005-sync-slash-commands)
10
+ - Filesystem (repo-local config + target directories) (006-add-custom-subagents)
11
+ - TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises`, `path`, Vitest, Vite, Biome (007-agent-templating)
12
+ - Filesystem (repo-local config + target directories + user home config) (007-agent-templating)
13
+ - Filesystem (repo-local agents/ directories and user home state under `~/.omniagent/state/`) (009-local-config-sync)
14
+ - Filesystem (repo-local sources/outputs + user home state under `~/.omniagent/state/`) (010-instruction-file-sync)
15
+ - Filesystem (repo-local `agents/` directory or user-supplied agents directory) (012-agents-dir-override)
16
+ - TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, @typescript/native-preview (tsgo), Vitest, Vite, Biome (013-fix-typecheck-ci)
17
+ - Filesystem (repo-local config and user home state) (013-fix-typecheck-ci)
18
+ - TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises` + `path`, Vite, Vitest, Biome (014-add-custom-targets)
19
+ - Filesystem (repo-local directories and user home state under `~/.omniagent/state/`) (014-add-custom-targets)
20
+ - TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises` + `path`, `jiti`, Vite, Vitest, Biome, @typescript/native-preview (tsgo) (015-cli-shim-flags)
21
+ - Filesystem (repo-local agents directory and user home state under `~/.omniagent/state/`) (015-cli-shim-flags)
22
+ - TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises` + `path`, Vitest, Vite, Biome (016-sync-default-agents)
23
+ - Filesystem (repo-local outputs and user home state under `~/.omniagent/state/`) (016-sync-default-agents)
6
24
 
7
- - TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises` + `path` + `child_process`, Vitest, Vite, Biome (017-dynamic-template-scripts)
25
+ - TypeScript 5.x, ES2022 target + yargs (CLI parsing), Vitest (testing), Vite (build), Biome (formatting/linting) (003-biome-integration)
26
+
27
+ - TypeScript 5.x, ES2022 target + yargs (CLI parsing), Vitest (testing) (002-vitest-cli-testing)
28
+
29
+ - TypeScript 5.x, Node.js 18+ + yargs (CLI parsing only) (001-cli-foundation)
8
30
 
9
31
  ## Project Structure
10
32
 
@@ -15,15 +37,31 @@ tests/
15
37
 
16
38
  ## Commands
17
39
 
18
- npm test && npm run lint
40
+ npm run check && npm test
19
41
 
20
42
  ## Code Style
21
43
 
22
- TypeScript 5.9 (ES2022) on Node.js 18+: Follow standard conventions
44
+ TypeScript 5.x, Node.js 18+: Enforced by Biome (formatting and linting)
45
+ - Line width: 100 characters
46
+ - Indentation: Tabs (2-space width)
47
+ - Quotes: Double quotes
48
+ - Semicolons: Always
49
+ - Run `npm run format` before committing
23
50
 
24
51
  ## Recent Changes
52
+ - 016-sync-default-agents: Added TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises` + `path`, Vitest, Vite, Biome
53
+ - 015-cli-shim-flags: Added TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises` + `path`, `jiti`, Vite, Vitest, Biome, @typescript/native-preview (tsgo)
54
+ - 014-add-custom-targets: Added TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises` + `path`, Vite, Vitest, Biome
55
+
56
+
25
57
 
26
- - 017-dynamic-template-scripts: Added TypeScript 5.9 (ES2022) on Node.js 18+ + yargs, Node.js `fs/promises` + `path` + `child_process`, Vitest, Vite, Biome
27
58
 
28
59
  <!-- MANUAL ADDITIONS START -->
60
+ - Dynamic template scripts (`<nodejs>` and `<shell>`) are a shared sync runtime feature and apply across all
61
+ syncable template surfaces (skills, subagents, slash commands, and instruction templates).
62
+ - Any future syncable surface must integrate with the shared template-script runtime instead of
63
+ introducing surface-specific script execution behavior.
64
+ - Keep ignore and publish rules aligned with tool-specific directories so package publishes stay
65
+ clean.
66
+ - CLI shim E2E docs: `docs/cli-shim-e2e.md`.
29
67
  <!-- MANUAL ADDITIONS END -->
package/README.md CHANGED
@@ -68,6 +68,9 @@ npx omniagent@latest sync --agentsDir ./my-custom-agents
68
68
  # Show local-only overrides and exit
69
69
  npx omniagent@latest sync --list-local
70
70
 
71
+ # Apply a sync profile (see docs/profiles.md)
72
+ npx omniagent@latest sync --profile code-reviewer
73
+
71
74
  # Shim mode (no subcommand)
72
75
  omniagent --agent codex
73
76
  omniagent -p "Summarize this repo" --agent codex --output json
@@ -110,6 +113,43 @@ agents/.local/
110
113
  agents/**/*.local*
111
114
  ```
112
115
 
116
+ ## Sync Profiles
117
+
118
+ Profiles let each dev pick a named, checked-in filter that `sync` applies to
119
+ the shared `agents/` directory — so a ten-person team can share one source of
120
+ truth while each member opts in to exactly the skills, subagents, commands,
121
+ and targets they want.
122
+
123
+ ```jsonc
124
+ // agents/profiles/code-reviewer.json
125
+ {
126
+ "description": "Focused setup for PR reviews",
127
+ "extends": "base",
128
+ "targets": { "claude": { "enabled": true }, "codex": { "enabled": true } },
129
+ "enable": {
130
+ "skills": ["code-review", "security-review"],
131
+ "subagents": ["reviewer"],
132
+ "commands": ["review", "diff-summary"]
133
+ },
134
+ "variables": { "REVIEW_STYLE": "terse" }
135
+ }
136
+ ```
137
+
138
+ ```bash
139
+ omniagent sync # uses agents/profiles/default.json when present
140
+ omniagent sync --profile code-reviewer
141
+ omniagent sync --profile base,code-reviewer # merge multiple (later wins)
142
+ omniagent sync --var REVIEW_STYLE=thorough # override a variable from the CLI
143
+ ```
144
+
145
+ Profiles support `extends` chains, `.local` overrides (personal, gitignored),
146
+ glob-based `enable`/`disable` lists, per-target toggles, and template
147
+ variables. Discover and validate profiles with `omniagent profiles`,
148
+ `omniagent profiles show <name>`, and `omniagent profiles validate`.
149
+
150
+ See [`docs/profiles.md`](docs/profiles.md) for the full schema, resolution
151
+ order, and examples.
152
+
113
153
  ## Basic Templating
114
154
 
115
155
  Use `<agents ...>` blocks when some text should render only for specific targets.
@@ -155,6 +195,7 @@ Example usage:
155
195
  - CLI shim details: [`docs/cli-shim.md`](docs/cli-shim.md)
156
196
  - Custom targets (custom agents): [`docs/custom-targets.md`](docs/custom-targets.md)
157
197
  - Local overrides: [`docs/local-overrides.md`](docs/local-overrides.md)
198
+ - Sync profiles: [`docs/profiles.md`](docs/profiles.md)
158
199
  - Templating and dynamic scripts: [`docs/templating.md`](docs/templating.md)
159
200
  - Command reference: [`docs/reference.md`](docs/reference.md)
160
201
  - Troubleshooting: [`docs/troubleshooting.md`](docs/troubleshooting.md)