opencode-top 3.3.6 → 3.3.7
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/README.md +15 -0
- package/dist/cli.mjs +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,3 +73,18 @@ cd opencode-top
|
|
|
73
73
|
npm install
|
|
74
74
|
npm start live # run from source with tsx
|
|
75
75
|
```
|
|
76
|
+
|
|
77
|
+
## Maintenance
|
|
78
|
+
|
|
79
|
+
### Publishing a new version
|
|
80
|
+
|
|
81
|
+
1. Make and commit your changes
|
|
82
|
+
2. Bump the version in `package.json`
|
|
83
|
+
3. Build and publish:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm publish --access public
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
The `prepublishOnly` script runs the build automatically before publishing.
|
|
90
|
+
The bin entry must point to `bin/octop.js` (not `bin/octop.mjs`) — `octop.js` loads the pre-built `dist/cli.mjs` and has no runtime dependencies.
|
package/dist/cli.mjs
CHANGED
|
@@ -22508,9 +22508,7 @@ function App2({ refreshInterval = 2e3 }) {
|
|
|
22508
22508
|
}
|
|
22509
22509
|
|
|
22510
22510
|
// src/cli.ts
|
|
22511
|
-
|
|
22512
|
-
var require2 = createRequire(import.meta.url);
|
|
22513
|
-
var pkg = require2("../package.json");
|
|
22511
|
+
var pkg = { version: "3.3.7", name: "opencode-top" };
|
|
22514
22512
|
program.name(pkg.name).version(pkg.version).description("Monitor OpenCode AI coding sessions");
|
|
22515
22513
|
program.command("live").description("Start live monitoring dashboard").option("-i, --interval <ms>", "Refresh interval in milliseconds", "2000").action((options) => {
|
|
22516
22514
|
const refreshInterval = Number.parseInt(options.interval, 10);
|