@zeroxsolutions/gundam 0.0.0-stage → 0.1.1
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 +21 -0
- package/README.md +10 -2
- package/bin/gundam.js +44 -0
- package/package.json +108 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 zeroxsolutions
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @zeroxsolutions/gundam
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The process tool of the gundam plugin for Claude Code and Codex. It holds a change to its approved plan,
|
|
4
|
+
its tests and its review.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm install -g @zeroxsolutions/gundam
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
npm installs the binary for this machine from one of `@zeroxsolutions/gundam-darwin-arm64`,
|
|
11
|
+
`-darwin-x64`, `-linux-arm64` or `-linux-x64`, so an install with `--omit=optional` has nothing to run.
|
package/bin/gundam.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// npm installs only the optional dependency whose `os` and `cpu` match this machine, so the binary is
|
|
3
|
+
// found by the platform package's name.
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
const { spawn } = require('node:child_process');
|
|
7
|
+
|
|
8
|
+
const BUILDS = ['darwin-arm64', 'darwin-x64', 'linux-arm64', 'linux-x64'];
|
|
9
|
+
const platform = `${process.platform}-${process.arch}`;
|
|
10
|
+
|
|
11
|
+
if (!BUILDS.includes(platform)) {
|
|
12
|
+
console.error(`gundam has no build for ${platform}; it ships for ${BUILDS.join(', ')}.`);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const platformPackage = `@zeroxsolutions/gundam-${platform}`;
|
|
17
|
+
let binary;
|
|
18
|
+
try {
|
|
19
|
+
binary = require.resolve(`${platformPackage}/bin/gundam`);
|
|
20
|
+
} catch {
|
|
21
|
+
console.error(
|
|
22
|
+
`${platformPackage} is not installed, so gundam has no binary to run. ` +
|
|
23
|
+
'Reinstall @zeroxsolutions/gundam without --no-optional or --omit=optional.',
|
|
24
|
+
);
|
|
25
|
+
process.exit(1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' });
|
|
29
|
+
|
|
30
|
+
// Ctrl+C already reaches the binary through the terminal's process group; passing it on would make
|
|
31
|
+
// it a second one.
|
|
32
|
+
process.on('SIGINT', () => {});
|
|
33
|
+
for (const signal of ['SIGTERM', 'SIGHUP']) {
|
|
34
|
+
process.on(signal, () => child.kill(signal));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
child.on('exit', (code, signal) => {
|
|
38
|
+
if (signal) {
|
|
39
|
+
process.removeAllListeners(signal);
|
|
40
|
+
process.kill(process.pid, signal);
|
|
41
|
+
} else {
|
|
42
|
+
process.exit(code ?? 1);
|
|
43
|
+
}
|
|
44
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,111 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeroxsolutions/gundam",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "gundam's process tool: holds a change to its approved plan, its tests and its review.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/zeroxsolutions/agent-plugins.git",
|
|
9
|
+
"directory": "apps/gundam-cli"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"gundam": "bin/gundam.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"bin",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=22"
|
|
20
|
+
},
|
|
21
|
+
"optionalDependencies": {
|
|
22
|
+
"@zeroxsolutions/gundam-darwin-arm64": "0.1.1",
|
|
23
|
+
"@zeroxsolutions/gundam-linux-arm64": "0.1.1",
|
|
24
|
+
"@zeroxsolutions/gundam-darwin-x64": "0.1.1",
|
|
25
|
+
"@zeroxsolutions/gundam-linux-x64": "0.1.1"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"nx": {
|
|
31
|
+
"targets": {
|
|
32
|
+
"build": {
|
|
33
|
+
"executor": "nx:run-commands",
|
|
34
|
+
"cache": true,
|
|
35
|
+
"outputs": [
|
|
36
|
+
"{workspaceRoot}/target/release/gundam"
|
|
37
|
+
],
|
|
38
|
+
"options": {
|
|
39
|
+
"cwd": "{workspaceRoot}",
|
|
40
|
+
"command": "cargo build --release -p gundam"
|
|
41
|
+
},
|
|
42
|
+
"inputs": [
|
|
43
|
+
"default",
|
|
44
|
+
"{workspaceRoot}/Cargo.toml",
|
|
45
|
+
"{workspaceRoot}/Cargo.lock",
|
|
46
|
+
"{workspaceRoot}/.tool-versions"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"typecheck": {
|
|
50
|
+
"executor": "nx:run-commands",
|
|
51
|
+
"cache": true,
|
|
52
|
+
"options": {
|
|
53
|
+
"cwd": "{workspaceRoot}",
|
|
54
|
+
"command": "cargo check -p gundam --all-targets"
|
|
55
|
+
},
|
|
56
|
+
"inputs": [
|
|
57
|
+
"default",
|
|
58
|
+
"{workspaceRoot}/Cargo.toml",
|
|
59
|
+
"{workspaceRoot}/Cargo.lock",
|
|
60
|
+
"{workspaceRoot}/.tool-versions"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"lint": {
|
|
64
|
+
"executor": "nx:run-commands",
|
|
65
|
+
"cache": true,
|
|
66
|
+
"options": {
|
|
67
|
+
"cwd": "{workspaceRoot}",
|
|
68
|
+
"commands": [
|
|
69
|
+
"cargo fmt -p gundam --check",
|
|
70
|
+
"cargo clippy -p gundam --all-targets -- -D warnings"
|
|
71
|
+
],
|
|
72
|
+
"parallel": false
|
|
73
|
+
},
|
|
74
|
+
"inputs": [
|
|
75
|
+
"default",
|
|
76
|
+
"{workspaceRoot}/Cargo.toml",
|
|
77
|
+
"{workspaceRoot}/Cargo.lock",
|
|
78
|
+
"{workspaceRoot}/.tool-versions"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"check-pins": {
|
|
82
|
+
"executor": "nx:run-commands",
|
|
83
|
+
"options": {
|
|
84
|
+
"cwd": "{workspaceRoot}",
|
|
85
|
+
"command": "node apps/gundam-cli/scripts/check-pins.mjs"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"test": {
|
|
89
|
+
"executor": "nx:run-commands",
|
|
90
|
+
"cache": true,
|
|
91
|
+
"options": {
|
|
92
|
+
"cwd": "{workspaceRoot}",
|
|
93
|
+
"command": "cargo test -p gundam"
|
|
94
|
+
},
|
|
95
|
+
"inputs": [
|
|
96
|
+
"default",
|
|
97
|
+
"{workspaceRoot}/Cargo.toml",
|
|
98
|
+
"{workspaceRoot}/Cargo.lock",
|
|
99
|
+
"{workspaceRoot}/.tool-versions",
|
|
100
|
+
"{workspaceRoot}/plugins/gundam/hooks/**/*",
|
|
101
|
+
"{workspaceRoot}/plugins/gundam/skills/reaching-for-a-skill/SKILL.md",
|
|
102
|
+
"{workspaceRoot}/apps/zaku-cli/scripts/check-pins.mjs",
|
|
103
|
+
"{workspaceRoot}/apps/zaku-cli/package.json",
|
|
104
|
+
{
|
|
105
|
+
"runtime": "node --version"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
6
111
|
}
|