@wipcomputer/wip-ai-devops-toolbox 1.9.20
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/.license-guard.json +7 -0
- package/.publish-skill.json +4 -0
- package/CHANGELOG.md +1120 -0
- package/CLA.md +19 -0
- package/DEV-GUIDE-GENERAL-PUBLIC.md +882 -0
- package/LICENSE +52 -0
- package/README.md +238 -0
- package/SKILL.md +728 -0
- package/TECHNICAL.md +282 -0
- package/UNIVERSAL-INTERFACE.md +180 -0
- package/_trash/RELEASE-NOTES-v1-8-0.md +29 -0
- package/_trash/RELEASE-NOTES-v1-8-1.md +7 -0
- package/_trash/RELEASE-NOTES-v1-8-2.md +7 -0
- package/_trash/RELEASE-NOTES-v1-9-0.md +37 -0
- package/_trash/RELEASE-NOTES-v1-9-1.md +38 -0
- package/_trash/RELEASE-NOTES-v1-9-10.md +40 -0
- package/_trash/RELEASE-NOTES-v1-9-2.md +40 -0
- package/_trash/RELEASE-NOTES-v1-9-6.md +72 -0
- package/_trash/RELEASE-NOTES-v1-9-7.md +23 -0
- package/_trash/RELEASE-NOTES-v1-9-9.md +75 -0
- package/_trash/guide 2/DEV-GUIDE.md +487 -0
- package/_trash/guide 2/scripts/deploy-public.sh +152 -0
- package/package.json +27 -0
- package/scripts/SKILL-deploy-public.md +61 -0
- package/scripts/SKILL-post-merge-rename.md +47 -0
- package/scripts/deploy-public.sh +264 -0
- package/scripts/post-merge-rename.sh +205 -0
- package/scripts/publish-skill.sh +134 -0
- package/tools/deploy-public/LICENSE +52 -0
- package/tools/deploy-public/README.md +31 -0
- package/tools/deploy-public/SKILL.md +71 -0
- package/tools/deploy-public/deploy-public.sh +264 -0
- package/tools/deploy-public/package.json +9 -0
- package/tools/ldm-jobs/LICENSE +52 -0
- package/tools/ldm-jobs/README.md +46 -0
- package/tools/ldm-jobs/backup.sh +16 -0
- package/tools/ldm-jobs/branch-protect.sh +39 -0
- package/tools/ldm-jobs/crystal-capture.sh +19 -0
- package/tools/ldm-jobs/setup-shell.sh +27 -0
- package/tools/ldm-jobs/visibility-audit.sh +27 -0
- package/tools/post-merge-rename/LICENSE +52 -0
- package/tools/post-merge-rename/README.md +29 -0
- package/tools/post-merge-rename/SKILL.md +57 -0
- package/tools/post-merge-rename/package.json +9 -0
- package/tools/post-merge-rename/post-merge-rename.sh +122 -0
- package/tools/wip-branch-guard/INSTALL.md +41 -0
- package/tools/wip-branch-guard/guard.mjs +259 -0
- package/tools/wip-branch-guard/package.json +11 -0
- package/tools/wip-file-guard/CHANGELOG.md +6 -0
- package/tools/wip-file-guard/LICENSE +52 -0
- package/tools/wip-file-guard/README.md +113 -0
- package/tools/wip-file-guard/REFERENCE.md +86 -0
- package/tools/wip-file-guard/SKILL.md +105 -0
- package/tools/wip-file-guard/guard.mjs +128 -0
- package/tools/wip-file-guard/openclaw.plugin.json +8 -0
- package/tools/wip-file-guard/package.json +27 -0
- package/tools/wip-file-guard/test.sh +119 -0
- package/tools/wip-license-guard/LICENSE +52 -0
- package/tools/wip-license-guard/README.md +32 -0
- package/tools/wip-license-guard/SKILL.md +65 -0
- package/tools/wip-license-guard/cli.mjs +464 -0
- package/tools/wip-license-guard/core.mjs +310 -0
- package/tools/wip-license-guard/hook.mjs +146 -0
- package/tools/wip-license-guard/package.json +15 -0
- package/tools/wip-license-hook/CHANGELOG.md +17 -0
- package/tools/wip-license-hook/LICENSE +52 -0
- package/tools/wip-license-hook/README.md +200 -0
- package/tools/wip-license-hook/SKILL.md +111 -0
- package/tools/wip-license-hook/dist/cli/index.d.ts +15 -0
- package/tools/wip-license-hook/dist/cli/index.js +170 -0
- package/tools/wip-license-hook/dist/cli/index.js.map +1 -0
- package/tools/wip-license-hook/dist/core/detector.d.ts +12 -0
- package/tools/wip-license-hook/dist/core/detector.js +104 -0
- package/tools/wip-license-hook/dist/core/detector.js.map +1 -0
- package/tools/wip-license-hook/dist/core/index.d.ts +4 -0
- package/tools/wip-license-hook/dist/core/index.js +5 -0
- package/tools/wip-license-hook/dist/core/index.js.map +1 -0
- package/tools/wip-license-hook/dist/core/ledger.d.ts +49 -0
- package/tools/wip-license-hook/dist/core/ledger.js +72 -0
- package/tools/wip-license-hook/dist/core/ledger.js.map +1 -0
- package/tools/wip-license-hook/dist/core/reporter.d.ts +14 -0
- package/tools/wip-license-hook/dist/core/reporter.js +227 -0
- package/tools/wip-license-hook/dist/core/reporter.js.map +1 -0
- package/tools/wip-license-hook/dist/core/scanner.d.ts +39 -0
- package/tools/wip-license-hook/dist/core/scanner.js +325 -0
- package/tools/wip-license-hook/dist/core/scanner.js.map +1 -0
- package/tools/wip-license-hook/hooks/pre-pull.sh +55 -0
- package/tools/wip-license-hook/hooks/pre-push.sh +51 -0
- package/tools/wip-license-hook/mcp-server.mjs +119 -0
- package/tools/wip-license-hook/package-lock.json +54 -0
- package/tools/wip-license-hook/package.json +43 -0
- package/tools/wip-license-hook/src/cli/index.ts +189 -0
- package/tools/wip-license-hook/src/core/detector.ts +130 -0
- package/tools/wip-license-hook/src/core/index.ts +4 -0
- package/tools/wip-license-hook/src/core/ledger.ts +116 -0
- package/tools/wip-license-hook/src/core/reporter.ts +255 -0
- package/tools/wip-license-hook/src/core/scanner.ts +367 -0
- package/tools/wip-license-hook/tsconfig.json +16 -0
- package/tools/wip-readme-format/README.md +49 -0
- package/tools/wip-readme-format/SKILL.md +84 -0
- package/tools/wip-readme-format/format.mjs +570 -0
- package/tools/wip-readme-format/package.json +15 -0
- package/tools/wip-release/CHANGELOG.md +42 -0
- package/tools/wip-release/LICENSE +52 -0
- package/tools/wip-release/README.md +45 -0
- package/tools/wip-release/REFERENCE.md +100 -0
- package/tools/wip-release/SKILL.md +139 -0
- package/tools/wip-release/cli.js +161 -0
- package/tools/wip-release/core.mjs +1174 -0
- package/tools/wip-release/mcp-server.mjs +109 -0
- package/tools/wip-release/package.json +36 -0
- package/tools/wip-repo-init/README.md +38 -0
- package/tools/wip-repo-init/SKILL.md +77 -0
- package/tools/wip-repo-init/init.mjs +142 -0
- package/tools/wip-repo-init/package.json +11 -0
- package/tools/wip-repo-permissions-hook/LICENSE +52 -0
- package/tools/wip-repo-permissions-hook/README.md +86 -0
- package/tools/wip-repo-permissions-hook/SKILL.md +73 -0
- package/tools/wip-repo-permissions-hook/cli.js +83 -0
- package/tools/wip-repo-permissions-hook/core.mjs +122 -0
- package/tools/wip-repo-permissions-hook/guard.mjs +64 -0
- package/tools/wip-repo-permissions-hook/mcp-server.mjs +92 -0
- package/tools/wip-repo-permissions-hook/openclaw.plugin.json +8 -0
- package/tools/wip-repo-permissions-hook/package.json +31 -0
- package/tools/wip-repos/LICENSE +52 -0
- package/tools/wip-repos/README.md +77 -0
- package/tools/wip-repos/SKILL.md +80 -0
- package/tools/wip-repos/cli.mjs +176 -0
- package/tools/wip-repos/core.mjs +290 -0
- package/tools/wip-repos/mcp-server.mjs +157 -0
- package/tools/wip-repos/package.json +34 -0
- package/tools/wip-universal-installer/CHANGELOG.md +57 -0
- package/tools/wip-universal-installer/LICENSE +52 -0
- package/tools/wip-universal-installer/README.md +81 -0
- package/tools/wip-universal-installer/REFERENCE.md +122 -0
- package/tools/wip-universal-installer/SKILL.md +87 -0
- package/tools/wip-universal-installer/SPEC.md +180 -0
- package/tools/wip-universal-installer/detect.mjs +130 -0
- package/tools/wip-universal-installer/examples/minimal/README.md +20 -0
- package/tools/wip-universal-installer/examples/minimal/SKILL.md +28 -0
- package/tools/wip-universal-installer/examples/minimal/cli.mjs +4 -0
- package/tools/wip-universal-installer/examples/minimal/core.mjs +8 -0
- package/tools/wip-universal-installer/examples/minimal/mcp-server.mjs +27 -0
- package/tools/wip-universal-installer/examples/minimal/package.json +12 -0
- package/tools/wip-universal-installer/install.js +930 -0
- package/tools/wip-universal-installer/package.json +36 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## 2.1.5 (2026-02-21)
|
|
10
|
+
|
|
11
|
+
Update description to reflect Universal Interface spec purpose
|
|
12
|
+
|
|
13
|
+
## 2.1.4 (2026-02-21)
|
|
14
|
+
|
|
15
|
+
Add one-liner to README: what it does and teaches your AI too
|
|
16
|
+
|
|
17
|
+
## 2.1.3 (2026-02-21)
|
|
18
|
+
|
|
19
|
+
Fix npm bin entry: rename install.mjs to install.js so npx wip-install works globally
|
|
20
|
+
|
|
21
|
+
## 2.1.2 (2026-02-21)
|
|
22
|
+
|
|
23
|
+
Move detailed content to REFERENCE.md. README keeps Problem, Karpathy, Install prompt.
|
|
24
|
+
|
|
25
|
+
## 2.1.1 (2026-02-21)
|
|
26
|
+
|
|
27
|
+
Add Universal Interface badges, agent-driven install prompt, fix description
|
|
28
|
+
|
|
29
|
+
## 2.1.0 (2026-02-21)
|
|
30
|
+
|
|
31
|
+
Rename Six Doors to Universal Interface. Update all code and docs.
|
|
32
|
+
|
|
33
|
+
## 2.0.0 (2026-02-20)
|
|
34
|
+
|
|
35
|
+
Major refactor. Reframed from "WIP Computer installer" to "the spec for agent-native software."
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
- `detect.mjs` ... importable door detection module
|
|
39
|
+
- `SPEC.md` ... formal Six Doors specification
|
|
40
|
+
- `--dry-run` flag ... detect doors without installing
|
|
41
|
+
- `--json` flag ... machine-readable detection output
|
|
42
|
+
- `LICENSE` (MIT)
|
|
43
|
+
- `SKILL.md` with agent instructions
|
|
44
|
+
- `examples/minimal/` ... minimal six-door template
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
- README rewritten around Karpathy's sensor/actuator argument
|
|
48
|
+
- `install.mjs` now imports detection logic from `detect.mjs`
|
|
49
|
+
- Package name updated: `@wipcomputer/universal-installer`
|
|
50
|
+
|
|
51
|
+
## 1.0.0 (2026-02-17)
|
|
52
|
+
|
|
53
|
+
Initial release. Universal installer for WIP.computer repos.
|
|
54
|
+
|
|
55
|
+
- Detects 6 door types: CLI, Module, MCP, OpenClaw, Skill, CC Hook
|
|
56
|
+
- Installs from GitHub URL, org/repo shorthand, or local path
|
|
57
|
+
- Supports any WIP.computer convention repo
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Dual License: MIT + AGPLv3
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 WIP Computer, Inc.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
1. MIT License (local and personal use)
|
|
7
|
+
---------------------------------------
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
2. GNU Affero General Public License v3.0 (commercial and cloud use)
|
|
29
|
+
--------------------------------------------------------------------
|
|
30
|
+
|
|
31
|
+
If you run this software as part of a hosted service, cloud platform,
|
|
32
|
+
marketplace listing, or any network-accessible offering for commercial
|
|
33
|
+
purposes, the AGPLv3 terms apply. You must either:
|
|
34
|
+
|
|
35
|
+
a) Release your complete source code under AGPLv3, or
|
|
36
|
+
b) Obtain a commercial license.
|
|
37
|
+
|
|
38
|
+
This program is free software: you can redistribute it and/or modify
|
|
39
|
+
it under the terms of the GNU Affero General Public License as published
|
|
40
|
+
by the Free Software Foundation, either version 3 of the License, or
|
|
41
|
+
(at your option) any later version.
|
|
42
|
+
|
|
43
|
+
This program is distributed in the hope that it will be useful,
|
|
44
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
45
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
46
|
+
GNU Affero General Public License for more details.
|
|
47
|
+
|
|
48
|
+
You should have received a copy of the GNU Affero General Public License
|
|
49
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
AGPLv3 for personal use is free. Commercial licenses available.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
###### WIP Computer
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@wipcomputer/universal-installer) [](https://github.com/wipcomputer/wip-universal-installer/blob/main/install.js) [](https://clawhub.ai/parkertoddbrooks/wip-universal-installer) [](https://github.com/wipcomputer/wip-universal-installer/blob/main/SKILL.md) [](https://github.com/wipcomputer/wip-universal-installer/blob/main/SPEC.md)
|
|
4
|
+
|
|
5
|
+
# Universal Installer
|
|
6
|
+
|
|
7
|
+
Here's how to build software in 2026.
|
|
8
|
+
|
|
9
|
+
## The Badges
|
|
10
|
+
|
|
11
|
+
The chiclets at the top of this README tell you what interfaces this repo ships. Every repo that follows the Universal Interface Spec declares its interfaces the same way.
|
|
12
|
+
|
|
13
|
+
| Badge | What it means |
|
|
14
|
+
|-------|--------------|
|
|
15
|
+
| **npm** | Published to npm. Installable via `npm install`. Versioned, dependency-managed, standard distribution. |
|
|
16
|
+
| **CLI / TUI** | Ships a command-line interface. Humans run it in a terminal. Agents call it from shell. The most portable interface there is. |
|
|
17
|
+
| **OpenClaw Skill** | Registered as a skill on [ClawHub](https://clawhub.ai). OpenClaw agents can discover and use it natively through the gateway. |
|
|
18
|
+
| **Claude Code Skill** | Has a `SKILL.md` that teaches Claude Code (and any agent that reads markdown) when to use this tool, what it does, and how to call it. The agent reads the file and learns the capability. |
|
|
19
|
+
| **Universal Interface Spec** | Follows the [SPEC.md](SPEC.md) convention. The repo's architecture is documented, the interfaces are declared, and any agent or human can understand the full surface area by reading one file. |
|
|
20
|
+
|
|
21
|
+
When you see these badges on a WIP repo, you know exactly how to consume it. Human or agent, CLI or plugin, local or remote. That's the point.
|
|
22
|
+
|
|
23
|
+
## The Problem
|
|
24
|
+
|
|
25
|
+
Most software is built for humans. GUIs, dashboards, web apps. Humans click buttons, fill forms, read screens.
|
|
26
|
+
|
|
27
|
+
But the users are changing. AI agents are the new users. They don't click. They call functions. They read instructions. They compose tools. They need a **universal interface** ... multiple ways into the same logic, native to however the consumer works.
|
|
28
|
+
|
|
29
|
+
Software built for humans doesn't work for agents. And software built only for agents doesn't work for humans. You need both.
|
|
30
|
+
|
|
31
|
+
`wip-universal-installer` gives all your repos the Universal Interface, and teaches your AI how to do it too.
|
|
32
|
+
|
|
33
|
+
## The Karpathy Argument
|
|
34
|
+
|
|
35
|
+
Andrej Karpathy put it clearly:
|
|
36
|
+
|
|
37
|
+
> "I think the app store, the move to mobile, the concept of an app ... is an increasingly outdated concept. What matters are sensors and actuators. Sensors are things that convert physical state into digital state. Actuators are things that convert digital intent into physical change."
|
|
38
|
+
>
|
|
39
|
+
> "All LLMs care about are tools and the tools fall into this sensor/actuator divide. Software shouldn't be built into apps, but into small bespoke tools. Apps are for people. Tools are for LLMs, and increasingly, LLMs are the ones using software."
|
|
40
|
+
|
|
41
|
+
[Source](https://x.com/karpathy/status/2024583544157458452)
|
|
42
|
+
|
|
43
|
+
This is the future of software. Not apps. Tools. Sensors and actuators that agents compose together.
|
|
44
|
+
|
|
45
|
+
## Install
|
|
46
|
+
|
|
47
|
+
Open your AI coding tool and say:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Read the SPEC.md and SKILL.md at github.com/wipcomputer/wip-universal-installer.
|
|
51
|
+
Then explain to me:
|
|
52
|
+
1. What is this tool?
|
|
53
|
+
2. What does it do?
|
|
54
|
+
3. What would it change or fix in our current system?
|
|
55
|
+
|
|
56
|
+
Then ask me:
|
|
57
|
+
- Do you have more questions?
|
|
58
|
+
- Do you want to integrate it into our system?
|
|
59
|
+
- Do you want to clone it (use as-is) or fork it (so you can contribute back if you find bugs)?
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Your agent will read the repo, explain the tool, and walk you through integration interactively.
|
|
63
|
+
|
|
64
|
+
Also see **[wip-release](https://github.com/wipcomputer/wip-release)** ... one-command release pipeline for agent-native software.
|
|
65
|
+
|
|
66
|
+
Also see **[wip-file-guard](https://github.com/wipcomputer/wip-file-guard)** ... the lock for the repo. Blocks AI agents from overwriting your critical files.
|
|
67
|
+
|
|
68
|
+
See [REFERENCE.md](REFERENCE.md) for sensors/actuators, the interface table, how to build it, the installer, and real examples.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
CLI, module, skills MIT (use anywhere, no restrictions)
|
|
76
|
+
Hosted or cloud service use AGPL (network service distribution)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
AGPL for personal use is free.
|
|
80
|
+
|
|
81
|
+
Built by Parker Todd Brooks, Lēsa (OpenClaw, Claude Opus 4.6), Claude Code (Claude Opus 4.6).
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
###### WIP Computer
|
|
2
|
+
# Universal Installer ... Reference
|
|
3
|
+
|
|
4
|
+
Sensors/actuators, the interface table, how to build it, the installer, and real examples.
|
|
5
|
+
|
|
6
|
+
## Sensors and Actuators
|
|
7
|
+
|
|
8
|
+
Every tool is a sensor, an actuator, or both:
|
|
9
|
+
|
|
10
|
+
**Sensors** convert state into data:
|
|
11
|
+
- Search the web (wip-grok search_web)
|
|
12
|
+
- Search X/Twitter (wip-grok search_x, wip-x search_recent)
|
|
13
|
+
- Fetch a post (wip-x fetch_post)
|
|
14
|
+
- Read bookmarks (wip-x get_bookmarks)
|
|
15
|
+
- Check system health (wip-healthcheck)
|
|
16
|
+
|
|
17
|
+
**Actuators** convert intent into action:
|
|
18
|
+
- Generate an image (wip-grok generate_image)
|
|
19
|
+
- Post a tweet (wip-x post_tweet)
|
|
20
|
+
- Guard a file from edits (wip-file-guard)
|
|
21
|
+
- Generate a video (wip-grok generate_video)
|
|
22
|
+
|
|
23
|
+
## The Universal Interface
|
|
24
|
+
|
|
25
|
+
Agents don't all speak the same language. Some run shell commands. Some import modules. Some talk MCP. Some read markdown instructions.
|
|
26
|
+
|
|
27
|
+
So every tool should expose multiple interfaces into the same core logic:
|
|
28
|
+
|
|
29
|
+
| Interface | What | Who uses it |
|
|
30
|
+
|-----------|------|-------------|
|
|
31
|
+
| **CLI** | Shell command | Humans, any agent with bash |
|
|
32
|
+
| **Module** | ES import | Other tools, scripts |
|
|
33
|
+
| **MCP Server** | JSON-RPC over stdio | Claude Code, Cursor, any MCP client |
|
|
34
|
+
| **OpenClaw Plugin** | Lifecycle hooks + tools | OpenClaw agents |
|
|
35
|
+
| **Skill** | Markdown instructions (SKILL.md) | Any agent that reads files |
|
|
36
|
+
| **Claude Code Hook** | PreToolUse/Stop events | Claude Code |
|
|
37
|
+
|
|
38
|
+
Not every tool needs all six. Build what makes sense. But the more interfaces you expose, the more agents can use your tool.
|
|
39
|
+
|
|
40
|
+
See [SPEC.md](SPEC.md) for the full specification.
|
|
41
|
+
|
|
42
|
+
## How to Build It
|
|
43
|
+
|
|
44
|
+
The architecture is simple. Four files:
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
your-tool/
|
|
48
|
+
core.mjs <- pure logic, zero deps if possible
|
|
49
|
+
cli.mjs <- thin CLI wrapper
|
|
50
|
+
mcp-server.mjs <- MCP server wrapping core as tools
|
|
51
|
+
SKILL.md <- when/how to use it, for agents
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`core.mjs` does the work. Everything else is a thin wrapper. CLI parses argv and calls core. MCP server maps tools to core functions. SKILL.md teaches agents when to call what.
|
|
55
|
+
|
|
56
|
+
This means one codebase, one set of tests, multiple interfaces.
|
|
57
|
+
|
|
58
|
+
## The Reference Installer
|
|
59
|
+
|
|
60
|
+
`wip-install` scans any repo, detects which interfaces exist, and installs them all. One command.
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# From GitHub
|
|
64
|
+
wip-install wipcomputer/wip-grok
|
|
65
|
+
|
|
66
|
+
# From a local path
|
|
67
|
+
wip-install /path/to/repo
|
|
68
|
+
|
|
69
|
+
# Detect only (no install)
|
|
70
|
+
wip-install --dry-run wipcomputer/wip-x
|
|
71
|
+
|
|
72
|
+
# Machine-readable output
|
|
73
|
+
wip-install --json /path/to/repo
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Example Output
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
Installing: wip-grok
|
|
80
|
+
────────────────────────────────────────
|
|
81
|
+
Detected 4 interface(s): cli, module, mcp, skill
|
|
82
|
+
|
|
83
|
+
✓ CLI: wip-grok installed globally
|
|
84
|
+
✓ Module: import from "core.mjs"
|
|
85
|
+
MCP Server detected: mcp-server.mjs
|
|
86
|
+
✓ Skill: SKILL.md available
|
|
87
|
+
|
|
88
|
+
Done. 4 interface(s) processed.
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### What It Detects
|
|
92
|
+
|
|
93
|
+
| Pattern | Interface | Install action |
|
|
94
|
+
|---------|-----------|---------------|
|
|
95
|
+
| `package.json` with `bin` | CLI | `npm install -g` |
|
|
96
|
+
| `main` or `exports` in `package.json` | Module | Reports import path |
|
|
97
|
+
| `mcp-server.mjs` | MCP | Prints `.mcp.json` config |
|
|
98
|
+
| `openclaw.plugin.json` | OpenClaw | Copies to `~/.openclaw/extensions/` |
|
|
99
|
+
| `SKILL.md` | Skill | Reports path |
|
|
100
|
+
| `guard.mjs` or `claudeCode.hook` | CC Hook | Adds to `~/.claude/settings.json` |
|
|
101
|
+
|
|
102
|
+
## Real Examples
|
|
103
|
+
|
|
104
|
+
| Tool | Type | Interfaces | What it does |
|
|
105
|
+
|------|------|------------|-------------|
|
|
106
|
+
| [wip-grok](https://github.com/wipcomputer/wip-grok) | Sensor + Actuator | CLI + Module + MCP + Skill | xAI Grok API: search web/X, generate images/video |
|
|
107
|
+
| [wip-x](https://github.com/wipcomputer/wip-x) | Sensor + Actuator | CLI + Module + MCP + Skill | X Platform API: read/write tweets, bookmarks |
|
|
108
|
+
| [wip-file-guard](https://github.com/wipcomputer/wip-file-guard) | Actuator | CLI + OpenClaw + CC Hook | Protect files from AI edits |
|
|
109
|
+
| [wip-healthcheck](https://github.com/wipcomputer/wip-healthcheck) | Sensor | CLI + Module | System health monitoring |
|
|
110
|
+
|
|
111
|
+
## Supported Tools
|
|
112
|
+
|
|
113
|
+
Works with any AI agent or coding tool that can run shell commands:
|
|
114
|
+
|
|
115
|
+
| Tool | How |
|
|
116
|
+
|------|-----|
|
|
117
|
+
| Claude Code | CLI via bash, hooks via settings.json, MCP via .mcp.json |
|
|
118
|
+
| OpenAI Codex CLI | CLI via bash, skills via AGENTS.md |
|
|
119
|
+
| Cursor | CLI via terminal, MCP via config |
|
|
120
|
+
| Windsurf | CLI via terminal, MCP via config |
|
|
121
|
+
| OpenClaw | Plugins, skills, MCP |
|
|
122
|
+
| Any agent | CLI works everywhere. If it has a shell, it works. |
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wip-universal-installer
|
|
3
|
+
description: Reference installer for agent-native software. Scans a repo, detects which interfaces it exposes, and installs them all.
|
|
4
|
+
license: MIT
|
|
5
|
+
interface: [cli, module, skill]
|
|
6
|
+
metadata:
|
|
7
|
+
display-name: "Universal Installer"
|
|
8
|
+
version: "2.1.5"
|
|
9
|
+
homepage: "https://github.com/wipcomputer/wip-universal-installer"
|
|
10
|
+
author: "Parker Todd Brooks"
|
|
11
|
+
category: dev-tools
|
|
12
|
+
capabilities:
|
|
13
|
+
- detect-interfaces
|
|
14
|
+
- install-cli
|
|
15
|
+
- install-mcp
|
|
16
|
+
- install-openclaw-plugin
|
|
17
|
+
- install-claude-code-hook
|
|
18
|
+
requires:
|
|
19
|
+
bins: [node, npm, git]
|
|
20
|
+
openclaw:
|
|
21
|
+
requires:
|
|
22
|
+
bins: [node, npm, git]
|
|
23
|
+
install:
|
|
24
|
+
- id: node
|
|
25
|
+
kind: node
|
|
26
|
+
package: "@wipcomputer/universal-installer"
|
|
27
|
+
bins: [wip-install]
|
|
28
|
+
label: "Install via npm"
|
|
29
|
+
emoji: "🔌"
|
|
30
|
+
compatibility: Requires git, npm, node. Node.js 18+.
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
# wip-universal-installer
|
|
34
|
+
|
|
35
|
+
Reference installer for agent-native software. Scans a repo, detects which interfaces it exposes, and installs them all.
|
|
36
|
+
|
|
37
|
+
## When to Use This Skill
|
|
38
|
+
|
|
39
|
+
**Use wip-install for:**
|
|
40
|
+
- Installing any repo that follows the Universal Interface pattern
|
|
41
|
+
- Detecting what interfaces a repo provides
|
|
42
|
+
- Setting up CLI tools, MCP servers, OpenClaw plugins, and Claude Code hooks in one command
|
|
43
|
+
|
|
44
|
+
**Use detect.mjs for:**
|
|
45
|
+
- Programmatically detecting interfaces in a repo
|
|
46
|
+
- Building custom installers or CI pipelines
|
|
47
|
+
- Validating that a repo follows the spec
|
|
48
|
+
|
|
49
|
+
### Do NOT Use For
|
|
50
|
+
|
|
51
|
+
- Installing standard npm packages (use npm directly)
|
|
52
|
+
- Repos that don't follow the Universal Interface conventions
|
|
53
|
+
- Building or compiling code (this only installs)
|
|
54
|
+
|
|
55
|
+
## API Reference
|
|
56
|
+
|
|
57
|
+
### CLI
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
wip-install /path/to/repo # install all interfaces
|
|
61
|
+
wip-install org/repo # clone from GitHub + install
|
|
62
|
+
wip-install --dry-run /path/to/repo # detect only, no changes
|
|
63
|
+
wip-install --json /path/to/repo # JSON output
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Module (detect.mjs)
|
|
67
|
+
|
|
68
|
+
```javascript
|
|
69
|
+
import { detectInterfaces, describeInterfaces, detectInterfacesJSON } from './detect.mjs';
|
|
70
|
+
|
|
71
|
+
const { interfaces, pkg } = detectInterfaces('/path/to/repo');
|
|
72
|
+
console.log(describeInterfaces(interfaces));
|
|
73
|
+
|
|
74
|
+
const json = detectInterfacesJSON('/path/to/repo');
|
|
75
|
+
console.log(JSON.stringify(json, null, 2));
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Universal Interface
|
|
79
|
+
|
|
80
|
+
See [SPEC.md](https://github.com/wipcomputer/wip-universal-installer/blob/main/SPEC.md) for the full specification.
|
|
81
|
+
|
|
82
|
+
1. **CLI** ... `package.json` bin field
|
|
83
|
+
2. **Module** ... `package.json` main/exports
|
|
84
|
+
3. **MCP Server** ... `mcp-server.mjs`
|
|
85
|
+
4. **OpenClaw Plugin** ... `openclaw.plugin.json`
|
|
86
|
+
5. **Skill** ... `SKILL.md`
|
|
87
|
+
6. **Claude Code Hook** ... `guard.mjs` or `claudeCode.hook`
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# The Universal Interface Specification
|
|
2
|
+
|
|
3
|
+
Every tool is a sensor, an actuator, or both. Every tool should be accessible through multiple interfaces. We call this the Universal Interface.
|
|
4
|
+
|
|
5
|
+
This is the spec.
|
|
6
|
+
|
|
7
|
+
## The Six Interfaces
|
|
8
|
+
|
|
9
|
+
### 1. CLI
|
|
10
|
+
|
|
11
|
+
A shell command. The most universal interface. If it has a terminal, it works.
|
|
12
|
+
|
|
13
|
+
**Convention:** `package.json` with a `bin` field.
|
|
14
|
+
|
|
15
|
+
**Detection:** `pkg.bin` exists.
|
|
16
|
+
|
|
17
|
+
**Install:** `npm install -g .` or `npm link`.
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"bin": {
|
|
22
|
+
"wip-grok": "./cli.mjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 2. Module
|
|
28
|
+
|
|
29
|
+
An importable ES module. The programmatic interface. Other tools compose with it.
|
|
30
|
+
|
|
31
|
+
**Convention:** `package.json` with `main` or `exports` field. File is `core.mjs` by convention.
|
|
32
|
+
|
|
33
|
+
**Detection:** `pkg.main` or `pkg.exports` exists.
|
|
34
|
+
|
|
35
|
+
**Install:** `npm install <package>` or import directly from path.
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"type": "module",
|
|
40
|
+
"main": "core.mjs",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": "./core.mjs",
|
|
43
|
+
"./cli": "./cli.mjs"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 3. MCP Server
|
|
49
|
+
|
|
50
|
+
A JSON-RPC server implementing the Model Context Protocol. Any MCP-compatible agent can use it.
|
|
51
|
+
|
|
52
|
+
**Convention:** `mcp-server.mjs` (or `.js`, `.ts`) at the repo root. Uses `@modelcontextprotocol/sdk`.
|
|
53
|
+
|
|
54
|
+
**Detection:** One of `mcp-server.mjs`, `mcp-server.js`, `mcp-server.ts`, `dist/mcp-server.js` exists.
|
|
55
|
+
|
|
56
|
+
**Install:** Add to `.mcp.json`:
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"tool-name": {
|
|
61
|
+
"command": "node",
|
|
62
|
+
"args": ["/path/to/mcp-server.mjs"]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 4. OpenClaw Plugin
|
|
68
|
+
|
|
69
|
+
A plugin for OpenClaw agents. Lifecycle hooks, tool registration, settings.
|
|
70
|
+
|
|
71
|
+
**Convention:** `openclaw.plugin.json` at the repo root.
|
|
72
|
+
|
|
73
|
+
**Detection:** `openclaw.plugin.json` exists.
|
|
74
|
+
|
|
75
|
+
**Install:** Copy to `~/.openclaw/extensions/<name>/`, run `npm install --omit=dev`.
|
|
76
|
+
|
|
77
|
+
### 5. Skill (SKILL.md)
|
|
78
|
+
|
|
79
|
+
A markdown file that teaches agents when and how to use the tool. The instruction interface.
|
|
80
|
+
|
|
81
|
+
**Convention:** `SKILL.md` at the repo root. YAML frontmatter with name, version, description, metadata.
|
|
82
|
+
|
|
83
|
+
**Detection:** `SKILL.md` exists.
|
|
84
|
+
|
|
85
|
+
**Install:** Referenced by path. Agents read it when they need the tool.
|
|
86
|
+
|
|
87
|
+
```yaml
|
|
88
|
+
---
|
|
89
|
+
name: wip-grok
|
|
90
|
+
version: 1.0.0
|
|
91
|
+
description: xAI Grok API. Search the web, search X, generate images.
|
|
92
|
+
metadata:
|
|
93
|
+
category: search,media
|
|
94
|
+
capabilities:
|
|
95
|
+
- web-search
|
|
96
|
+
- image-generation
|
|
97
|
+
---
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### 6. Claude Code Hook
|
|
101
|
+
|
|
102
|
+
A hook that runs during Claude Code's tool lifecycle (PreToolUse, Stop, etc.).
|
|
103
|
+
|
|
104
|
+
**Convention:** `guard.mjs` at repo root, or `claudeCode.hook` in `package.json`.
|
|
105
|
+
|
|
106
|
+
**Detection:** `guard.mjs` exists, or `pkg.claudeCode.hook` is defined.
|
|
107
|
+
|
|
108
|
+
**Install:** Added to `~/.claude/settings.json` under `hooks`.
|
|
109
|
+
|
|
110
|
+
```json
|
|
111
|
+
{
|
|
112
|
+
"hooks": {
|
|
113
|
+
"PreToolUse": [{
|
|
114
|
+
"matcher": "Edit|Write",
|
|
115
|
+
"hooks": [{
|
|
116
|
+
"type": "command",
|
|
117
|
+
"command": "node /path/to/guard.mjs",
|
|
118
|
+
"timeout": 5
|
|
119
|
+
}]
|
|
120
|
+
}]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Architecture
|
|
126
|
+
|
|
127
|
+
Every repo that follows this spec has the same basic structure:
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
your-tool/
|
|
131
|
+
core.mjs pure logic, zero or minimal deps
|
|
132
|
+
cli.mjs thin CLI wrapper around core
|
|
133
|
+
mcp-server.mjs MCP server wrapping core functions as tools
|
|
134
|
+
SKILL.md agent instructions with YAML frontmatter
|
|
135
|
+
package.json name, bin, main, exports, type: module
|
|
136
|
+
README.md human documentation
|
|
137
|
+
ai/ development process (plans, todos, notes)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Not every tool needs all six interfaces. Build the ones that make sense.
|
|
141
|
+
|
|
142
|
+
The minimum viable agent-native tool has two interfaces: **Module** (importable) and **Skill** (agent instructions). Add CLI for humans. Add MCP for agents that speak MCP. Add OpenClaw/CC Hook for specific platforms.
|
|
143
|
+
|
|
144
|
+
## The `ai/` Folder
|
|
145
|
+
|
|
146
|
+
Every repo should have an `ai/` folder. This is where agents and humans collaborate on the project ... plans, todos, dev updates, research notes, conversations.
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
ai/
|
|
150
|
+
plan/ architecture plans, roadmaps
|
|
151
|
+
dev-updates/ what was built, session logs
|
|
152
|
+
todos/
|
|
153
|
+
PUNCHLIST.md blockers to ship
|
|
154
|
+
inboxes/ per-agent action items
|
|
155
|
+
notes/ research, references, raw conversation logs
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
The `ai/` folder is the development process. It is not part of the published product.
|
|
159
|
+
|
|
160
|
+
**Public/private split:** If a repo is public, the `ai/` folder should not ship. The recommended pattern is to maintain a private working repo (with `ai/`) and a public repo (everything except `ai/`). The public repo has everything an LLM or human needs to understand and use the tool. The `ai/` folder is operational context for the team building it.
|
|
161
|
+
|
|
162
|
+
## The Reference Installer
|
|
163
|
+
|
|
164
|
+
`wip-install` is the reference implementation. It scans a repo, detects which interfaces exist, and installs them all. One command.
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
wip-install /path/to/repo # local
|
|
168
|
+
wip-install org/repo # from GitHub
|
|
169
|
+
wip-install --dry-run /path/to/repo # detect only
|
|
170
|
+
wip-install --json /path/to/repo # JSON output
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## Examples
|
|
174
|
+
|
|
175
|
+
| Repo | Interfaces | Type |
|
|
176
|
+
|------|------------|------|
|
|
177
|
+
| [wip-grok](https://github.com/wipcomputer/wip-grok) | CLI + Module + MCP + Skill | Sensor + Actuator |
|
|
178
|
+
| [wip-x](https://github.com/wipcomputer/wip-x) | CLI + Module + MCP + Skill | Sensor + Actuator |
|
|
179
|
+
| [wip-file-guard](https://github.com/wipcomputer/wip-file-guard) | CLI + OpenClaw + CC Hook | Actuator |
|
|
180
|
+
| [wip-markdown-viewer](https://github.com/wipcomputer/wip-markdown-viewer) | CLI + Module | Actuator |
|