oh-my-githubcopilot 1.4.0 → 1.4.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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +8 -0
- package/bin/omp.mjs +7 -2
- package/bin/omp.mjs.map +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ Each section corresponds to commits between conceptual version boundaries (no gi
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [v1.4.1] — CLI shebang fix, dynamic version
|
|
9
|
+
|
|
10
|
+
### Fixes
|
|
11
|
+
- **CLI shebang** — `bin/omp.mjs` now includes `#!/usr/bin/env node` banner (via esbuild `banner` option); the binary is executable directly without explicit `node` invocation (`550b764`)
|
|
12
|
+
- **Dynamic version** — `omp version` now reads name and version from `package.json` at runtime via `createRequire`; no more hardcoded version string in source (`550b764`)
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
## [v1.4.0] — Package renamed to oh-my-githubcopilot
|
|
9
17
|
|
|
10
18
|
### Breaking Changes
|
package/bin/omp.mjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
// src/index.mts
|
|
2
4
|
import { parseArgs } from "util";
|
|
5
|
+
import { createRequire } from "module";
|
|
6
|
+
var _require = createRequire(import.meta.url);
|
|
7
|
+
var { version: PKG_VERSION, name: PKG_NAME } = _require("../package.json");
|
|
3
8
|
var { positionals } = parseArgs({
|
|
4
9
|
args: process.argv.slice(2),
|
|
5
10
|
options: {
|
|
@@ -15,7 +20,7 @@ async function main() {
|
|
|
15
20
|
await printHud();
|
|
16
21
|
break;
|
|
17
22
|
case "version":
|
|
18
|
-
console.log(
|
|
23
|
+
console.log(`${PKG_NAME} v${PKG_VERSION}`);
|
|
19
24
|
break;
|
|
20
25
|
case "psm":
|
|
21
26
|
await runPsm(positionals.slice(1));
|
|
@@ -38,7 +43,7 @@ async function printHud() {
|
|
|
38
43
|
const line = readFileSync(hudPath, "utf-8").trim();
|
|
39
44
|
console.log(line);
|
|
40
45
|
} catch {
|
|
41
|
-
console.log(
|
|
46
|
+
console.log(`OMP v${PKG_VERSION} | hud: no active session`);
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
49
|
async function runPsm(_args) {
|
package/bin/omp.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.mts"],
|
|
4
|
-
"sourcesContent": ["/**\n * omp CLI companion tool\n * Entry point: bin/omp.mjs\n *\n * Subcommands:\n * omp hud \u2014 print current HUD line\n * omp version \u2014 show OMP version\n * omp psm \u2014 shorthand for PSM commands\n * omp bench \u2014 run SWE-bench suite\n */\n\nimport { parseArgs } from \"util\";\n\nconst { positionals } = parseArgs({\n args: process.argv.slice(2),\n options: {\n help: { type: \"boolean\", default: false },\n version: { type: \"boolean\", default: false },\n },\n allowPositionals: true,\n});\n\nconst subcommand = positionals[0] || \"hud\";\n\nasync function main() {\n switch (subcommand) {\n case \"hud\":\n await printHud();\n break;\n case \"version\":\n console.log(
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/**\n * omp CLI companion tool\n * Entry point: bin/omp.mjs\n *\n * Subcommands:\n * omp hud \u2014 print current HUD line\n * omp version \u2014 show OMP version\n * omp psm \u2014 shorthand for PSM commands\n * omp bench \u2014 run SWE-bench suite\n */\n\nimport { parseArgs } from \"util\";\nimport { createRequire } from \"module\";\nconst _require = createRequire(import.meta.url);\nconst { version: PKG_VERSION, name: PKG_NAME } = _require(\"../package.json\") as { version: string; name: string };\n\nconst { positionals } = parseArgs({\n args: process.argv.slice(2),\n options: {\n help: { type: \"boolean\", default: false },\n version: { type: \"boolean\", default: false },\n },\n allowPositionals: true,\n});\n\nconst subcommand = positionals[0] || \"hud\";\n\nasync function main() {\n switch (subcommand) {\n case \"hud\":\n await printHud();\n break;\n case \"version\":\n console.log(`${PKG_NAME} v${PKG_VERSION}`);\n break;\n case \"psm\":\n await runPsm(positionals.slice(1));\n break;\n case \"bench\":\n await runBench(positionals.slice(1));\n break;\n default:\n console.error(`Unknown subcommand: ${subcommand}`);\n console.error(\"Usage: omp [hud|version|psm|bench]\");\n process.exit(1);\n }\n}\n\nasync function printHud() {\n try {\n const { readFileSync } = await import(\"fs\");\n const { join } = await import(\"path\");\n const { homedir } = await import(\"os\");\n const hudPath = join(homedir(), \".omp\", \"hud.line\");\n const line = readFileSync(hudPath, \"utf-8\").trim();\n console.log(line);\n } catch {\n console.log(`OMP v${PKG_VERSION} | hud: no active session`);\n }\n}\n\nasync function runPsm(_args: string[]) {\n // Delegate to PSM skill \u2014 just print guidance\n console.log(\"PSM commands:\");\n console.log(\" /oh-my-githubcopilot:psm create <name> Create isolated worktree session\");\n console.log(\" /oh-my-githubcopilot:psm list List active sessions\");\n console.log(\" /oh-my-githubcopilot:psm switch <name> Switch to session\");\n console.log(\" /oh-my-githubcopilot:psm destroy <name> Destroy session\");\n}\n\nasync function runBench(_args: string[]) {\n console.log(\"SWE-bench requires Node.js subprocess with Python evaluation harness.\");\n console.log(\"Usage: /oh-my-githubcopilot:swe-bench --suite lite --compare baseline\");\n}\n\nmain().catch((err) => {\n console.error(err);\n process.exit(1);\n});\n"],
|
|
5
|
+
"mappings": ";;;AAWA,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAC9B,IAAM,WAAW,cAAc,YAAY,GAAG;AAC9C,IAAM,EAAE,SAAS,aAAa,MAAM,SAAS,IAAI,SAAS,iBAAiB;AAE3E,IAAM,EAAE,YAAY,IAAI,UAAU;AAAA,EAChC,MAAM,QAAQ,KAAK,MAAM,CAAC;AAAA,EAC1B,SAAS;AAAA,IACP,MAAM,EAAE,MAAM,WAAW,SAAS,MAAM;AAAA,IACxC,SAAS,EAAE,MAAM,WAAW,SAAS,MAAM;A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