hacker-bob-codex 1.2.0
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/bin/hacker-bob-codex.js +16 -0
- package/package.json +26 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// hacker-bob-codex is the Hacker Bob Codex adapter wrapper. It injects
|
|
5
|
+
// `--adapter codex` as the default when the operator has not supplied one,
|
|
6
|
+
// then delegates to the canonical hacker-bob CLI. Explicit `--adapter ...`
|
|
7
|
+
// is preserved so the wrapper does not block multi-adapter installs.
|
|
8
|
+
const args = process.argv.slice(2);
|
|
9
|
+
const hasAdapter = args.some(
|
|
10
|
+
(arg) => arg === "--adapter" || arg.startsWith("--adapter="),
|
|
11
|
+
);
|
|
12
|
+
if (!hasAdapter) {
|
|
13
|
+
process.argv.push("--adapter", "codex");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
require("hacker-bob/bin/hacker-bob.js");
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hacker-bob-codex",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Hacker Bob — Codex adapter wrapper. Pins --adapter codex and delegates to the canonical hacker-bob CLI.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/vmihalis/hacker-bob.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/vmihalis/hacker-bob/issues"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/vmihalis/hacker-bob#readme",
|
|
14
|
+
"bin": {
|
|
15
|
+
"hacker-bob-codex": "bin/hacker-bob-codex.js"
|
|
16
|
+
},
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=20"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"bin/hacker-bob-codex.js"
|
|
22
|
+
],
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"hacker-bob": "1.2.0"
|
|
25
|
+
}
|
|
26
|
+
}
|