omniagent 0.1.5 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniagent",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Unified agent configuration CLI that compiles canonical agent configs to multiple runtimes.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,7 +10,8 @@
10
10
  "scripts": {
11
11
  "build": "npm run check && vite build",
12
12
  "patch": "npm version patch --no-git-tag-version",
13
- "prepublish": "npm run patch && npm run build",
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 .",
@@ -8,7 +8,7 @@
8
8
  "properties": {
9
9
  "$schema": {
10
10
  "type": "string",
11
- "description": "Optional reference to this JSON Schema for editor autocomplete."
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
12
  },
13
13
  "description": {
14
14
  "type": "string",
package/CLAUDE.md DELETED
@@ -1,67 +0,0 @@
1
- # omniagent Development Guidelines
2
-
3
- Auto-generated from all feature plans. Last updated: 2026-01-10
4
-
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)
24
-
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)
30
-
31
- ## Project Structure
32
-
33
- ```text
34
- src/
35
- tests/
36
- ```
37
-
38
- ## Commands
39
-
40
- npm run check && npm test
41
-
42
- ## Code Style
43
-
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
50
-
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
-
57
-
58
-
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`.
67
- <!-- MANUAL ADDITIONS END -->
package/CONTRIBUTING.md DELETED
@@ -1,56 +0,0 @@
1
- # Contributing
2
-
3
- This document is for contributors and maintainers working on the `omniagent` codebase.
4
-
5
- If you are using `omniagent` as an npm package consumer, start with [`README.md`](README.md).
6
-
7
- ## Local Setup
8
-
9
- - Node.js 18+
10
- - npm
11
-
12
- Install dependencies:
13
-
14
- ```bash
15
- npm ci
16
- ```
17
-
18
- ## Local Validation
19
-
20
- Run the same checks used by CI before opening a PR:
21
-
22
- ```bash
23
- npm run check
24
- npm run typecheck
25
- npm test
26
- npm run build
27
- ```
28
-
29
- ## Docs Changes
30
-
31
- When updating docs, keep root `README.md` consumer-focused.
32
-
33
- - End-user usage and product behavior belong in `README.md` and `docs/*.md`.
34
- - Development and contribution workflows belong in `CONTRIBUTING.md`.
35
- - Update docs assertions in `tests/docs/readme.test.ts` when docs architecture changes.
36
-
37
- ## CLI Shim E2E (Contributor Workflow)
38
-
39
- CLI shim E2E is a contributor-only verification flow and is not required for normal package usage.
40
-
41
- Detailed guide:
42
-
43
- - [`docs/cli-shim-e2e.md`](docs/cli-shim-e2e.md)
44
-
45
- Quick commands:
46
-
47
- ```bash
48
- # Build first
49
- npm run build
50
-
51
- # Record baseline outputs from real CLIs
52
- OA_E2E_RECORD_BASELINE=1 npm test -- tests/e2e/cli-shim/cli-shim.e2e.test.ts
53
-
54
- # Compare shim output to recorded baselines
55
- OA_E2E=1 npm test -- tests/e2e/cli-shim/cli-shim.e2e.test.ts
56
- ```
package/biome.json DELETED
@@ -1,41 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3
- "files": {
4
- "includes": ["src/**/*.ts", "tests/**/*.ts"]
5
- },
6
- "formatter": {
7
- "enabled": true,
8
- "indentStyle": "tab",
9
- "indentWidth": 2,
10
- "lineWidth": 100
11
- },
12
- "linter": {
13
- "enabled": true,
14
- "rules": {
15
- "recommended": true,
16
- "suspicious": {
17
- "noExplicitAny": "warn"
18
- },
19
- "correctness": {
20
- "noUnusedImports": "error",
21
- "noUnusedVariables": "error"
22
- }
23
- }
24
- },
25
- "assist": {
26
- "enabled": true,
27
- "actions": {
28
- "source": {
29
- "recommended": true
30
- }
31
- }
32
- },
33
- "javascript": {
34
- "formatter": {
35
- "quoteStyle": "double",
36
- "semicolons": "always",
37
- "trailingCommas": "all",
38
- "arrowParentheses": "always"
39
- }
40
- }
41
- }
package/tasks.md DELETED
@@ -1,25 +0,0 @@
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`).
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ESNext",
5
- "moduleResolution": "Bundler",
6
- "strict": true,
7
- "types": ["node", "vitest/globals"],
8
- "esModuleInterop": true,
9
- "skipLibCheck": true,
10
- "forceConsistentCasingInFileNames": true
11
- },
12
- "include": ["src"]
13
- }
package/vite.config.ts DELETED
@@ -1,22 +0,0 @@
1
- import { defineConfig } from 'vite'
2
-
3
- export default defineConfig({
4
- build: {
5
- target: 'node18',
6
- ssr: true,
7
- lib: {
8
- entry: {
9
- cli: 'src/cli/index.ts',
10
- index: 'src/index.ts'
11
- },
12
- formats: ['es'],
13
- fileName: (_format, entryName) => `${entryName}.js`
14
- },
15
- rollupOptions: {
16
- external: ['yargs', 'yargs/helpers'],
17
- output: {
18
- banner: (chunk) => (chunk.name === 'cli' ? '#!/usr/bin/env node' : '')
19
- }
20
- }
21
- }
22
- })
package/vitest.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import { defineConfig } from 'vitest/config'
2
-
3
- export default defineConfig({
4
- test: {
5
- environment: 'node',
6
- globals: true,
7
- include: ['tests/**/*.test.ts', 'src/**/*.test.ts'],
8
- testTimeout: 10000
9
- }
10
- })