superbash 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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 superbash contributors
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.
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env node
2
+ // OS・CPU ごとの package の実行 file を、shell を通さず直接起動する。引数と stdio は素通し。
3
+ "use strict";
4
+ const { spawn } = require("node:child_process");
5
+
6
+ const key = `${process.platform}-${process.arch}`;
7
+ const pkg = `superbash-${key}`;
8
+
9
+ let bin;
10
+ try {
11
+ bin = require.resolve(`${pkg}/bin/superbash`);
12
+ } catch {
13
+ process.stderr.write(
14
+ `superbash: ${key} 用の package(${pkg})が入っていない。` +
15
+ `対象は darwin-arm64・darwin-x64・linux-x64・linux-arm64。\n`,
16
+ );
17
+ process.exit(1);
18
+ }
19
+
20
+ const child = spawn(bin, process.argv.slice(2), { stdio: "inherit" });
21
+ for (const sig of ["SIGINT", "SIGTERM", "SIGHUP"]) {
22
+ process.on(sig, () => child.kill(sig));
23
+ }
24
+ child.on("error", (e) => {
25
+ process.stderr.write(`superbash: 起動できない: ${e.message}\n`);
26
+ process.exit(1);
27
+ });
28
+ child.on("exit", (code, signal) => {
29
+ if (signal) {
30
+ process.removeAllListeners(signal);
31
+ process.kill(process.pid, signal);
32
+ } else {
33
+ process.exit(code ?? 1);
34
+ }
35
+ });
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "superbash",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "toolset の command だけを MCP の道具として出す",
5
+ "license": "MIT",
6
+ "repository": { "type": "git", "url": "git+https://github.com/agent-hand/superbash.git" },
7
+ "bin": { "superbash": "bin/superbash.js" },
8
+ "files": ["bin/superbash.js"],
9
+ "optionalDependencies": {
10
+ "superbash-darwin-arm64": "0.1.1",
11
+ "superbash-darwin-x64": "0.1.1",
12
+ "superbash-linux-arm64": "0.1.1",
13
+ "superbash-linux-x64": "0.1.1"
14
+ }
15
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.