backeer-opencode 0.1.2 → 0.1.3
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/CHANGELOG.md +8 -0
- package/README.md +20 -0
- package/bin/backeer-opencode.js +1 -1
- package/dist/backeer-permission.js +730 -0
- package/package.json +9 -2
- package/src/config.js +56 -0
- package/src/event-publishers.js +214 -0
- package/src/http.js +87 -0
- package/src/index.js +1 -829
- package/src/permission-controller.js +183 -0
- package/src/plugin.js +143 -0
- package/src/reporter.js +60 -0
- package/src/sse.js +139 -0
- package/src/utilities.js +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `backeer-opencode` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.1.3 - 2026-09-01
|
|
6
|
+
|
|
7
|
+
- Split configuration, logging, HTTP, SSE, event publishing, and permission
|
|
8
|
+
command handling into focused source modules.
|
|
9
|
+
- Keep the npm plugin entrypoint backward-compatible with a default export only.
|
|
10
|
+
- Add an esbuild-generated, dependency-free bundle for legacy side-loaded
|
|
11
|
+
installations.
|
|
12
|
+
|
|
5
13
|
## 0.1.2 - 2026-09-01
|
|
6
14
|
|
|
7
15
|
- Replace raw HTTP log lines with compact Backeer console status messages.
|
package/README.md
CHANGED
|
@@ -174,6 +174,26 @@ npm run pack:check
|
|
|
174
174
|
npm run publish:check
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
+
## Development architecture
|
|
178
|
+
|
|
179
|
+
The npm plugin runs from the modular source in `src`. Configuration, console
|
|
180
|
+
reporting, HTTP transport, SSE consumption, event publishing, permission command
|
|
181
|
+
handling, and OpenCode event routing are kept in separate modules. The package
|
|
182
|
+
root continues to expose only the default OpenCode plugin entrypoint.
|
|
183
|
+
|
|
184
|
+
The legacy side-loaded installer still deploys one dependency-free file. Build
|
|
185
|
+
that generated artifact before running the installer directly from a source
|
|
186
|
+
checkout:
|
|
187
|
+
|
|
188
|
+
```sh
|
|
189
|
+
npm install
|
|
190
|
+
npm run build
|
|
191
|
+
node bin/backeer-opencode.js
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
`npm test`, `npm pack`, and `npm publish` build the side-loaded artifact
|
|
195
|
+
automatically. Do not edit `dist/backeer-permission.js` by hand.
|
|
196
|
+
|
|
177
197
|
## Publishing
|
|
178
198
|
|
|
179
199
|
Maintainers can publish a release after authenticating the `Backeer` npm
|
package/bin/backeer-opencode.js
CHANGED
|
@@ -173,7 +173,7 @@ const configDirectory = resolve(arguments_.configDir ?? defaultConfigDirectory()
|
|
|
173
173
|
const pluginDirectory = join(configDirectory, "plugins")
|
|
174
174
|
const secretPath = join(configDirectory, "secrets", "backeer-ingest-token")
|
|
175
175
|
const packageDirectory = resolve(dirname(fileURLToPath(import.meta.url)), "..")
|
|
176
|
-
const sourcePath = join(packageDirectory, "
|
|
176
|
+
const sourcePath = join(packageDirectory, "dist", "backeer-permission.js")
|
|
177
177
|
// Keep the legacy filename so upgrading an existing Backeer installation
|
|
178
178
|
// replaces it instead of loading two copies of the same plugin.
|
|
179
179
|
const installedPath = join(pluginDirectory, "backeer-permission.js")
|